:root {

  /* ==== 主题 v3 · 茶绿（茶叶公司主色，2026-09-28 由咖色改绿）==== */

  --brand: #2e7d5b;        /* 茶绿主色 */

  --brand-deep: #1f5b41;   /* 深茶绿：文字/描边 */

  --brand-soft: #e8f2ec;   /* 浅茶绿：选中底色 */

  --bg: #f3f7f4;           /* 淡绿灰背景，清爽 */

  --panel: #ffffff;

  --ink: #1f2b25;          /* 冷深字（近墨绿黑） */

  --muted: #7b8a82;

  --line: #e2ebe5;

  --green: #5b9b7a;

  --red: #c05a45;

  --wx: #07c160;

  --shadow: 0 6px 22px rgba(31, 91, 65, 0.07);

  --shadow-sm: 0 2px 8px rgba(31, 91, 65, 0.05);

  /* 旧名兼容：--gold 系列已统一指向茶绿，新增代码请直接用 --brand* */

  --gold: var(--brand);

  --gold-deep: var(--brand-deep);

  --gold-soft: var(--brand-soft);

  /* z68b：看板模块封顶高度 —— 约等于原来「3 条条目」的高度，
     模块不再无限长高，超出部分一律走滚动条 */
  --kb-h: 460px;
}

* { box-sizing: border-box; }

body {

  margin: 0;

  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  background: var(--bg);

  color: var(--ink);

  -webkit-font-smoothing: antialiased;

}

.hidden { display: none !important; }

.msg { color: var(--red); font-size: 13px; min-height: 18px; }

.hint { color: var(--muted); font-size: 12px; margin: 6px 2px 16px; }



/* 通用按钮（金底） */

button.primary {

  background: var(--gold); color: #fff; border: none; border-radius: 10px;

  font-weight: 600; cursor: pointer; transition: filter .15s, background .15s;

}

button.primary:hover { filter: brightness(1.05); }

.ghost {

  background: transparent; border: 1px solid var(--line); color: var(--muted);

  padding: 5px 12px; border-radius: 8px; cursor: pointer;

}

.ghost:hover { color: var(--ink); border-color: var(--muted); }



/* ---------- 登录 ---------- */

.login-wrap {

  min-height: 100vh; display: flex; align-items: center; justify-content: center;

  background: linear-gradient(160deg, #f7f4f0 0%, #efe7df 100%);

}

.login-card {

  background: var(--panel); padding: 44px 36px; border-radius: 18px;

  width: 340px; text-align: center; border: 1px solid var(--line);

  box-shadow: var(--shadow);

}

.login-card.wide { width: 384px; }

.login-logo {

  display: block; width: 152px; height: auto; margin: 0 auto 16px;

}

.login-card h1 { font-size: 20px; margin: 0 0 6px; color: var(--ink); letter-spacing: 1px; }

.slogan { color: var(--gold); letter-spacing: 5px; margin: 0 0 22px; font-size: 14px; }

.login-card input {

  display: block; width: 100%; margin: 12px 0; padding: 12px 14px;

  background: #f5faf7; border: 1px solid var(--line); border-radius: 10px;

  color: var(--ink); font-size: 14px; transition: border-color .15s;

}

.login-card input:focus { outline: none; border-color: var(--gold); }

.login-card button.primary {

  width: 100%; margin-top: 16px; padding: 12px; border-radius: 10px;

  font-size: 15px;

}

.wx-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; }

/* 登录页：微信登录分隔与按钮（20260928s） */

.or-line { display: flex; align-items: center; color: var(--muted); font-size: 12px; margin: 18px 0 4px; }

.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.or-line span { padding: 0 12px; }

.wx-btn {

  width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px; font-size: 15px;

  border: 1px solid #1aad19; color: #1aad19; background: #f3fbf2; cursor: pointer;

}

.wx-btn:hover { background: #e8f6e6; }

@media (max-width: 640px) {

  .login-card { width: calc(100vw - 36px); padding: 36px 24px; }

}



/* 后端未连接提示 */

.conn-warn {

  text-align: left; margin: 0 0 16px; padding: 12px 14px;

  background: #fdf2f0; border: 1px solid #f0d3cc; border-radius: 10px;

  font-size: 12.5px; line-height: 1.75; color: #7a3a30;

}

.conn-warn .cw-hd { font-size: 13.5px; font-weight: 700; color: #b23b2e; margin-bottom: 6px; }

.conn-warn .cw-why { margin: 0 0 8px; }

.conn-warn .cw-txt { margin: 0 0 6px; color: var(--ink); }

.conn-warn .cw-steps { margin: 0 0 8px; padding-left: 18px; }

.conn-warn .cw-steps li { margin: 4px 0; }

.conn-warn .cw-note { margin: 0 0 10px; color: var(--muted); word-break: break-all; }

.conn-warn code {

  background: #fff; border: 1px solid #f0d3cc; border-radius: 5px;

  padding: 1px 5px; font-size: 11.5px; font-family: Consolas, Menlo, monospace;

}

.conn-warn button { width: 100%; padding: 8px; border-radius: 8px; font-size: 13px; }



/* ---------- 外壳：左菜单 + 右内容 ---------- */

.app { display: flex; min-height: 100vh; }



.sidebar {

  width: 234px; flex: 0 0 234px; background: var(--panel);

  border-right: 1px solid var(--line); display: flex; flex-direction: column;

  position: sticky; top: 0; height: 100vh; box-shadow: var(--shadow-sm);

}

.side-brand {

  display: flex; flex-direction: column; align-items: center; gap: 5px;

  padding: 18px 18px 12px;

}

/* 官方毛笔字 logo（一曲水三个字.png，透明底深墨），随侧栏宽度自适应不变形 */

.side-logo { display: block; width: 148px; max-width: 100%; height: auto; }

.side-sub {

  font-size: 15px;

  font-weight: 500;

  color: var(--ink);

  letter-spacing: 2px;

  line-height: 1.2;

}



/* 门店切换已移出侧栏 → 改到右上「经营看板」行（见文末「门店切换」段）。

   左栏现在只有：品牌 → 菜单 → 底部身份，保持干净。 */



.side-nav { flex: 1; padding: 12px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }

.nav {

  display: flex; align-items: center; gap: 12px; width: fit-content; align-self: flex-start;

  padding: 9px 13px; border: none; background: transparent; color: var(--muted);

  border-radius: 11px; cursor: pointer; font-size: 14.5px; text-align: left; text-decoration: none;

  position: relative; transition: background .15s, color .15s;

}

.nav svg {

  width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor;

  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;

}

.nav span { flex: 1; }

.nav:hover { background: var(--gold-soft); color: var(--ink); }

.nav.active { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }

.nav.active svg { stroke: var(--gold); }

.nav-badge {

  font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;

  background: var(--gold); color: #fff; font-size: 11px; line-height: 18px; text-align: center;

  display: none;

}

.nav-badge.show { display: inline-block; }



.side-foot {

  border-top: 1px solid var(--line); padding: 14px 16px; display: flex;

  flex-direction: column; gap: 8px;

}

.who { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.side-foot .ghost { font-size: 12.5px; padding: 7px 10px; }



/* 右侧内容 */

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {

  display: flex; justify-content: space-between; align-items: center;

  padding: 14px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7);

  backdrop-filter: blur(4px); position: sticky; top: 0; z-index: 10;

}

.crumb { font-size: 17px; color: var(--ink); letter-spacing: .5px; }

.top-tip { font-size: 12px; color: var(--muted); }



.panels { flex: 1; overflow-y: auto; padding: 24px 28px 64px; }

.panel { display: none; max-width: 1080px; margin: 0 auto; }

.panel.active { display: block; animation: fade .2s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }



/* 表单行 */

.form-row { display: flex; gap: 10px; flex-wrap: wrap; }

.form-row input, .form-row select {

  flex: 1; min-width: 130px; padding: 11px 14px; background: #f5faf7;

  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 14px;

  transition: border-color .15s;

}

.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--gold); }

/* form-row 内带标签的字段（label 包住 input）：尺寸转移到 label，输入框铺满 */

.form-row label { flex: 1; min-width: 130px; }

.form-row label input, .form-row label select { width: 100%; flex: none; min-width: 0; }

.form-row button {

  padding: 11px 20px; background: var(--gold); color: #fff; border: none;

  border-radius: 10px; font-weight: 600; cursor: pointer; white-space: nowrap;

  transition: filter .15s;

}

.form-row button:hover { filter: brightness(1.05); }

/* z153：商品资料搜索行 */
.inv-search-row { margin-bottom: 10px; align-items: center; }
.inv-search-wrap { position: relative; flex: 0 1 320px; min-width: 180px; display: flex; }
.inv-brand-sel { flex: 0 0 auto; min-width: 140px; max-width: 220px; }
.inv-search-wrap .inv-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: var(--muted); opacity: .55; pointer-events: none; }
.inv-search-wrap input { flex: 1; min-width: 0; padding-left: 36px; }
.inv-count { align-self: center; font-size: 12px; color: var(--muted); white-space: nowrap; padding-right: 4px; }
/* z253：新增行（商品资料/散茶资料）——库存/安全库存定宽收短、名称框封顶，整行左靠让「新增」按钮前移 */
.inv-add-row input[type="number"] { flex: 0 0 auto; width: 160px; min-width: 0; }
/* z255：初始库存入库库房下拉，与数字框同排定宽 */
.inv-add-row .inv-wh-sel { flex: 0 0 auto; width: 170px; min-width: 0; padding: 11px 10px; cursor: pointer; }
.inv-add-row #inv-name, .inv-add-row #rt-name { flex: 1 1 220px; max-width: 360px; }



/* ---------- 看板 ---------- */

.ov-head h2 {

  font-size: 22px; margin: 4px 0 4px; letter-spacing: .5px;

  position: relative; padding-bottom: 10px;

}

.ov-head h2::after {

  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px;

  background: linear-gradient(90deg, var(--gold) 0%, rgba(46,125,91,.28) 40%, rgba(46,125,91,0) 100%);

}

/* ---------- 看板顶部速览 chip（每类几件，点了滚到对应卡面分组） ---------- */

.kb-chip {

  display: inline-flex; align-items: baseline; gap: 6px;

  background: #f8fbf9; border: 1px solid var(--line); border-radius: 999px;

  padding: 5px 12px; cursor: pointer;

  transition: transform .12s, border-color .15s, background .15s;

}

.kb-chip:hover { transform: translateY(-1px); border-color: var(--gold); background: #fff; }

.kb-chip .c-l { font-size: 12px; color: var(--muted); }

.kb-chip .c-v { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1; }

.kb-chip.alert { border-color: #eccfbe; background: #fdf6f2; }

.kb-chip.alert .c-v { color: var(--red); }

.kb-chip.alert .c-l { color: var(--red); }



.ov-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin: 8px 0 4px; }

.ov-metric { background: #f7fbf8; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: center; }

.ov-metric .v { font-size: 22px; font-weight: 700; color: var(--gold); }

.ov-metric .l { font-size: 12px; color: var(--ink); margin-top: 3px; }



/* ---------- 看板：待办 / 提醒 两大分区，每类「一排排」铺开 ---------- */

/* PC 端放宽看板可用宽度，让每排能横向放下更多卡面 */

#panel-overview { max-width: 1220px; }



/* 顶部两张分区概况卡：先看条数，点 chip 滚到下面那一排 */

.kb-zonecards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 4px; }

.kb-zc {

  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold);

  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm);

}

.kb-zc.remind { border-left-color: var(--green); }

.kb-zc-hd { display: flex; align-items: baseline; gap: 8px; }

.kb-zc-hd .zc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); align-self: center; }

.kb-zc.remind .zc-dot { background: var(--green); }

.kb-zc-hd .zc-nm { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }

.kb-zc-hd .zc-n { font-size: 22px; font-weight: 700; color: var(--gold-deep); margin-left: 2px; line-height: 1; }

.kb-zc.remind .zc-n { color: var(--green); }

.kb-zc-hd .zc-unit { font-size: 12px; color: var(--muted); }

.kb-zc-hd .zc-flag {

  margin-left: auto; font-size: 11px; color: var(--muted);

  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; white-space: nowrap;

}

.kb-zc-desc { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.55; }

/* 标题下的装饰色块（.zc-bar）已去掉：观感太碎，改用「左侧色条 + 图标方块」区分 */

.kb-zc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* z69：说明收进标题后的问号气泡 */
.kb-zc-hd .qmark { margin-left: 1px; align-self: center; }
.kb-zc-hd .qtip { top: calc(100% + 10px); left: -6px; }
.panel-hd2 .qmark, .sec-title .qmark, .sec-t .qmark, .modal-hd .qmark { margin-left: 7px; }
.panel-hd2 .qmark, h2 .qmark, h3 .qmark, h4 .qmark { vertical-align: middle; }

.kb-zc .zc-none { font-size: 12px; color: var(--muted); }



/* 分区：待办 / 提醒 */

.kb-zones { display: flex; flex-direction: column; gap: 24px; margin-top: 22px; }

.kb-zone-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }

.kb-zone-hd .z-dot { width: 11px; height: 11px; border-radius: 3px; background: var(--gold); flex: 0 0 auto; }

.kb-zone-hd .z-nm { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }

.kb-zone-hd .z-n { font-size: 13px; font-weight: 700; color: #fff; background: var(--gold); border-radius: 9px; padding: 1px 9px; }

.kb-zone-hd .z-unit { font-size: 11.5px; color: var(--muted); }


.kb-zone.remind .kb-zone-hd .z-dot { background: var(--green); }

.kb-zone.remind .kb-zone-hd .z-n { background: var(--green); }



/* 一区：顶部类别标题（圆点 / 名称 / 件数 / 全部）+ 下方卡面；同区并排铺开 */

.kb-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); gap: 12px; align-items: start;
  /* z68b：限高只落在「模块」(.kb-row) 与「条目区」(.kb-list) 两级，
     分区网格不限高 —— 否则定高的模块会被外层滚动条挡住，反而看不到 */
  padding-right: 4px; }

.kb-row {

  display: flex; flex-direction: column; gap: 10px;

  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;

  padding: 12px 14px; box-shadow: var(--shadow-sm);

  transition: border-color .15s, box-shadow .15s;

}

.kb-row.flash { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.kb-rail {

  display: flex; align-items: center; gap: 8px;

  padding-bottom: 8px; border-bottom: 1px dashed var(--line); cursor: pointer;

}

/* 类别标题色块：由小圆点升级为圆角色块；同一分区内两类以上时，

   用两个接近色交替（金系：金/浅金；绿系：绿/浅绿），相邻类别一眼区分 */

.kb-rail .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--gold); }

.kb-rail.shade-b .dot { background: #d3ba7f; }

.kb-rail .nm { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }

.kb-rail .n { font-size: 11.5px; color: var(--muted); }

.kb-rail .n i { font-style: normal; margin-left: 1px; }

.kb-rail .go { font-size: 12px; color: var(--gold-deep); margin-left: auto; }
/* z66：异常小标 —— 类别标题上的「N 条待处理」/ 条目内的问题值红底标 / chip 上的红点 */
.kb-badge { font-size: 11px; line-height: 1.4; font-weight: 600; padding: 2px 8px; border-radius: 9px;
  background: #fdecea; color: var(--red); border: 1px solid #f6cdc7; white-space: nowrap; }
.kb-fi b.kb-fi-bad { font-weight: 600; font-size: 11px; line-height: 1.4; padding: 2px 7px; border-radius: 8px;
  background: var(--red); color: #fff; white-space: nowrap; }
.kb-chip .chip-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin-left: 5px; vertical-align: middle; }
/* z67：已确认 —— 提示标还在，但变灰（红点/红标已消，只留痕） */
.kb-badge.ack { background: #f2f4f5; color: #8a8f93; border: 1px solid #e3e7e9; }
/* z68：提示级别小标 —— 「必办」红底（必须做）/「提醒」灰底（提醒做） */
.kb-flag { display: inline-block; font-size: 10.5px; font-weight: 600; line-height: 1.5;
  padding: 0 7px; border-radius: 8px; white-space: nowrap; margin: 0 6px 0 2px; vertical-align: 1px; }
.kb-flag.must { background: var(--red); color: #fff; }
.kb-flag.mine { background: #eef3f0; color: #6f8a7e; border: 1px solid #dfe8e3; }
.kb-fi b.kb-fi-ack { font-weight: 600; font-size: 11px; line-height: 1.4; padding: 2px 7px; border-radius: 8px;
  background: #eceef0; color: #7b8186; white-space: nowrap; }


.kb-rail:hover .nm { color: var(--gold-deep); }

.kb-rail:hover .go { text-decoration: underline; }

.kb-zone.remind .kb-rail .dot { background: var(--green); }

.kb-zone.remind .kb-rail.shade-b .dot { background: #8bbaa0; }

.kb-row.alert .kb-rail .dot { background: var(--red); }

.kb-rowbody { min-width: 0; display: flex; flex-direction: column; gap: 10px; }



.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }



/* 看板待办：紧凑列表行（一事一行，替代占地的卡面） */

.kb-list { display: flex; flex-direction: column; gap: 6px;
  flex: 1; min-height: 0; overflow: visible;
  /* z86：每类只显示最近 5 条，更多走「还有 N 件」按钮 / 「全部 ›」—— 条目区内不再出滚动条 */
  padding-top: 2px; padding-right: 4px; }

.kb-list > .kb-li,
.kb-list > .kb-card { flex: 0 0 auto; }

.kb-li {

  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);

  border-radius: 10px; padding: 5px 10px; cursor: pointer;

  display: flex; flex-direction: column; gap: 2px;

  transition: border-color .15s, background .15s;

}

.kb-li:hover { border-color: var(--gold); background: #f6fbf8; }

.kb-li.alert { border-left-color: var(--red); }

.kb-zone.remind .kb-li { border-left-color: var(--green); }

.kb-zone.remind .kb-li.alert { border-left-color: var(--red); }

.kb-li-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.kb-li .kb-st { margin-left: 0; flex: 0 0 auto; }

.kb-li-title { font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; }

.kb-li .kb-li-acts { margin-left: auto; margin-top: 0; padding-top: 0; }
/* z70：动作按钮独立成卡片底部行，避免窄屏被标题行挤成第二排错位 */
.kb-li-foot { display: flex; align-items: center; gap: 8px; margin-top: 5px; min-height: 4px; }
.kb-li-foot:empty { display: none; }
.kb-li-foot .kb-li-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* z68b：条目区一屏要塞下 5~6 行 —— 第二行小字收一点行高 */
.kb-li-line2 { font-size: 11.5px; line-height: 1.4; }

.kb-li-line2 {

  display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap;

  font-size: 12px; line-height: 1.55; color: var(--muted); min-width: 0;

}

.kb-li-sub { color: var(--muted); }

.kb-li .kb-detail { margin-top: 4px; }

.kb-fi { display: inline-flex; gap: 4px; min-width: 0; color: var(--ink); white-space: nowrap; }

.kb-fi i { font-style: normal; color: var(--muted); }

.kb-card {

  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold);

  border-radius: 14px; padding: 14px 16px 13px; box-shadow: var(--shadow-sm);

  cursor: pointer; display: flex; flex-direction: column; gap: 9px;

  transition: transform .12s, border-color .15s, box-shadow .15s;

}

.kb-card.alert { border-top-color: var(--red); }

/* 提醒区改用青绿主色，和「待办」一眼区分 */

.kb-zone.remind .kb-card { border-top-color: var(--green); }

.kb-zone.remind .kb-card.alert { border-top-color: var(--red); }

.kb-zone.remind .kb-kind { color: var(--green); background: #eaf3ee; }

.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }

.kb-card-hd { display: flex; align-items: center; gap: 8px; }

.kb-kind { font-size: 11px; letter-spacing: .5px; color: var(--gold-deep); background: var(--gold-soft); border-radius: 8px; padding: 1px 8px; white-space: nowrap; }

.kb-st { margin-left: auto; font-size: 11px; border-radius: 8px; padding: 1px 9px; background: #edf3ef; color: var(--muted); white-space: nowrap; }

.kb-title { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }

.kb-sub { font-size: 12px; color: var(--muted); line-height: 1.5; word-break: break-all; }

.kb-summary {

  display: flex; flex-wrap: wrap; gap: 6px 18px;

  font-size: 12.5px; line-height: 1.5; color: var(--ink);

}

.kb-summary .kb-f { display: inline-flex; gap: 5px; min-width: 0; }

.kb-summary .kb-f.full { width: 100%; }

.kb-summary .kb-f .k { color: var(--muted); }

.kb-summary .kb-f .v { font-weight: 500; }

.kb-detail {

  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px;

  background: #f8fbf9; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;

  max-height: 0; overflow: hidden; opacity: 0;

  transition: max-height .25s ease, padding .25s ease, opacity .18s ease;

}

.kb-detail.open { padding: 10px 12px; max-height: 500px; opacity: 1; }

.kb-f { display: flex; gap: 6px; min-width: 0; font-size: 12.5px; line-height: 1.5; }

.kb-f.full { grid-column: 1 / -1; }

.kb-f .k { color: var(--muted); flex: 0 0 auto; }

.kb-f .v { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

.kb-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }

.kb-acts button { font-size: 12.5px; padding: 6px 13px; }

.kb-toggle {

  background: none; border: none; color: var(--gold-deep); font-size: 12.5px; cursor: pointer;

  padding: 6px 2px; display: inline-flex; align-items: center; gap: 3px;

}

.kb-toggle::after { content: '▼'; font-size: 9px; opacity: .7; }

.kb-toggle.open::after { content: '▲'; }

.kb-toggle:hover { text-decoration: underline; }

.kb-go { margin-left: auto; background: none; border: none; color: var(--gold-deep); font-size: 12.5px; cursor: pointer; padding: 6px 2px; }

.kb-go:hover { text-decoration: underline; }

.kb-more {

  margin-top: 10px; background: none; border: 1px dashed var(--line); border-radius: 10px;

  color: var(--muted); font-size: 12.5px; padding: 8px 14px; cursor: pointer; width: 100%;

}

.kb-more:hover { border-color: var(--gold); color: var(--gold-deep); }

.ov-empty { color: var(--muted); font-size: 13px; padding: 14px 18px; }



/* 外部提货对接面板 */

.sec-t { font-size: 15px; font-weight: 700; color: var(--ink); margin: 20px 0 10px; letter-spacing: .5px; }

/* 外部提货订单表：用 #panel-extsync 提高优先级，压过后面通用 .grid th/td 规则

   （通用规则里有 padding 与 nth-child(4) nowrap，会把「兑换规格」撑到近 300px 导致整表溢出） */

#panel-extsync .ext-grid { min-width: 1000px; }

#panel-extsync .ext-grid th, #panel-extsync .ext-grid td { padding: 9px 8px; font-size: 13px; white-space: normal; }

/* 订单号/礼券编号/快递单号这些长串不换行，其余允许折行 */

#panel-extsync .ext-grid td:nth-child(1),

#panel-extsync .ext-grid td:nth-child(3),

#panel-extsync .ext-grid td:nth-child(7),

#panel-extsync .ext-grid .ext-acts { white-space: nowrap; }

.ext-acts { white-space: nowrap; }

.ext-acts button { margin: 0; }

.muted { color: var(--muted); font-size: 12.5px; }

.tag { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-deep); border: 1px solid var(--gold-soft); white-space: nowrap; }



/* ---------- 列表 ---------- */

.list { list-style: none; padding: 0; margin: 0; }

.list li {

  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;

  padding: 16px 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px;

  box-shadow: var(--shadow-sm);

}

.list .main { flex: 1; }

.list .title { font-size: 15px; color: var(--ink); }

/* 完成项：红色删除线（20260930z22）—— 原来跟着文字色走是灰绿，不够醒目，改成明确的红线 */

.list .title.done { text-decoration: line-through; text-decoration-color: #d8432e; text-decoration-thickness: 2px; color: var(--muted); }

/* 完成项整条弱化，和未完成拉开层次（未完成还带白底 + 阴影，视线自然落在前面几条） */

.list li.is-done { background: #fbfcfb; border-color: #edf2ef; box-shadow: none; }

.list li.is-done .meta { color: #9aa8a0; }

.list .meta { font-size: 12px; color: var(--muted); margin-top: 5px; }

.list .tag {

  font-size: 11px; padding: 2px 9px; border-radius: 10px; margin-right: 6px;

  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-soft);

}

.list button {

  background: transparent; border: 1px solid var(--gold); color: var(--gold);

  padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;

  transition: background .15s, color .15s;

}

.list button:hover { background: var(--gold); color: #fff; }

.list button.del { border-color: var(--line); color: var(--muted); }

.list button.del:hover { background: var(--line); color: var(--ink); }



/* ---------- 客户关怀 ---------- */

#panel-care { max-width: 1080px; }

.care-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }

.care-side { position: sticky; top: 84px; }

.care-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }

.care-add input {

  padding: 9px 11px; background: #f5faf7; border: 1px solid var(--line);

  border-radius: 9px; font-size: 13px; color: var(--ink); min-width: 0; width: 100%;

}

.care-add input:focus { outline: none; border-color: var(--gold); }

.care-add input#cu-birthday { grid-column: 1 / -1; }

.care-add button {

  grid-column: 1 / -1; padding: 10px; background: var(--gold); color: #fff;

  border: none; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: 14px;

}

.care-add button:hover { filter: brightness(1.05); }

.cu-list li { cursor: pointer; padding: 12px 14px; display: block; }

.cu-list li.active { border-color: var(--gold); background: #f6fbf8; }

.cu-list li.hint { cursor: default; box-shadow: none; border-style: dashed; }

.cu-name { font-size: 14px; display: flex; align-items: center; gap: 8px; }

.cu-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.lvl { font-size: 11px; padding: 1px 8px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); }

.lvl-核心 { background: #f7e6d0; color: #b8791f; }

.lvl-会员 { background: #e6f0e8; color: var(--green); }

.care-main {

  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;

  padding: 22px 24px; box-shadow: var(--shadow-sm); min-height: 420px; min-width: 0; /* z98：grid 子项默认 min-width:auto，长内容会把头部按钮挤出屏外 */

}

.care-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; /* z98：窄窗口时按钮换行到信息下方，不再溢出屏幕外 */ }
.care-head-info { min-width: 0; flex: 1 1 320px; } /* z98 */

.care-head h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 8px; }

.care-meta { font-size: 12px; color: var(--muted); line-height: 1.7; }

.care-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.tag2 { font-size: 11px; background: var(--gold-soft); color: var(--gold); padding: 2px 9px; border-radius: 9px; }

.care-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

#care-analyze { white-space: nowrap; padding: 11px 18px; background: var(--gold); color: #fff; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 14px; }

#care-analyze:disabled { opacity: .6; cursor: default; }

.sec-title { font-size: 14px; margin: 20px 0 10px; color: var(--ink); }

.sec-title .cnt { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.care-cards { display: grid; gap: 12px; }

.care-card { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; background: #f6fbf8; }

.care-card.lvl-b-高 { border-left-color: var(--red); }

.care-card.lvl-b-中 { border-left-color: var(--gold); }

.care-card.lvl-b-低 { border-left-color: var(--muted); }

.cc-top { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }

.cc-level { background: #f7e6d0; color: #b8791f; padding: 1px 8px; border-radius: 9px; }

.cc-status { margin-left: auto; padding: 1px 8px; border-radius: 9px; background: #edf3ef; }

.cc-status.ok { background: #e6f0e8; color: var(--green); }

.cc-action { font-size: 15px; font-weight: 600; margin: 10px 0 4px; }

.cc-summary { font-size: 13px; color: var(--ink); }

.cc-reason { font-size: 12px; color: var(--muted); margin-top: 6px; }

.cc-content { font-size: 13px; color: var(--ink); background: var(--gold-soft); border-radius: 8px; padding: 9px 12px; margin-top: 10px; }

.cc-foot { margin-top: 12px; }

.cc-foot button { padding: 8px 16px; background: var(--gold); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }

.done-tip { font-size: 12px; color: var(--green); }

.track-add { display: flex; gap: 8px; margin-bottom: 12px; }

.track-add select, .track-add input { padding: 9px 11px; background: #f5faf7; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: var(--ink); }

.track-add input { flex: 1; min-width: 0; }

.track-add button { padding: 9px 16px; background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 9px; cursor: pointer; font-size: 13px; }

.track-add button:hover { background: var(--gold); color: #fff; }

.track-list { list-style: none; padding: 0; margin: 0; }

.track-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }

.tk-type { font-size: 11px; background: var(--gold-soft); color: var(--gold); padding: 2px 8px; border-radius: 8px; white-space: nowrap; }

.tk-content { flex: 1; }

.tk-time { font-size: 11px; color: var(--muted); }



/* ---------- 朋友圈文案 ---------- */

.mo-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 2px 18px; }

.mo-filter button { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all .15s; }

.mo-filter button:hover { border-color: var(--gold); color: var(--gold); }

.mo-filter button.active { background: var(--gold); color: #fff; border-color: var(--gold); }

.moments-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

@media (max-width: 640px) { .moments-grid { grid-template-columns: 1fr; } }

.mo-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }

.mo-card:hover { border-color: var(--gold); }

.mo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.mo-title { font-size: 15px; font-weight: 600; color: var(--ink); }

.mo-occ { font-size: 11px; background: var(--gold-soft); color: var(--gold); padding: 2px 9px; border-radius: 9px; white-space: nowrap; }

.mo-body { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.75; color: var(--ink); background: #f5faf7; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; flex: 1; font-family: inherit; }

.mo-foot { display: flex; gap: 8px; margin-top: 14px; }

.mo-foot button { padding: 7px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; border: 1px solid var(--gold); background: var(--gold); color: #fff; transition: filter .15s; }

.mo-foot button:hover { filter: brightness(1.05); }

.mo-foot button.mo-fav { background: transparent; color: var(--gold); }

.mo-foot button.mo-fav:hover { background: var(--gold-soft); }

.mo-foot button.del { border-color: var(--line); color: var(--muted); background: transparent; }

.mo-foot button.del:hover { background: var(--line); color: var(--ink); }



@media (max-width: 860px) {

  .care-layout { grid-template-columns: 1fr; }

  .care-side { position: static; }

}



/* 经营看板（旧 db 卡片，保留备用） */

.db-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 4px; }

.db-card { background: #f7fbf8; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }

.db-val { font-size: 28px; font-weight: 700; color: var(--gold); }

.db-label { font-size: 13px; color: var(--ink); margin-top: 4px; }

.db-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }



/* 通用表格 */

.grid { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }

.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; }

.grid th { background: #f1f6f2; color: var(--muted); font-weight: 600; white-space: nowrap; }

.grid td.low { color: #c0392b; font-weight: 700; }

.grid td:nth-child(2), .grid td:nth-child(4) { white-space: nowrap; }

.grid .del { border-color: var(--line); color: var(--muted); padding: 3px 10px; margin-left: 4px; }

.grid button { padding: 3px 10px; margin-right: 4px; white-space: nowrap; }



/* 提货卡 Excel 导入 */

.form-row button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }

.form-row button.ghost:hover { border-color: var(--gold); color: var(--gold); filter: none; }

.imp-row input[type="file"] { padding: 8px 10px; font-size: 13px; line-height: 1.5; }

.imp-result { margin: 4px 0 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 18px; background: #f6fbf8; font-size: 13px; }

.imp-result.err { border-left-color: var(--red); }

.imp-sum { display: flex; gap: 22px; flex-wrap: wrap; }

.imp-sum span { color: var(--muted); font-size: 12px; }

.imp-sum b { display: block; font-size: 20px; color: var(--gold); }

.imp-sum b.zero { color: var(--muted); }

.imp-note { color: var(--muted); font-size: 12px; margin-top: 10px; line-height: 1.7; }

.imp-err { margin-top: 12px; max-height: 240px; overflow: auto; border-top: 1px dashed var(--line); padding-top: 10px; }

.imp-err table { width: 100%; border-collapse: collapse; font-size: 12px; }

.imp-err th, .imp-err td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }

.imp-err th { color: var(--muted); background: #f1f6f2; font-weight: 600; }

.imp-err td.imp-code { font-family: ui-monospace, Consolas, monospace; }

.imp-tip { color: var(--muted); font-size: 12px; margin: 6px 2px 0; }



/* 提货卡核销：券码信息卡 */

.card-info { margin-top: 12px; padding: 14px 16px; background: #f6fbf8; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; }

.ci-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

.ci-head b { font-size: 16px; letter-spacing: .5px; }

.ci-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); }

.ci-tag.muted { background: #eee8dc; color: var(--muted); }

.ci-line { font-size: 13px; margin: 4px 0; line-height: 1.7; }

.ci-line b { color: var(--ink); }

.ci-pick { margin: 10px 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ci-pick label { font-size: 13px; color: var(--muted); }

.ci-pick select, .ci-pick input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; min-width: 240px; font-family: inherit; }

.ci-act { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.ci-act label { font-size: 12px; color: var(--muted); }

.ci-act input { width: 72px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; }

.ci-act button { padding: 9px 18px; border-radius: 8px; }



/* 线上提货：申请列表 / 二维码弹窗 */

.inline-hint { color: var(--muted); font-size: 12px; align-self: center; }

.tiny { font-size: 11px; color: var(--muted); }

.cl-acts { white-space: nowrap; }

.cl-acts button { padding: 4px 10px; margin-right: 4px; font-size: 12.5px; border-radius: 7px; }

.grid td .ghost, .grid td .primary { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }

.st { font-size: 11.5px; padding: 2px 9px; border-radius: 10px; background: #edf3ef; color: var(--muted); }

.st-wait { background: #fdf1dc; color: #b3801f; }

.st-ok { background: #e8f1ec; color: var(--green); }
.st-warn { background: #fff5e6; color: #b87700; }

.st-ship { background: #e7eef7; color: #4a6fa5; }

.st-done { background: #ece9e2; color: #6b6355; }

.st-no { background: #fbecec; color: var(--red); }

.st-exp { background: #fdf1dc; color: #b3801f; }
.rt-unpaid { display: inline-block; padding: 1px 9px; border-radius: 9px; background: #fbecec; color: #d8392b; font-weight: 700; border: 1px solid #f3cfca; white-space: nowrap; }
.rt-tbl td.rt-unpaid { color: #d8392b !important; }

/* ===== z233：富文本编辑器（产品介绍 / 备注描述） ===== */
.wb-re-host { display: block; }
.wb-re { border: 1px solid #d9e2dc; border-radius: 8px; overflow: hidden; background: #fff; }
.wb-re-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; background: #f3f7f4; border-bottom: 1px solid #e3ebe6; align-items: center; }
.wb-re-b { min-width: 28px; height: 26px; padding: 0 8px; border: 1px solid #cfd9d3; background: #fff; border-radius: 5px; cursor: pointer; font-size: 13px; color: #33403a; line-height: 1; }
.wb-re-b:hover { background: #eaf2ec; }
.wb-re-sel { height: 26px; border: 1px solid #cfd9d3; border-radius: 5px; background: #fff; font-size: 13px; color: #33403a; max-width: 130px; }
.wb-re-color { width: 30px; height: 26px; padding: 0; border: 1px solid #cfd9d3; border-radius: 5px; background: #fff; cursor: pointer; }
.wb-re-box { padding: 10px 12px; min-height: 150px; outline: none; line-height: 1.7; font-size: 14px; color: #222; }
.wb-re-box:empty:before { content: '在这里输入产品介绍，可用上方工具栏设置字体、字号、加粗等…'; color: #aab4ae; }
.wb-re-box p, .wb-re-box div { margin: 0 0 8px; }
.wb-re-box h1 { font-size: 22px; margin: 6px 0 10px; }
.wb-re-box h2 { font-size: 18px; margin: 6px 0 8px; }
.wb-re-box ul, .wb-re-box ol { margin: 0 0 8px; padding-left: 22px; }
/* 对外页（提货页/转发页）渲染富文本时的基础排版，避免标签样式过裸 */
.p-desc, .sdesc, .desc { line-height: 1.75; word-break: break-word; }
.p-desc p, .sdesc p, .desc p { margin: 6px 0; }
.p-desc ul, .sdesc ul, .desc ul, .p-desc ol, .sdesc ol, .desc ol { padding-left: 20px; margin: 6px 0; }
.p-desc h1, .sdesc h1, .desc h1 { font-size: 18px; margin: 8px 0; }
.p-desc h2, .sdesc h2, .desc h2 { font-size: 16px; margin: 6px 0; }
@media (max-width: 700px) { .wb-re-bar { gap: 3px; padding: 5px 6px; } .wb-re-b { min-width: 26px; padding: 0 6px; height: 24px; } .wb-re-sel { max-width: 92px; } }



/* ---------- 用户授权（以人为主：门店 × 模块） ---------- */

/* 侧栏门店切换器（多店用户才显示） */

.side-store { padding: 2px 16px 10px; }

.side-store select {

  width: 100%; padding: 8px 10px; font-size: 13px; color: var(--ink);

  background: #f8fbf9; border: 1px solid var(--line); border-radius: 9px;

}

.side-store select:focus { outline: none; border-color: var(--gold); }

/* 权限编辑弹窗 */

.scope-block { margin-bottom: 14px; }

.scope-block > b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }

.scope-modes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }

.scope-modes label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); cursor: pointer; }

.scope-list {

  display: flex; flex-wrap: wrap; gap: 6px 14px;

  border: 1px dashed var(--line); border-radius: 10px; padding: 9px 12px;

  background: #f8fbf9;

}

.scope-list.disabled { opacity: .45; pointer-events: none; }

.scope-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); cursor: pointer; }

.st-scope { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* 菜单收敛：无授权模块直接隐藏 */

.nav.scope-hidden { display: none !important; }



/* ---------- 发票：方向与往来单位 ---------- */

/* 方向徽章：销项＝开出（红）／进项＝收到（绿） */

.dir { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 10px; font-weight: 600; white-space: nowrap; }

.dir-out { background: #fbecec; color: var(--red); }

.dir-in  { background: #e8f1ec; color: var(--green); }

/* 往来单位列：金色（表头仍为常规色，只让内容醒目） */

.iv-party { color: var(--gold-deep); font-weight: 600; }

.iv-out { color: var(--red); font-weight: 600; }

.iv-in  { color: var(--green); font-weight: 600; }

/* 往来单位快捷填入（我方开票 / 收票主体） */

.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 2px; }

.chip-tip { font-size: 12px; color: var(--muted); }

.chip-row .chip {

  padding: 5px 11px; font-size: 12px; line-height: 1.4; cursor: pointer;

  background: var(--gold-soft); border: 1px solid var(--line); border-radius: 999px;

  color: var(--gold-deep); font-weight: 500; transition: background .15s, border-color .15s;

}

.chip-row .chip:hover { background: #efe3cb; border-color: var(--gold); }

/* 弹窗内：往来单位的标签用金色标示（输入框内文字仍为深色，便于录入） */

.im-form label.iv-lb { color: var(--gold-deep); font-weight: 600; }

.im-form input#iv-f-title { color: var(--ink); }

/* 方向下拉：选中即变色（销项红 / 进项绿），与表格徽章同口径 */

.form-row select.dir-out { color: var(--red); font-weight: 600; }

.form-row select.dir-in { color: var(--green); font-weight: 600; }



/* ---------- 发票：上传原件自动识别 ---------- */

.iv-up { border: 1px dashed var(--gold); border-radius: 10px; background: #f5fbf7; padding: 10px 12px; margin-bottom: 12px; }

.iv-up-lb { display: block; cursor: pointer; }

.iv-up-t { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }

.iv-up-s { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.55; }

.iv-up input[type=file] { display: none; }   /* 原生「Choose File」是英文，换成下面的自定义按钮 */

.iv-up-btn {

  display: inline-block; vertical-align: middle; margin-top: 10px;

  padding: 7px 14px; font-size: 13px; font-weight: 600; color: #fff;

  background: var(--gold); border-radius: 8px;

}

.iv-up-lb:hover .iv-up-btn { background: var(--gold-deep); }

.iv-up-fn { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 12.5px; color: var(--muted); word-break: break-all; }

.iv-up .file-tip { margin-top: 9px; }

/* 票据种类选项文字长，给它多一点宽度，免得「电子发票（普通发票）」被截断 */

#iv-modal .form-row select#iv-f-invoice_type { flex: 1.4; min-width: 0; }

/* 识别填入的字段闪一下金光，便于分辨哪些是自动来的 */

@keyframes ivHit {

  0%   { background: #ecf6f0; border-color: var(--gold); }

  100% { background: #fff; border-color: var(--line); }

}

.iv-hit { animation: ivHit 1.4s ease-out 2; }

.iv-raw { margin-top: 9px; }

.iv-raw summary { font-size: 12.5px; color: var(--muted); cursor: pointer; }

.iv-raw pre {

  max-height: 190px; overflow: auto; white-space: pre-wrap; word-break: break-all;

  font-size: 12px; line-height: 1.6; color: var(--ink); background: #fff;

  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0 0;

}



/* ---------- 宽表：横向可滑，短列不折行 ---------- */

/* 发票 / 合同列数多，窄屏（手机）会挤到看不清；用滚动容器兜住，绝不撑破页面。 */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.iv-grid { min-width: 820px; }

.ct-grid { min-width: 1000px; }

/* 短列一律不折行；名称 / 对方（长文本）允许折行，避免把其它列挤扁 */

.tbl-wrap .ct-grid th, .tbl-wrap .ct-grid td { white-space: nowrap; }

.tbl-wrap .ct-grid td:nth-child(2), .tbl-wrap .ct-grid td:nth-child(4) { white-space: normal; min-width: 110px; }

.grid .st { white-space: nowrap; }

.grid td .tiny { white-space: nowrap; }



/* ---------- 合同法律风险标签（高 / 中 / 低 / 未审） ---------- */

.risk { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }

.risk-hi { background: #fbe1db; color: #b3402a; font-weight: 600; }

.risk-mid { background: #fdf1dc; color: #b3801f; font-weight: 600; }

.risk-lo { background: #eef1e8; color: #66744f; }

.risk-none { background: #edf3ef; color: var(--muted); }



/* 合同弹窗：全文输入 + 原件上传 */

.im-form textarea#ct-f-text {

  width: 100%; padding: 10px 12px; font-size: 13px; color: var(--ink); font-family: inherit;

  border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; line-height: 1.75; resize: vertical;

}

.im-form textarea#ct-f-text:focus { outline: none; border-color: var(--gold); background: #fff; }

.im-form input#ct-f-file {

  width: 100%; padding: 8px 10px; font-size: 12.5px; color: var(--muted);

  background: #f8fbf9; border: 1px solid var(--line); border-radius: 9px;

}

.file-tip {

  font-size: 12.5px; line-height: 1.75; color: var(--muted); background: #f6faf7;

  border: 1px solid var(--line); border-left: 3px solid var(--gold);

  border-radius: 9px; padding: 9px 12px; word-break: break-word;

}

.file-tip.warn { border-left-color: #d9a441; background: #f7fbf8; }

.file-tip.err { border-left-color: var(--red); background: #fdf2f0; color: #7a3a30; }

.file-tip a { color: var(--gold-deep); }

/* z156：合同「从全文智能提取」按钮条 */
.ct-extract-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 12px; }
.ct-extract-bar .primary { white-space: nowrap; flex: 0 0 auto; }
.ct-extract-bar .hint { flex: 1 1 200px; min-width: 0; font-size: 12.5px; line-height: 1.6; }


.modal-ft button { padding: 10px 22px; border-radius: 9px; font-size: 14px; }

.modal-ft button:disabled { opacity: .6; cursor: default; }



/* ---------- 合同法律审查结果弹窗 ---------- */

#ct-rev-modal .modal-box { width: 680px; }

.rev-head { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: #f6faf7; }

.rev-head .rev-lv { font-size: 15px; font-weight: 700; letter-spacing: .5px; color: var(--ink); }

.rev-head .rev-sum { font-size: 13px; line-height: 1.8; color: var(--ink); margin-top: 6px; }

.rev-head .rev-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.rev-head.rev-hi { background: #fdf2f0; border-color: #f2d6ce; }

.rev-head.rev-hi .rev-lv { color: #b3402a; }

.rev-head.rev-mid { background: #f7fbf8; border-color: #f0e3c6; }

.rev-head.rev-mid .rev-lv { color: #b3801f; }

.rev-head.rev-lo { background: #f6f8f2; border-color: #e2e6d8; }

.rev-head.rev-lo .rev-lv { color: #66744f; }

.rev-head.rev-none { background: #f3f7f4; border-color: #dde7e0; }

.rev-head.rev-none .rev-lv { color: var(--green); }

.rev-sec { margin-bottom: 20px; }

.rev-sec-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.rev-cnt { font-size: 12px; color: var(--muted); }

.rev-item {

  border: 1px solid var(--line); border-left: 3px solid var(--muted);

  border-radius: 10px; padding: 11px 13px; margin-bottom: 9px; background: #fff;

}

.rev-item.rev-hi { border-left-color: #c9503a; }

.rev-item.rev-mid { border-left-color: #d9a441; }

.rev-item.rev-lo { border-left-color: #8a9a6b; }

.rev-cat { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

.rev-clause {

  font-size: 12px; line-height: 1.75; color: var(--muted); background: #f6faf7;

  border-radius: 7px; padding: 7px 10px; margin-bottom: 8px; word-break: break-word;

}

.rev-clause.muted { font-style: italic; background: transparent; padding: 0 0 8px; }

.rev-sug { font-size: 12.5px; line-height: 1.85; color: var(--ink); }

.rev-sug b { color: var(--gold-deep); }



.modal { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(47, 42, 36, .38); padding: 20px; }

/* z115：底部大面板（sheet）——新建/编辑销售单、采购单内容多（客户+结算+9 列明细），
   居中弹窗高度不够、内容被切。改为底部拉起：全宽（≤1100px）、92vh、头部固定、
   中间滚动、底部操作条固定。手机端自动近全屏。 */
.modal.sheet { align-items: flex-end; justify-content: center; padding: 0; }
.modal.sheet .modal-box { width: 100%; max-width: 1100px; height: 92vh; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; animation: sheetUp .18s ease-out; }
.modal.sheet .modal-hd { flex: 0 0 auto; }
.modal.sheet .modal-body { flex: 1 1 auto; overflow: auto; }
.modal.sheet .modal-ft { flex: 0 0 auto; margin-top: 0; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel); align-items: center; }
.modal.sheet .modal-ft .file-tip { margin-right: auto; }
@keyframes sheetUp { from { transform: translateY(48px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) { .modal.sheet .modal-box { max-width: 100%; height: 94vh; border-radius: 12px 12px 0 0; } }

.modal-box { width: 380px; max-width: 100%; max-height: 88vh; overflow: auto; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }

.modal-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }

.modal-hd b { font-size: 14px; letter-spacing: .5px; min-width: 0; }

.modal-hd .ghost { flex: 0 0 auto; white-space: nowrap; }

.modal-body { padding: 18px; }

/* z86b：弹窗表单一栏一项 —— 标签一行、输入框整行铺满，不再挤在同一行 */
.modal-body .fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 10px; }

.modal-body .fld input { width: 100%; padding: 9px 11px; background: #f5faf7; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: var(--ink); font-family: inherit; }

.modal-body .fld input:focus { outline: none; border-color: var(--gold); }

.qr-wrap { text-align: center; margin-bottom: 12px; }

.qr-wrap svg { width: 200px; height: 200px; }

.qr-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; border-top: 1px dashed var(--line); }

.qr-line span { color: var(--muted); }

.qr-url { margin: 10px 0 12px; padding: 9px 11px; background: #f6faf7; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; color: var(--muted); word-break: break-all; }

.qr-act { display: flex; gap: 8px; flex-wrap: wrap; }

.qr-act button { padding: 9px 14px; border-radius: 9px; font-size: 13px; }



/* 商品图文资料弹窗 */

.modal-box.wide { width: 560px; }
/* z93：修改客户需求弹窗的明细表新增「单价」列后 560px 装不下（要横向拖才看得到金额），
   只给这一个弹窗加宽；其余共用 .wide 的弹窗不受影响。980px 是实测放得下 9 列的最小宽度
   （表格 min-content 约 916px + 弹窗内边距）。窄屏仍由 .modal-box 的 max-width:100% 兜底。 */
#fbe-modal .modal-box { width: 980px; }

.modal-ft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.im-form { display: flex; flex-direction: column; gap: 12px; }

.im-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.im-form input#im-name, .im-form input#im-spec, .im-form input#im-image, .im-form textarea#im-desc { width: 100%; padding: 10px 12px; font-size: 13.5px; color: var(--ink); font-family: inherit; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; }

.im-form textarea { resize: vertical; line-height: 1.7; }

.im-form input#im-name:focus, .im-form input#im-spec:focus, .im-form input#im-image:focus, .im-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }

.im-form .form-row input[type="file"] { flex: 1; padding: 8px 10px; background: #f8fbf9; }
/* z244：价格框与同行「礼盒尺寸」保持同构（标签在上、控件在下），输入框按内容收窄，/盒 后缀同行紧跟不再换行 */
.im-form .im-price-label{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.im-price-row{display:flex;align-items:center;gap:6px}
.im-form .im-price-row input#im-price{flex:0 0 auto;width:132px;min-width:0}
.im-form .im-price-row input#im-price:focus{outline:none;border-color:var(--gold);background:#fff}
.im-unit-suffix{color:var(--muted);font-size:13.5px;font-weight:600;white-space:nowrap}
.im-form .im-pu-label{flex:0 0 auto;width:150px}
.im-form .im-jin-wrap{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;gap:6px;color:var(--muted);font-size:13px}
.im-form .im-jin-wrap input{flex:0 0 auto;width:64px;border:1px solid var(--line);border-radius:8px;background:#f8fbf9;padding:9px 6px;color:var(--ink);font-family:inherit}
.im-form .im-jin-wrap input:focus{outline:none;border-color:var(--gold);background:#fff}

.im-preview { display: flex; gap: 10px; flex-wrap: wrap; }

.im-preview .pv { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f1f6f2; }

.im-preview .pv img { display: block; width: 100%; height: 100%; object-fit: cover; }

.im-preview .pv b { position: absolute; left: 0; bottom: 0; right: 0; text-align: center; font-size: 10px; background: rgba(47, 42, 36, .6); color: #fff; font-weight: 500; padding: 2px 0; }

.im-preview .pv.empty img { display: none; }

.im-preview .pv.empty::after { content: '无图'; position: absolute; top:0;right:0;bottom:0;left:0; display: flex; align-items: center; justify-content: center; color: #a9bcb1; font-size: 12px; }

.grid td .thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f1f6f2; display: flex; align-items: center; justify-content: center; color: #a9bcb1; font-size: 11px; }

.grid td .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }



/* 商品资料：官网茶礼关联 */

.off-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--gold-soft, #e8f2ec); color: #1f5b41; border: 1px solid #cfe3d7; }

.off-a { font-size: 12px; color: var(--gold, #2e7d5b); text-decoration: none; white-space: nowrap; }

.off-a:hover { text-decoration: underline; }

.off-box { border: 1px solid #cfe3d7; background: #f4faf6; border-radius: 10px; padding: 12px 14px; font-size: 13px; }

.off-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

.off-hd b { font-size: 14.5px; }

.off-series { font-size: 11.5px; letter-spacing: .5px; color: #1f5b41; border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; }

.off-tag { color: var(--muted); font-size: 12px; margin-bottom: 8px; }

.off-kv { display: flex; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); }

.off-kv span { color: var(--muted); flex: 0 0 74px; }

.off-kv b { font-weight: 500; }

.off-desc { margin-top: 8px; line-height: 1.75; color: var(--ink); }

.off-foot { margin-top: 10px; }

.off-foot a { color: var(--gold, #2e7d5b); font-size: 12.5px; text-decoration: none; }

.off-foot a:hover { text-decoration: underline; }

.off-img { display: block; margin-top: 10px; width: 100%; max-width: 220px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }



/* ---- 官网产品库（商品资料 → 从官网取用 / 转发到微信） ---- */

.off-lib { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }

.off-grp-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }

.off-grp-hd b { font-size: 13.5px; letter-spacing: .5px; }

.off-idx { font-size: 11px; color: #fff; background: var(--gold, #2e7d5b); border-radius: 999px; padding: 1px 7px; }

.off-en { font-size: 10.5px; letter-spacing: 1.4px; color: #a9bcb1; text-transform: uppercase; }

.off-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 12px; }

.off-card { display: flex; flex-direction: column; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.off-card.joined { background: #f8fbf9; }

.off-thumb { width: 100%; height: 112px; border-radius: 9px; overflow: hidden; background: #f1f6f2; display: flex; align-items: center; justify-content: center; color: #a9bcb1; font-size: 12px; }

.off-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.off-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.off-nm { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.off-mt { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.off-sp { font-size: 11.5px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }

.off-pr { font-size: 12.5px; color: #1f5b41; }

.off-acts { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }

.off-acts button { font-size: 12.5px; padding: 6px 11px; }

.off-joined { font-size: 12px; color: #6f8f5f; }

@media (max-width: 860px) { .off-cards { grid-template-columns: 1fr; } }



/* ---- 转发到微信（话术 + 链接 + 二维码） ---- */

#share-modal .modal-box { width: 600px; }

.share-grid { display: grid; grid-template-columns: 1fr 232px; gap: 18px; }

.share-lb { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.share-left textarea#share-text { width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 13.5px; line-height: 1.75; color: var(--ink); font-family: inherit; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; resize: vertical; }

.share-left textarea#share-text:focus { outline: none; border-color: var(--gold); background: #fff; }

.share-left .form-row { margin-top: 10px; }

.share-right { display: flex; flex-direction: column; gap: 8px; align-items: center; }

.share-qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; text-align: center; }

.share-qr img, .share-qr svg { width: 100%; height: 100%; display: block; }

.share-right .hint { margin: 0; text-align: center; font-size: 12px; }

.share-dl { width: 200px; padding: 9px 12px; font-size: 13px; }

.share-dl[disabled] { opacity: .6; cursor: default; }

@media (max-width: 720px) {

  .share-grid { grid-template-columns: 1fr; }

  .share-qr { width: 168px; height: 168px; }

  .share-dl { width: 168px; }

}



/* 折叠区（进销存 · 预留） */

.hfold { margin: 2px 0 0; }

.hfold > summary { cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; user-select: none; }

.hfold > summary::-webkit-details-marker { display: none; }

.hfold > summary::before { content: '▸'; font-size: 11px; color: var(--gold, #2e7d5b); transition: transform .15s; }

.hfold[open] > summary::before { transform: rotate(90deg); }

.hfold > summary:hover { color: var(--gold, #2e7d5b); }

.hfold-body { padding: 6px 0 2px 17px; font-size: 13px; line-height: 1.7; color: var(--muted); }



.fold { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; overflow: visible; }

.fold > summary { cursor: pointer; padding: 12px 14px; font-size: 13.5px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; user-select: none; }

.fold > summary::-webkit-details-marker { display: none; }

.fold > summary::before { content: '▸'; color: var(--gold, #2e7d5b); font-size: 12px; transition: transform .15s; }

.fold[open] > summary::before { transform: rotate(90deg); }

.fold[open] > summary { border-bottom: 1px solid var(--line); background: #fff; }

.fold-body { padding: 14px; }

.fold .sec-title { margin-top: 4px; }



/* ---------- 响应式：窄屏侧栏转顶部横滑 ---------- */

@media (max-width: 860px) {

  .app { flex-direction: column; }

  .sidebar {

    width: 100%; flex: none; height: auto; min-height: 0; position: static;

    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 10px;

    border-right: none; border-bottom: 1px solid var(--line); overflow: visible;

  }

  .side-brand, .side-foot, .side-store { display: none; }

  /* 菜单行：胶囊按钮，横向滑动 */

  .side-nav {

    order: 2; flex: none; flex-direction: row; padding: 0 0 2px; gap: 6px;

    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;

  }

  .side-nav::-webkit-scrollbar { display: none; }

  .nav {

    flex: 0 0 auto; align-self: center; padding: 8px 13px; font-size: 13.5px;

    background: #f5faf7; border: 1px solid var(--line); border-radius: 999px; gap: 7px;

  }

  .nav svg { width: 17px; height: 17px; flex: 0 0 17px; }

  .nav:hover { background: #fff; }

  .nav.active { background: var(--gold-soft); border-color: var(--gold-soft); }

  .nav-badge { min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }

  .nav span { flex: none; }

  /* 内容区：去掉顶部多余留白 */

  .panels { padding: 14px 14px 56px; }

  .topbar { padding: 10px 14px; background: var(--panel); }

  /* 看板：手机端分区概况改单列，卡面一列铺满（标题已在卡片上方，桌面移动同构） */

  .kb-zonecards { grid-template-columns: 1fr; gap: 10px; }


  .kb-rows { grid-template-columns: 1fr; gap: 10px; }

  .kb-row { padding: 12px; }

  .kb-grid { grid-template-columns: 1fr; }

  .kb-fields { grid-template-columns: 1fr; }

  .kb-chip { padding: 5px 11px; }
  .kb-rail .kb-badge { font-size: 10.5px; padding: 1px 6px; }
  .kb-fi b.kb-fi-bad { font-size: 10.5px; padding: 1px 6px; }

  .kb-chip .c-l { font-size: 12px; }

  .ov-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .ov-metric { padding: 10px 8px; }

  .ov-metric .v { font-size: 19px; }

  .ov-metric .l { font-size: 11px; }

  /* 看板顶部：大标题与说明收紧，说明默认折叠两行（点一下展开） */

  .ov-head h2 { font-size: 19px; margin: 0 0 6px; }

  .ov-head .hint {

    margin: 0 2px 14px; line-height: 1.65;

    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;

  }

  .ov-head .hint.open { -webkit-line-clamp: unset; display: block; }

  .kb-zonecards { margin-top: 4px; }

  .kb-zc { padding: 12px 14px; }

  .kb-zc-hd .zc-n { font-size: 20px; }

  .kb-zc-desc { font-size: 11.5px; }

  .kb-zone-hd .z-nm { font-size: 15px; }

  .kb-zones { gap: 18px; margin-top: 16px; }

  .kb-row { padding: 10px 12px; }

  .kb-rail .nm { font-size: 13.5px; }

  .kb-li { padding: 8px 10px; }

  .kb-li-title { font-size: 13px; }

  .crumb { font-size: 15px; }

}



/* ---------- 设置模块 ---------- */

.iv-company-wrap { display: flex; align-items: center; justify-content: flex-start; gap: 8px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }

/* z114：label 不被 .form-row label{flex:1;min-width:130px} 撑宽——单位名紧贴「单位：」 */
.iv-company-wrap label { flex: 0 0 auto; min-width: 0; font-size: 13px; color: var(--muted); margin: 0; padding: 0; white-space: nowrap; }

.iv-company-wrap #iv-company-name { min-width: 160px; font-size: 14px; color: var(--ink); font-weight: 600; }

/* z112 收窄靠左；z113 再抹掉默认外边距/内边距，让「单位：」与下拉文字严丝合缝靠左 */
.iv-company-wrap #iv-company-sel { min-width: 0; width: auto; max-width: 260px; margin: 0; padding: 0 2px 0 0; text-align: left; border: none; background: transparent; font-size: 14px; color: var(--ink); font-weight: 600; }
.iv-company-wrap #iv-company-sel option { text-align: left; }

/* z112：单位栏刷新按钮 */
.iv-company-wrap #iv-refresh { padding: 3px 10px; font-size: 12px; }

/* z113：开票统计（本月 / 上月 / 本季度）——小规模按季报税控票用 */
.iv-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 2px; }
.iv-stat { display: flex; flex-direction: column; gap: 2px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px; min-width: 150px; }
.iv-stat .k { font-size: 12px; color: var(--muted); }
.iv-stat .v { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.iv-dir-chips { display: inline-flex; align-items: center; gap: 4px; }
.iv-dir-chip { cursor: pointer; padding: 0 5px; border-radius: 6px; transition: box-shadow .15s; }
.iv-dir-chip:hover { box-shadow: inset 0 0 0 1px var(--line); }
.iv-dir-chip.on { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); }

/* 公司视角下每张票的归属单位标注 */

.iv-our { font-style: normal; font-size: 11px; color: var(--brand-deep); background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; margin-left: 5px; white-space: nowrap; }

/* z112：未归属（只在「全部单位」视角出现，提醒补我方主体） */
.iv-our-none { color: #a2650f; background: #fdf3e2; }

.iv-self { color: var(--muted); font-style: normal; }

.st-grid th, .st-grid td { font-size: 13px; }

.st-in { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--ink); background: #f8fbf9; }

.st-in:focus { outline: none; border-color: var(--gold); background: #fff; }

.st-sel { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--ink); background: #f8fbf9; }

.st-sel:focus { outline: none; border-color: var(--gold); }

.st-tag { display: inline-block; font-size: 13px; color: var(--muted); padding: 5px 0; }



/* ---- 扫码上传发票弹窗 ---- */

.scan-qr { display: flex; justify-content: center; padding: 10px 0 4px; }

.scan-qr svg { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; }

.scan-status { text-align: center; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }

.scan-list { display: flex; flex-direction: column; gap: 8px; }

.scan-item { display: flex; align-items: center; gap: 10px; background: #f8fbf9; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

.scan-item-n { flex: 1; font-size: 13px; color: var(--ink); word-break: break-all; }

.scan-item .scan-import { flex: 0 0 auto; padding: 6px 12px; font-size: 13px; }

#iv-wx-btn { width: 100%; text-align: center; }







/* 侧栏外链入口：跳批号管理系统（不绑 tab 切换） */

.side-link {

  display: flex; align-items: center; gap: 10px;

  padding: 10px 14px; margin-top: 4px;

  border: 0; background: transparent; color: #6b7280;

  font-size: 14.5px; cursor: pointer; text-decoration: none;

  border-radius: 10px; transition: background .15s, color .15s;

}

.side-link:hover { background: var(--gold-soft); color: var(--ink); }

.side-link .side-ico { font-size: 16px; line-height: 1; }



/* ===== 标题下的色块（统一口径：整宽渐变色条，标题与内容一眼分开） ===== */

/* 分区标题「待办 / 提醒」（两张概况卡） */

.kb-zone .z-bar {

  flex-basis: 100%; width: 100%; height: 3px; border-radius: 3px; margin-top: 2px;

  background: linear-gradient(90deg, var(--gold) 0%, rgba(46,125,91,.30) 42%, rgba(46,125,91,0) 100%);

}

.kb-zone.remind .z-bar {

  background: linear-gradient(90deg, var(--green) 0%, rgba(91,155,122,.30) 42%, rgba(91,155,122,0) 100%);

}

/* 通用小节标题 */

.sec-title { position: relative; padding-bottom: 9px; }

.sec-title::after {

  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;

  background: linear-gradient(90deg, var(--gold) 0%, rgba(46,125,91,.28) 45%, rgba(46,125,91,0) 100%);

}

/* 模块面板主标题（店面待办 / 个人待办 / 日程日历…） */

.panel-hd2 {

  font-size: 20px; margin: 0 0 18px; letter-spacing: .5px; color: var(--ink);

  position: relative; padding-bottom: 10px;

}

.panel-hd2 .pd2-bar {

  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px;

  background: linear-gradient(90deg, var(--gold) 0%, rgba(46,125,91,.28) 45%, rgba(46,125,91,0) 100%);

}

/* z254j：快递发货登记区（店面待办内嵌） */
.exp-block { max-width: 760px; }
.exp-paste-row { align-items: stretch; }
.exp-paste { flex: 1 1 100%; min-width: 0; min-height: 64px; resize: vertical; padding: 11px 14px; background: #f5faf7; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.6; }
.exp-paste::placeholder { color: #aab; }
/* 地址独占整行，字够大能看清（z254x） */
.exp-addr { flex: 1 1 100%; min-width: 0; font-size: 14px; }
/* 「粘贴识别」做成醒目金色按钮，避免混在输入框里找不到（z254x） */
.exp-rec-btn { flex: 0 0 auto; padding: 13px 24px; font-size: 15px; box-shadow: 0 3px 10px rgba(176,141,64,.32); align-self: center; }
.exp-rec-btn:hover { filter: brightness(1.06); box-shadow: 0 4px 14px rgba(176,141,64,.42); }
/* 经营看板 · 快递发货只读总览（z254n） */
.ov-express { margin-top: 18px; }
.ov-express .st-more { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--muted); }
.ov-express .gpd-item { max-width: 760px; }
.exp-hd { font-size: 16px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; position: relative; }
.exp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.exp-row:last-child { border-bottom: none; }
.exp-row .g { font-weight: 700; flex: 1 1 160px; min-width: 0; }
.exp-row .m { font-size: 12px; color: var(--muted); flex: 1 1 140px; min-width: 0; }
.exp-status { font-size: 12px; font-weight: 700; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.exp-status.done { background: var(--green); border-color: var(--green); color: #fff; }
.exp-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.exp-acts button { font-size: 12px; padding: 4px 9px; }
.exp-track { width: 130px; }

/* 类别标题行（店面待办 / 物料登记 / 我的待办 / 发票…）：色条取代原来的虚线 */

.kb-rail { position: relative; border-bottom: none; padding-bottom: 11px; }

.kb-rail::after {

  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;

  background: linear-gradient(90deg, var(--gold) 0%, rgba(46,125,91,.28) 45%, rgba(46,125,91,0) 100%);

}

.kb-zone.remind .kb-rail::after {

  background: linear-gradient(90deg, var(--green) 0%, rgba(91,155,122,.28) 45%, rgba(91,155,122,0) 100%);

}

.kb-row.alert .kb-rail::after {

  background: linear-gradient(90deg, var(--red) 0%, rgba(207,106,82,.28) 45%, rgba(207,106,82,0) 100%);

}



/* ===== 礼盒待办：8 阶段流程条 ===== */

.gift-flow { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 2px; }

.gift-flow .gf-step { display: flex; align-items: center; font-size: 11.5px; color: var(--muted); }

.gift-flow .gf-step .gf-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3dccd; margin-right: 5px; flex: 0 0 auto; }

.gift-flow .gf-step.done .gf-dot { background: var(--green); }

.gift-flow .gf-step.cur .gf-dot { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.gift-flow .gf-step.cur { color: var(--gold-deep); font-weight: 600; }

.gift-flow .gf-arrow { color: var(--line); margin: 0 6px; font-size: 11.5px; }



/* ===== 日程日历 / 客户反馈 模块通用 ===== */

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }

.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }

.cal-cell { min-height: 78px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 7px; background: #fff; cursor: pointer; transition: border-color .15s; }

.cal-cell:hover { border-color: var(--gold); }

.cal-cell.out { background: #f5faf7; color: var(--muted); }

.cal-cell.today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }

.cal-cell .cal-d { font-size: 12px; color: var(--muted); }

.cal-cell .cal-ev { font-size: 11px; margin-top: 3px; padding: 1px 5px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-cell.has { border-left: 3px solid var(--gold); }

.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }

.cal-head b { font-size: 16px; }

.cal-head button { padding: 6px 12px; border-radius: 8px; }

.fb-list { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; }



/* ===== z17 客户反馈：关联客户 / 跟进去向 / 归属人 / 跨店交办 ===== */

.fb-fld { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 130px; }

.fb-fld > label { font-size: 12px; color: var(--muted); }

.fb-fld > select, .fb-fld > input { width: 100%; }

.fb-assignee-wrap { flex: 1 1 160px; }

/* 20261001z42 客户姓名自动匹配下拉 */
.fb-cust-wrap { flex: 1; min-width: 170px; position: relative; }
.fb-cust-wrap input { width: 100%; }
.cust-ac { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14); max-height: 264px; overflow: auto; }
.cust-ac-item { padding: 10px 12px; min-height: 44px; box-sizing: border-box; display: flex;
  align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 14px; }
.cust-ac-item:hover, .cust-ac-item.on { background: var(--brand-soft); }
.cust-ac-item .ph { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cust-ac-empty { padding: 10px 12px; color: var(--muted); font-size: 12px; }

.fb-form .primary { align-self: flex-end; }

.fb-by { color: var(--muted); font-size: 12px; }

.fb-owner { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;

  background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; font-weight: 600; }

.fb-dest { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;

  background: #eef2f6; color: #44576a; font-size: 11px; font-weight: 600; }

.fb-dest.store { background: #fdecea; color: #b3402f; }

.fb-dest.mgr { background: #fbf1d8; color: #8a5a00; }

.fb-dest.self { background: #e8f1ec; color: #1f5b41; }

.fb-dest.staff { background: #eef2f6; color: #44576a; }

.fb-tr.cross { border-color: #cdd6e0; color: #3a5168; }

.fb-tr.cross.suggest { background: #3a5168; border-color: #3a5168; color: #fff; }

.fb-view-req { border: 1px dashed #cdd6e0; background: var(--panel); border-radius: 8px;

  padding: 3px 10px; font-size: 12px; cursor: pointer; color: #3a5168; }

.fb-view-req:disabled { opacity: .6; cursor: default; }

.fb-view-req.ok { border-style: solid; border-color: var(--brand); color: var(--brand-deep); }

.fb-hd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.fb-hd .t { font-weight: 700; }

#fb-cross-store { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }



/* ===== z17 客户反馈：角色显隐 / 跨店申请 / 审批 ===== */

.mgr-only { display: none; }

.can-mgr .mgr-only { display: inline-block; }

.fb-assign-inline { display: inline-flex; gap: 6px; align-items: center; }

.fb-assign-inline select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }

.fb-view-reqs { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

.fvr-hd { font-size: 13px; font-weight: 600; color: var(--brand-deep); }

.fvr-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

.fvr-c { font-weight: 600; color: var(--ink); }

.fvr-from { font-size: 12px; color: var(--muted); }

.fvr-ok { padding: 4px 12px; border-radius: 8px; background: var(--brand); color: #fff; border: none; cursor: pointer; }

.fvr-no { padding: 4px 12px; border-radius: 8px; background: #fff; color: var(--red); border: 1px solid var(--red); cursor: pointer; }

.fb-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); }

.fb-card.lv-高 { border-left-color: var(--red); }

.fb-card.lv-中 { border-left-color: var(--gold); }

.fb-card.lv-低 { border-left-color: var(--muted); }

.fb-top { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }

.fb-top .fb-name { font-size: 14px; font-weight: 600; color: var(--ink); }

.fb-act { margin-top: 10px; }



/* ===== 移动端：顶栏（店面行 + 功能按钮行）吸顶锁定 ===== */

@media (max-width: 860px) {

  .sidebar { position: sticky; top: 0; z-index: 30; background: var(--panel); box-shadow: var(--shadow-sm); }

  .topbar { position: static; }

}



/* ==========================================================================

   主题 v3 · 茶绿仪表盘（2026-09-28 由咖色改绿）

   说明：本段全部为「覆盖式」新增，不改动上面既有规则；只调整观感与新增组件。

   配色：--brand 茶绿为主色；--green 提醒（偏青）、--red 告警为状态色。

   ========================================================================== */



/* ---------- 1. 整体观感：浅底 + 白卡 + 细边 + 轻阴影 ---------- */

body { background: var(--bg); }

.sidebar { background: #fff; border-right: 1px solid var(--line); }

.nav.active { background: var(--brand); color: #fff; font-weight: 600; }

.nav.active svg { stroke: #fff; }

.nav.active:hover { background: var(--brand-deep); color: #fff; }

.nav.active .nav-badge { background: #fff; color: var(--brand); }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }

.panels { background: var(--bg); }



/* ---------- 2. 侧栏导航分组（P1：一级 5 组；去掉组间横线，改用留白分组） ---------- */

.nav-group { display: flex; flex-direction: column; gap: 3px; }

/* z148：整组无可见导航项时连组头一起藏（applyScopes 加 group-hidden；!important 压过移动端 display:contents 等覆写） */
.nav-group.group-hidden { display: none !important; }

.nav-group + .nav-group { margin-top: 12px; }

.nav-group > .ng-hd {

  font-size: 10.5px; letter-spacing: 2px; color: var(--muted);

  padding: 2px 0 4px 6px; font-weight: 600;

}



/* ---------- 3. 看板统计卡：图标方块 + 标签 + 大数字 ---------- */

.kb-zc { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); padding: 16px 16px 14px; }

.kb-zc-hd { align-items: center; }

.kb-zc-hd .zc-dot {

  width: 32px; height: 32px; border-radius: 10px; background: var(--brand);

  display: inline-grid; place-items: center; flex: 0 0 auto; align-self: center;

}

.kb-zc-hd .zc-dot::after { content: '办'; color: #fff; font-size: 14px; font-weight: 600; }

/* z86f：办=红（要动手的事）、警=黄（系统预警），与条目红/琥珀色一致 */
.kb-zc.todo .zc-dot { background: var(--red); }

.kb-zc.remind .zc-dot { background: #d9a441; }

.kb-zc.remind .zc-dot::after { content: '警'; }

.kb-zc-hd .zc-nm { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.kb-zc-hd .zc-n { font-size: 30px; font-weight: 700; color: var(--ink); margin-left: auto; letter-spacing: -0.5px; }

.kb-zc.remind .zc-n { color: var(--ink); }

.kb-zc-hd .zc-unit { font-size: 12px; color: var(--muted); margin-left: 4px; }

.kb-zc-hd .zc-flag { order: 9; }

.kb-zc-desc { color: var(--muted); }

.kb-chip { background: #f5faf7; }

.kb-chip:hover { border-color: var(--brand); }



/* ---------- 4. 分区标题与列表卡 ---------- */

.kb-zone-hd .z-dot { border-radius: 3px; }

.kb-zone-hd .z-n { background: var(--brand); }

.kb-zone.remind .kb-zone-hd .z-n { background: var(--green); }

.kb-row { background: #fff; box-shadow: var(--shadow-sm); }



/* ---------- 5. 礼盒生产 · 进程条（可点推进） ---------- */

.gp {

  margin: 10px 0 2px; padding: 12px 12px 10px;

  background: #f8fbf9; border: 1px solid var(--line); border-radius: 12px;

}

.gp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.gp-pct { font-size: 20px; font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -0.5px; }

.gp-pct i { font-size: 12px; font-style: normal; margin-left: 1px; }

.gp-now { font-size: 12px; color: var(--muted); }

.gp-now b { color: var(--ink); font-weight: 600; }

.gp-track { height: 7px; border-radius: 999px; background: #e3ece6; overflow: hidden; margin-bottom: 14px; }

.gp-fill { height: 100%; border-radius: 999px; background: var(--brand); transition: width .3s; }

.gp-steps { display: flex; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }

.gp-steps::-webkit-scrollbar { display: none; }

.gp-step {

  flex: 1 0 68px; min-width: 68px; background: none; border: none; padding: 0;

  display: flex; flex-direction: column; align-items: center; gap: 5px;

  cursor: pointer; position: relative;

}

.gp-step::before {

  content: ''; position: absolute; top: 12px; left: -50%; width: 100%;

  height: 2px; background: var(--line); z-index: 0;

}

.gp-step:first-child::before { display: none; }

.gp-step .gp-c {

  width: 26px; height: 26px; border-radius: 50%; z-index: 1;

  display: grid; place-items: center; font-size: 12px; font-weight: 600;

  background: #fff; border: 2px solid var(--line); color: var(--muted);

  transition: all .15s;

}

.gp-step .gp-t { font-size: 11px; color: var(--muted); white-space: nowrap; line-height: 1.2; }

.gp-step.done .gp-c { background: var(--brand); border-color: var(--brand); color: #fff; }

.gp-step.done::before { background: var(--brand); }

/* 进度已推进到「当前道」：最后一格完成节点 → 当前节点的连接线也显示为绿色，

   与顶部百分比条一致（否则这段发白，看起来像进度停在上一道） */

.gp-step.cur::before { background: var(--brand); }

.gp-step.cur .gp-c { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.gp-step.cur .gp-t { color: var(--brand-deep); font-weight: 600; }

.gp-step:hover .gp-c { border-color: var(--brand); }

.gp-step.held { opacity: .5; pointer-events: none; }



/* ---------- 6. 礼盒生产面板 ---------- */

.gpd-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 18px; }

.gpd-sum .s-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }

.gpd-sum .s-v { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -0.5px; }

.gpd-sum .s-v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }

.gpd-sum .s-v.txt { font-size: 19px; line-height: 1.35; }

.gpd-sum .s-l { font-size: 12px; color: var(--muted); margin-top: 4px; }

.gpd-sum .s-card.hl .s-v { color: var(--brand); }

.gpd-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }

.gpd-item.is-done { background: #fafcfa; }

.gpd-hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.gpd-hd .t { font-size: 15px; font-weight: 600; color: var(--ink); }

.gpd-hd .d { font-size: 12px; color: var(--muted); }

.gpd-hd .st { margin-left: auto; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }

.gpd-item.is-done .gpd-hd .st { background: #e8f1ec; color: #3f7357; }

.gpd-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }

.gpd-acts button { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--muted); }

.gpd-acts button:hover { color: var(--brand); border-color: var(--brand); }
.gpd-acts button.track { color: var(--brand); border-color: var(--brand); }
.gpd-acts button.track:hover { background: var(--brand-soft); }
/* 物流轨迹弹窗（z254n） */
.lt-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lt-list { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.lt-list li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.lt-t { color: var(--muted); white-space: nowrap; }
.lt-c { flex: 1; }



/* 看板内的礼盒生产进度总览 */

.ov-gift { margin: 22px 0 4px; }

.ov-gift .og-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }

.ov-gift .og-hd .z-dot { width: 11px; height: 11px; border-radius: 3px; background: var(--brand); }

.ov-gift .og-hd .z-nm { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }

.ov-gift .og-hd .z-n { font-size: 13px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 9px; padding: 1px 9px; }

.ov-gift .og-hd .z-desc { font-size: 12px; color: var(--muted); }

.ov-gift .og-hd .og-all { margin-left: auto; font-size: 12.5px; color: var(--brand); background: none; border: none; cursor: pointer; }

.og-mini { display: grid; gap: 10px; }

.og-mini .m-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow-sm); cursor: pointer; }

.og-mini .m-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }

.og-mini .m-t { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.og-mini .m-s { font-size: 11.5px; color: var(--muted); margin-left: auto; }

.og-mini .m-pct { font-size: 13px; font-weight: 700; color: var(--brand); }

.og-mini .m-track { height: 6px; border-radius: 999px; background: #e3ece6; overflow: hidden; margin-bottom: 7px; }

.og-mini .m-fill { height: 100%; border-radius: 999px; background: var(--brand); }

.og-mini .m-now { font-size: 11.5px; color: var(--muted); }

.og-mini .m-now b { color: var(--brand-deep); }



/* ---------- 7. 移动端 ---------- */

@media (max-width: 860px) {

  /* 移动端：导航压成单行横滑（不换行），分组名作为内联小标签随滚动出现 */

  .side-nav { flex-direction: row; flex-wrap: nowrap; gap: 5px; padding: 0 0 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }

  .side-nav::-webkit-scrollbar { display: none; }

  .nav-group { display: contents; }

  .nav-group > .ng-hd {

    font-size: 10px; letter-spacing: 1px; padding: 5px 8px; border-radius: 999px;

    background: var(--brand-soft); color: var(--brand-deep); align-self: center;

    flex: 0 0 auto; white-space: nowrap;

  }

  .nav-group + .nav-group { margin-top: 0; padding-top: 0; border-top: none; }

  .nav { flex: 0 0 auto; }

  /* 批号管理系统外链也要 nowrap，否则被压窄后逐字换行、把整行撑高 */

  .side-link { flex: 0 0 auto; white-space: nowrap; }

  .side-nav { align-items: center; }

  .sidebar { padding: 7px 12px 9px; gap: 6px; }

  /* 门店切换在右上角同理压小（细节见文末「门店切换」段的移动端覆盖） */

  .kb-zonecards { grid-template-columns: 1fr; }

  .gpd-sum { grid-template-columns: repeat(2, 1fr); }

  .gp-step { flex: 0 0 68px; min-width: 68px; }

  .gp-step .gp-t { font-size: 10.5px; }

  .gpd-acts { justify-content: stretch; }

  .gpd-acts button { flex: 1; }

}



/* 看板列表项内的迷你进度条（礼盒工序用） */

.kb-li-bar { height: 5px; border-radius: 999px; background: #e3ece6; overflow: hidden; margin: 7px 0 2px; max-width: 320px; }

.kb-li-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }



/* 转发弹窗：去掉二维码后话术单列铺满 */

.share-grid.solo { grid-template-columns: 1fr; }

.share-grid.solo .share-left textarea#share-text { min-height: 150px; }



/* 物料登记：复用礼盒进程条视觉（节点类名叠加 .mp-step，便于点击委托区分） */

.mp-step { cursor: pointer; }



/* ==========================================================================

   主题 v3 · 收尾打磨（2026-09-28）

   1) 去掉标题/卡片下的装饰横线（用户反馈「这些线不要了，不好看」）

   2) 进程条每道工序下方显示操作人

   3) 统一圆角、阴影、间距，让界面更协调

   ========================================================================== */



/* ---------- 1. 去掉装饰横线 ---------- */

.ov-head h2::after,

.sec-title::after,

.kb-rail::after { display: none; }

.ov-head h2 { padding-bottom: 0; margin-bottom: 12px; }

.sec-title { padding-bottom: 0; }

.panel-hd2 { padding-bottom: 0; }

.panel-hd2 .pd2-bar { display: none; }

.kb-rail { padding-bottom: 1px; }



/* ---------- 2. 进程条：每道工序的操作人 ---------- */

.gp-step .gp-op {

  font-size: 10.5px; line-height: 1.2; color: var(--muted);

  max-width: 70px; min-height: 13px; overflow: hidden;

  text-overflow: ellipsis; white-space: nowrap;

  transition: color .15s;

}

.gp-step.done .gp-op { color: #6f9683; }

.gp-step.cur .gp-op { color: var(--brand); font-weight: 600; }

.gp-step:hover .gp-c { transform: translateY(-1px); }



/* ---------- 3. 协调性微调：统一块级观感 ---------- */

.kb-zc, .kb-row, .kb-li, .gpd-item, .gpd-sum .s-card, .og-mini .m-row, .gp, .cal-cell, .fb-card { border-radius: 12px; }

.kb-zonecards { margin-top: 14px; }

.kb-zones { gap: 22px; margin-top: 20px; }

.kb-zone-hd { margin-bottom: 10px; }

.kb-zc { padding: 15px 16px 14px; }

.kb-zc-hd .zc-n { font-size: 28px; }

/* 顶部速览 chip 与卡片同底：白底细边，hover 才上主色 */

.kb-chip { background: #fff; }

.ov-head h2 { font-size: 21px; }

/* 侧栏底部身份：单行职务，弱化处理 */

.who { font-size: 12.5px; color: var(--muted); }



/* ==========================================================================

   主题 v3 · 第二轮（2026-09-28 晚）

   1) 门店切换移到右上「经营看板」那一行（左栏只留菜单）

   2) 看板内容卡统一高度：三行信息，不足留空，超出进「更多」下拉

   ========================================================================== */



/* ---------- 1. 门店切换：右上角，与「经营看板」标题同一行 ---------- */

.topbar { gap: 16px; }

.top-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }

.store-switch { display: flex; align-items: center; gap: 6px; min-width: 0; }

.store-switch:empty { display: none; }

.store-switch .sv-hd {

  font-size: 11.5px; color: var(--muted); letter-spacing: 1.5px;

  margin-right: 2px; flex: 0 0 auto;

}

.store-switch .sv-tile {

  padding: 6px 15px; border-radius: 999px; cursor: pointer; flex: 0 0 auto;

  background: #f5faf7; border: 1px solid var(--line); color: var(--ink);

  font-size: 12.5px; line-height: 1.3; letter-spacing: .2px; white-space: nowrap;

  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;

}

.store-switch .sv-tile:hover { border-color: var(--brand); background: #fff; color: var(--brand-deep); }

.store-switch .sv-tile.active {

  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;

  box-shadow: 0 3px 10px rgba(46, 125, 91, .26);

}

.store-switch .sv-tile.solo { cursor: default; }

.store-switch .sv-tile.solo:hover { border-color: var(--line); background: #f5faf7; color: var(--ink); }

.store-switch .sv-tile.sv-loading { opacity: .55; pointer-events: none; }

/* 权限口径标注：公司人员「可管理各店」；店长/店员「仅本店」 */

.store-switch .sv-role { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }

.store-switch .sv-role i {

  font-style: normal; padding: 1px 8px; border-radius: 999px;

  background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; white-space: nowrap;

}

/* 右上角身份（原侧栏底部）：姓名/职务 + 退出 */

.me-box { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.me-box .who { font-size: 12.5px; color: var(--ink); font-weight: 500; white-space: nowrap; }

.me-box .ghost {

  font-size: 12px; padding: 5px 12px; border-radius: 999px;

  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer;

}

.me-box .ghost:hover { border-color: var(--brand); color: var(--brand-deep); }



@media (max-width: 860px) {

  .topbar { padding: 10px 14px; gap: 10px; }

  .top-actions { gap: 8px; }

  /* 门店胶囊可横滑，别把「经营看板」标题挤掉 */

  .store-switch { overflow-x: auto; scrollbar-width: none; }

  .store-switch::-webkit-scrollbar { display: none; }

  .store-switch .sv-hd { display: none; }

  .store-switch .sv-tile { padding: 5px 11px; font-size: 11.5px; }

  .store-switch .sv-role { display: none; }

  .me-box .who { max-width: 76px; overflow: hidden; text-overflow: ellipsis; }

  .me-box .ghost { padding: 5px 9px; font-size: 11.5px; }

}



/* ---------- 2. 看板内容卡：三行信息 · 等高 · 超出进下拉 ---------- */

/* 固定三行：① 状态 + 标题 ② 摘要（副标题 + 字段）③ 进度条 / 补充字段（不足则留空）

   卡片最小高度一致，短内容下方就是空白，不再一张高一张矮 */

/* z68b：原来是 98px 的「三行等高」，短内容下方全是被撑出来的空行；
   现在模块高度由 --kb-h 统一封顶，条目只贴合内容，等高交给模块 --kb-h */
.kb-li { min-height: 66px; }

.kb-li-line2,

.kb-li-line3 {

  display: flex; align-items: baseline; gap: 4px 14px;

  flex-wrap: nowrap; overflow: hidden; min-width: 0;

  font-size: 12px; line-height: 1.55; color: var(--muted);

}

/* z68b：第三行没内容时不占位，省下的高度给上面的真实条目 */
.kb-li-line3 { align-items: center; }

/* 单行内超长自动省略，避免换行把卡片撑高 */

.kb-li-line2 .kb-li-sub,

.kb-li-line2 .kb-fi,

.kb-li-line3 .kb-fi {

  flex: 0 1 auto; min-width: 0; overflow: hidden;

  text-overflow: ellipsis; white-space: nowrap;

}

.kb-li-line3 .kb-li-bar { margin: 0; flex: 1 1 auto; }

/* 「更多」下拉：放在按钮行末尾，做成小胶囊，读起来像个下拉菜单 */

.kb-toggle {

  padding: 3px 10px 3px 10px; border-radius: 999px;

  border: 1px solid var(--line); background: #fff; color: var(--brand-deep);

  font-size: 11.5px; line-height: 1.5;

}

.kb-toggle:hover { border-color: var(--brand); background: #f5faf7; text-decoration: none; }

.kb-toggle.open { background: var(--brand-soft); border-color: var(--brand-soft); }

@media (max-width: 860px) {

  /* 手机屏窄：不锁高度、允许换行，宁可略高也不要截断信息 */

  /* z70：手机上条目留白太小、内容挤成一团，统一放宽内边距与行距 */
  /* z70 修正：窄屏条目是 3 行内容（批号＝店/品名 + 批号/日期 + 防伪标），字段间距太小会挤成一团 */
  .kb-li { min-height: 0; padding: 10px 12px; gap: 5px; }
  .kb-li-line2, .kb-li-line3 { line-height: 1.7; gap: 5px 16px; }
  .kb-li-foot { margin-top: 7px; }
  .kb-li-foot .kb-li-acts { gap: 8px; }
  .kb-li { min-height: 0; }

  .kb-li-line2, .kb-li-line3 { flex-wrap: wrap; overflow: visible; }

  .kb-li-line2 .kb-li-sub, .kb-li-line2 .kb-fi, .kb-li-line3 .kb-fi { white-space: normal; overflow: visible; }

}





/* ===== 客户反馈 · 优先级配色 + 进程条（2026-09-28f）===== */

/* 优先级胶囊：高=红 / 中=琥珀 / 低=灰绿；等级越高越靠前（排序在前端 renderFeedback） */

.fb-lv.lv-高 { background: #faece9; color: var(--red); border-color: #faece9; }

.fb-lv.lv-中 { background: #f6efdd; color: #a4761f; border-color: #f6efdd; }

.fb-lv.lv-低 { background: #eef1ef; color: var(--muted); border-color: #eef1ef; }

/* 卡片左边缘沿用优先级色（压过 .gpd-item 的通用 1px 边框） */

.gpd-item.fb-card { border-left-width: 4px; }

.gpd-item.fb-card.lv-高 { border-left-color: var(--red); }

.gpd-item.fb-card.lv-中 { border-left-color: #cfa14e; }

.gpd-item.fb-card.lv-低 { border-left-color: var(--line); }



/* ===== 看板模块封顶 · 定高滚动，不再无限长高（2026-10-03z68b）===== */

/* 模块高度统一封顶在 --kb-h（≈ 原来 3 条的高度）：类别卡自己不随条目变高，
   分区网格 / 条目区超出就出滚动条 —— 一个模块再长也不会把别的模块挤出屏幕。
   同时去掉 JS 补的隐形占位空行，把空间还给真实条目，一屏能看 5~6 条。 */

.kb-rows { align-items: stretch; }

/* 类目卡：与可视区同高，同排/滚动中都整齐 */

.kb-rows > .kb-row { height: auto; }  /* z86：条目封顶 5 条后模块随内容自适应，不再定高内滚 */

/* 手机端单列：模块矮一档，一屏能滑动看到更多模块 */

@media (max-width: 860px) {  :root { --kb-h: 360px; }  /* z71：去掉 .kb-rows 这层内滚 —— 原本整页/模块/条目三层嵌套，滚动条互相打架 */  .kb-rows { max-height: none; overflow: visible; overscroll-behavior: auto; }  /* z71：触屏不显示内嵌滚动条，整页只剩一条，好认也好滚 */  .kb-list { scrollbar-width: none; -webkit-overflow-scrolling: touch; }  .kb-list::-webkit-scrollbar { width: 0; height: 0; display: none; }}

/* 条目区 + 「还有 N 件」按钮：占满剩余高度，只有条目本身滚动 */

.kb-rowbody { flex: 1; min-height: 0; }

.kb-more { flex: 0 0 auto; margin-top: 8px; }

/* 细滚动条：跟茶绿主题一致，不抢视觉 */

.kb-rows::-webkit-scrollbar, .kb-list::-webkit-scrollbar { width: 6px; }
/* z71：整页滚动条与内嵌滚动条同色系，避免两条竖线混淆（原来整页是默认灰、内嵌是茶灰） */
.panels { scrollbar-width: thin; scrollbar-color: #cbd5d2 transparent; }
.panels::-webkit-scrollbar { width: 9px; }
.panels::-webkit-scrollbar-track { background: transparent; }
.panels::-webkit-scrollbar-thumb { background: #cbd5d2; border-radius: 999px; }
.panels::-webkit-scrollbar-thumb:hover { background: #adbab6; }
/* z71：内嵌滚动区不靠滚动条提示 —— 上下渐隐遮罩告诉用户「还能滚」，滚到顶/底自动消失 */
.kb-rowbody { position: relative; }
.kb-rowbody::before, .kb-rowbody::after { content: ''; position: absolute; left: 0; right: 0; height: 26px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.kb-rowbody::after { bottom: -1px; background: linear-gradient(to top, var(--panel) 14%, rgba(255,255,255,0) 100%); }
.kb-rowbody::before { top: -1px; background: linear-gradient(to bottom, var(--panel) 14%, rgba(255,255,255,0) 100%); }
.kb-rowbody.kb-fade-b::after { opacity: 1; }
.kb-rowbody.kb-fade-t::before { opacity: 1; }

.kb-rows::-webkit-scrollbar-track, .kb-list::-webkit-scrollbar-track { background: transparent; }

.kb-rows::-webkit-scrollbar-thumb, .kb-list::-webkit-scrollbar-thumb { background: #d3dadc; border-radius: 3px; }

.kb-rows::-webkit-scrollbar-thumb:hover, .kb-list::-webkit-scrollbar-thumb:hover { background: #b8c1c4; }



/* ===== 移动端：身份行放最上行（姓名 → 店面 → 退出）（20260928k）===== */

/* .content 展开参与 .app 纵向排序 → topbar（身份行）排到侧栏导航之上 */

@media (max-width: 860px) {

  .content { display: contents; }

  .topbar { order: -1; padding: 10px 14px 8px; border-bottom: 1px solid var(--line); }

  /* 当前页名与导航高亮胶囊重复，手机端隐藏，把整行让给身份行 */

  .topbar .crumb { display: none; }

  .top-actions { width: 100%; flex-wrap: wrap; }

  /* me-box 展开成透明盒：姓名、退出成为整行的直接成员，可自由排序 */

  .me-box { display: contents; }

  .me-box .who { order: -1; }

  /* 退出按钮放行末右侧（微信登录绑定前仍需手动退出入口） */

  .me-box .ghost { order: 3; margin-left: auto; }

}



/* ===== 员工资料弹窗 · 基础信息（20260928l）===== */

.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }

.up-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }

.up-grid input, .up-grid select { width: 100%; }

@media (max-width: 640px) { .up-grid { grid-template-columns: 1fr; } }



/* ===== 身份证拍照存档（20260928m）===== */

.idcap-block { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }

.idcap-row { display: flex; gap: 10px; margin: 8px 0 4px; }

.idcap-slot { flex: 1; aspect-ratio: 1.6; border: 1.5px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; background: #fafcfb; }

.idcap-slot:hover { border-color: var(--brand); }

.idcap-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.idcap-slot span { font-size: 12px; color: var(--muted); }



/* ===== 消费记录（20260928o）===== */

.track-list .tk-amt { font-weight: 600; color: var(--brand-deep); min-width: 88px; }

.track-list .cs-del { margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 3px 10px; font-size: 12px; color: var(--muted); cursor: pointer; }

.track-list .cs-del:hover { color: #b03434; border-color: #b03434; }



/* ===== 权限弹窗：默认态不再灰锁（20260928o）===== */

/* 勾选列表保持可点：默认（按角色）态下点任意勾选自动转「自定义」 */

.scope-list { opacity: 1; }



/* ===== 角色默认权限（设置页 · 20260928p）===== */

.roledef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
/* z120：用户与权限页的「店长/店员默认权限」跳转入口仅在公司视角显示（设置页仅公司可进） */
#panel-users:not(.can-hq) #us-goto-roles { display: none; }
/* 跳到设置页后高亮一下目标区块，确认落点 */
#st-rolesec.flash { box-shadow: 0 0 0 3px rgba(47, 107, 79, .28); border-radius: 10px; transition: box-shadow .2s; }

.roledef-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfdfc; }

.roledef-col > b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 8px; }

.roledef-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }

@media (max-width: 720px) { .roledef-grid { grid-template-columns: 1fr; } }



/* ===== 启动遮罩（20260928q）=====

   本机已登录时先盖住登录页：切店 / 刷新时不再闪一下登录界面。

   未登录 → app.js 一执行就撤掉；已登录 → /api/me 成功后进入主界面前撤掉。 */

.boot-mask { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #f7faf8; transition: opacity .18s ease; }

.boot-mask.hidden { display: none; }

.boot-mask .boot-logo { width: 150px; height: auto; opacity: .9; }

.boot-mask .boot-txt { font-size: 13px; color: var(--muted); letter-spacing: .06em; }



/* ===== 消费记录列序（20260928q）：日期 · 品项 · 金额 ===== */

.track-list .cs-time { min-width: 74px; color: var(--ink); font-size: 12.5px; }



/* ===== 手机上：录入行换行排列（20260928q）=====

   消费记录/跟踪记录是一行 flex，手机上四件挤在一起会把日期、金额压得点不动。

   手机上改为逐项占满一行（inline 的 flex 宽度需 !important 覆盖）。 */

@media (max-width: 640px) {

  .track-add { flex-wrap: wrap; }

  .track-add input, .track-add select { flex: 1 1 100% !important; }

  .track-add button { flex: 1 1 100%; padding: 10px 16px; }

}



/* ===== 员工离职（20260928u）：软停用行置灰 + 徽标 ===== */

tr.st-u-off td { opacity: .55; }

tr.st-u-off td .st-off { opacity: 1; }

.st-off { background: #fdecea; color: #b3402f; border-radius: 8px; padding: 1px 8px; font-size: 11px; margin-left: 6px; }



/* ===== 设置页表格手机端（20260928v）：最小宽度 + 横向滚动，避免列被压扁显示不全 ===== */

.st-grid { min-width: 700px; }

.st-grid .st-in { min-width: 110px; }

.st-grid .st-sel { min-width: 92px; }



/* ===== 日程优先级（20260928z）：标准/重要/特别重要 ===== */

.cal-ev.pri-2 { background: #b3402f; color: #fff; }

.cal-ev.pri-1 { background: #fdeccd; color: #8a5a00; }

.sched-pri { display: inline-block; border-radius: 8px; padding: 1px 8px; font-size: 11px; margin-left: 6px; white-space: nowrap; }

.sched-pri.pri-2 { background: #fdecea; color: #b3402f; }

.sched-pri.pri-1 { background: #fdeccd; color: #8a5a00; }

.cal-edit { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }

.tag.pin-top { background: #b3402f; color: #fff; margin-right: 6px; }



/* ===== 客户反馈流转（20260928z1）：低绿 / 中黄 / 高红 + 三档流转按钮 ===== */

.fb-card.lv-高, .gpd-item.fb-card.lv-高 { border-left-color: var(--red); }

.fb-card.lv-中, .gpd-item.fb-card.lv-中 { border-left-color: #d9a012; }

.fb-card.lv-低, .gpd-item.fb-card.lv-低 { border-left-color: var(--brand); }

.fb-lv.lv-高 { background: #fdecea; color: #b3402f; border-color: #fdecea; }

.fb-lv.lv-中 { background: #fdeccd; color: #8a5a00; border-color: #fdeccd; }

.fb-lv.lv-低 { background: #e8f2ec; color: #1f5b41; border-color: #e8f2ec; }

.fb-tr-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

.fb-tr-lb { font-size: 12px; color: var(--muted); }

.fb-tr { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 3px 10px; font-size: 12px; cursor: pointer; }

.fb-tr:disabled { opacity: .55; cursor: default; }

.fb-tr.self { border-color: #bcd9ca; color: #1f5b41; }

.fb-tr.mgr { border-color: #ecd9a6; color: #8a5a00; }

.fb-tr.store { border-color: #f2c4bc; color: #b3402f; }

.fb-tr.self.suggest { background: var(--brand); border-color: var(--brand); color: #fff; }

.fb-tr.mgr.suggest { background: #c98a10; border-color: #c98a10; color: #fff; }

.fb-tr.store.suggest { background: var(--red); border-color: var(--red); color: #fff; }

.fb-lv-sel { border: 1px solid transparent; border-radius: 8px; padding: 1px 4px; font-size: 11px; cursor: pointer; }

.fb-lv-sel.lv-高 { background: #fdecea; color: #b3402f; }

.fb-lv-sel.lv-中 { background: #fdeccd; color: #8a5a00; }

.fb-lv-sel.lv-低 { background: #e8f2ec; color: #1f5b41; }



/* ============================================================

   外部提货（2026-09-28z6）：下单时间列 + 发货弹窗 + 新单提示

   ============================================================ */

.ext-grid .ext-dt { white-space: nowrap; color: var(--ink-2, #5c6b62); font-variant-numeric: tabular-nums; }

.ext-acts { white-space: nowrap; }

.ext-acts button { padding: 4px 10px; font-size: 12px; border-radius: 8px; }

.ext-acts button + button { margin-left: 6px; }

.eship-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }

.eship-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }

.eship-row:last-child { border-bottom: none; }

.eship-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

.eship-info b { font-size: 13px; }

.eship-info .muted { font-size: 12px; color: var(--ink-2, #5c6b62); }

.eship-no { flex: 0 0 190px; }

#ext-ship-modal .form-row select { min-width: 170px; }

/* 侧栏角标「有新订单」用告警色（红），区别于平时的积压计数 */

.nav-badge.alert { background: var(--red); color: #fff; }



/* ============================================================

   日程日历升级（2026-09-28z9）：时间 / 全天 / 重复 / 地点

   ============================================================ */

.cal-cell .cal-ev .ce-t { font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; opacity: .88; }

.cal-new { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 12px 6px; margin-top: 14px; background: #fbfdfc; }

.cal-new .sf-hd { font-weight: 600; font-size: 13px; margin-bottom: 10px; }

/* 「全天」勾选框做成小胶囊（覆盖 .form-row label 的满宽规则） */

.form-row label.sf-ck {

  flex: 0 0 auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px;

  padding: 11px 12px; background: #f5faf7; border: 1px solid var(--line);

  border-radius: 10px; font-size: 14px; cursor: pointer; user-select: none;

}

.form-row label.sf-ck input { width: 16px; height: 16px; flex: none; min-width: 0; margin: 0; accent-color: var(--brand); }

.sf-lbl { display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }

.cal-new .form-row { margin-bottom: 10px; }

/* 窄屏：时间字段成对换行，勾选框与「开始/结束」标签不要被压扁 */

@media (max-width: 767px) {

  .form-row label.sf-ck { padding: 9px 12px; }

  .cal-new { padding: 10px 10px 4px; }

}



/* ============================================================

   待办：日期 / 时间 / 地点 / 优先级（20260929z10）

   —— 覆盖式新增，不改动上面既有规则；表单复用日程那套 .sf / .sf-ck / .sf-lbl

   ============================================================ */

.tf-extra { margin-top: 10px; }

.form-row button.tf-more { flex: 0 0 auto; font-size: 13px; padding: 8px 12px; }

.tf .form-row { margin-bottom: 10px; }

.tf .form-row:last-child { margin-bottom: 0; }

/* 列表项 meta：时间用主色加粗，地点与备注保持次要色 */

.list .meta .tf-when { color: var(--brand-deep); font-weight: 600; }

.list .meta .tf-loc { color: var(--muted); }

.list .meta .tag.pri-1 { background: #fdf3e3; color: #96631a; border-color: #f0dcb6; }

.list .meta .tag.pri-2 { background: #fdecea; color: #b5342a; border-color: #f3c9c5; }

/* 置顶标签紧跟在状态标签后面，左侧补间隙，避免和「已完成」糊在一起 */

.list .meta .tag.pin-top { margin-left: 6px; }

#td-modal .modal-box { width: 640px; }

@media (max-width: 860px) {

  #td-modal .modal-box { width: 100%; }

  #td-modal .tf .form-row { flex-wrap: wrap; }

}



/* ---------- 批号管理内嵌模块：子导航条（与工作台风格统一） ---------- */

.bt-view {

  min-width: 96px; padding: 6px 14px; border-radius: 8px; cursor: pointer;

  border: 1px solid var(--line); background: transparent; color: var(--muted);

  font-size: 13px; font-family: inherit;

}

.bt-view:hover { color: var(--ink); border-color: var(--muted); }

.bt-view.active {

  background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep);

  font-weight: 600;

}

.bt-add {

  padding: 6px 14px; border-radius: 8px; cursor: pointer; border: none;

  background: var(--brand); color: #fff; font-size: 13px; font-family: inherit;

}

.bt-add:hover { background: var(--brand-deep); }



/* ===== z18 角色可见性：公司层面专属内容（三级归属口径等，店长/店员不显示） ===== */

.hq-only { display: none; }

.can-hq .hq-only { display: block; }



/* ===== z19：店面待办来源链接 / 跳转高亮 / 反馈电话 ===== */

/* 店面待办里由客户反馈 / 物料登记派生的条目，标题做成链接，点进去就是那条业务记录 */

.src-link { color: var(--brand-deep); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }

.src-link:hover { color: var(--brand); }

.src-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; white-space: nowrap; }

/* 客户电话：有权限显示号码，无权限只给一句提示 */

.fb-phone { font-size: 12px; color: var(--ink); }

.fb-phone.muted { color: var(--muted); }

/* 跳转后高亮定位（2.4s 后由 JS 移除） */

.hl-flash { animation: hlFlash 2.4s ease-out 1; }

@keyframes hlFlash {

  0%, 35% { box-shadow: 0 0 0 3px rgba(46, 125, 91, .45); }

  100% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0); }

}



/* ============================================================

   z21（20260930）：移动端菜单改版（排版参考企业微信）+ 礼盒生产独立成模块

   桌面端：左侧栏常显，☰ 与底部快捷栏隐藏；

   移动端：☰ 打开抽屉（全部菜单已在左侧栏按 6 类归好）+ 底部固定 5 个高频模块，

           顶部只留 4 项：用户 · 经营看板 · 店面（下拉）· 退出。

   ============================================================ */



/* ---- 顶部条：☰ 与四项 ---- */

.menu-btn { display: none; }

.topbar { gap: 10px; }

.tb-item {

  flex: 0 0 auto; padding: 6px 13px; border-radius: 999px; cursor: pointer;

  border: 1px solid var(--line); background: #fff; color: var(--ink);

  font-size: 13px; font-family: inherit; white-space: nowrap;

}

.tb-item:hover { border-color: var(--brand); color: var(--brand-deep); }

.tb-user {

  flex: 0 1 auto; min-width: 0; padding: 6px 13px; border-radius: 999px;

  background: var(--brand-soft); color: var(--brand-deep);

  font-size: 13.5px; font-weight: 600; white-space: nowrap;

  overflow: hidden; text-overflow: ellipsis;

}

.topbar .top-actions { gap: 10px; }



/* 店面下拉（20260930z21：由胶囊改为下拉，占位更小、手机上更好点） */

.store-switch .sv-select {

  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);

  background: #fff; color: var(--ink); font-size: 13px; font-family: inherit;

  cursor: pointer; max-width: 176px;

}

.store-switch .sv-select:hover { border-color: var(--brand); color: var(--brand-deep); }

.store-switch .sv-select:disabled { background: #f5faf7; color: var(--muted); cursor: default; }



/* ---- 20260930z26：单店只读店名 + 操作日志 ---- */

.store-switch .sv-fixed {

  display: inline-block; padding: 6px 12px; border-radius: 999px;

  background: var(--brand-soft); color: var(--brand-deep);

  font-size: 13px; font-weight: 600; max-width: 200px; vertical-align: middle;

  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;

}

@media (max-width: 860px) {

  .store-switch .sv-fixed { max-width: 38vw; padding: 5px 9px; font-size: 12.5px; }

}



/* ---- 完成期限 / 归属标签（礼盒生产 & 物料登记） ---- */

.gp-due-lbl { align-self: center; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.gpd-hd .gp-due {

  font-size: 12px; color: var(--brand-deep); background: var(--brand-soft);

  border-radius: 999px; padding: 1px 9px; white-space: nowrap;

}

.gpd-hd .gp-due.over { color: #b5342a; background: #fdecea; }

.gpd-hd .gp-own { font-size: 12px; color: var(--muted); white-space: nowrap; }



/* ---- 底部快捷栏 / 抽屉遮罩：桌面端不出现 ---- */

.tabbar { display: none; }

.drawer-mask { display: none; }



@media (max-width: 860px) {

  /* 顶部条：☰ + 用户 + 经营看板 + 店面下拉 + 退出（就这四项） */

  .topbar {

    order: -1; padding: 8px 10px; gap: 6px;

    flex-wrap: nowrap; align-items: center;

  }

  .menu-btn {

    display: inline-flex; align-items: center; justify-content: center;

    width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border-radius: 9px;

    border: 1px solid var(--line); background: #fff; cursor: pointer;

  }

  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

  .menu-btn:hover { border-color: var(--brand); }

  .tb-user { max-width: 86px; padding: 6px 10px; font-size: 12.5px; }

  .tb-item { padding: 6px 10px; font-size: 12.5px; }

  .store-switch { flex: 1 1 auto; min-width: 0; }

  .store-switch .sv-hd { display: none; }

  .store-switch .sv-select { width: 100%; max-width: 100%; padding: 6px 8px; font-size: 12.5px; }

  .topbar .top-actions { width: auto; flex-wrap: nowrap; margin-left: auto; gap: 6px; }

  .me-box { display: flex; }

  .me-box .who { display: none; }   /* 姓名已提为顶部独立一项，不再重复 */

  .top-tip { display: none; }



  /* 侧栏 → 抽屉：全部菜单按类收好，点左上三条横线展开 */

  .sidebar {

    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;

    width: 268px; max-width: 84vw; height: 100vh; flex: none;

    flex-direction: column; align-items: stretch; gap: 0;

    padding: 0 0 18px; overflow-y: auto; border-right: 1px solid var(--line);

    border-bottom: none; box-shadow: var(--shadow);

    transform: translateX(-102%); transition: transform .24s ease;

  }

  body.drawer-open .sidebar { transform: none; }

  .side-brand { display: flex; }

  .side-nav {

    flex: 1; flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 4px;

    overflow-x: hidden; overflow-y: visible;

  }

  /* 旧移动端把导航压成横滑单行时用了 .nav-group{display:contents} 与居中标题，

     抽屉里是一列竖排，必须还原成「分组标题 + 组内菜单」的正常结构 */

  .nav-group { display: flex; flex-direction: column; gap: 3px; }

  .nav-group + .nav-group { margin-top: 12px; }

  .nav-group > .ng-hd {

    display: block; align-self: stretch; text-align: left; white-space: normal;

    padding: 2px 0 4px 6px; border-radius: 0; background: transparent;

    color: var(--muted); font-size: 10.5px; letter-spacing: 2px;

  }

  .nav {

    flex: 0 0 auto; align-self: stretch; gap: 12px; padding: 10px 13px;

    font-size: 14.5px; background: transparent; border: none; border-radius: 11px;

  }

  .nav svg { width: 20px; height: 20px; flex: 0 0 20px; }

  .nav span { flex: 1; }

  .nav:hover { background: var(--gold-soft); }

  .nav.active { background: var(--brand); color: #fff; }

  .nav.active svg { stroke: #fff; }

  .drawer-mask {

    display: block; position: fixed; top:0;right:0;bottom:0;left:0; z-index: 55;

    background: rgba(20, 40, 32, .34); opacity: 0; pointer-events: none; visibility: hidden;

    transition: opacity .24s ease;

  }

  body.drawer-open .drawer-mask { opacity: 1; pointer-events: auto; visibility: visible; }



  /* 底部快捷栏：礼盒生产 / 客户需求 / 物料登记 / 批号管理 / 商品资料 */

  .tabbar {

    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;

    background: #fff; border-top: 1px solid var(--line);

    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));

    box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);

  }

  .btb-item {

    flex: 1 1 0; min-width: 0; position: relative;

    display: flex; flex-direction: column; align-items: center; gap: 2px;

    padding: 4px 2px; border: none; background: transparent; cursor: pointer;

    color: var(--muted); font-size: 10.5px; font-family: inherit;

  }

  .btb-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  .btb-item span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .btb-item.active { color: var(--brand); font-weight: 600; }

  .btb-item.active svg { stroke: var(--brand); }

  .btb-item .nav-badge { position: absolute; top: 0; left: 50%; margin-left: 2px; }

  .btb-item.scope-hidden { display: none !important; }



  /* 内容区给底部栏留位 */

  .panels { padding: 12px 12px 84px; }

}



/* ============================================================

   z22（20260930）：移动端列表的按钮布局

   窄屏下 4 个操作按钮（完成 / 打开礼盒生产 / 编辑 / 删除）会把标题挤没，

   「打开礼盒生产」甚至被压成竖排单字。改成：标题独占一行，按钮排到下一行。

   ============================================================ */

.list button { white-space: nowrap; }

@media (max-width: 860px) {

  .list li { flex-wrap: wrap; row-gap: 10px; align-items: flex-start; }

  .list .main { flex: 1 1 100%; min-width: 0; }

  .list .title { overflow-wrap: anywhere; }

  .list li > button { flex: 0 0 auto; }

}



/* ============================================================

   z23（20260930）

   ① 批号模块工具条：窄屏隐藏「数据看板」子页签（移动端直接出数据，不用再看一屏看板）

   ② 移动端批号工具条紧凑一点，两个子页签铺满一行

   ============================================================ */

.batch-bar {

  display: flex;

  gap: 8px;

  align-items: center;

  padding: 10px 14px;

  background: #fff;

  border-bottom: 1px solid #e5e7eb;

}

@media (max-width: 860px) {

  #panel-batch .bt-view[data-view="dashboard"] { display: none; }

  .batch-bar { padding: 8px 10px; }

  .batch-bar .bt-view { flex: 1; text-align: center; }

}



/* ============================================================

   z24（20260930）礼盒工序「被跳过」= 红色警示

   口径：有些工序可以不做，也可以先跳到后面去做其它事；

   被跳过的前序工序标红（! + 已跳过），代表可能漏了 / 需要催一下。

   ============================================================ */

.gp-step.skip .gp-c { background: #fdecea; border-color: #d8432e; color: #d8432e; }

.gp-step.skip .gp-t { color: #d8432e; font-weight: 600; }

.gp-step.skip .gp-op, .gp-step.skip .gp-skip-op { color: #d8432e; font-weight: 600; }

/* 这条连接线两侧有一段是「跳过去」的，用浅红提示进度链在这里断过 */

.gp-step.skip::before { background: #f0c4bc; }

.gp-step.skip:hover .gp-c { background: #d8432e; color: #fff; }

.gp-warn { color: #d8432e; font-weight: 600; }



/* ---------- z25：客户需求「解决内容」+ 版面左对齐 ---------- */

/* 版面对齐：面板不再水平居中，统一与顶栏左缘对齐 —— 宽屏下不再出现左侧大块空白（脱节） */

.panel { margin: 0; }

/* 客户需求：解决内容（进程条下方、流转按钮上方，用户指定位置） */

.fb-res-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.fb-res-lb { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.fb-res-in { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f5faf7; font-size: 13px; }

.fb-res-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,125,91,.12); }

.fb-res-save { flex: 0 0 auto; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--brand); color: var(--brand); background: #fff; font-size: 13px; cursor: pointer; }

.fb-res-save:hover { background: var(--brand-soft); }

.fb-res-tx { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); background: #eef7f2; border-radius: 8px; padding: 8px 12px; word-break: break-all; }

@media (max-width: 860px) { .fb-res-row { flex-wrap: wrap; } .fb-res-in { flex: 1 1 100%; } }



/* ===== z31 客户360 + 准客户池 ===== */

.prospect-badge{display:inline-block;font-size:11px;line-height:1.4;padding:2px 7px;border-radius:9px;background:#fdf3ec;color:#b26a00;border:1px solid #ecd9c0;vertical-align:1px;font-weight:600;}

.pp-box{margin:10px 0 4px;}

.pp-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;font-size:12.5px;padding:7px 10px;}

.pp-toggle b{background:var(--brand);color:#fff;border-radius:9px;padding:1px 8px;font-size:11px;}

.pp-list li{gap:8px;align-items:center;}

.pp-list .title{font-weight:600;}

.pp-hint{margin:4px 2px 8px;}

.care-head-btns{display:flex;gap:8px;flex:0 0 auto;align-items:flex-start;}

.cs-item-manual{margin-top:6px;}

.prospect-src{display:inline-block;font-size:11px;color:#8a6a3a;background:#f7efe2;border-radius:6px;padding:1px 5px;margin-left:4px;}

#care-main .track-add select{flex:1 1 160px;min-width:0;}





/* ============================================================

   z32：客户资料扩展（别名/地址/爱好/微信号）+ 日程店面/个人归属

   ============================================================ */

#cu-search { margin-bottom: 8px; }

.cue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }

.cue-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }

.cue-grid .cue-full { grid-column: 1 / -1; }

.cue-grid input, .cue-grid select, .cue-grid textarea {

  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;

  font-size: 14px; color: var(--text); font-family: inherit; background: var(--panel); }

.cue-grid textarea { resize: vertical; }

.care-meta2 { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.cal-scope { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }

.cal-sc { border: none; background: transparent; padding: 7px 14px; font-size: 13px; cursor: pointer; color: var(--muted); }

.cal-sc.active { background: var(--brand); color: #fff; }

.sched-scope { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-deep); }

@media (max-width: 860px) {

  .cal-head { flex-wrap: wrap; row-gap: 8px; }

  .cal-scope { order: 5; }

}

/* z33：多行商品明细编辑器 */
.items-editor{margin:8px 0 12px;}
.items-editor .ie-hd{font-size:12px;color:#5b6b62;margin-bottom:0;}
/* z69b：「物料明细」与「完成期限」同一行，期限块不再悬空脱节 */
.items-editor .ie-hd-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px;}
.items-editor .mt-due-wrap{margin-left:auto;}
.kb-zone-hd .z-q{margin-left:-2px;}
/* z69c：看板分区头「待办/提醒」复用问号气泡 —— 此前 .z-q 没有气泡规则，说明文字直接摊开占行 */
.z-q { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; background: #2E7D5B; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; cursor: help; }
.z-q::before { content: "?"; }
.z-q .qtip { display: none; position: absolute; top: calc(100% + 8px); left: -8px;
  width: max-content; max-width: min(340px, 76vw); background: #223c34; color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.55; padding: 7px 10px;
  border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 60;
  text-align: left; white-space: normal; }
.z-q .qtip::before { content: ""; position: absolute; top: -5px; left: 12px;
  width: 10px; height: 10px; background: #223c34; transform: rotate(45deg); border-radius: 2px; }
.z-q:hover .qtip, .z-q:focus .qtip, .z-q.show .qtip { display: block; }

.items-tbl{border-collapse:collapse;width:100%;font-size:13px;}
.items-tbl th,.items-tbl td{border:1px solid #e3e8e4;padding:4px 6px;text-align:left;vertical-align:middle;}
.items-tbl th{background:#f3f7f4;color:#44524a;font-weight:600;white-space:nowrap;}
.items-tbl input{width:100%;border:1px solid #dfe5e0;border-radius:5px;padding:5px 6px;box-sizing:border-box;font-size:13px;}
/* z100：单位改真下拉 select，外观与同表 input 一致（宽度沿用 .it-unit 82px） */
.items-tbl select{width:100%;border:1px solid #dfe5e0;border-radius:5px;padding:5px 4px;box-sizing:border-box;font-size:13px;background:#fff;color:inherit;}
.items-tbl .it-unit{width:82px;}
.items-tbl .it-amount{width:92px;}
/* z93：新增「单价」列。单位从纯文本改成可选下拉（datalist）后要多让出箭头的宽度，
   60px 会把「礼盒」这类两字单位挤掉，加到 82px。 */
.items-tbl .it-price{width:84px;}
/* z78：明细行不再挤成一团 —— 品名/规格/备注给最小可用宽度，装不下时整块横向滚动（触屏划动自然）。
   以前品名被压到 ~90px，iPad 上基本不可用。 */
.items-tbl .it-product{min-width:180px;}
.items-tbl .it-spec{min-width:120px;}
.items-tbl .it-note{min-width:110px;}
.items-editor{overflow-x:auto;}
/* z78：触屏（iPad/手机）输入框字号 16px 起 —— iOS 聚焦 <16px 输入框会自动放大整页，
   表现为「点进去没法正常输入」。桌面不受影响，维持 13px。 */
@media (pointer: coarse){
  .items-editor .items-tbl input{font-size:16px;}
  .items-editor .items-tbl select{font-size:16px;}
}
/* z36：窄屏下「想买明细」一行改为堆叠卡片 —— 品名整行，规格/数量/单位一行，金额/备注一行；
   输入框字号 16px 起（避免 iOS 聚焦自动放大），标签用 td::before 从 data-lb 生成 */
@media (max-width: 700px){
  .items-editor thead{display:none;}
  .items-editor .items-tbl, .items-editor .items-tbody{display:block;}
  .items-editor tr.item-row{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;position:relative;border:1px solid #e3e8e4;border-radius:8px;padding:8px 34px 8px 8px;margin:0 0 8px;background:#fff;}
  .items-editor .items-tbl td{display:block;border:none;padding:0;}
  .items-editor td[data-lb]::before{content:attr(data-lb);display:block;font-size:11px;color:#5b6b62;margin:0 0 2px 1px;}
  .items-editor td.i-product{grid-column:1/7;}
  .items-editor td.i-spec{grid-column:1/4;}
  .items-editor td.i-qty{grid-column:4/5;}
  .items-editor td.i-unit{grid-column:5/7;}
  /* z93：加「单价」后窄屏重排 —— 数量/单位一行，单价/金额/备注一行，照片单独整行 */
  .items-editor td.i-price{grid-column:1/3;}
  .items-editor td.i-amount{grid-column:3/5;}
  .items-editor td.i-note{grid-column:5/7;}
  .items-editor td.i-del{position:absolute;top:6px;right:6px;}
  .items-editor td.i-del::before{content:none;}
  .items-editor td.i-photos{grid-column:1/7;}
  #mt-items td.i-note{grid-column:1/5;}
  #mt-items td.i-photos{grid-column:5/7;}
  /* z97g：照片并入规格行的尝试被否（单位挤到 1 格没法编辑、＋位置别扭）→ 照片整行；
     z99：净含量 / 规格拆两列后重排 —— 品名 | 净含量·规格 | 数量·单位·备注 | 单价·金额·照片 */
  #fb-items td.i-product, #fbe-items td.i-product{grid-row:1;}
  #fb-items td.i-net, #fbe-items td.i-net{grid-row:2;grid-column:1/3;}
  #fb-items td.i-spec, #fbe-items td.i-spec{grid-row:2;grid-column:3/7;}
  #fb-items td.i-qty, #fbe-items td.i-qty{grid-row:3;grid-column:1/2;}
  #fb-items td.i-unit, #fbe-items td.i-unit{grid-row:3;grid-column:2/4;}
  #fb-items td.i-note, #fbe-items td.i-note{grid-row:3;grid-column:4/7;}
  #fb-items td.i-price, #fbe-items td.i-price{grid-row:4;grid-column:1/3;}
  #fb-items td.i-amount, #fbe-items td.i-amount{grid-row:4;grid-column:3/5;}
  #fb-items td.i-photos, #fbe-items td.i-photos{grid-row:4;grid-column:5/7;}
  .rp-plus{width:100%;height:44px;font-size:18px;}
  .ie-actions .ie-submit{margin-right:35px;}
  .items-editor .item-del{width:30px;height:30px;font-size:16px;}
  .items-editor .items-tbl input{font-size:16px;}
  .items-editor .items-tbl select{font-size:16px;}
  .items-editor .items-tbl .it-unit, .items-editor .items-tbl .it-price, .items-editor .items-tbl .it-amount{width:100%;}
}
.ie-actions{display:flex;align-items:center;gap:10px;margin-top:6px;}
.ie-actions .ie-submit{margin-left:auto;}
/* 2026-10-19：「+ 记录需求」加大加醒目——固定高度不撑行高，加宽/加重/加阴影提视觉重量 */
#fb-add.ie-submit{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 28px;font-size:16px;font-weight:700;letter-spacing:1px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.18);}
#fb-add.ie-submit:active{transform:translateY(1px);box-shadow:0 1px 3px rgba(0,0,0,.14);}
@media (max-width:700px){
  #fb-add.ie-submit{height:44px;font-size:16px;padding:0 22px;flex:1;max-width:300px;}
}
.item-add{background:#e8f2ec;color:#1f5b41;border:1px solid #cfe3d6;border-radius:6px;padding:5px 12px;cursor:pointer;}
.items-sum{color:#1f5b41;font-weight:600;}
/* z37：客户需求卡片上的「想买明细」（只读）—— 只填明细、不填需求内容的单子，卡片不再空白 */
.fb-items-view{margin-top:6px;background:#f7faf8;border:1px solid #e3ece6;border-radius:8px;padding:6px 10px 8px;}
.fb-items-view .fiv-hd{font-size:12px;color:#1f5b41;font-weight:600;display:flex;justify-content:space-between;gap:8px;margin-bottom:2px;}
.fb-items-view .fiv-sum{color:#2e7d5b;}
.fb-items-view .fiv-row{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;font-size:13px;color:#33413a;padding:3px 0;border-top:1px dashed #e3ece6;}
.fb-items-view .fiv-row:first-child{border-top:none;}
.fb-items-view .fiv-p{font-weight:600;}
.fb-items-view .fiv-q{color:#2e7d5b;}
.fb-items-view .fiv-s{color:#5b6b62;}
.fb-items-view .fiv-a{color:#b45309;}
.fb-items-view .fiv-n{color:#6b7a72;}
.item-del{background:#fbeae6;color:#c0392b;border:none;border-radius:5px;width:26px;height:26px;cursor:pointer;}
/* 消费录入整块 */
.consume-editor{display:block;}
.consume-editor #cs-items{margin:6px 0;}
/* 需求卡片：未建档标 + 建档/登记为消费按钮 */
.fb-nocust{display:inline-block;background:#fff4e0;color:#a05a14;border:1px solid #f0d9a8;border-radius:10px;font-size:11px;padding:1px 8px;margin-left:6px;vertical-align:middle;}
/* 2026-10-19：未建档 → 实心橙「未建档 · 去建档」按钮（点击预填新建客户档案） */
.fb-nocust.fb-nocust-go{cursor:pointer;font-family:inherit;line-height:1.5;background:#f5a623;color:#fff;border:1px solid #e8951a;font-weight:700;font-size:12px;padding:2px 10px;box-shadow:0 1px 3px rgba(232,149,26,.35);}
.fb-nocust.fb-nocust-go:hover{background:#e8951a;border-color:#d5851a;}
.fb-nocust.fb-nocust-go:active{transform:translateY(1px);}
/* z102：快递建档弹窗提示条 */
.courier-tip{background:#f0f7f3;border:1px solid #d8e8df;border-radius:8px;padding:8px 12px;font-size:13px;color:#3c5a4d;margin-bottom:12px;line-height:1.6;}
.courier-tip b{color:#1f5b41;}
.fb-build,.fb-toconsume{background:#e8f2ec;color:#1f5b41;border:1px solid #cfe3d6;border-radius:6px;padding:4px 10px;cursor:pointer;margin-left:6px;}
/* 高频临时品列表 */
.temp-prod-list{display:flex;flex-direction:column;gap:8px;margin:6px 0;}
.tp-item{display:flex;align-items:center;gap:12px;border:1px solid #e3e8e4;border-radius:8px;padding:8px 12px;background:#fff;}
.tp-item .tp-main{flex:1;font-size:14px;}
.tp-item .tp-meta{color:#778177;font-size:12px;}
.tp-convert{background:#1f5b41;color:#fff;border:none;border-radius:6px;padding:5px 14px;cursor:pointer;white-space:nowrap;}

/* ===== z38 新消息提醒（页面开着不刷新也能收到） ===== */
.pulse-bar{display:flex;align-items:center;gap:8px;margin:8px 0 0;padding:8px 12px;border-radius:8px;background:#fff5e6;border:1px solid #f0c48a;color:#8a4b00;font-size:13px;box-shadow:0 1px 2px rgba(0,0,0,.04);}
.pulse-bar.hidden{display:none;}
.pb-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#d8432e;animation:pb-blink 1.4s ease-in-out infinite;}
@keyframes pb-blink{0%,100%{opacity:1}50%{opacity:.25}}
.pb-txt{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pb-go{flex:0 0 auto;background:#2e7d5b;color:#fff;border:0;border-radius:6px;padding:5px 12px;font-size:13px;cursor:pointer;}
.pb-go:hover{background:#1f5b41;}
.pb-x{flex:0 0 auto;background:transparent;border:0;color:#8a4b00;font-size:16px;line-height:1;cursor:pointer;padding:2px 4px;}
.nav.has-new,.btb-item.has-new{position:relative;}
.nav.has-new::after,.btb-item.has-new::after{content:'';position:absolute;top:6px;right:8px;width:7px;height:7px;border-radius:50%;background:#d8432e;box-shadow:0 0 0 2px rgba(255,255,255,.85);}
@media (max-width:700px){
  .pulse-bar{font-size:12px;padding:7px 10px;flex-wrap:nowrap;} /* 窄屏也强制一行：红点＋内容＋查看＋× 不换行 */
  .pb-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1 auto;min-width:0;order:0;}
  .pb-go{order:0;margin-left:auto;}
  .pb-x{order:0;}
}

/* ---- 顶部姓名下拉（20260930z39）：点姓名 → 修改密码 ---- */

.tb-usermenu { position: relative; flex: 0 0 auto; }

.tb-user { border: 0; cursor: pointer; font-family: inherit; }

.tb-user:hover { background: #d6ebdf; }

.tb-menu {

  position: absolute; top: calc(100% + 6px); left: 0; z-index: 80;

  min-width: 140px; padding: 5px; background: #fff;

  border: 1px solid var(--line); border-radius: 12px;

  box-shadow: 0 10px 26px rgba(24, 42, 33, .13);

}

.tb-mi {

  display: block; width: 100%; text-align: left; padding: 8px 12px;

  border: 0; border-radius: 8px; background: none; color: var(--ink);

  font-size: 13px; font-family: inherit; cursor: pointer; white-space: nowrap;

}

.tb-mi:hover { background: var(--brand-soft); color: var(--brand-deep); }

/* =====================================================================
   z59：已完成的礼盒生产 / 客户需求「收成一行」
   未完成 → 完整卡片照旧；已完成 → 一行（客户/品名 + 内容 + 产生时间 + 完成时间 + 展开按钮），
   点展开看详细内容、再点收起。展开状态由 JS 的 .fold-open 控制。
   ===================================================================== */
.gpd-item.foldable { padding: 10px 14px; }
.gpd-item.foldable > .fold-body { display: none; }
.gpd-item.foldable.fold-open { padding: 14px 16px 10px; }
.gpd-item.foldable.fold-open > .fold-body { display: block; margin-top: 9px; }

.gpd-hd.fold-bar { align-items: center; flex-wrap: nowrap; gap: 8px; min-width: 0; }
.gpd-hd.fold-bar .t { flex: 0 0 auto; }
.gpd-hd.fold-bar .sum { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-tm { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.fold-tm.ft { color: #3f7357; }
.fold-btn {
  flex: 0 0 auto; margin-left: auto; font-size: 12px; line-height: 1.2; padding: 3px 10px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--brand-deep);
}
.fold-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.fold-body > .fold-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fold-body > .fold-meta .st { margin-left: 0; }

/* 窄屏：第一行「客户名 + 内容摘要（自动省略）+ 展开」，第二行「产生 / 完成时间」——
   窄屏下三样挤一行会把时间戳顶到中间、按钮掉到下一行，分行更整齐 */
@media (max-width: 760px) {
  .gpd-hd.fold-bar { flex-wrap: wrap; row-gap: 3px; }
  .gpd-hd.fold-bar .t { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gpd-hd.fold-bar .sum { flex: 1 1 40px; }
  .gpd-hd.fold-bar .fold-btn { order: 3; }
  .gpd-hd.fold-bar .fold-tm { order: 4; }
}

/* ===== z60 随单照片（客户需求 / 礼盒生产）===== */
.photo-picker{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:2px 0;}
.pp-btns{display:flex;align-items:center;gap:8px;}
.pp-btn{border:1px solid #d7e3dc;background:#fff;color:#2e5d4b;border-radius:8px;padding:7px 14px;font-size:13px;cursor:pointer;}
.pp-btn:hover:not(:disabled){background:#eef6f1;}
.pp-btn:disabled{opacity:.45;cursor:not-allowed;}
.pp-hint{color:#8a9a91;font-size:12px;}
.pp-thumbs{display:flex;gap:8px;flex-wrap:wrap;}
.pp-th{position:relative;width:64px;height:64px;}
.pp-th img{width:100%;height:100%;object-fit:cover;border-radius:8px;border:1px solid #e0e8e3;display:block;}
.pp-x{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;background:#d9534f;color:#fff;font-style:normal;font-size:14px;line-height:18px;text-align:center;cursor:pointer;border:2px solid #fff;}
.fb-submit-row{margin-top:8px;}
.gp-photo-row{margin-top:8px;}
.card-photos{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 2px;}
.cp-img{width:88px;height:88px;object-fit:cover;border-radius:8px;border:1px solid #e0e8e3;cursor:zoom-in;display:block;}
#pp-lightbox{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(15,24,20,.82);display:none;align-items:center;justify-content:center;z-index:9999;cursor:zoom-out;}
#pp-lightbox.open{display:flex;}
#pp-lightbox img{max-width:92vw;max-height:92vh;border-radius:10px;box-shadow:0 8px 40px rgba(0,0,0,.5);}
/* z60 折叠行品种摘要：同屏最多 3 个品名，窄屏逐步收少 */
.gpd-hd .sum .sum-n+.sum-n::before{content:'、';color:#8a9a91;}
@media (max-width:860px){.gpd-hd .sum .sum-n:nth-child(n+3){display:none;}}
@media (max-width:600px){.gpd-hd .sum .sum-n:nth-child(n+2){display:none;}}

/* ===== z61 礼盒表单微调 ===== */
.gp-due-wrap{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;}
.form-row.gp-photo-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px;}
.form-row.gp-photo-row .photo-picker{margin:0;}

/* z62：问号提示（桌面悬停 / 手机点按显示） */
.qmark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #2E7D5B; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; cursor: help; margin-left: 7px; flex: none; vertical-align: middle; user-select: none; -webkit-user-select: none; }
.qmark .qtip { display: none; position: absolute; top: calc(100% + 8px); left: -8px; width: max-content; max-width: min(340px, 76vw); background: #223c34; color: #fff; font-size: 12px; font-weight: 400; line-height: 1.7; padding: 9px 12px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 9999; white-space: normal; text-align: left; }
.qmark .qtip::before { content: ''; position: absolute; top: -5px; left: 12px; width: 10px; height: 10px; background: #223c34; transform: rotate(45deg); border-radius: 2px; }
.qmark:hover .qtip, .qmark:focus .qtip, .qmark.show .qtip { display: block; }
/* z70：气泡展开会顶到视口右缘时向左翻转，避免被视口裁成一条边 */
.qmark .qtip.flip, .z-q .qtip.flip { left: auto; right: -8px; }
.qmark .qtip.flip::before, .z-q .qtip.flip::before { left: auto; right: 12px; }
/* z70：气泡展开会顶到视口右缘时向左翻转，避免被视口裁成一条边 */
.qmark .qtip.flip, .z-q .qtip.flip { left: auto; right: -8px; }
.qmark .qtip.flip::before, .z-q .qtip.flip::before { left: auto; right: 12px; }
/* z70：气泡展开会顶到视口右缘时向左翻转，避免被视口裁成一条边 */
.qmark .qtip.flip, .z-q .qtip.flip { left: auto; right: -8px; }
.qmark .qtip.flip::before, .z-q .qtip.flip::before { left: auto; right: 12px; }
/* z70：气泡展开会顶到视口右缘时向左翻转，避免被视口裁成一条边 */
.qmark .qtip.flip, .z-q .qtip.flip { left: auto; right: -8px; }
.qmark .qtip.flip::before, .z-q .qtip.flip::before { left: auto; right: 12px; }
/* z70：气泡展开会顶到视口右缘时向左翻转，避免被视口裁成一条边 */
.qmark .qtip.flip, .z-q .qtip.flip { left: auto; right: -8px; }
.qmark .qtip.flip::before, .z-q .qtip.flip::before { left: auto; right: 12px; }
/* z70：气泡展开会顶到视口右缘时向左翻转，避免被视口裁成一条边 */
.qmark .qtip.flip, .z-q .qtip.flip { left: auto; right: -8px; }
.qmark .qtip.flip::before, .z-q .qtip.flip::before { left: auto; right: 12px; }
/* z70：气泡展开会顶到视口右缘时向左翻转，避免被视口裁成一条边 */
.qmark .qtip.flip, .z-q .qtip.flip { left: auto; right: -8px; }
.qmark .qtip.flip::before, .z-q .qtip.flip::before { left: auto; right: 12px; }

/* z63：完成期限（礼盒/物料）标签右对齐贴住日期框，整体靠右 */
.gp-due-wrap { margin-left: auto; flex: none; }
.gp-due-wrap .gp-due-lbl { flex: none; min-width: 0; text-align: right; }
.gp-due-wrap input[type='date'] { flex: none; }

/* z63：客户列表右上角「待关怀」红点 */
.cu-list li { position: relative; }
.cu-care-dot { position: absolute; top: 10px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red, #d84343); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* z63：关怀建议编辑 / 忽略 */
.cc-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cc-foot .ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.cc-foot .ghost:hover { color: var(--ink); border-color: var(--gold); }
.cc-edit { width: 100%; min-height: 72px; font: inherit; color: inherit; border: 1px solid var(--gold); border-radius: 8px; padding: 8px 10px; resize: vertical; background: #fff; box-sizing: border-box; }
.cc-edit-acts { display: inline-flex; gap: 8px; margin-top: 8px; }

/* ---- z64 明细行内照片 ---- */
.rp-cell{display:flex;align-items:center;gap:4px;min-height:30px;cursor:pointer;flex-wrap:wrap;}
.rp-th{position:relative;display:inline-block;}
.rp-th img{width:40px;height:40px;object-fit:cover;border-radius:5px;border:1px solid #dfe5e0;display:block;}
.rp-x{position:absolute;top:-6px;right:-6px;width:16px;height:16px;border-radius:50%;background:#c0392b;color:#fff;font-size:12px;line-height:16px;text-align:center;font-style:normal;cursor:pointer;}
.rp-plus{width:40px;height:40px;border:1px dashed #9db8aa;border-radius:5px;background:#f7faf8;color:#1f5b41;font-size:20px;cursor:pointer;line-height:1;padding:0;}
#rp-pop{position:absolute;z-index:1300;background:#fff;border:1px solid #d8e4dc;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.14);padding:10px;width:180px;}
#rp-pop .rp-pop-t{font-size:12px;color:#5b6b62;margin-bottom:8px;}
#rp-pop button{display:block;width:100%;margin:0 0 6px;background:#e8f2ec;color:#1f5b41;border:1px solid #cfe3d6;border-radius:6px;padding:8px 12px;cursor:pointer;font-size:13px;}
#rp-pop button:last-of-type{margin-bottom:0;}
.fiv-photos{display:inline-flex;gap:4px;vertical-align:middle;margin-left:4px;}
.fiv-photos .cp-img{width:40px;height:40px;object-fit:cover;border-radius:5px;cursor:zoom-in;}
.gpd-note{font-size:12px;color:#5b6b62;margin:4px 2px 0;}

/* z88e：纵向 flex label 里的问号与标签同行（别名/关联官网茶礼） */
.lb-line { display: inline-flex; align-items: center; }

/* ===== z90 资质中心（2026-10-09）===== */
.cert-expire { border: 1px solid #f0d6a8; background: #fff8ec; border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; }
.cert-expire-hd { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #8a5a1b; }
.cert-expire-hd svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cert-expire-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cert-chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid #ecd9bb; color: #8a5a1b; }
.cert-chip.exp { background: #fdeceb; border-color: #f2c4bd; color: #a3402c; }
.cert-up { border: 1px dashed var(--line); background: var(--brand-soft); border-radius: 10px; padding: 12px; margin: 10px 0; }
.cert-lb { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.cert-lb select, .cert-lb input { min-height: 38px; font-size: 16px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.cert-up-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.cert-pend { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.cert-layout { display: grid; grid-template-columns: 230px 1fr; gap: 14px; margin-top: 12px; }
.cert-side { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; align-self: start; }
.cert-side-hd { font-size: 12px; color: var(--muted); padding: 4px 6px 8px; }
.cert-tree { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.cert-node { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.cert-node:hover { background: var(--bg); }
.cert-node.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.cert-node-main { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.cert-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.cert-node-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert-node-n { font-size: 11.5px; color: var(--muted); background: #f0f4f1; border-radius: 999px; padding: 1px 7px; }
.cert-node-op { display: none; gap: 4px; }
.cert-node:hover .cert-node-op, .cert-node.on .cert-node-op { display: inline-flex; }
.cert-mini { min-width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 12px; color: var(--muted); cursor: pointer; padding: 0 6px; }
.cert-mini:hover { border-color: var(--brand); color: var(--brand); }
.cert-mini.danger:hover { border-color: var(--red); color: var(--red); }
.cert-grid td { vertical-align: middle; }
.cert-grid .empty { color: var(--muted); text-align: center; }
.cert-fname { font-weight: 600; }
.cert-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cert-exp { color: var(--red); }
.cert-warn { color: #b06a12; }
.cert-near { color: #8a6a12; }
.nowrap { white-space: nowrap; }
@media (max-width: 768px) {
  .cert-layout { grid-template-columns: 1fr; }
  .cert-tree { max-height: none; }
  .cert-node-op { display: inline-flex; }
  .cert-mini { min-width: 34px; height: 34px; }
}

/* z90d：商品名称可点开详情；未关联官网时「转发」引导到详情弹窗 */
.inv-name-link { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; cursor: pointer; }
.inv-name-link:hover { color: var(--green); }
.im-form select.flash { outline: 2px solid var(--green); outline-offset: 1px; border-radius: 4px; }

/* z90e：详情弹窗多图管理 + 转发图片区 */
.im-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 10px; min-height: 24px; }
.im-imgs .hint { font-size: 12px; }
.im-img-chip { position: relative; width: 92px; }
.im-img-chip img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd8cc; display: block; background: #f6f6f2; }
.im-img-chip.bad img { opacity: .35; }
.im-img-chip b { display: block; font-size: 11px; color: #8a867c; text-align: center; margin-top: 2px; font-weight: 500; }
.im-img-del { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #d64541; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.share-imgs { margin-top: 10px; }
.share-img-row { display: flex; gap: 8px; }
.share-img-row img { width: 140px; height: 105px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd8cc; cursor: zoom-in; background: #f6f6f2; }
.share-imgs .hint { margin-top: 6px; font-size: 12px; }

/* z90f：去掉 SKU 后布局微调 + 转发模板页区块 */
.share-page { background:#faf6ee; border:1px solid #e7ddc8; border-radius:10px; padding:12px 14px; margin-bottom:12px; }
.share-page .share-lb { display:block; margin-bottom:8px; font-weight:600; color:#2f2a24; }
.share-page .form-row { align-items:stretch; }
.share-page input.mono { flex:1; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12px; background:#fff; }
.share-qr-row { display:flex; align-items:flex-start; gap:14px; margin-top:10px; }
.share-qr-row img { width:128px; height:128px; border-radius:8px; background:#fff; border:1px solid #e7ddc8; flex:none; }
.share-qr-row .hint { margin:0; align-self:center; }
.share-sep { border:none; border-top:1px dashed #e0d6c2; margin:14px 0; }

/* z90k：门店经营概览 KPI 可点进详情 + 移动端商品行「分享」绿钮 */
.ov-metric.link { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.ov-metric.link:hover { box-shadow: 0 4px 14px rgba(47,42,36,.14); transform: translateY(-1px); }
.ov-metric.link .l { color: var(--green); font-weight: 600; }
.inv-share-m { display: none; }
@media (max-width: 860px) {
  /* 手机：表格操作列够不着，分享钮放到名称下一行、与名称左对齐、绿色实心（保留这一个即可） */
  .inv-share-m {
    display: block; width: max-content; margin: 8px 0 2px; padding: 10px 26px;
    font-size: 14px; border-radius: 999px; cursor: pointer;
  }
  .inv-share-d { display: none; }   /* 隐藏操作列里那颗，避免出现两个分享 */
}

/* z90o：列表缩略图点击放大，再点还原 */
.grid td .thumb img { cursor: zoom-in; }
.inv-lb { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(24,28,24,.88); padding: 20px; }
.inv-lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 10px; background: #fff; cursor: zoom-out; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.inv-lb-tip { font-size: 12.5px; color: #cfd8d3; }
@media (max-width: 860px) {
  /* 商品资料：名称列加宽（图/操作列收紧 + 内边距缩小腾出空间），表格外套 .tbl-wrap 兜底横向滚动 */
  #panel-inventory .grid th, #panel-inventory .grid td { padding: 8px 6px; }
  #panel-inventory .grid th:nth-child(1), #panel-inventory .grid td:nth-child(1) { width: 38%; min-width: 148px; word-break: break-word; }
  #panel-inventory .grid td .thumb { width: 38px; height: 38px; }
  #panel-inventory .grid td:nth-child(5) { white-space: normal; }
}

/* ===== z91：明细行「数量」输入框宽度 —— 修「修改客户需求时数量没法输入」=====
   症状（用户报障）：修改客户需求弹窗、客户档案·消费录入里，数量框只有 26px 宽，
   type=number 的数字微调按钮把整个框占满，数字既看不见、点也点不准 → 像「没法输入」。
   原因：.it-qty 一直没有宽度规则，table-layout:auto 只按 min-content 分给这一列
   （同排的 .it-unit 60px / .it-amount 92px 都有定宽，只有它没有）。
   口径：与同排字段一致给 64px 定宽；窄屏堆叠卡片（≤700px）仍按格子撑满，不受影响。 */
.items-tbl .it-qty { width: 64px; }
@media (max-width: 700px) {
  .items-editor .items-tbl .it-qty { width: 100%; }
}

/* ===== z97：净含量「克重 g × 袋数 袋」结构化输入（商品详情 + 需求明细共用） ===== */
.gx-wrap{display:flex;align-items:center;gap:4px;white-space:nowrap;color:var(--muted);font-size:12.5px}
.gx-wrap input{flex:0 1 64px;min-width:0;width:auto;text-align:center;padding:5px 4px}
.im-form .gx-wrap input{border:1px solid var(--line);border-radius:8px;background:#f8fbf9;font-size:13.5px;padding:9px 6px;color:var(--ink);font-family:inherit}
.im-form .gx-wrap input:focus{outline:none;border-color:var(--gold);background:#fff}
@media (max-width: 700px) {
  .gx-wrap{white-space:normal}
  .gx-wrap input{flex:1 1 56px}
}
/* z97b：弹窗里 .form-row label input 的 width:100%/flex:none 优先级更高，会把上面的 64px 基准盖成全宽
   → 用更高特异性收回来，定宽 64px（4 位数字足够）；窄屏堆叠仍走上面的 flex:1 铺满 */
/* z97f→z97h：需求明细（fb/fbe）净含量列收缩到内容宽 —— 自动分宽把富余宽度塞给它，
   输入框却是定宽的，右侧空一大块；width:1%+nowrap 收缩，富余宽度让给品名/备注。
   z100：从 #fb-items/#fbe-items 扩到全部 .items-editor（含客户档案消费录入 #cs-items——
   其容器只有 ~710px，列不收缩时表格溢出更明显），同时明细数字框 64→48px 只留数字本身宽度。 */
@media (min-width: 701px){
  .items-editor td.i-net, .items-editor td.i-spec{width:1%;white-space:nowrap;}
  .items-editor .gx-wrap input{flex:0 0 48px;width:48px;padding-left:2px;padding-right:2px;}
}
.im-form .form-row .gx-wrap input{flex:0 0 auto;width:64px}
/* z98：弹窗净含量数字框 6 位宽（g 已固定在框后，只填数字）；flex-basis 88 确保移动端不被 56px 基准覆盖 */
#im-net-n{flex:0 0 88px;width:88px}

/* 企微 WebView 适配（2026-10-13） */
html { -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; }
* { -webkit-tap-highlight-color: transparent; }
.sidebar { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

/* 商品图片调序按钮（2026-10-18） */
.im-img-mv { position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(47, 42, 36, .55); color: #fff; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.im-img-mv.left { left: -9px; }
.im-img-mv.right { right: -9px; }
.im-img-mv:hover, .im-img-mv:active { background: rgba(47, 42, 36, .85); }

/* ===== 全局搜索（2026-10-19） ===== */
.search-pop { position: absolute; top: 52px; left: 12px; right: 12px; z-index: 65; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(47,42,36,.14); overflow: hidden; }
.search-pop.hidden, .search-page.hidden { display: none; }
.sp-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sp-box.grow { flex: 1; border-bottom: none; }
.sp-box input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; color: var(--ink); min-width: 0; }
.sp-x { border: none; background: none; font-size: 18px; color: #8a867c; cursor: pointer; padding: 0 4px; line-height: 1; }
.sp-results { max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; }
.sp-hint { padding: 14px 12px; font-size: 13px; color: #8a867c; text-align: center; }
.sp-hint.err { color: #b3402f; }
.sp-group + .sp-group { margin-top: 6px; }
.sp-g-hd { font-size: 12px; color: #8a867c; padding: 6px 10px 4px; font-weight: 500; }
.sp-item { display: block; width: 100%; text-align: left; border: none; background: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.sp-item:hover, .sp-item:active { background: #f4f2ec; }
.sp-i-main { display: block; font-size: 14px; color: var(--ink); }
.sp-i-sub { display: block; font-size: 12px; color: #8a867c; margin-top: 2px; }
.sp-item mark { background: #f7e3b8; color: inherit; border-radius: 2px; padding: 0 1px; }
.search-page { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 80; background: #f7faf8; display: flex; flex-direction: column; }
.spg-hd { display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--line); }
.spg-cancel { border: none; background: none; font-size: 15px; color: #2f6b52; cursor: pointer; padding: 6px 4px; flex-shrink: 0; }
.spg-results { flex: 1; overflow-y: auto; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.search-flash { animation: spFlash 2.2s ease-out; border-radius: 8px; }
@keyframes spFlash { 0%, 40% { background: #fdf0c8; } 100% { background: transparent; } }
@media (min-width: 769px) { .search-page { display: none !important; } }
@media (max-width: 768px) { .search-pop { display: none !important; } }

/* ============================================================
   采购单与应付（z108）
   ============================================================ */
.pc-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pc-metric { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); min-width: 140px; }
.pc-metric i { font-style: normal; font-size: 12px; color: var(--muted); }
.pc-metric b { font-size: 17px; font-weight: 600; color: var(--ink); }
.pc-metric.pc-alert { border-color: var(--red); background: #fbecec; }
.pc-metric.pc-alert b { color: var(--red); }
.pc-left { font-style: normal; font-size: 12px; color: var(--muted); }
.pc-overdue { color: var(--red); font-weight: 600; }
.pc-void-lb { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
/* z119：避开 .form-row label{flex:1;min-width:130px}——否则「显示已作废」被拉成弹性项，窄窗里文字竖排一字一行 */
.form-row label.pc-void-lb { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
/* z119：同上，勾选框别吃 .form-row label input{width:100%}——width:100% 会把 13px 的框拉成整行宽，文字被挤竖排溢出 */
.form-row label.pc-void-lb input { width: 13px; height: 13px; flex: 0 0 auto; margin: 0; accent-color: var(--brand); }
.pc-box { width: min(900px, 100%); }   /* z116：明细 9 列 + 照片格，780px 排不下，放宽到 900 */
.pc-sec-hd { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; flex-wrap: wrap; }
.pc-sec-hd b { font-size: 13px; color: var(--gold-deep); }
.pc-items { display: flex; flex-direction: column; gap: 8px; }
.pc-item-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* z113：input 默认 min-width:auto（≈20 字符）会把 flex 固定宽格子撑大——明细行必须显式归零，
   否则品名/规格/数量…全被撑宽、一行放不下换行（销售单 z113 布局回归的根因）。 */
.pc-item-row input { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; min-width: 0; }
.pc-item-row .pc-i-del { padding: 6px 9px; }
.pc-total-lb { font-size: 13px; color: var(--muted); }
.pc-total-lb b { font-size: 16px; color: var(--ink); }
.pc-pay-info { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f3; font-size: 13px; line-height: 1.8; }

/* ---------- E3（z115）：库存流水列表 ---------- */

.mv-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 10px; }

.mv-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--line); background: var(--panel); }

.mv-row:last-child { border-bottom: 0; }

.mv-date { flex: 0 0 108px; color: var(--muted); font-size: 12px; white-space: nowrap; }

.mv-biz { flex: 0 0 118px; font-weight: 600; white-space: nowrap; }

.mv-q { flex: 0 0 84px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.mv-in { color: var(--green); }

.mv-out { color: var(--red); }

.mv-no { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--gold-deep); }

.mv-rm { flex: 1 1 auto; color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {

  .mv-row { flex-wrap: wrap; gap: 4px 10px; }

  .mv-date { flex-basis: 100%; }

  .mv-q { margin-left: auto; }
}

/* ============================================================
   z112 · 销售单：品名选产品（读商品资料）+ 主图点击放大
   z116 · 明细按图2重排：品名格固定窄宽（不再被拉长）· 单位改下拉 · 净含量带 g 后缀 ·
          规格拆「克重 g × 袋数 袋」两个小框 · 行尾照片格；列头与行内格子同宽对齐
   ============================================================ */
/* 品名一格的容器：输入框 + 下拉候选。z116：改固定窄宽——以前 flex:1 会吞掉整行剩余宽度，
   品名输入框被拉到半屏宽（用户截图反馈「品名太长」），现在宽度收敛、后面各列才排得开。 */
.sa-name-wrap { flex: 0 0 150px; min-width: 90px; position: relative; display: flex; align-items: center; gap: 5px; }
/* z119：品名/备注改弹性撑满弹窗宽度（销售 10 列 / 采购 8 列都吃满，右侧不再留白），其余固定窄宽 */
.sa-name-wrap { flex: 1 1 180px; min-width: 0; }
.sa-name-wrap .sa-i-name { flex: 1 1 auto; min-width: 0; }
.pc-i-name { flex: 1 1 180px; min-width: 0; }
/* 明细列头（z119）：与行内格子同一套 flex 宽，肉眼对得上 */
.pc-item-hd { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; padding: 0 2px 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pc-item-hd .hd-name { flex: 1 1 180px; }
.pc-item-hd .hd-qty { flex: 0 0 64px; }
.pc-item-hd .hd-unit { flex: 0 0 72px; }
.pc-item-hd .hd-spec { flex: 0 0 150px; }   /* z119：仅销售明细保留规格列（采购行已去掉） */
.pc-item-hd .hd-price { flex: 0 0 70px; }
.pc-item-hd .hd-amt { flex: 0 0 84px; }
.pc-item-hd .hd-remark { flex: 1 1 100px; }
.pc-item-hd .hd-photo { flex: 0 0 34px; text-align: center; }
.pc-item-hd .hd-del { flex: 0 0 30px; }
/* 明细行固定窄宽（z119）：数量·单位·净含量·规格·单价·金额·照片·× */
.sa-i-qty, .pc-i-qty { flex: 0 0 64px; }
.sa-i-unit, .pc-i-unit { flex: 0 0 72px; }
.sa-i-price, .pc-i-price { flex: 0 0 70px; }
.sa-i-amt, .pc-i-amt { flex: 0 0 84px; }
.sa-i-remark, .pc-i-remark { flex: 1 1 100px; min-width: 0; }
/* 净含量 / 规格：输入框 + 后缀小字（g、g × 袋）合成一格 */
.pc-item-row select { padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; min-width: 0; background: #fff; }
.pc-item-row select.ph { color: var(--muted); }

/* z170：销售明细「批次」列（与列头同宽对齐） */
.pc-item-hd .hd-batch { flex: 0 0 130px; }
.sa-i-batch { flex: 0 0 130px; }
/* z264：规格恢复可见（品名与批号之间）；PC 栅格下由 grid-template-columns 第 2 列控宽，此处仅 flex 回退 */
.sa-i-spec { flex: 0 0 96px; }

/* z180：采购 / 销售明细改为栅格——列头与行内同一模板，对齐精确（不再靠 flex 巧合）
   采购：品名 · 批号 · 数量 · 单位 · 净含量 · 单价 · 金额 · 备注 · ×
   销售：品名 · 批号 · 数量 · 单位 · 净含量 · 单价 · 金额 · 备注 · 照片 · × */
.pc-item-hd.pc-hd-purchase, .pc-item-row.pc-row-purchase {
  display: grid;
  grid-template-columns: minmax(140px, 1.5fr) 112px 64px 56px 76px 72px 86px minmax(90px, 1fr) 30px;
  gap: 6px; align-items: center;
}
.pc-item-hd.pc-hd-sale, .pc-item-row.pc-row-sale {
  display: grid;
  /* z264：10 列 → 品名·规格·批号·数量·单位·单价·金额·备注·照片·×；宽度压到 900px 容器内不溢出 */
  grid-template-columns: minmax(120px, 1.7fr) 96px 112px 64px 72px 132px 86px minmax(80px, 1fr) 34px 30px;
  gap: 6px; align-items: center;
}
.pc-row-purchase > input, .pc-row-purchase > select,
.pc-row-sale > input, .pc-row-sale > select { width: 100%; }
.pc-row-purchase .pc-name-wrap, .pc-row-sale .sa-name-wrap { width: 100%; }
.pc-row-sale .sa-price-wrap { width: 100%; }
.pc-row-sale .sa-aff { width: 100%; }
/* z262b + z264（2026-11-12）：窄屏销售明细回归「简洁」——仍然只 3 行：
   ① 品名·规格·批号（三列）  ② 数量·单位·单价·金额（同一行）  ③ 备注·照片·删除。
   z264 在第 ① 行内插规格，不新增行；12 列栅格按 5/4/3 分配。
   z266（2026-11-12）：规格与批号宽度对换，改 5/3/4（≈144/84/114px @390px）——规格只装 250g 这类净含量，批号要装 6 位批号/下拉，需要更宽。
   PC 端 10 列表格 / 采购行不受影响。
   另收起窄屏列头（.pc-hd-sale 的 display:grid 特异性高于通用 .pc-item-hd{display:none}，必须单独压）。
   z264：断点由 720px 放宽到 960px——PC 10 列栅格最小约 880px，视口 <~960px 时容器放不下会横向溢出
   （实测 768/860/900px rowScroll 880 > client 730/822/862），平板 / 小窗口继续沿用 3 行布局；
   ≥961px 才用 PC 表格（实测 1024 / 1280px 零溢出）。 */
@media (max-width: 960px) {
  .pc-item-hd.pc-hd-sale { display: none; }
  .pc-item-row.pc-row-sale {
    display: grid; grid-template-columns: repeat(12, 1fr);
    column-gap: 5px; row-gap: 8px; align-items: center;
  }
  .pc-row-sale > * { min-width: 0; }
  .pc-row-sale .sa-name-wrap { grid-column: span 5; }
  .pc-row-sale .sa-i-spec    { grid-column: span 3; }
  .pc-row-sale .sa-i-batch   { grid-column: span 4; }
  .pc-row-sale .sa-i-qty,
  .pc-row-sale .sa-i-unit,
  .pc-row-sale .sa-price-wrap,
  .pc-row-sale .sa-i-amt     { grid-column: span 3; }
  .pc-row-sale .sa-i-remark  { grid-column: span 8; }
  .pc-row-sale .sa-i-photo,
  .pc-row-sale .pc-i-del     { grid-column: span 2; width: 100%; }
  /* 单价格内的「价格来源」小标签窄屏隐藏，单价框占满该格 */
  .pc-row-sale .sa-price-wrap .sa-i-price { flex: 1 1 auto; width: 100%; }
  .pc-row-sale .sa-psrc { display: none; }
}

/* z170：存货档案「批次与保质期」页签 */
.bs-batch-import, .bs-batch-manual, .bs-batch-list-sec { margin-top: 10px; }
.bs-batch-imp-row { display: flex; gap: 6px; margin: 6px 0; }
.bs-batch-imp-row input { flex: 1 1 auto; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.bs-batch-imp-preview { margin-top: 4px; }
.bs-batch-imp-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fafbfc; }
.bs-imp-ok { font-size: 12px; color: #1a7f37; margin: 6px 0 2px; }
.bs-imp-meta { font-size: 12px; color: var(--muted); margin: 4px 0; }
.bs-batch-mn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0; }
.bs-batch-mn-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.bs-batch-mn-grid input { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.bs-batch-mn-act { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.bs-batch-mn-tip { font-size: 12px; color: var(--muted); }
.bs-batch-list { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.bs-batch-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.6fr 0.8fr 0.7fr 1.6fr 30px; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }   /* z181：去掉库房列，8 列 */
.bs-batch-row .bs-b-no { font-weight: 600; }
.bs-batch-row .bs-b-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.bs-batch-row.exp-expired { border-color: #e5484d; background: #fff0f0; }
.bs-batch-row.exp-near { border-color: #f5a623; background: #fff8ec; }
.bs-batch-row.exp-expired .bs-b-state { color: #e5484d; }
.bs-batch-row.exp-near .bs-b-state { color: #d98200; }
.bs-batch-row .bs-b-state.exp-ok { color: #1a7f37; }

/* z170：商品详情批次表（先到期先出 + 效期着色） */
.im-batch-sec { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.im-batch-hd { font-weight: 600; margin-bottom: 6px; }
.im-batch-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.im-batch-tbl th, .im-batch-tbl td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; }
.im-batch-tbl th { background: #f5f6f8; }
.im-batch-tbl tr.exp-expired { background: #fff0f0; }
.im-batch-tbl tr.exp-near { background: #fff8ec; }
.im-batch-tbl tr.exp-expired td.exp-expired { color: #e5484d; font-weight: 600; }
.im-batch-tbl tr.exp-near td.exp-near { color: #d98200; font-weight: 600; }
.sa-aff, .sa-spec-wrap { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.sa-aff { flex: 0 0 76px; }
.sa-aff .sa-i-net, .sa-aff .pc-i-net { flex: 0 0 54px; }
.sa-spec-wrap { flex: 0 0 150px; }
.sa-spec-wrap .sa-i-gw, .sa-spec-wrap .pc-i-gw,
.sa-spec-wrap .sa-i-bags, .sa-spec-wrap .pc-i-bags { flex: 0 0 40px; }
.sa-aff i, .sa-spec-wrap i { font-style: normal; font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.sa-spec-wrap b { font-weight: 400; font-size: 12px; color: var(--muted); flex: 0 0 auto; }
/* 行尾照片格（z116）：虚线「+」占位；选中产品后显示主图，点击放大 */
.sa-i-photo { flex: 0 0 34px; width: 34px; height: 34px; border: 1px dashed var(--line); border-radius: 8px; background: #fff center / cover no-repeat; color: var(--muted); font-size: 15px; line-height: 1; cursor: zoom-in; padding: 0; }
.sa-i-photo.has { border-style: solid; color: transparent; }
/* E7：单价格 = 输入框 + 价格来源小标签（商品级等级价/客户独立折扣/店整体折扣）。
   包成合成格（同 .sa-aff 模式），单价框仍是 70px，标签吃剩余宽度；列头同宽对齐。 */
.pc-item-row .sa-price-wrap { flex: 0 0 148px; display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pc-item-row .sa-price-wrap .sa-i-price { flex: 0 0 70px; }
.sa-psrc { font-style: normal; font-size: 11px; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
/* z157：档案里没设价 → 单价框留空，来源标签明说「档案未设价」（暖色，不刺眼） */
.sa-psrc.warn { color: #b4761f; font-weight: 600; }
.pc-item-hd .hd-price { flex: 0 0 148px; }
/* z116：窄屏列头会挤成一串——收起（行内 placeholder 本身就是标签，格子由 flex-wrap 兜底换行）。
   必须放在上面 .pc-item-hd 基础规则之后，否则同优先级会被 display:flex 反盖回去。 */
@media (max-width: 720px) {
  .pc-item-hd { display: none; }
}
/* z114：销售单客户 / 采购单供应商——可输入 + 库内自动匹配 */
.sa-cust-wrap, .pc-sup-wrap { position: relative; display: block; }
.sa-cust-wrap .sa-dd, .pc-sup-wrap .sa-dd { min-width: 100%; }
/* z114：应收 / 应付 视图切换（segmented） */
.seg-view { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg-view button { border: none; background: transparent; padding: 7px 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg-view button.on { background: var(--brand, #2f6b4f); color: #fff; font-weight: 600; }
.seg-view .seg-cnt { font-style: normal; margin-left: 4px; font-size: 12px; opacity: .85; }
.seg-view .seg-cnt:empty { display: none; }
/* z114：「待完善」角标——自动入库的客户/供应商缺联系信息，提醒补全 */
.todo-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #fdf3e2; color: #a2650f; font-size: 11px; font-weight: 600; line-height: 1.5; vertical-align: middle; cursor: help; white-space: nowrap; }
/* z114：扫码弹窗 · 长期上传码区 */
.scan-long { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.scan-long-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.scan-long-hd b { color: var(--ink); }
.scan-long-hd #scan-long-cnt { color: var(--muted); font-size: 12px; flex: 1; }
.scan-long-hd #scan-long-clear { padding: 2px 8px; font-size: 12px; }
.scan-qr.sm { width: 150px; min-height: 150px; margin: 0 auto; }
.scan-qr.sm svg { width: 150px; height: 150px; }
.scan-long-tip { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.scan-long-tip b { color: var(--brand, #2f6b4f); }
/* 已选产品的主图（z116 起显示在行尾「照片」格，见 .sa-i-photo） */
/* 产品候选下拉 */
.sa-dd { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 260px; max-width: 340px; max-height: 264px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.14); display: none; }
.sa-dd.open { display: block; }
/* z157：采购单品名一格的容器（复用 .sa-dd 候选框，宽度与品名列头对齐） */
.pc-name-wrap { position: relative; flex: 1 1 180px; min-width: 0; display: flex; align-items: center; }
.pc-name-wrap .pc-i-name { flex: 1 1 auto; min-width: 0; }
.pc-name-wrap .pc-dd { min-width: 300px; max-width: 380px; }
/* 候选条上的「商品 / 物料」小标签——两条线共用一个候选池，靠它区分 */
.pc-dd-tag { font-style: normal; font-size: 11px; font-weight: 400; line-height: 1.5; padding: 0 5px; margin-left: 6px; border-radius: 5px; vertical-align: middle; white-space: nowrap; }
.pc-dd-tag.goods { background: #e9f1ec; color: #2f6b52; }
.pc-dd-tag.material { background: #fdf3e2; color: #a2650f; }
.sa-dd-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; }
.sa-dd-item:hover, .sa-dd-item.cur { background: var(--brand-soft, #eef5f0); }
.sa-dd-item img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); background: #fff; flex: 0 0 34px; }
/* z113：下拉小图可点（点图放大，不选中产品） */
.sa-dd-img { display: inline-flex; flex: 0 0 34px; cursor: zoom-in; }
.sa-dd-item img.sa-dd-nopic { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.sa-dd-item .nm { font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.sa-dd-item .sp { font-size: 12px; color: var(--muted); line-height: 1.3; }
/* 主图放大浮层：点图打开，再点任意处关闭归位 */
.sa-imglb { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 999; background: rgba(15, 24, 19, .78); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.sa-imglb.open { display: flex; }
.sa-imglb img { max-width: min(86vw, 860px); max-height: 86vh; border-radius: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.4); background: #fff; }

/* ==========================================================================
   z107 · 提货卡云系统管理后台（搬迁自官网 mall-admin-q7k2，作用域 .gt-root 隔离）
   ========================================================================== */
/* z107：官网提货卡系统（mall-admin-q7k2）管理后台 CSS 搬迁；全部规则作用域 .gt-root 内，与工作台样式隔离 */
.gt-root h1{ font-size: 18px; font-weight: 600; padding: 4px 0 14px; }

  /* 登录 */
.gt-root .login{ max-width: 340px; margin: 90px auto; }
.gt-root .login .card{ background:#fff; border:1px solid #e3eae5; border-radius:12px; padding: 22px; box-shadow:0 2px 8px rgba(23,45,35,.06); }
.gt-root .login input{ width: 100%; margin-bottom: 10px; }
.gt-root .login .btn{ width: 100%; }

  /* 布局 */

.gt-root .panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.gt-root .panel-head h2{ font-size: 17px; font-weight: 600; color: #1f3a2c; }

.gt-root .card{ background: #fff; border: 1px solid #e3eae5; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(23,45,35,.05); }
.gt-root .card h3{ font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #1f5c41; }
  /* 规格表单展开时滚动定位 + 高亮闪烁，避免用户以为按钮没反应 */
.gt-root .spec-flash{ animation: specFlash 1.4s ease-out 1; }
  @keyframes specFlash {
    0%   { box-shadow: 0 0 0 4px rgba(31,92,65,.45); border-color: #1f5c41; }
    70%  { box-shadow: 0 0 0 4px rgba(31,92,65,.45); border-color: #1f5c41; }
    100% { box-shadow: 0 1px 3px rgba(23,45,35,.05); }
  }
  @media (prefers-reduced-motion: reduce) {
.gt-root .spec-flash{ animation: none; box-shadow: 0 0 0 3px rgba(31,92,65,.35); }
  }

.gt-root .btn{ display: inline-block; border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; cursor: pointer; background: #1f5c41; color: #fff; }
.gt-root .btn:hover{ background: #17452f; }
.gt-root .btn-ghost{ background: #fff; color: #1f5c41; border: 1px solid #c9d4cd; }
.gt-root .btn-ghost:hover{ background: #eef4f0; }
.gt-root .btn-sm{ padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.gt-root .btn-warn{ background: #b8472f; }
.gt-root .btn-warn:hover{ background: #9c3a25; }
.gt-root .btn:disabled{ opacity: .45; cursor: not-allowed; }
.gt-root .link{ color: #1f5c41; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.gt-root .row{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.gt-root input,.gt-root select,.gt-root textarea{ font-family: inherit; font-size: 13px; border: 1px solid #d5ddd7; border-radius: 7px; padding: 7px 10px; background: #fff; color: #24312a; outline: none; }
.gt-root input[type=date]{ padding: 6px 8px; }
.gt-root input:focus,.gt-root select:focus,.gt-root textarea:focus{ border-color: #1f5c41; }
.gt-root label.fld{ font-size: 12px; color: #6f7d74; margin-right: 4px; }

  /* 筛选条 / 批量条 */
.gt-root .filters{ background: #f7faf8; border: 1px dashed #cfded5; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
  /* 筛选字段网格：label 与控件同组不分离，整行对齐 */
.gt-root .filters .fgrid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; align-items: center; }
  @media (max-width: 980px) { .filters .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 600px) { .filters .fgrid { grid-template-columns: minmax(0, 1fr); } }
.gt-root .filters .fg{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.gt-root .filters .fg label.fld{ margin-right: 0; flex: none; }
.gt-root .filters .fg input,.gt-root .filters .fg select{ min-width: 0; flex: 1; }
.gt-root .filters .fg input[style*="width"],.gt-root .filters .fg select[style*="width"]{ flex: none; }
.gt-root .filters .fg-act{ grid-column: 1 / -1; justify-content: flex-end; margin-top: 2px; }
.gt-root .filters .fg-act .btn{ min-width: 72px; }
.gt-root .bulkbar{ background: #fdfaf1; border: 1px solid #ecdfbe; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.gt-root .bulkbar .bb-row{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gt-root .bulkbar .bb-row + .bb-row{ margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ecdfbe; }
.gt-root .bulkbar .bb-grp{ display: inline-flex; align-items: center; gap: 5px; }
.gt-root .bulkbar .bb-grp label.fld{ margin-right: 0; }
.gt-root .bulkbar .bb-state{ margin-left: auto; }
.gt-root .bulkbar .bb-tools{ justify-content: flex-end; }
.gt-root .bulkbar .sel-count{ font-weight: 600; color: #8a6d2a; font-size: 12px; margin-right: 4px; }
.gt-root .bulkbar .bb-cap{ font-size: 11px; color: #a08b4f; background: #f5ecd2; border: 1px solid #ecdfbe; border-radius: 6px; padding: 3px 8px; flex-shrink: 0; line-height: 1.4; }
.gt-root .bulkbar .bb-sep{ width: 1px; height: 22px; background: #e5d8b6; margin: 0 4px; flex-shrink: 0; }
.gt-root .bulkbar .bb-hint{ margin-left: auto; font-size: 11px; }
.gt-root .bulkbar input{ padding: 4px 8px; font-size: 12px; }
.gt-root .bulkbar select{ padding: 5px 8px; font-size: 12px; }

.gt-root table{ width: 100%; border-collapse: collapse; font-size: 13px; }
.gt-root th{ text-align: left; color: #6f7d74; font-weight: 500; padding: 8px 8px; border-bottom: 1px solid #e3eae5; white-space: nowrap; background: #fbfcfb; }
.gt-root td{ padding: 8px; border-bottom: 1px solid #f0f3f1; vertical-align: middle; }
.gt-root tr:hover td{ background: #f8faf9; }
.gt-root td.mono,.gt-root th.mono,.gt-root .mono{ font-family: "SF Mono", Consolas, monospace; }
.gt-root col.c-chk{ width: 34px; } col.c-idx { width: 42px; } col.c-op { width: 130px; }

.gt-root .tag{ display: inline-block; font-size: 11px; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.gt-root .tag-unused{ background: #eef2ee; color: #6f7d74; }
.gt-root .tag-activated{ background: #eaf3ef; color: #1f5c41; }
.gt-root .tag-unactivated{ background: #eceff2; color: #55636f; }
.gt-root .tag-completed{ background: #f3efe2; color: #8a6d2a; }
.gt-root .tag-void{ background: #f3e3e0; color: #a33b2e; }
.gt-root .tag-frozen{ background: #e5edf7; color: #2d5a8a; }
.gt-root .tag-expired{ background: #f0ece2; color: #7a6a45; }
.gt-root .tag-off{ background: #efe9f3; color: #6b4a86; }
.gt-root .tag-pending{ background: #fdf6e7; color: #a4761d; }
.gt-root .tag-shipped{ background: #e8f1ec; color: #1f5c41; }
.gt-root .tag-signed{ background: #e3f0e8; color: #17603c; }
.gt-root .act-mode.active{ background: #1f5c41; color: #fff; border-color: #1f5c41; }
  /* 组合卡：货品选择器 */
.gt-root .pk-details{ margin-top: 8px; }
.gt-root .pk-details > summary{ cursor: pointer; font-size: 13px; color: #1f5c41; font-weight: 600; user-select: none; }
.gt-root .pk-details > summary .hint{ font-weight: 400; }
.gt-root .pk-wrap{ border: 1px solid #e3e7e4; border-radius: 10px; padding: 10px 12px; margin-top: 8px; max-width: 760px; background: #fbfcfb; }
.gt-root .pk-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.gt-root .pk-count{ font-size: 13px; color: #1f5c41; font-weight: 600; }
.gt-root .pk-actions button{ background: none; border: none; color: #1f5c41; font-size: 12px; cursor: pointer; padding: 2px 4px; text-decoration: underline; }
.gt-root .pk-group{ margin-top: 8px; }
.gt-root .pk-ghead{ display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #55636f; padding: 3px 0; border-bottom: 1px dashed #dfe5e1; }
.gt-root .pk-ghead em{ font-style: normal; color: #98a09a; }
.gt-root .pk-gall{ background: none; border: none; color: #1f5c41; font-size: 12px; cursor: pointer; padding: 1px 4px; }
.gt-root .pk-items{ display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 2px 10px; margin-top: 5px; }
.gt-root .pk-item{ display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.gt-root .pk-item:hover{ background: #f1f5f2; }
.gt-root .pk-item.on{ background: rgba(31, 92, 65, .07); }
.gt-root .pk-item input{ flex: none; margin: 0; }
.gt-root .pk-thumb{ width: 34px; height: 34px; border-radius: 6px; overflow: hidden; flex: none; background: #edf1ee; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #8a937c; }
.gt-root .pk-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.gt-root .pk-txt{ display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.gt-root .pk-txt b{ font-weight: 500; }
.gt-root .pk-txt i{ font-style: normal; font-size: 11px; color: #98a09a; }
.gt-root .tag-combo{ display: inline-block; font-size: 11px; color: #8a6d1f; background: rgba(184, 147, 61, .12); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: middle; }

.gt-root .stats{ display: flex; gap: 10px; flex-wrap: wrap; }
.gt-root .stat{ flex: 1; min-width: 96px; background: #fbfcfb; border: 1px solid #e3eae5; border-radius: 10px; padding: 12px 14px; }
.gt-root .stat .n{ font-size: 22px; font-weight: 600; color: #1f5c41; }
.gt-root .stat .t{ font-size: 12px; color: #6f7d74; margin-top: 3px; }
.gt-root .stat.warn{ border-color: #e8c98a; background: #fdf6e7; }
.gt-root .stat.warn .n{ color: #a4761d; }
  /* 概览统计卡可点：悬浮描边提示 */
.gt-root .stat.clickable{ cursor: pointer; transition: border-color .15s, background .15s; }
.gt-root .stat.clickable:hover{ border-color: #1f5c41; background: #f1f7f3; }
.gt-root .stat.clickable:active{ background: #e8f1eb; }
  /* 物流轨迹时间线（PC 后台弹窗） */
.gt-root .lg-line{ position: relative; margin: 4px 0 0; padding: 0 0 2px 18px; border-left: 2px solid #dfe7e1; }
.gt-root .lg-item{ position: relative; padding: 7px 0; }
.gt-root .lg-item::before{ content: ''; position: absolute; left: -23px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #b9c7bf; }
.gt-root .lg-item:first-child::before{ background: #1f5c41; }
.gt-root .lg-item .t{ font-size: 12px; color: #8a978e; }
.gt-root .lg-item .d{ font-size: 13px; color: #33463c; line-height: 1.5; margin-top: 1px; }
.gt-root .lg-head{ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gt-root .lg-head .co{ font-size: 15px; font-weight: 600; color: #1f5c41; }
.gt-root .modal-wide{ width: min(960px, 94vw); }
  /* 批量发货 */
.gt-root .bs-tip{ font-size: 12px; color: #8a978e; line-height: 1.6; }
.gt-root .bs-tip b{ color: #33463c; }
.gt-root .bs-tip code{ background: #f2f5f3; border-radius: 4px; padding: 1px 5px; font-size: 11px; color: #1f5c41; }
.gt-root .bs-prev{ max-height: 300px; overflow: auto; border: 1px solid #e6ece8; border-radius: 10px; }
.gt-root .bs-prev table{ width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gt-root .bs-prev th{ position: sticky; top: 0; background: #f4f7f5; text-align: left; padding: 7px 8px; border-bottom: 1px solid #e6ece8; white-space: nowrap; color: #33463c; }
.gt-root .bs-prev td{ padding: 6px 8px; border-bottom: 1px solid #f0f4f1; vertical-align: top; }
.gt-root .bs-prev tr:last-child td{ border-bottom: none; }
.gt-root .bs-prev .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.gt-root .bs-st{ display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 11.5px; white-space: nowrap; }
.gt-root .bs-st.ok{ background: #e8f3ec; color: #1f5c41; }
.gt-root .bs-st.warn{ background: #fdf3e2; color: #a8680a; }
.gt-root .bs-st.err{ background: #fbe9e7; color: #b3432b; }
.gt-root .bs-sub{ color: #8a978e; font-size: 11.5px; margin-top: 2px; }
.gt-root .bs-go{ background: #1f5c41; }
  /* 规格按选择模式分组（对齐老系统：一选一 / 一选多 / 多选多） */
.gt-root .spec-group td{ background: #eef4f0; font-weight: 600; color: #1f3a2c; font-size: 12.5px; padding: 7px 10px; border-top: 1px solid #dce7e0; border-bottom: 1px solid #dce7e0; }
.gt-root .spec-group .g-n{ color: #1f5c41; font-weight: 700; }
.gt-root .spec-group .g-d{ font-weight: 400; color: #6c7d72; margin-left: 8px; }
.gt-root .spec-mode{ display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; white-space: nowrap; }
.gt-root .spec-mode.m-one{ background: #e8f3ec; color: #1f5c41; }
.gt-root .spec-mode.m-many{ background: #e9effa; color: #2a4764; }
.gt-root .spec-mode.m-multi{ background: #fdf3e2; color: #a8680a; }
.gt-root .mode-legend{ display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #33463c; margin: 2px 0 10px; }
.gt-root .mode-legend .spec-mode{ cursor: default; }
.gt-root .lg-head .no{ font-size: 13px; color: #4d5c53; }
.gt-root .lg-empty{ color: #8a978e; font-size: 13px; padding: 14px 0; }
.gt-root .alert-ship{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fdf6e7; border: 1px solid #e8c98a; border-left: 4px solid #d9902a; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; color: #7a5a17; font-size: 14px; }
.gt-root .alert-ship b{ font-size: 18px; color: #a4761d; }

.gt-root .tabs{ display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid #e3eae5; }
.gt-root .tabs button{ background: transparent; border: none; padding: 9px 14px; cursor: pointer; font-size: 13px; color: #5d6b62; border-bottom: 2px solid transparent; }
.gt-root .tabs button.active{ color: #1f5c41; font-weight: 600; border-bottom-color: #1f5c41; }

.gt-root .ship-form{ display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gt-root .ship-form input{ width: 120px; padding: 4px 8px; font-size: 12px; }
/* z139：改单号弹窗表单（无 .gt-root 前缀：#modal 为全站通用弹层，无前缀写法内外都生效） */
.es-form label{ display: block; margin: 12px 0 5px; font-size: 13px; color: #5a6b61; }
.es-form select,.es-form input{ width: 100%; font-size: 16px; padding: 9px 10px; border: 1px solid #d5ddd7; border-radius: 7px; font-family: inherit; background: #fff; color: #24312a; }
.es-form select:focus,.es-form input:focus{ border-color: #1f5c41; outline: none; }
.es-foot{ display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.es-foot .btn{ padding: 10px 22px; font-size: 14px; }
.gt-root .hint{ color: #8a968d; font-size: 12px; margin-top: 8px; line-height: 1.6; }
.gt-root .warn{ color: #a33b2e; font-size: 12px; margin-top: 8px; line-height: 1.6; }
.gt-root textarea{ width: 100%; min-height: 140px; resize: vertical; font-family: "SF Mono", Consolas, monospace; font-size: 12px; }
.gt-root .pag{ display:flex; align-items:center; gap:10px; margin-top:10px; font-size:12px; color:#6f7d74; }

.gt-root .toast{ position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); background: #24312a; color: #fff; padding: 9px 20px; border-radius: 999px; font-size: 13px; transition: opacity .25s; opacity: 1; z-index: 200; max-width: 80vw; }
.gt-root .toast.hidden{ opacity: 0; pointer-events: none; }
.gt-root .toast.err{ background: #a33b2e; }

.gt-root .gen-result table td,.gt-root .gen-result table th{ font-family: "SF Mono", Consolas, monospace; font-size: 12px; }

  /* 弹层 */
.gt-root .mask{ position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(24,40,32,.45); z-index: 150; }
.gt-root .modal{ display: block; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); max-height: 86vh; overflow: auto;
           background: #fff; border-radius: 14px; z-index: 151; box-shadow: 0 12px 40px rgba(20,35,27,.25); }  /* z135：display:block 压掉外层 .modal 的 flex，防止标题与正文排成一行两列 */
.gt-root .lg-foot{ text-align: center; margin-top: 16px; }
.gt-root .lg-foot button{ min-width: 120px; padding: 9px 22px; }
.gt-root .modal-head{ display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eef2ef; }
.gt-root .modal-head span{ font-size: 15px; font-weight: 600; color: #1f3a2c; }
.gt-root .modal-head button{ background: none; border: none; font-size: 20px; line-height: 1; color: #8a968d; cursor: pointer; }
.gt-root .modal-body{ padding: 16px 18px 20px; }
.gt-root .modal-body .row{ margin-bottom: 10px; }
.gt-root .modal-body label.fld{ display: inline-block; min-width: 62px; }
.gt-root .qr-box{ text-align: center; }
.gt-root .qr-box svg{ width: 260px; height: 260px; }
.gt-root .thumb{ width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid #e3eae5; background: #fafbfa; display: block; }

  /* 规格编辑：茶品照片上传区 */
.gt-root .opt-photo-wrap{ margin-top: 10px; padding: 10px 12px 12px; border: 1px solid #e3eae5; border-radius: 10px; background: #fafbf9; }
.gt-root .opt-photo-head{ display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; color: #2b3a32; margin-bottom: 8px; }
.gt-root .opt-photo-list{ display: flex; flex-direction: column; gap: 8px; }
.gt-root .op-row{ display: flex; align-items: center; gap: 10px; padding: 8px; background: #fff; border: 1px solid #e8eeea; border-radius: 8px; }
.gt-root .op-thumb{ width: 54px; height: 54px; border-radius: 8px; overflow: hidden; flex: none; background: #f2f5f2; border: 1px solid #e3eae5; display: flex; align-items: center; justify-content: center; color: #b6c3ba; font-size: 12px; }
.gt-root .op-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.gt-root .op-meta{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gt-root .op-meta .n{ font-size: 13.5px; color: #22302a; font-weight: 500; }
.gt-root .op-meta .d{ font-size: 12px; color: #8b978f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-root .op-meta .u{ font-size: 11.5px; color: #6d7d73; font-family: "SF Mono", Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-root .op-act{ display: flex; gap: 6px; flex: none; }
.gt-root .op-empty{ font-size: 12.5px; color: #98a49c; padding: 4px 2px; }

  @media (max-width: 720px) {
  }

/* ---------- z107 补充：工作台壳内的页签条 / 顶栏 ---------- */
.gt-root .gt-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; border-bottom: 1px solid #e3eae5; padding-bottom: 0; }
.gt-root .gt-tabs button { background: transparent; border: none; padding: 9px 14px; cursor: pointer; font-size: 13px; color: #5d6b62; border-bottom: 2px solid transparent; }
.gt-root .gt-tabs button:hover { color: #1f5c41; }
.gt-root .gt-tabs button.active { color: #1f5c41; font-weight: 600; border-bottom-color: #1f5c41; }
.gt-root .gt-tabs .gt-who { margin-left: auto; font-size: 12px; color: #8a968d; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-root .gt-tabs .gt-logout { font-size: 12px; color: #6f7d74; border: 1px solid #cfded5; border-radius: 6px; padding: 4px 12px; }
.gt-root .gt-tabs .gt-logout:hover { color: #a33b2e; border-color: #e0b8b0; }
.gt-root .gt-main { min-width: 0; }
.gt-root .login { max-width: 340px; margin: 48px auto; }

/* ---- z150：需求卡收款状态徽标 + 「未收款 · 转应收」按钮 ---- */
.fb-pay-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 6px 0 2px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; line-height: 1.4;
  background: #fdecea; color: #b3261e; border: 1px solid #f6c9c5;
}
.fb-pay-badge.part { background: #fff7e6; color: #9a6b00; border-color: #f0ddb0; }
.fb-pay-badge.ok { background: #e9f5ee; color: #1e7a46; border-color: #c4e5d2; }
.gpd-acts .fb-toar {
  background: #fff; color: #b3261e; border: 1px solid #e5b5b1;
}
.gpd-acts .fb-toar:hover { background: #fdecea; }

/* ============================================================
   z158：对外销售单（A4 打印 / 另存 PDF 给客户）
   屏幕上是 794px 宽的白纸预览，打印时只出这张纸，界面其余部分不进纸
   ============================================================ */
.spt-box { width: 980px; max-width: 96vw; }
.spt-body { background: #eef1ef; padding: 16px; overflow: auto; max-height: calc(100vh - 190px); }
.spt-pages { display: block; }
.spt-sheet {
  width: 794px; margin: 0 auto 16px; background: #fff; color: #16211f;
  padding: 40px 38px 28px; box-shadow: 0 2px 16px rgba(0,0,0,.16);
  font-size: 12px; line-height: 1.55; page-break-after: always; break-after: page;
}
.spt-sheet.spt-last { page-break-after: auto; break-after: auto; margin-bottom: 0; }
.spt-cont { margin-top: 10px; font-size: 11.5px; color: #6b7a76; }
.spt-loading { padding: 70px 0; text-align: center; color: var(--muted); font-size: 13px; }
/* z161：模板切换（经销商版 / 零售版） */
.spt-tpls { display: inline-flex; gap: 4px; margin-left: 14px; }
.spt-tab { border: 1px solid var(--line); background: #fff; color: #46554f; border-radius: 6px;
  padding: 4px 12px; font-size: 12.5px; cursor: pointer; }
.spt-tab:hover { border-color: var(--brand, #2f7a63); color: var(--brand, #2f7a63); }
.spt-tab.on { background: var(--brand, #2f7a63); border-color: var(--brand, #2f7a63); color: #fff; font-weight: 600; }
.spt-tpl-tip { margin-left: auto; font-size: 12px; color: var(--muted); }
.spt-hd { display: flex; align-items: flex-start; justify-content: space-between; }
.spt-brand { display: flex; align-items: center; gap: 8px; width: 200px; flex: 0 0 200px; }
.spt-logo { width: 158px; height: auto; display: block; aspect-ratio: 533 / 222; }
.spt-co { flex: 1 1 auto; text-align: center; }
.spt-co-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.spt-doc-title { font-size: 21px; font-weight: 700; letter-spacing: 6px; margin-top: 5px; }
.spt-hd-right { width: 170px; flex: 0 0 170px; text-align: right; font-size: 11.5px; color: #6b7a76; padding-top: 6px; }
.spt-meta { display: flex; gap: 18px; align-items: baseline; margin: 12px 0 7px; font-size: 12px; }
.spt-meta > span { flex: 1 1 0; }
.spt-meta b { font-weight: 600; }
.spt-no { color: #c0392b; }
.spt-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11.5px; }
.spt-tbl th, .spt-tbl td { border: 1px solid #2b3a37; padding: 5px 6px; }
.spt-tbl th { background: #f1f5f3; font-weight: 600; text-align: center; }
.spt-tbl td { word-break: break-all; }
.spt-tbl tfoot td { background: #f7faf8; font-weight: 600; }
.spt-pad td { height: 25px; }
.spt-c { text-align: center; }
.spt-r { text-align: right; font-variant-numeric: tabular-nums; }
.spt-mid { display: flex; gap: 16px; margin-top: 12px; align-items: flex-start; }
.spt-mid-l { flex: 1 1 auto; }
.spt-slogans { font-size: 11.5px; color: #3a4a46; line-height: 1.9; }
.spt-money { margin-top: 10px; border: 1px solid #2b3a37; padding: 8px 12px; max-width: 470px; }
.spt-money-row { display: flex; justify-content: space-between; font-size: 12px; line-height: 1.9; }
.spt-money-row b { font-variant-numeric: tabular-nums; }
.spt-money-row.spt-sub { color: #6b7a76; font-size: 11.5px; }
.spt-money-row.spt-cap { border-top: 1px dashed #c9d2cf; margin-top: 4px; padding-top: 4px; }
.spt-red { color: #c0392b; }
.spt-qrs { display: flex; gap: 12px; }
.spt-qr { width: 96px; text-align: center; font-size: 11px; color: #3a4a46; }
.spt-qr img { width: 84px; height: 84px; display: block; margin: 0 auto 3px; }
.spt-foot { display: flex; gap: 20px; margin-top: 16px; font-size: 12px; }
.spt-foot > span:nth-child(2) { flex: 1 1 auto; }
.spt-tip { margin-top: 16px; padding-top: 8px; border-top: 1px solid #2b3a37; font-size: 11.5px; color: #3a4a46; }

@media print {
  /* z160：多页单据要能分页 —— 不能把弹窗 absolute 出去（脱离文档流就只印一页），
     改为：body 直属兄弟全部不显示，弹窗回到普通文档流，纸张多高文档就多高 */
  body > *:not(#sa-print-modal) { display: none !important; }
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  #sa-print-modal {
    position: static !important; display: block !important; visibility: visible !important;
    left: auto !important; top: auto !important; width: 100% !important; height: auto !important;
    background: #fff !important; overflow: visible !important; padding: 0 !important; margin: 0 !important;
  }
  .spt-box { width: 100% !important; max-width: none !important; max-height: none !important; overflow: visible !important; box-shadow: none; border: 0; margin: 0; }
  .spt-body { overflow: visible !important; max-height: none !important; padding: 0 !important; background: #fff !important; }
  .spt-sheet { width: 100% !important; min-height: 0 !important; padding: 0 !important; margin: 0 0 8mm !important; box-shadow: none !important; }
  .spt-box .modal-hd, .spt-box .modal-ft { display: none !important; }
  tr { page-break-inside: avoid; }
  @page { size: A4; margin: 10mm; }
}

/* z170b：保质期 数值+单位 行内布局 */
.bs-life-wrap { display: flex; gap: 6px; align-items: center; }
.bs-life-wrap input[type=number] { flex: 1 1 auto; min-width: 0; }
.bs-life-wrap select { flex: 0 0 66px; }

/* z173：多级价格 元 + 折扣 双列 */
.bs-price-grid { display: flex; flex-direction: column; gap: 10px; }
.bs-lv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bs-lv-retail { font-weight: 600; }
.bs-lv-sub { font-weight: 400; font-size: 12px; color: #8a8a8a; margin-left: 4px; }
.bs-lv-lvl { background: #faf8f3; border: 1px solid #ece4d6; border-radius: 8px; padding: 8px 10px; }
.bs-lv-name { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; min-width: 180px; }
.bs-lv-name input.bs-lv-price { flex: 1 1 auto; min-width: 0; }
.bs-lv-disc-l { display: flex; align-items: center; gap: 6px; flex: 0 0 168px; font-size: 13px; color: #6b6b6b; }
.bs-lv-disc-l input.bs-lv-disc { flex: 1 1 auto; min-width: 0; }
.bs-lv-price.bs-lv-auto { background: #eef7ee; border-color: #bfe3bf; color: #2f7d32; font-weight: 600; }

/* z173：新增商品名称 带图重名检索 */
.inv-add-row { position: relative; }
.inv-name-ac { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: #fff; border: 1px solid #e0d6c4; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); margin-top: 4px; padding: 4px; max-height: 320px; overflow: auto; }
.inv-name-ac.hidden { display: none; }
.inv-name-ac .ina-warn { background: #fff3e0; color: #b26a00; font-size: 12px; padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; }
.inv-name-ac .ina-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.inv-name-ac .ina-item:hover { background: #f3f7ee; }
.inv-name-ac .ina-item.ina-dup { background: #fdecec; }
.inv-name-ac .ina-item.ina-dup:hover { background: #fbdada; }
.inv-name-ac .ina-thumb { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 5px; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.inv-name-ac .ina-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inv-name-ac .ina-thumb i { font-size: 11px; color: #aaa; font-style: normal; }
.inv-name-ac .ina-meta { flex: 1 1 auto; min-width: 0; font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-name-ac .ina-tag { flex: 0 0 auto; font-size: 11px; padding: 2px 7px; border-radius: 10px; background: #eee; color: #777; }
.inv-name-ac .ina-item.ina-dup .ina-tag { background: #f5c2c2; color: #a33; }

/* z174：批次库房选择 + 库存数据弹窗 */
.bs-mn-wh, .bs-imp-wh { max-width: 150px; }
.inv-sd-btn { /* 商品行「库存数据」按钮，沿用 ghost */ }
.inv-sd-sum { padding: 6px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 13px; }
.inv-sd-ok { color: #1a7f37; font-weight: 600; margin-left: 6px; }
.inv-sd-warn { color: #e5484d; font-weight: 600; margin-left: 6px; }
.inv-sd-wh { margin-bottom: 14px; }
.inv-sd-wh-hd { font-weight: 600; background: #f3f1ea; padding: 4px 8px; border-radius: 4px; }
.inv-sd-sub { font-weight: 400; color: #888; margin-left: 8px; }
.inv-sd-tbl { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13px; }
.inv-sd-tbl th, .inv-sd-tbl td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; }
.inv-sd-tbl th { background: #faf8f3; color: #555; font-weight: 600; }
.inv-sd-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); color: #555; }
/* z176：库存列数字可点 → 各库房明细 */
.inv-stock-num { cursor: pointer; color: #1f7a3d; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 2px; }
.inv-stock-num:hover { color: #145c2c; background: #eef7f0; border-radius: 4px; }
.inv-stock-zero { color: #999; font-weight: 400; text-decoration: none; }
.inv-stock-zero:hover { color: #666; background: #f3f3f3; }

/* ============================================================
   z181：批号选择器（app-core.js 的 attachBatchPicker）
   下拉里显示「批号 · 生产日期-到期日 · 余N」，选中后输入框只留批号
   ============================================================ */
.btpk-panel {
  position: fixed; z-index: 5000; display: none;
  background: #fff; border: 1px solid var(--line, #dfe5dd); border-radius: 10px;
  box-shadow: 0 8px 26px rgba(20, 45, 30, .16);
  padding: 4px; max-height: 264px; overflow-y: auto;
}
.btpk-it {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 7px; cursor: pointer;
  font-size: 13px; line-height: 1.3; color: #22331f; white-space: normal;
}
.btpk-it:hover, .btpk-it.on { background: #eef4ec; }
.btpk-it b { font-weight: 600; min-width: 82px; white-space: nowrap; }
.btpk-it span { color: #6b7a67; font-size: 12px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.btpk-it .btpk-q { font-style: normal; color: #1a7f37; font-size: 12px; }
.btpk-it .btpk-q.zero { color: #b0b8ad; }
.btpk-it .btpk-tag { font-style: normal; font-size: 11px; padding: 1px 5px; border-radius: 4px; }
.btpk-it .btpk-tag.exp { background: #fdecec; color: #c92a2a; }
.btpk-it .btpk-tag.near { background: #fff4e5; color: #d98200; }
.btpk-empty { padding: 9px 10px; font-size: 12px; color: #6b7a67; line-height: 1.5; }

/* ============================================================
   z183：批号选择器 —— 就地新建批号（生产日期/保质期/到期日/数量）
   面板拆成「列表 + 新建表单」两块，列表可滚动，表单展开后不被视口截断
   ============================================================ */
.btpk-panel { max-height: none; overflow: visible; }
.btpk-list { max-height: 216px; overflow-y: auto; }
.btpk-new { display: none; border-top: 1px dashed var(--line, #dfe5dd); margin-top: 4px; padding: 8px 8px 7px; }
.btpk-new.open { display: block; }
.btpk-new-hd { font-size: 12px; color: #5c6b58; margin-bottom: 6px; }
.btpk-new-hd b { color: #22331f; font-size: 12.5px; }
.btpk-new-hd .btpk-new-no { color: #1a7f37; font-weight: 600; margin-left: 2px; }
.btpk-new-g { display: grid; grid-template-columns: 1fr; gap: 8px; }
.btpk-new-g > label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5c6b58; white-space: nowrap; }
/* z207：标签定宽让四行输入框左缘对齐；输入框统一紧凑宽（日期110 = 保质期58+4+48），右缘也对齐 */
.btpk-new-g .btpk-n-lb { flex: 0 0 52px; }
.btpk-new-g input[type="date"],
.btpk-new-g input[type="number"],
.btpk-new-g select {
  flex: 1; min-width: 0; padding: 5px 7px; font-size: 12.5px;
  border: 1px solid var(--line, #dfe5dd); border-radius: 7px; background: #fff; color: #22331f;
}
/* z201：日期（生产/到期）、数量、保质期输入框收窄，够放下即可，少占空间 */
.btpk-new-g input[type="date"] { flex: 0 0 auto; width: 110px; }
.btpk-new-g .btpk-n-qty { flex: 0 0 auto; width: 110px; }
.btpk-new-g .btpk-n-lifew { display: flex; flex: 0 0 auto; gap: 4px; min-width: 0; }
.btpk-new-g .btpk-n-lifew input { flex: 0 0 auto; width: 58px; }
.btpk-new-g .btpk-n-lifew select { flex: 0 0 48px; }
.btpk-new-ft { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.btpk-new-msg { flex: 1; font-size: 11.5px; line-height: 1.5; color: #7b8a77; }
.btpk-new-msg.err { color: #c92a2a; }
.btpk-n-save {
  flex: 0 0 auto; padding: 6px 14px; font-size: 12.5px; cursor: pointer;
  color: #fff; background: #1f6b3a; border: 0; border-radius: 7px;
}
.btpk-n-save:hover { background: #1a5c31; }

/* ============================================================
   z186：可搜索下拉（替换原生 datalist）—— 聚焦列全部、输入实时过滤
   ============================================================ */
.wb-combo-panel {
  position: fixed; z-index: 6000;
  background: #fff; border: 1px solid #cfd8d4; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 60, 50, .18);
  max-height: 240px; overflow-y: auto; padding: 4px 0;
}
.wb-combo-panel.hidden { display: none; }
.wb-combo-opt {
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
  font-size: 13px; color: #243a32; line-height: 1.3;
}
.wb-combo-opt:hover, .wb-combo-opt.active { background: #eef4f1; color: #1d6b4f; }
.wb-combo-opt.active { font-weight: 600; }
.wb-combo-lab { color: #9aa8a4; font-size: 12px; margin-left: 6px; }
.wb-combo-empty { padding: 8px 14px; font-size: 12px; color: #9aa8a4; }

/* ============================================================
   z190：采购明细加「库房」列（批号之后），栅格列宽随之调整
   列顺序：品名 / 批号 / 库房 / 数量 / 单位 / 净含量 / 单价 / 金额 / 备注 / 删除
   ============================================================ */
.pc-item-hd.pc-hd-purchase, .pc-item-row.pc-row-purchase {
  grid-template-columns: minmax(140px, 1.5fr) 112px 104px 64px 56px 76px 72px 86px minmax(90px, 1fr) 30px;
}
.pc-row-purchase .pc-i-wh { min-width: 0; }

/* z191：存货分布矩阵（批号 × 库房） */
.inv-sd-matrix { font-size: 13px; }
.inv-sd-matrix th.num, .inv-sd-matrix td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-sd-matrix td.zero { color: #cfc9bb; }
.inv-sd-matrix td.bno { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; white-space: nowrap; }
.inv-sd-matrix td.fefo { color: #1a7f37; font-weight: 700; white-space: nowrap; text-align: center; }
.inv-sd-matrix td.fefo-none { color: #b9b3a6; white-space: nowrap; text-align: center; }
.inv-sd-matrix tfoot td { background: #f7f4ec; font-weight: 600; border-top: 2px solid var(--line); }
.inv-sd-legend { color: #7a7466; font-size: 12px; margin-top: 5px; line-height: 1.55; font-weight: 400; }

/* z192：存货分布矩阵列宽微调（批号/库房名不换行，出库序有最小宽） */
.inv-sd-matrix th, .inv-sd-matrix td { white-space: nowrap; }
.inv-sd-matrix td.bno { min-width: 96px; }
.inv-sd-matrix td.fefo, .inv-sd-matrix td.fefo-none { min-width: 76px; }

.btpk-it .btpk-tag.wh { background: #e8f0e8; color: #3d5a3d; margin-left: 4px; }

/* z251：分类两级级联选择（catpicker.js，全站四处共用：商品详情/存货档案/物料档案/新增商品/列表筛选） */
button.catpick-btn {
  text-align: left; padding: 9px 12px; background: #f5faf7;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink);
  cursor: pointer; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
button.catpick-btn:after { content: ' ▾'; color: #8a9694; font-size: 12px; }
button.catpick-btn.picked { border-color: #2f6b52; color: #2f6b52; background: #eef6f1; font-weight: 600; }
.im-cat-cell .catpick-btn, .bs-cat-cell .catpick-btn { width: 100%; }
.inv-search-row .catpick-btn, .inv-add-row .catpick-btn { width: auto; flex: 0 0 auto; min-width: 108px; max-width: 190px; }
.wb-catpick {
  position: absolute; z-index: 6000; display: flex; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 40, 30, .16);
  overflow: hidden; font-size: 13px;
}
.wb-catpick-l1, .wb-catpick-l2 { min-width: 132px; max-height: 320px; overflow: auto; padding: 4px; box-sizing: border-box; }
.wb-catpick-l2 { border-left: 1px solid var(--line); }
.wb-catpick-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; color: var(--ink); font-weight: 400;
}
.wb-catpick-item:hover, .wb-catpick-item.on { background: #eef6f1; color: #2f6b52; font-weight: 600; }
.wb-catpick-item.dis, .wb-catpick-item.dis:hover { color: #b6c2bd; cursor: default; background: none; font-weight: 400; }
.wb-catpick-item .arr { color: #9aa8a2; font-size: 12px; }
.wb-catpick-empty { color: #7a8681; }
.wb-catpick-none { padding: 8px 10px; color: #9aa8a2; white-space: nowrap; }
.im-cat-cell { display: flex; flex-direction: column; gap: 6px; }
.bs-cat-cell { display: flex; flex-direction: column; gap: 4px; }
/* z251：存货档案弹窗（bs-fgrid）字段是 32px 紧凑风格，分类按钮对齐同款 */
.bs-fgrid .catpick-btn {
  width: 100%; height: 32px; padding: 6px 10px; font-size: 13px;
  border-color: #cfdad7; border-radius: 8px; background: #fff; color: #244f3d;
}
.bs-fgrid .catpick-btn:focus { outline: none; border-color: #2f6b52; }
select optgroup { font-weight: 600; color: #2f6b52; }
