/* 与时靡服装CJZP 生产管理系统同一套设计系统（配色/圆角/按钮/弹层完全一致） */
:root {
  /* 主题色由 JS 按设置里的主题动态写入；这里兜底值=默认主题「红」的调色，
     保证 JS 还没跑之前的第一帧就是最终配色，开页不闪色 */
  --brand: #DB5A6B;
  --brand-d: #af4856;
  --pagehead-bg: var(--brand-d);
  --pagehead-top: var(--brand-d);
  --safe-top: env(safe-area-inset-top, 0px);
  --on-brand: #ffffff;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #f0dfe2;
  --line2: #f7eff0;   /* 分隔线专用：比 --line 淡一半(2026-10-28) */
  --text: #3b2a2d;
  --muted: #a08589;
  --soft: #faf4f5;      /* 汇总盒 / 表头 */
  --soft2: #fdfafb;     /* 搜索框底 */
  --img-bg: #f8f0f1;    /* 图片占位 */
  --dash-bg: #fefcfc;   /* 虚线上传框 */
  --danger: #e5484d;
  --ok: #2fa46b;
  --warn: #f5a524;
  --shadow: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { padding-top: 0; }
/* 状态栏和页头用同一块背景，避免往上换色。 */
body::before, .login::before, .scanpage::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: var(--safe-top);
  background: var(--pagehead-bg);
  z-index: 20;
  pointer-events: none;
}
.login::before { background: var(--bg); }
.scanpage::before { background: inherit; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.hidden { display: none !important; }
.dim { color: var(--muted); font-size: 12px; }

/* 顶栏 */

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.add { background: #fff7e6; border-color: #f5d690; color: #a86600; }
.btn.ship { background: #eafaf1; border-color: #a9dfc3; color: #177245; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.btn.block { width: 100%; }
.btn.danger { background: #fdecec; border-color: #f5b9bc; color: #b3262b; }
.search { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.search input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; outline: none; background: var(--soft2); }
.search input:focus { border-color: var(--brand); background: #fff; }
/* 开单页搜索框(款号/备注)：高度+20%、字号同步放大(15→18px、padding 8→10px) */
#od-kw { font-size: 18px; padding: 10px 12px; }
/* 开单页页头字体小一号：按钮/chip 17→16、客户名 16→15、等级 12→11、搜索框 19→18 */
.pagehead.open-head .btn, .pagehead.open-head .chip-chk { font-size: 16px; }
.pagehead.open-head .custbar .cur { font-size: 15px; }
.pagehead.open-head .custbar .cur .lv { font-size: 11px; }
.pagehead.open-head #od-kw { font-size: 18px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 12px 12px 84px; }
.summary { display: flex; gap: 8px; margin-top: 8px; }
.summary .sbox { flex: 1; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; }
.summary .sbox span { font-size: 11px; color: var(--muted); }
.summary .sbox b { font-size: 18px; }
.list-hint { text-align: center; color: var(--muted); font-size: 13px; padding: 14px; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; box-shadow: var(--shadow); }
.section h3 { margin: 0 0 10px; font-size: 15px; }

/* 卡片行：单据 / 客户 / 款号 */
.item { display: grid; grid-template-columns: 1.5fr .8fr .9fr auto; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; }
.item.two { grid-template-columns: 1fr auto; }
.item.void { opacity: .5; }
.item .meta .style-no { font-weight: 700; font-size: 15px; }
.item .meta .tags { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item .col { text-align: center; }
.oitem .col:nth-child(3) { text-align: center; }   /* 件数列现在只剩数字（「件数」两字去掉了），原来 padding-right:62% 那个凑位置的老写法一并删掉 */
/* +/− 与数字同字号，不再缩小 */
.item .col .val { font-size: 17px; font-weight: 700; }
.item .col .val.v-money { color: var(--brand); }
.badge { display: inline-block; margin-left: 6px; background: var(--img-bg); color: var(--muted); font-size: 10px; padding: 1px 6px; border-radius: 8px; vertical-align: middle; }
.badge.red { background: var(--danger); color: #fff; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #000; font-weight: 600; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fff; outline: none; }
.field input:focus, .field select:focus { border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-chk { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; font-size: 13px; background: #fff; cursor: pointer; }
.chip-chk.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 尺码×数量矩阵 */

/* 开单明细行 */
.oline { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line2); padding: 8px 0; }
.oline:last-child { border-bottom: 0; }
.oline .k { font-weight: 700; }
.oline .sub { font-size: 12px; color: var(--muted); }
.oline input { width: 62px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; text-align: center; }
.oline input::placeholder { font-size: 12px; color: #9aa3b2; }
.oline .del { color: var(--danger); font-size: 18px; padding: 0 4px; }

/* 底部结算条（开单页常驻） */
.settlebar { position: fixed; left: 0; right: 0; bottom: 56px; z-index: 25; background: var(--card); border-top: 1px solid var(--line2); box-shadow: 0 -2px 12px rgba(20,30,50,.08); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.settlebar .inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }

/* 底部标签栏 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; display: flex; background: var(--card); border-top: 1px solid var(--line2); padding-bottom: env(safe-area-inset-bottom); }
.tabbar .tab { flex: 1; text-align: center; padding: 7px 0 6px; font-size: 11px; color: var(--muted); border: 0; background: none; }
.tabbar .tab i { display: block; font-size: 18px; font-style: normal; line-height: 1.1; }
.tabbar .tab.on { color: var(--brand); font-weight: 700; }

/* 提示条（缺字库模块、超时提醒等） */
.od-banner { background: var(--danger); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }

/* 弹层（和 CJZP 一致） */
.modal-mask { position: fixed; inset: 0; background: rgba(15,20,30,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
@media (min-width: 760px) { .modal-mask { align-items: center; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modal .sub { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.split { display: flex; gap: 10px; margin-top: 14px; }
.split .s3 { flex: 3; } .split .s7 { flex: 7; }

/* toast */
#toast-root { position: fixed; left: 50%; top: 55%; transform: translate(-50%, -50%); bottom: auto; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }   /* 提醒框：页面中间偏下一点点(2026-10-28) */
.toast { background: var(--text); color: #fff; padding: 10px 18px; border-radius: 24px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); animation: tin .2s forwards; }
.toast.err { background: var(--danger); } .toast.ok { background: var(--ok); }
/* 下拉刷新：页面上方居中转圈 */
.ptr-spin { position: fixed; left: 50%; top: calc(18px + 50vh); transform: translateX(-50%); z-index: 95; pointer-events: none; opacity: 0; transition: opacity .15s; }
.ptr-spin.on { opacity: 1; }
.ptr-spin-ring { display: block; width: 28px; height: 28px; border: 3px solid rgba(0,0,0,.12); border-top-color: var(--brand-d); border-radius: 50%; animation: ptr-spin 0.7s linear infinite; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); box-sizing: border-box; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@keyframes tin { to { opacity: 1; transform: none; } }

/* 登录 */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login .card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 28px; width: 100%; max-width: 360px; }
.login h1 { font-size: 22px; margin: 0 0 4px; color: var(--brand); text-align: center; }
.login .muted { color: var(--muted); font-size: 13px; margin-bottom: 20px; text-align: center; }

/* 图片小票（发给微信客户的那张图） */
#share-img { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* 表格（对账单、档案明细） */
table.cells { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cells th, table.cells td { border-bottom: 1px solid var(--line2); padding: 8px 6px; text-align: center; }
table.cells th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.cells td.c { text-align: left; }

/* ============ 二期改版新增 ============ */
/* 开单页：客户行 */
/* 商品网格：一行四个 */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 10px; }
.pg-item { background: none; border: 0; border-radius: 0; padding: 0; text-align: left; cursor: pointer; }
.pg-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; background: var(--img-bg); display: block; }
.pgrid .pg-img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.pg-img.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }
.pg-no { font-size: 13px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; justify-content: flex-start; gap: 4px; overflow: hidden; }
/* 选款弹层：左信息右图片 */
.pick { display: flex; gap: 10px; }
/* 底部结算条：三列 */
.settlebar .inner { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.sb-orders { text-align: center; min-width: 64px; }
.sb-orders b { display: block; font-size: 20px; color: var(--brand); }
.sb-orders span { font-size: 10px; color: var(--muted); }
.sb-main { text-align: center; flex: 1; }
.sb-main .amt { font-size: 12px; color: var(--muted); margin-top: 3px; }
.sb-park { text-align: center; position: relative; }
.sb-park b { display: block; font-size: 20px; }
.sb-park span { font-size: 10px; color: var(--muted); }
.sb-park .n { position: absolute; top: -6px; right: 2px; background: var(--danger); color: #fff; font-size: 10px; border-radius: 9px; padding: 0 5px; }
/* 订单列表 */
.oitem { grid-template-columns: auto 1.4fr .6fr .9fr; }
.obar-col { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.obar { width: 4px; border-radius: 1px; }
.obar.blue { background: #2f6fed; }
.obar.red { background: #e5484d; }
.obar.gray { background: #b5b5b5; }
.obar.yellow { background: #f5b301; }   /* 发货比例(已发件/订货件) */
.oitem .name { font-weight: 700; font-size: 15px; }
.oitem .sub { font-size: 11px; color: var(--muted); }

/* 订单详情 */
.drow { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 3px 0; font-size: 14px; }
.drow .k { color: var(--muted); font-size: 12px; margin-right: 3px; }
/* 中图预览（不全屏） */
.imgview-mask { position: fixed; inset: 0; background: rgba(15,20,30,.55); display: flex; align-items: center; justify-content: center; z-index: 60; }
.imgview { max-width: min(640px, 92vw); max-height: 80vh; }
.imgview img { max-width: 100%; max-height: 76vh; border-radius: 10px; display: block; background: #fff; }
/* 图片上传 */
/* 设置页危险区 */

/* ============ 三期：与生产系统结合 + 交互修正 ============ */
/* 页面内容顶部对齐（wrap 默认 padding 已留出底部导航位置） */
/* 弹层关闭按钮：大一点、带边框，放在底部按钮最右边 */
.btn.close { background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.modal-head .btn.sm { padding: 8px 14px; font-size: 14px; }
/* 客户行：三个按钮 + 当前客户 */
.custbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.custbar .cur { flex: 1; min-width: 90px; font-weight: 700; font-size: 15px; }
.custbar .cur .lv { font-size: 11px; color: var(--muted); font-weight: 400; }
/* 明细行删除按钮：文字带边框，醒目 */
.oline .btn-del { border: 1px solid #f5b9bc; background: #fdecec; color: #b3262b; border-radius: 6px; padding: 5px 9px; font-size: 13px; font-weight: 700; }
/* 库存矩阵（款式页）：出货 / 已卖 / 手工入库 / 现有 */
/* 上传按钮：点了直接弹文件选择 */

/* 客户资料页只读态 */
.ro-line { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 0; font-size: 15px; }
.ro-line .k { color: var(--muted); font-size: 12px; margin-right: 4px; }

/* ============ 四期：等级配色 / 四价同排 / 款式详情左右排 / 库存格 ============ */
/* 客户等级 A B C D 四色 */
.lv-tag { font-size: 11px; padding: 1px 8px; border-radius: 10px; font-weight: 700; }
.lv-A { background: #fbeef0; color: #a63a4b; }
.lv-B { background: #edf1f6; color: #475B74; }
.lv-C { background: #f8efe8; color: #B35723; }
.lv-D { background: #f4edf3; color: #6E3569; }
.cust-card { border-left: 0; }
.cust-card.A { border-left-color: #DB5A6B; }
.cust-card.B { border-left-color: #475B74; }
.cust-card.C { border-left-color: #B35723; }
.cust-card.D { border-left-color: #6E3569; }
/* 一行排完的客户信息 */
.cust-line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cust-line b { color: var(--text); font-weight: 600; }

/* 款式详情：左信息 右图片 */
.gdetail { display: flex; gap: 12px; align-items: flex-start; }
.gdetail .info { flex: 1; min-width: 0; }

/* 四个价格同一排，四种浅色 */
.p4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pbox { border-radius: 10px; padding: 6px; border: 1px solid transparent; }
.pbox .t { font-size: 13px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.pbox input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 6px 4px; text-align: center; background: #fff; font-size: 15px; }
.pbox.A { background: #fbeef0; border-color: #f2cdd3; } .pbox.A .t { color: #a63a4b; }
.pbox.B { background: #edf1f6; border-color: #d5dde8; } .pbox.B .t { color: #475B74; }
.pbox.C { background: #f8efe8; border-color: #ecd6c6; } .pbox.C .t { color: #B35723; }
.pbox.D { background: #f4edf3; border-color: #e3d3e0; } .pbox.D .t { color: #6E3569; }

/* 库存格：现货大字在上，已出货 / 已卖 同一行小字在下 */

/* ============ 五期：客户表单行 / 紧凑入库表 / 现货行 ============ */
.lvrow { display: flex; gap: 10px; align-items: flex-end; }
.lvrow .field { margin-bottom: 12px; }
.lv-sel { width: 82px !important; padding: 7px 8px !important; text-align: center; font-weight: 700; }
/* 入库表格：输入框小一半，格子更紧凑，比例更好看 */
/* 现货 / 已出货 / 已卖 同一行 */

.pbox input::placeholder { color: #b7bfcc; }
/* 入库日志页 */

/* ============ 八期：明细交替底色 / 弹层滚动锁 ============ */
.oline { padding: 8px 6px; border-radius: 8px; border-bottom: 1px solid transparent; }
.oline.alt { background: var(--soft); }
body.modal-open { overflow: hidden; }
.modal { overscroll-behavior: contain; }

/* 订单详情列表交替底色 */

/* 发货日志/列表交替底色 */
.item.alt { background: var(--soft); }

/* 发货状态徽章 */
.badge.st-wait{background:#fdecec;color:#b3262b}
.badge.st-part{background:#fff2d9;color:#a86600}
.badge.st-done{background:#e3f6ea;color:#177245}

/* 状态文字：跟名字同字号、不加粗 */
.sttxt{font-size:inherit;font-weight:400}
.sttxt.st-wait,.st-wait{color:#b3262b}
.sttxt.st-part,.st-part{color:#a86600}
.sttxt.st-done,.st-done{color:#177245}
.sttxt.st-ret,.st-ret{color:#b3262b}
.f-done{color:#177245}

/* 发完的订单行浅色底 */

/* 客户详情订单行三色底 + 欠费标签 */

/* 入库表格数量框左右 +/− 步进按钮 */

.stp { flex: 0 0 60px; width: 60px; height: 60px; border: 0; border-radius: 0; background: var(--soft); color: var(--brand-d); font-size: 37px; font-weight: 700; padding: 0; line-height: 1; }

/* 颜色码换行矩阵（选款/入库/改颜色码共用，手机不溢出） */
.qcolor { margin-bottom: 8px; }

/* 订单明细第一层：款号分组行 */

/* ===== 极简深色页头 ===== */
.pagehead { background: var(--pagehead-bg); color: #fff; padding: calc(10px + var(--safe-top)) 12px 10px; border-radius: 0; position: sticky; top: 0; z-index: 30; box-shadow: var(--shadow); width: 100vw; margin: -12px calc(50% - 50vw) 12px; }
.pagehead .dim, .pagehead span:not(.chip-chk) { color: rgba(255,255,255,.85); }
.pagehead input, .pagehead select { background: #fff; color: var(--text); border: 0; border-radius: 0; padding: 8px 10px; flex: 1; font-size: 14px; }
.pagehead .head-kw { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fc; color: var(--text); }
.pagehead .btn { border-radius: 0; border: 0; }
.pagehead .chip-chk { background: rgba(255,255,255,.16); color: #fff; border: 0; border-radius: 0; }
.pagehead .chip-chk.on { background: #fff; color: var(--brand-d); font-weight: 700; }
.pagehead .sbox span { color: rgba(255,255,255,.8); }
.pagehead .sbox b { color: #fff; }

.pagehead .chips { display: flex; align-items: center; }
.pagehead .custbar .cur { color: #fff; font-weight: 700; }
.pagehead .search { margin-top: 8px; }
/* 4字宽数字框 */
.num4 { width: calc(4ch + 14px); max-width: calc(4ch + 14px); border: 1px solid var(--line); border-radius: 0; padding: 6px 2px; text-align: center; }
.stprow input { width: calc(4ch + 14px); max-width: calc(4ch + 14px); }
.stprow input#rp-a { max-width: none; width: 110px; }
/* 竖向步进：+ 上 − 下，无间距直角 */
.stpv { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 4px auto 0; width: calc(4ch + 16px); }
.stpv .stp { width: 100%; height: 35px; font-size: 22px; flex: 0 0 auto; }
.stpv input { width: 100%; max-width: none; border: 0; border-radius: 0; background: var(--soft); color: var(--brand-d); font-weight: 700; text-align: center; padding: 6px 2px; }
/* 颜色块之间实线分隔、格子一线之隔 */
.qcolor + .qcolor { border-top: 0; margin-top: 0; padding-top: 0; }
/* 一款一表（发货/订单详情）：行=码 列=色，可左右滑 */
.shipgrp { margin: 10px 0; border-bottom: 1px solid var(--line2); padding-bottom: 8px; }
.shipgrp-h { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.hscroll { overflow-x: auto; }
.mtable { border-collapse: collapse; min-width: 100%; }
.mtable th, .mtable td { border: 0; border-bottom: 1px dashed var(--line); padding: 4px 6px; text-align: center; font-size: 13px; vertical-align: top; }
.mtable th { font-size: 16px; font-weight: 700; }
/* 列表去行间距、一线之隔 */
#cu-list2 .item, #gd-list .item, #or-list .item { margin-bottom: 0; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; box-shadow: none; background: transparent; }
#cu-list2 .item.cust-card { border-left: 0; }
#cu-list2 .lv-col { margin: -10px 0; }
.lv-col { align-self: stretch; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.cust-card.A .lv-col { background: #DB5A6B; }
.cust-card.B .lv-col { background: #475B74; }
.cust-card.C .lv-col { background: #B35723; }
.cust-card.D .lv-col { background: #6E3569; }
/* 客户详情订单/发货记录去行距 */
.section .item.two { margin-bottom: 0; border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--line2); }

/* 订单页头：搜索+我的单+全部单+发货日志 同一行无间距 */
.orbar { display: flex; gap: 0; margin-top: 8px; }
.orbar input { flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 8px 10px; background: #fff; color: var(--text); font-size: 14px; }
.orbar .chip-chk, .orbar .btn { border-radius: 0; margin: 0; flex: 0 0 auto; }

/* 选款弹层价格行：已并入货号行（见文件末尾四五批） */
/* 颜色小计与输入数字放大一倍 */
.stpv input { font-size: 24px; font-weight: 700; }
/* 末格不留尾线 */

/* 商品页图片网格：一排3个 */
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 10px; }
.gitem { text-align: left; cursor: pointer; position: relative; }
.g-recb, .lrecb { position: absolute; top: 2px; left: 2px; z-index: 2; font-size: 10px; line-height: 16px; background: var(--brand); color: var(--on-brand); padding: 0 5px; border-radius: 2px; }   /* 推荐角标：图片左上角(商品页) */
.gitem .pg-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--img-bg); }
.gitem .pg-img.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }
.g-no { font-weight: 700; font-size: 13px; margin-top: 4px; }
.g-desc { font-size: 11px; color: var(--muted); }
.g-stat { font-size: 11px; color: var(--muted); }
.g-acts { display: flex; margin-top: 4px; }

/* 颜色缩略图 1:1（参考图2） */
.cthumb { width: 66px; height: 66px; object-fit: cover; border-radius: 6px; }
.cthumb.sm { width: 28px; height: 28px; }
.noimg-sq { width: 44px; height: 44px; background: #ececec; color: #9a9a9a; font-size: 10px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
/* 选款页头：整行结构见文件末尾四五批 */
.pick-foot { position: sticky; bottom: 60px; padding: 10px 0; }
.pick-foot .btn { width: 100%; }
/* 订单详情（参考图1） */
.odgrp { margin: 10px 0; border-bottom: 1px solid var(--text); padding-bottom: 8px; }
/* 每色图片上传行 */

/* batch8 */
.ccname { font-weight: 700; font-size: 15px; }

.sbox.btnbox { background: var(--line); cursor: pointer; }
.sbox.btnbox { display: flex; align-items: center; justify-content: center; }
.sbox.btnbox span { color: var(--text); font-weight: 700; font-size: 18px; }
.oline .stp { flex: 0 0 36px; width: 36px; height: 36px; font-size: 16px; background: var(--soft); }
.p4 { gap: 0; }
.p4 .pbox { border-radius: 0; }
.pbox.cost { background: #f2f2f2; border-color: #ddd; }
.pbox.cost .t { color: #666; }

/* batch9 */
.orbar .chip-chk { background: #fff; color: var(--text); border: 0; border-radius: 0; }
.orbar .chip-chk.on { background: var(--brand-d); color: #fff; }

.pagehead .btn.add { background: var(--brand); color: var(--on-brand); border: 0; border-radius: 0; }
.oline { grid-template-columns: auto auto auto auto; justify-content: flex-start; gap: 10px; text-align: left; }
.oline > div { text-align: left; }
.mtable th, .mtable td { text-align: left; }

.mtable .stpv { margin: 4px 0 0; }
.orbar input { border-right: 1px solid rgba(255,255,255,.4); }

.mtable { width: auto; min-width: 0; }

.pagehead div { gap: 1px !important; }
.pagehead .btn, .pagehead .chip-chk { font-size: 16px; padding: 8px 16px; border-radius: 0; margin: 0; }

.pagehead .chips, .pagehead .orbar, .pagehead .summary { margin-top: 0 !important; }
.pagehead > div + div { margin-top: 0 !important; }
.pagehead .btn, .pagehead .chip-chk { font-size: 14px; padding: 7px 14px; }
.pagehead .sbox { border-radius: 0; background: var(--soft); box-shadow: none; }
.pagehead .sbox span, .pagehead .sbox b { color: #000; }

/* 十六批：时间段行=两个并排框+居中占位字+竖分隔线；选款页价格框矮窄同行 */
#range-row { display: flex; margin-top: 0 !important; border-bottom: 1px solid var(--line2); }
#range-row .rg-cell { position: relative; flex: 1; display: block; background: #fff; }
#range-row .rg-cell + .rg-cell { border-left: 1px solid var(--line); }
#range-row input { width: 100%; flex: none; background: transparent; position: relative; z-index: 1; text-align: center; }
#range-row .rg-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text); pointer-events: none; }
#range-row input[value=""]::-webkit-datetime-edit { color: transparent; }

/* 十七批：格子字不加粗、码与输入数字小一半；色总数小字；详情图区不加粗 */

/* 十八批：单价框6数字；订单详情色码量字小20%；页头按钮间距1px；色计数去共字放大 */
.oline .stprow input[data-f="price"] { width: calc(6ch + 14px); max-width: calc(6ch + 14px); }

/* 十九批：详情款号颜色间数据行；入库表库存/已卖分两行 */

/* 廿二批：所有按钮圆角；发货格订/已/未三行同入库页；等级块主题色贴页边；汇总格间距1px；详情价格×件数右对齐 */
.btn, .pagehead .btn, .orbar .btn, .btn.add { border-radius: 12px; }
.chip-chk, .pagehead .chip-chk, .orbar .chip-chk { border-radius: 16px; }
.stp { border-radius: 8px; }
.sbox.btnbox { border-radius: 10px; }
.summary { gap: 1px; margin-top: 1px; }

#cu-list2 .cust-card { padding-left: 0; }
#cu-list2 .lv-col { background: var(--soft); color: var(--brand-d); border-radius: 0; }
.actions { gap: 1px; }

/* 廿三批：页顶按钮圆角减半+四边1px；客户统计数字不加粗 */
.pagehead .btn, .pagehead .chip-chk { margin: 1px; }
/* 廿四批：页头按钮左下/右下圆角改直角（上圆角保留） */
.pagehead .btn { border-radius: 6px 6px 0 0; }
.pagehead .chip-chk { border-radius: 8px 8px 0 0; }

/* 三五批(压轴)：页头按钮+chip=主题深色底白字；选中的(.on)字变金色 */
.pagehead .btn, .pagehead .btn.add, .pagehead .btn.ship, .pagehead .btn.danger, .pagehead .btn.primary, .pagehead .btn.close, .pagehead .chip-chk { background: var(--brand-d) !important; color: #fff !important; border: 0 !important; }
.pagehead .chip-chk.on { color: #ffd700 !important; }
.pagehead .custbar .cur { font-weight: 400; }

/* 三六批：下单并打印按钮 缩小40%去圆角去粗；订单页汇总格数字不加粗、高度-30% */
.sb-main .btn { width: auto; padding: 8px 18px; font-size: 13px; font-weight: 400; border-radius: 0; }
.pagehead .summary .sbox b { font-weight: 400; font-size: 15px; }
.pagehead .summary .sbox { padding: 2px 2px; }

/* 三七批：订单详情 合计/已付/欠款 格 高度减半、数字不加粗 */
.modal .summary .sbox { padding: 1px 2px; }
.modal .summary .sbox b { font-weight: 400; font-size: 14px; }
.modal .summary .sbox span { font-size: 10px; }
.payflow-page .summary { flex-wrap: wrap; }
.payflow-page .summary .sbox { flex: 1 1 72px; min-width: 72px; }
.pf-method-rows { margin: 8px 0 0; }
.pf-mrow { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.pf-method-rows .pf-mrow:last-child { border-bottom: 0; }
.pf-mrow b { font-weight: 400; }

/* 三八批：订单页头汇总格(单量/件数/订单金额)=主题深色底白字 */
.pagehead .summary .sbox { background: var(--brand-d); border: 0; }
.pagehead .summary .sbox span, .pagehead .summary .sbox b { color: #fff; }

/* 三九批：订单详情标题=小字黑色不加粗(同"客户"字号) */
.od-title { font-size: 12px; font-weight: 400; color: #000; }

/* 四十批：客户资料统计格(单总数/欠款/已付/下单总金额/已发/未发/收款/对账单) 高度减半、数字同客户名称字号不加粗 */
.custsum .sbox { padding: 2px 2px !important; border-radius: 0; }
.custsum .sbox b { font-weight: 400 !important; font-size: 15px !important; }
.custsum .sbox span { font-size: 12px; }
.custsum.sbox span { font-weight: 400; }

/* 四一批：下单并打印按钮宽+50%；客户资料四区块字不加粗同已收清字号；商品页三按钮统一入库样式小20%边距2px */
.custsum ~ .section .drow, .custsum ~ .section .item, .custsum ~ .section .tags, .custsum ~ .section .style-no { font-weight: 400; font-size: 12px; }
.custsum ~ .section b, .custsum ~ .section .v-money { font-weight: 400; font-size: 12px; }
.g-acts .btn { background: var(--brand-d); color: #fff; border: 0; font-weight: 400; }

/* 四二批：下单并打印强制宽+50%；订单详情码列间距3倍 */
.sb-main .btn { padding: 8px 40px !important; }

/* 四二批：页头按钮点击后金字(不加粗) */
.pagehead .btn.hit-gold, .pagehead .chip-chk.hit-gold, .pagehead .chip-chk.on { color: #ffd700 !important; font-weight: 400 !important; }

/* 四四批：款式价格=字母在框前(行内)框宽5ch字母不加粗；订单详情 价格×件数 不加粗同件数字号 */
.pbox { display: flex; align-items: center; gap: 4px; padding: 4px 6px; }
.pbox .t { margin: 0; font-weight: 400; font-size: 13px; flex: 0 0 auto; }
.pbox input { width: 5ch; min-width: 5ch; flex: 1 1 auto; padding: 6px 2px; }

/* 四五批（重写）：选款页头=款号: 价格:框 客户名 同一行；颜色按钮全新类名全新样式 */
.pk-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pk-h2 { margin-top: 2px; gap: 2em; }
.pk-no b { font-size: 17px; color: #fff; font-weight: 400; }
.pk-h1 .pk-desc { font-size: 17px; color: #fff; margin-left: 1em; }
.pk-price-big { font-size: 15px; color: #fff; font-weight: 400; }
.pk-pricebox { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.pk-head input#pk-price { background: var(--brand-d); color: #fff; border: 1px solid var(--brand-d); border-radius: 0; padding: 5px 4px; font-size: 16px; font-weight: 400; flex: 0 0 auto; width: calc(6ch + 10px); max-width: calc(6ch + 10px); }
.pk-head select#pk-tier { margin-left: auto; background-color: transparent; color: #fff; border: 0; border-radius: 0; padding: 5px 2px 5px 14px; font-size: 14px; font-weight: 400; flex: 0 0 auto; width: auto; min-width: 22px; max-width: 46vw; text-align: right; text-align-last: right; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0 H10 L5 6 Z' fill='%23fff'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left center; background-size: 8px 5px; }
[data-style="row"] .pk-head select#pk-tier { color: #000; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0 H10 L5 6 Z' fill='%23000'/%3E%3C/svg%3E"); }
.pk-cust2 { font-size: 15px; color: #fff; }
.pk-desc { font-size: 13px; color: rgba(255,255,255,.85); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-head .btn { margin-left: auto; }
.pk-colors { display: flex; align-items: center; gap: 1px; margin-top: 24px; }
.pk-color-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 400; line-height: 1.2; padding: 7px 14px; margin: 0; background: var(--brand-d); color: #fff; border: 0; border-radius: 0; cursor: pointer; }
.pk-color-btn.on { color: #ffd700; }
.pagehead .pk-color-btn.on { color: #ffd700 !important; }
.pagehead .pk-color-btn { color: #fff !important; }
.pk-color-btn:not(.on) { color: #fff; }
.pk-cbar { width: 1px; height: 14px; background: #fff; flex: 0 0 1px; }

/* 四六批：收银冲账行 方式按钮间距2px、圆角同冲账按钮；开单页 下单并打印 左移20% */
#odr-m { gap: 2px; }
#odr-m .chip-chk { border-radius: 6px; margin: 0; }
.sb-main .btn { transform: translateX(-20%); }

/* 四七批：订单列表 件数/金额/欠款 数字不加粗；客户资料四表单间距1px且全不加粗；对账单全不加粗 */
.oitem .col .val, .oitem .col .v-money { font-weight: 400 !important; }
.custsum ~ .section { margin-top: 1px; }
.custsum ~ .section, .custsum ~ .section * { font-weight: 400; }
.stmt-body b { font-weight: 400 !important; }
.stmt-body [data-act="stmt-period"]:not(.on),
.stmt-body [data-act="stmt-range"]:not(.on) { color: #000; }

/* 四八批：款式详情 标题款号不加粗、与款式推荐同字号；款式推荐纯文字不加粗 */
.gd-title { font-weight: 400; font-size: 14px; }
.g-recplain { font-size: 14px; font-weight: 400; }

/* 四九批：管理页全不加粗；订单详情款号表头=店员名字号(14px)；款式详情 款号/推荐=备注字号(13px) */
.mepage, .mepage * { font-weight: 400; }
.gd-title { font-size: 13px; }
.g-recplain { font-size: 13px; }

/* 五十批：款式详情 款号输入框=8个数字宽；页尾留5px空白 */
#g-no { width: calc(8ch + 22px); max-width: calc(8ch + 22px); }
.gd-modal .split { margin-bottom: 5px; }

/* 五一批：款式详情 款号+备注 同一行，款号列按内容宽、备注紧贴填满 */
.gd-noRow { grid-template-columns: auto 1fr; }

/* 五二批：款式详情 底部 保存/删除 居中 */
.gd-modal .split { justify-content: center; }
.gd-modal .split .s7, .gd-modal .split .s3 { flex: 0 0 auto; }

/* 五三批：款式详情 保存加宽一倍、删除极简仅管理员、保存上方加分隔线 */
.gd-modal #g-ok { width: 120px; }
.gd-delplain { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 0; font-weight: 400; cursor: pointer; }
.gd-modal .split { border-top: 1px solid var(--line2); padding-top: 10px; }

/* 五五批：商品页 排序按钮下 汇总行(总库存/总欠货/总款式)居中 */
.gd-sum-line { text-align: right; font-size: 14px; margin-top: 6px; font-weight: 400; }

/* 五六批：订单页 收款金额盒可点(进流水明细) */
.pay-flow-box { cursor: pointer; }
.pay-flow-box:active { opacity: .7; }

/* 五七批：收款流水整页不加粗 */
.payflow-page, .payflow-page * { font-weight: 400 !important; }

/* 五八批：流水页 时间段+起止日期 独立一行；订单页「流水」按钮盒 */
.pf-daterow { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pf-daterow input[type="date"] { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 6px; text-align: center; color: var(--text); font-size: 14px; }
.pagehead .summary .sbox.btnbox { display: flex; align-items: center; justify-content: center; }
.pagehead .summary .sbox.btnbox span { font-size: 15px; font-weight: 400; color: #fff; }

/* 五九批：所有页头输入框 上下内边距=2px(离字2px) */
.pagehead input { padding-top: 3px !important; padding-bottom: 3px !important; border-radius: 2px !important; }
.orbar { align-items: center; }
#range-row .rg-cell:first-child { border-radius: 2px 0 0 2px; }
#range-row .rg-cell:last-child { border-radius: 0 2px 2px 0; }

/* 六〇批：把页头输入框样式(2px圆角)同步到弹窗/表单页(款式详情、新建客户、添加款式、订单等) */
.field input, .field select, .field textarea,
.modal input, .modal select, .modal textarea { border-radius: 2px !important; }

/* 六一批：订单列表 退/未发/发完/部分发 字号与「件数」标签一致(11px) */
.oitem .sttxt { font-size: 11px; }

/* 六二批：发货页款式列表 已/未 字号跟「订」一样(13px)，已绿、未(超)红、完绿 */

.shipgrp .sh-yi, .shipgrp .sh-wan { color: #177245; }
.shipgrp .sh-wei { color: #b3262b; }

/* 六三批：加入订单页/商品入库 改成「左色图+右每码一行(码 库存 + 数 −)」排版 */
.qtyrows { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line2); padding: 8px 0; }
.qtyrows:last-child { border-bottom: 0; }
.qtyrows .qr-head { flex: 0 0 74px; text-align: center; }
.qtyrows .qr-head .ccname { font-weight: 400; font-size: 14px; margin-top: 4px; }
.qtyrows .qr-head .ctot { font-size: 12px; color: var(--brand-d); min-height: 14px; }
.qtyrows .qr-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.qtyrows .qr-row { display: flex; align-items: center; gap: 10px; }
.qtyrows .qr-size { flex: 0 0 18px; font-size: 14px; }
.qtyrows .qr-stock { font-size: 13px; color: var(--ok); }
.qtyrows .qr-stock.neg { color: var(--danger); }
.qtyrows .qr-sold { font-size: 12px; color: var(--muted); }
.qtyrows .stpv.qr-stpv { flex-direction: row; align-items: center; gap: 10px; margin: 0 0 0 auto; width: auto; }
.qtyrows .qr-stpv .stp { flex: 0 0 40px; width: 40px; height: 40px; font-size: 26px; background: var(--soft); background: color-mix(in srgb, var(--soft) 50%, var(--brand-d) 50%); color: #fff; border-radius: 6px; }
.qtyrows .qr-stpv input { width: 44px; border: 0; background: transparent; color: var(--text); font-weight: 400; font-size: 15px; text-align: center; padding: 2px 0; }
.qtyrows .qr-ship b { font-size: 13px; font-weight: 400; color: var(--brand-d); }
.qtyrows .qr-ship span { font-size: 13px; }
.qtyrows .qr-row.neg .qr-ship b { color: var(--danger); }

/* 六四批：修改订单页 每行 款号·颜色码·价格·数量·−·＋·删除；整页不加粗 */
.oemodal, .oemodal * { font-weight: 400 !important; }
.oline2 { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line2); padding: 8px 0; }
.oline2:last-child { border-bottom: 0; }
.oline2 .oe-no { flex: 0 0 auto; font-size: 14px; }
.oline2 .oe-cs { flex: 0 0 auto; font-size: 13px; color: var(--muted); min-width: 34px; }
.oline2 input { border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; text-align: center; background: #fff; color: var(--text); font-size: 14px; }
.oline2 .oe-price { width: calc(6ch + 14px); }
.oline2 .oe-qty { width: calc(4ch + 14px); }
.oline2 .oe-stp { display: flex; align-items: center; gap: 6px; }
.oline2 .oe-stp .stp { flex: 0 0 34px; width: 34px; height: 34px; font-size: 20px; background: var(--soft); background: color-mix(in srgb, var(--soft) 50%, var(--brand-d) 50%); color: #fff; border-radius: 6px; }
.oline2 .btn-del { margin-left: auto; }

/* 六五批：修改订单页 底部两按钮整体上移、下方留白更多(防手机误触) */
.oe-modal .split { margin-bottom: 34px; }

/* 六六批：开单页 底部「下单并打印」悬浮条会遮住内容，多留底部空间 */
.wrap.has-settle { padding-bottom: 158px; }

/* 六七批：悬浮条第一列 件数(不加粗)+「件」同行、合计金额下一行；下单并打印按钮上下居中 */
.sb-orders .sb-qty { font-size: 18px; color: var(--brand); font-weight: 400; line-height: 1.2; }
.sb-orders .sb-amt { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.sb-main { display: flex; align-items: center; justify-content: center; }

/* 六八批：商品页排序/历史入库/设置 按钮间距缩小 */
.pagehead .chips.gd-chips { gap: 2px; }
.pagehead .chips.gd-chips .chip-chk { margin: 0; }

/* 六七批：商品页 管理员批量选择(删除/下架/上架) */
.gitem.gsel { position: relative; }
.gitem .g-chk { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 1.5px solid var(--muted); border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: #fff; z-index: 2; }
.gitem.on { outline: 2px solid var(--brand); outline-offset: -2px; }
.gitem.on .g-chk { background: var(--brand); border-color: var(--brand); }
.gbatchbar { position: fixed; left: 0; right: 0; bottom: 56px; z-index: 28; background: var(--card); border-top: 1px solid var(--line2); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(20,30,50,.08); }
.gbatchbar .inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.gbatchbar .dim { margin-right: auto; font-size: 13px; color: var(--muted); }
.gbatchbar .gb-count { font-weight: 400; color: var(--brand-d); }
/* 六九批：本单明细/修改订单 行内不画线，只在「款与款」之间画一条 */
.oline2 { border-bottom: 0; }
.oline2.ogrp { border-top: 1px solid var(--line2); }

/* 七〇批：开单页/商品页「列表方式」一行一款（小图 + 款号描述 + 右侧库存·已卖 + 操作） */
.lgrid { display: block; margin-top: 6px; }
.lrow { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line2); cursor: pointer; position: relative; }
.lrow:last-child { border-bottom: 0; }
.lrow .limg { flex: 0 0 auto; width: 44px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--img-bg); display: block; }
.lrow .limg.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; }
.lrow .lmain { flex: 1 1 auto; min-width: 0; }
.lrow .lno { font-size: 14px; font-weight: 400; color: var(--text); display: flex; align-items: center; gap: 5px; }
.lrow .ldesc { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .lrec { font-size: 10px; background: var(--brand); color: var(--on-brand); padding: 0 5px; border-radius: 2px; }
.lrow .lside { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lrow .lstat { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lrow .lacts { display: flex; gap: 1px; }
.lrow .lacts .btn { font-size: 12px; padding: 3px 8px; }
.lrow .lchk { flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid var(--muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; color: #fff; }
.lrow.gsel.on .lchk { background: var(--brand); border-color: var(--brand); }
.lrow.gsel.on .lno { color: var(--brand-d); }
/* 七一批：批量条按钮变多（推荐/取消推荐）→ 允许换行，底部留白加高 */
.gbatchbar .inner { flex-wrap: wrap; row-gap: 6px; }
.gbatchbar .chip-chk, .gbatchbar .btn.sm { font-size: 13px; padding: 5px 9px; }
.wrap.has-batch { padding-bottom: 196px; }

/* 七二批：本单明细/修改订单 款与款之间 深浅底色交替（单数款带浅底色），行加左右内边距让色带完整 */
.oline2 { padding-left: 6px; padding-right: 6px; }

.oline2 input { background: #fff; }

/* 七三批：商品页第二行按钮 间距减半+整行靠右；汇总行居中；设置齿轮改极简线条 */
.pagehead .chips.gd-chips.gd-chips2 { gap: 1px; justify-content: flex-end; }
.gd-sum-line { text-align: center; }

/* 七四批：显示方式改单个互切按钮（卡片⇄列表）；开单页的开关整行靠右 */

/* 七五批：发货表单「齐」按钮（同关闭按钮样式，紧凑版）；发完的行置灰 */
.qr-stpv .btn.close.qi { flex: 0 0 auto; padding: 4px 10px; font-size: 13px; border-radius: 6px; margin-right: 2px; }
.qr-stpv .btn.close.qi:disabled { opacity: .4; }

/* 七六批：欠货页（底部新增「欠货」页签）——列表行欠货数标红，客户可点进对账 */
.lstat.owe, .owe { color: var(--danger); font-weight: 700; }
.lk-cust { display: flex; align-items: center; padding: 6px 0; cursor: pointer; }
.lk-cust b { font-size: 15px; }
.tabbar .tab i .mag-ico { display: block; margin: 0 auto; }

/* 七八批：①添加款式缩略图整块=上传入口（去掉「上传」按钮，点无图/已有图都弹选图框）
   ②欠货详情行内直接发货：数量 −＋ 步进 + 发货按钮 */
.ci-up { display: block; cursor: pointer; }
.ci-up input[type=file] { display: none; }
.lk-acts { display: inline-flex; align-items: center; gap: 1px; }   /* −＋ 与 发货 合成一组，按钮间距 1px */
.lk-stp { display: inline-flex; align-items: center; gap: 1px; }
.lk-stp .stp { flex: 0 0 34px; width: 34px; height: 34px; font-size: 20px; background: color-mix(in srgb, var(--soft) 50%, var(--brand-d) 50%); color: #fff; border-radius: 6px; }
.lk-stp input { width: calc(4ch + 12px); max-width: calc(4ch + 12px); text-align: center; }   /* 数量框=4个数字宽 */

/* 七九批：欠货详情页所有文字不加粗（客户名/欠数/标题/按钮一律常规字重），红色保留 */
.lk-detail, .lk-detail * { font-weight: 400; }

/* 八十批：欠货详情页按钮高度贴字——上下离字各 2px */
.lk-detail .btn, .lk-detail .stp { padding-top: 2px; padding-bottom: 2px; height: auto; }

/* 八一批：欠货详情行强制同一行不换行；码/单号/日期/欠数 之间收紧到 4px，单号与日期之间用半角空格；
   窄屏时中间「单号 日期」格用省略号兜底，保证不折行 */
.lk-shiprow { flex-wrap: nowrap; gap: 2px 4px; font-size: 13px; }
.lk-shiprow > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.lk-shiprow .dim { font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-shiprow b.owe { flex: 0 0 auto; white-space: nowrap; }
.lk-acts { flex: 0 0 auto; margin-left: auto; }   /* 数量框/−＋/发货 整组靠右对齐 */
.lk-stp .stp { flex: 0 0 31px; width: 31px; font-size: 18px; }   /* −＋ 放大约10%（28→31），好按 */
.lk-stp input { width: calc(4ch + 8px); max-width: calc(4ch + 8px); font-size: 13px; }
.lk-acts .btn { padding-left: 7px; padding-right: 7px; font-size: 13px; }   /* 发货 放大约10% */

/* 八二批：商品页页头——卡片/选择/下架 三按钮并进汇总行(总库存/总欠货/总款式)同一行靠右，间距2px；
   小齿轮从商品页移到欠货页页头 */
.gd-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin-top: 6px; }
.gd-sum-row .gd-sum-line { margin-top: 0; text-align: left; flex: 1 1 auto; min-width: 0; }
.gd-sum-row .chips.gd-chips.gd-chips2 { gap: 1px; justify-content: flex-end; flex: 0 0 auto; margin-top: 0; }
.gd-sum-row .gd-chips2 .chip-chk { padding-left: 6px; padding-right: 6px; }   /* 页头chip默认左右16px太宽，这里压到6px让三按钮真贴紧 */

/* 八三批：添加/编辑款式——上传缩略图移进入库表格行首格（上图下色、点图上传，排在码前面），原单独上传区移除 */
.ci-vis { display: flex; justify-content: center; }

/* 八四批：我的单/全部单 按钮组——与输入框同一行；按钮的字与字之间 3px（去左右内边距、缝3px） */
.scp { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.scp .chip-chk { padding-left: 0; padding-right: 0; }

/* 八五批：搜索框 与 我的单按钮 之间距离加大3倍（行gap8+补16=24px；订单页orbar原gap0→补24px） */
.scp { margin-left: 16px; }
.orbar .scp { margin-left: 24px; }

/* 八六批：客户资料新页(订单混排紧凑/商品历史/欠货块) + 商品详情新页(销售/员工/客户) */
.ch-range { display: flex; gap: 6px; margin-top: 6px; }
.ch-range input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }

.gd-psel { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; background: #fff; }

/* 八七批：商品详情页 下单/加单/出货（生产日志独立） */

.gd-loglines { padding-left: 10px; }

/* 八八批：客户详情首页改版——名字行 + 全局时间筛选 + 三入口(商品历史/欠货商品/对账单) */
.cust-h1 { display: flex; align-items: center; gap: 6px; }
.cust-h1 b { font-size: 17px; }
.cust-entries .chip-chk { background: transparent; border: 0; border-radius: 0; border-right: 1px solid rgba(255, 255, 255, .4); padding: 2px 10px; color: #fff; }
.cust-entries .chip-chk:last-child { border-right: 0; }

/* 八九批：客户详情页改版——①等级字母并入名字前(无背景、同字号、白)②今天/本周/全部/时间段按钮移入「修改」同一行、放修改前、字间距5px
   ③汇总拆两行(总单数/销售数量/已付/已发 · 收款/退货数量/退货金额/欠款/未发)统一白字 ④下方订单行改订单页三列版式且不加粗 */
.cust-h1 { flex-wrap: wrap; }
.cust-h1 .cust-lv { font-size: 17px; font-weight: 700; color: #fff; margin-right: 2px; }
.cust-h1 .cust-tools { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.cust-chips { display: flex; align-items: center; gap: 3px; }   /* 今天/本周/全部/时间段 按钮间距3px */
.cust-sum2 { margin-top: 6px; }
.cust-sum2 .sbox span, .cust-sum2 .sbox b, .cust-sum2 .sbox.btnbox span { color: #fff !important; }
/* 商品历史页标题行：返回 + 客户名 + 商品历史，下拉右对齐、主题底色白字无边框 */
.ch-h1 { display: flex; align-items: center; gap: 8px; }
.ch-h1 h3 { margin: 0; font-size: 15px; }
.pagehead .ch-sort { margin-left: auto; flex: 0 0 auto; background: var(--brand-d); color: #fff; border: 0; border-radius: 6px; padding: 2px 3px; width: auto; font-size: 13px; }   /* 无框、主题深色底、宽贴字、右对齐（盖过 .pagehead select 的白底flex:1） */

/* 九十批：①客户详情收款移到「对账单」后同一行、该行字+20% ②商品详情头两行(款号/录入/价格框 · 已下单已出货未出货右对齐)
   ③销售tab时间按钮圆角2/间距3/黑字、汇总加退货总量、色码列表改表格(图+50%可点大/颜色+50%/码×2/销售·退货·金额列/表头贯穿/淡分隔线)
   ④员工tab字×2 ⑤客户tab整行字×2不加粗不红 ⑥生产系统专属页(prod全款列表 / prodd单款各码各色+下单加单出货+日志) */
.cust-entries .chip-chk { font-size: 16.8px; }   /* 商品历史/欠货商品/对账单/收款 这一行字体+20% */
.cust-entries .cust-pay-chip { font-weight: 700; }
/* 商品详情头 */
.gd-h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-h1 .gd-no { font-size: 17px; color: #fff; }
.pagehead .gd-psel { flex: 0 0 auto; background: var(--brand-d); color: #fff; border: 0; border-radius: 6px; padding: 2px 3px; width: auto; }   /* 无框、主题深色底、宽贴字（盖过 .pagehead select 的白底flex:1） */
.gd-h2 { text-align: right; font-size: 13px; margin-top: 4px; color: #fff; }
.gd-h2 b { font-size: 14px; color: #fff; font-weight: 400; }
.gd-h2 .owe { color: #ffd700; font-weight: 700; }
/* 销售/员工 tab 的时间按钮：圆角2px、间距3px、黑字（选中不再蓝字） */
.gd-ofrow { gap: 3px; }
.gd-ofrow .chip-chk { border-radius: 2px; color: #000; background: #fff; border: 1px solid var(--line); }
.gd-ofrow .chip-chk.on { background: var(--soft); color: #000; border-color: var(--brand); font-weight: 600; }
/* 销售色码表格 */
.gd-stbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.gd-stbl th { font-size: 12px; font-weight: 400; color: var(--text); background: var(--soft); padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line2); }   /* 表头字号同上方「库存总量」标签 */
.gd-stbl th:first-child { text-align: left; }
.gd-stbl td { padding: 6px 4px; border-bottom: 1px solid var(--line2); text-align: center; font-weight: 400; font-size: 18px; color: var(--text); }
.gd-stbl td.gd-c1 { text-align: left; vertical-align: middle; }
.gd-stbl td.gd-csize { font-size: 24px; text-align: center; }   /* 码加大一倍 */
.gd-c1in { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.gd-stbl .gd-thumb { display: block; width: 66px; height: auto; border-radius: 4px; object-fit: cover; cursor: pointer; }   /* 缩略图宽度+50%(44→66)、可点放大、一个色只显一次 */
.gd-stbl .gd-thumb.empty { width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; background: var(--img-bg); }
.gd-ccolor { font-size: 18px; }   /* 颜色字体+50% */
/* 员工列表：字体（在×2基础上）小一半 */

/* 客户列表：整行字体（在×2基础上）小一半、不加粗、不要红色 */
.gd-custlist .lno { font-size: 13px; font-weight: 400; }
.gd-custlist .lstat { font-size: 12px; font-weight: 400; }

.gd-custlist .lv-tag { font-size: 11px; font-weight: 400; }
.gd-custlist .owe { color: var(--text); font-weight: 400; }   /* 欠货数字去红 */
/* 生产系统：单款各码各色表 + 下单/加单/出货按钮组 */
.prod-ops { margin-left: auto; display: inline-flex; gap: 4px; }
.pd-cells { width: 100%; border-collapse: collapse; margin-top: 6px; }
.pd-cells th { font-size: 13px; font-weight: 400; color: var(--muted); background: var(--soft); padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line2); }
.pd-cells td { padding: 6px 4px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--line2); }
.pd-cells td.c { text-align: left; }
.pd-cells td.owe { color: var(--danger); }
.pd-img { width: 40px; height: 50px; object-fit: cover; border-radius: 4px; }
.pd-img.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; background: var(--img-bg); }

/* 九一批：生产系统——预计出货日(批次FIFO)+超时提醒、生产日志新排版(下单蓝/加单黄/出货绿)、编辑预计出货日弹窗 */
.pd-due { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.pd-due b { font-size: 17px; }
.pd-overdue { color: #fff; background: var(--danger); border-radius: 6px; padding: 1px 8px; font-size: 13px; }
.pd-ok { color: var(--ok); font-size: 13px; }
/* 生产日志每条 */
.pdlog { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.pdlog:last-child { border-bottom: 0; }
.pdlog-who { font-size: 14px; color: var(--text); }
.pdlog-time { font-size: 13px; }
.pdlog-exp { font-size: 13px; color: #177245; }   /* 预计出货时间：绿 */
.pdlog-note { font-size: 12px; }
.pd-blue { color: #2f6fed; }      /* 下单：蓝 */
.pd-yellow { color: #d98c00; }    /* 加单：黄 */
.pd-green { color: #177245; }     /* 出货：绿 */
.pdlog-tbl { width: 100%; border-collapse: collapse; margin-top: 5px; }
.pdlog-tbl td { padding: 3px 6px; font-size: 13px; border-bottom: 1px solid var(--line2); text-align: center; }
.pdlog-tbl td.pd-c { text-align: right; color: var(--text); }   /* 第一列颜色靠右对齐 */
.pdlog-tbl tr.pdlog-tot td { font-weight: 700; background: var(--soft); border-bottom: 0; }
/* 编辑预计出货日弹窗 */
.pd-editrow input.pd-exp { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }

/* 九二批：①页头「今天/本周/全部/时间段/修改」按钮边贴字(原8×16太大→上下1px) ②客户汇总数字下加浅色1px线(去花) ③商品详情价格下拉右对齐 ④生产系统列表超时款标记 */
.pagehead .cust-h1 .chip-chk, .pagehead .cust-h1 .btn.sm { padding: 1px 8px; }
.cust-sum2 .sbox b { display: inline-block; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 1px; line-height: 1.25; }
.pagehead .gd-psel { margin-left: auto; }
.pd-badge-over { font-size: 11px; color: #fff; background: var(--danger); border-radius: 8px; padding: 0 6px; margin-left: 6px; }
.lrow.pd-row-over { background: #fff4f4; }
/* 生产总表：款号同一行跟「下单/已出/未出」三个数 */
.lrow .lno .pd-sts { display: inline-flex; gap: 10px; margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.lrow .lno .pd-sts span.owe { color: var(--danger); font-weight: 700; }

/* 九三批：所有弹窗改「整页」——遮罩变不透明整屏、弹窗占满全屏、顶部主题色返回栏、内容可滚动、底部操作条吸底。
   弹窗内部表单/保存逻辑一行未动；右滑(左缘)或点「← 返回」都回上一页（沿用 closeModal）。图片大图仍是轻灯箱不受影响。 */
.modal-mask { position: fixed; inset: 0; background: var(--bg); display: block; z-index: 50; }
.modal { background: var(--bg); width: 100%; max-width: 100%; height: 100%; max-height: 100%; overflow: hidden; border-radius: 0; padding: 0; display: flex; flex-direction: column; }
.modal-head { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-top)) 10px 8px; background: var(--pagehead-bg); border-bottom: 1px solid var(--line2); flex: 0 0 auto; }
.modal-head h2 { margin: 0; font-size: 16px; color: #fff; font-weight: 600; flex: 1 1 auto; }
.modal-head .btn.sm.mp-back { background: transparent; color: #fff; border: 0; padding: 4px 8px; font-size: 15px; flex: 0 0 auto; }
#modal-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; overscroll-behavior: contain; }
.modal .split.mp-foot { position: sticky; bottom: 0; z-index: 2; background: var(--bg); border-top: 1px solid var(--line2); padding: 8px 0; margin-top: 12px; }
@media (min-width: 760px) { .modal-mask { display: block; } .modal { border-radius: 0; max-width: 100%; } }

/* 九四批：预下单页（客户预下单列表 / 详情加款改量转单 / 全局总表） */
.pre-tag { font-size: 11px; padding: 0 6px; border-radius: 8px; margin-right: 6px; color: #fff; }
.pre-tag.open { background: var(--warn); }
.pre-tag.done { background: var(--ok); }
/* 预下单列表＝正经表格（店主定 2026-10-09）：一单一卡，卡头=客户/状态｜时间·开单人，卡内表格一款一行 款号/预定/剩余，底行合计 */
.pre-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 8px 10px; margin-bottom: 10px; cursor: pointer; }
.pre-card .pr2-r1 { display: flex; align-items: center; gap: 8px; }
.pre-card .pr2-c1 { font-size: 13px; font-weight: 600; color: var(--text); min-width: 0; }
.pre-card .pr2-c2 { margin-left: auto; flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.pre-card .pre-del-row { flex: 0 0 auto; margin-left: 4px; }
.pre-tbl4 { width: 100%; border-collapse: collapse; margin-top: 6px; }
.pre-tbl4 th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; padding: 3px 6px; border-bottom: 1px solid var(--line2); }
.pre-tbl4 td { font-size: 15px; text-align: center; padding: 5px 6px; border-bottom: 1px solid var(--line2); color: var(--text); }
.pre-tbl4 td.c4-no { font-weight: 600; text-align: left; }
.pre-tbl4 td.owe { color: var(--danger); }
.pre-tbl4 td.dim { color: var(--muted); font-weight: 400; }
.pre-tbl4 tr.c4-sum td { font-weight: 700; border-bottom: 0; background: var(--soft); }

/* 手机键盘弹起时视口被压矮，底部 fixed 条（导航/收银条/批量条/订单弹窗底栏）
   会顶到键盘上沿＝屏幕中间上下跳（店主 2026-10-09 线上反馈）：键盘开着期间先藏，收起复原。
   键盘状态由 app.js 用 visualViewport 高度差判定，挂 body.kb-open。 */
body.kb-open .tabbar, body.kb-open .settlebar, body.kb-open .gbatchbar, body.kb-open .od-modal .split.mp-foot { display: none; }

.pre-pick input.pre-pickq { width: calc(4ch + 16px); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; text-align: center; font-size: 14px; }
.pre-pick { gap: 8px; margin-top: 4px; align-items: center; }

/* 九五批：①销售表 码/数字 字号 −30% ②员工/客户 字号 +50% ③员工记录改表格(名字左/数量中/退货中/销售总额右) ④商品详情「修改」右对齐 ⑤预下单明细每款一张表 */
.gd-stbl td.gd-csize { font-size: 17px; }   /* 码 24→−30% */
.gd-stbl .gd-num { font-size: 13px; }       /* 数字 18→−30% */
   /* 员工表 +50%(13→19.5) */
.gd-staff-tbl td:first-child { text-align: left; }
.gd-staff-tbl th:last-child, .gd-staff-tbl td:last-child { text-align: right; }
.gd-custlist .lno { font-size: 19.5px; }    /* 客户 +50% */
.gd-custlist .ldesc { font-size: 16.5px; }
.gd-custlist .lstat { font-size: 18px; }

.gd-custlist .lv-tag { font-size: 16.5px; }/* 预下单：保存/去结算 两按钮同大小、并排（保存在前） */
.pre-acts .actions { display: flex; gap: 8px; margin: 0; }
.pre-acts .pre-act-btn { flex: 1 1 0; margin: 0; }
/* 客户详情页头：客户名后面的电话（同一行、小字灰） */
.cust-tel { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 400; }
/* ---- 预下单明细·店主定版七列单表：款号 | 图+色(色在图下) | 码(左对齐贴图列) | 预定框 | 已转 | 转单框 | 剩余 | × ---- */
.pre-tbl3 { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.pre-tbl3 td { padding: 6px 3px; border-bottom: 0; font-size: 18px; text-align: center; vertical-align: middle; }
.pre-tbl3 tr.pre-hd td { background: var(--soft); font-weight: 600; font-size: 17px; }
.pre-tbl3 tr.pre-hd td.p3-hno { text-align: left; padding-left: 8px; font-size: 18px; font-weight: 700; }
.pre-tbl3 td.p3-c { vertical-align: middle; }
.pre-tbl3 .p3-cin { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pre-tbl3 .p3-cin .pre-thumb { width: 68px; height: 84px; }
.pre-tbl3 .p3-cin span { font-size: 13px; color: var(--text); }
.pre-tbl3 td.p3-sz { text-align: left; padding-left: 6px; }
.pre-tbl3 input.pre-q, .pre-tbl3 input.pre-pickq { width: calc(5ch + 12px); border: 1px solid var(--line); border-radius: 6px; padding: 4px 4px; text-align: center; font-size: 18px; background: var(--bg); color: var(--text); }
.pre-tbl3 .pre-del-x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; }
@media (max-width: 520px) {
  .pre-tbl3 td { font-size: 15px; padding: 5px 2px; }
  .pre-tbl3 tr.pre-hd td { font-size: 14px; }
  .pre-tbl3 tr.pre-hd td.p3-hno { font-size: 15px; }
  .pre-tbl3 .p3-cin .pre-thumb { width: 52px; height: 64px; }
  .pre-tbl3 .p3-cin span { font-size: 12px; }
  .pre-tbl3 input.pre-q, .pre-tbl3 input.pre-pickq { width: calc(5ch + 8px); padding: 3px 2px; font-size: 15px; }
}.pre-thumb { width: 40px; height: 50px; object-fit: cover; border-radius: 4px; cursor: pointer; flex: 0 0 auto; display: block; }
.pre-thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; background: var(--img-bg); }
.gd-cust2-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.gd-cust2-tbl th, .gd-cust2-tbl td { padding: 4px 6px; font-size: 18px; text-align: center; border-bottom: 1px solid var(--line2); font-weight: 400; }
.gd-cust2-tbl th { font-size: 16px; color: var(--muted); background: var(--soft); }
.gd-cust2-tbl .ta-l, .gd-cust2-tbl th.ta-l { text-align: left; }

/* 九七批：客户页头部精简——排序下拉(同商品历史样式、宽贴字、放最左)+客户总数+欠款总额同一行；搜索框默认隐藏，点放大镜展开；订单页搜索同样处理 */
.cu-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cu-stat { font-size: 15px; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.cu-stat b { font-size: 16px; color: #fff; font-weight: 400; }

.pagehead .cu-mag { padding: 6px 10px; display: inline-flex; align-items: center; justify-content: center; }

/* 九八批：开单页「选择客户/新建客户/散客」三按钮——间距3px、贴字对齐、靠右 */
.cust-btns { display: flex; gap: 3px; align-items: center; margin-left: auto; }
.pagehead .cust-btns .btn.sm { padding: 1px 8px; margin: 0; }   /* 按钮边距(上下)1px、贴字 */

/* 九九批：订单页头部重排——①今日/本周/本月/全年/时间段 内边距上下1px左右2px、间距2px ②我的单/全部单改单个切换按钮(像列表/卡片)移到时间行靠右 ④搜索放大镜放到时间行最前 */
.ortime { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ortime-chips { flex: 1 1 auto; min-width: 0; gap: 2px; flex-wrap: wrap; }
.ortime-chips .chip-chk { padding: 1px 2px; margin: 0; }
.ortime .cu-mag { padding: 1px 6px; flex: 0 0 auto; }
.ortime .scp-toggle { margin: 0 0 0 auto; padding: 1px 8px; flex: 0 0 auto; }

/* 百批：客户详情①时间按钮内边距上下1px左右2px、间距2px ③汇总表改「连成一条」：比主题深色浅30%的背景 + 竖分隔线，去掉数字下划线(减花) ④五入口竖杠更明显 + 字小10% */
.cust-chips { gap: 2px; }
.pagehead .cust-h1 .cust-chips .chip-chk { padding: 1px 2px; margin: 0; }
.pagehead .cust-sum2 { background: color-mix(in srgb, var(--brand-d) 70%, #fff); gap: 0; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.pagehead .cust-sum2 .sbox { background: transparent; border: 0; border-right: 1px solid rgba(255, 255, 255, .45); border-radius: 0; }
.pagehead .cust-sum2 .sbox:last-child { border-right: 0; }
.pagehead .cust-sum2 .sbox b { border-bottom: 0; }   /* 去掉之前的数字下划线，改由竖分隔线连成一条，减花 */
.pagehead .cust-entries .chip-chk { font-size: 15px; border-right: 1px solid rgba(255, 255, 255, .55) !important; }
.modal-head .stmt-links { display: flex; gap: 0; flex: 0 0 auto; margin-left: auto; align-items: center; }
.modal-head .stmt-links .chip-chk {
  background: transparent !important; color: #fff !important; border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, .55) !important; border-radius: 0 !important;
  padding: 2px 10px; margin: 0; font-size: 14px; font-weight: 400; white-space: nowrap;
}
.modal-head .stmt-links .chip-chk:last-child { border-right: 0 !important; }
.modal-head .stmt-links .chip-chk:active, .modal-head .stmt-links .chip-chk.hit-gold { color: #ffd700 !important; }
[data-style="row"] .modal-head .stmt-links .chip-chk { color: var(--text) !important; border-right-color: var(--line) !important; }
[data-style="row"] .modal-head .stmt-links .chip-chk:active,
[data-style="row"] .modal-head .stmt-links .chip-chk.hit-gold { color: var(--brand) !important; }
.recon-page .recon-box { margin: 0; background: var(--soft2); color: var(--text); padding: 10px; display: block; }
.recon-page .recon-box .recon-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.recon-page .recon-box .recon-row.chips { gap: 6px; }
.recon-page .recon-box input[type="date"] { background: #fff; color: #111; border: 1px solid var(--line); padding: 4px 6px; }
.recon-page .recon-box .chip-chk { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 4px; }
.recon-page .recon-box .chip-chk.on { background: var(--brand-d); color: #fff; border-color: var(--brand-d); }
.recon-page .recon-box .chip-chk.cu-mag { padding: 4px 8px; }
.recon-page .recon-box .recon-picked { border: 0; background: transparent; color: var(--brand-d); font-size: 13px; padding: 0; cursor: pointer; }
.recon-page .recon-box .recon-go { background: var(--brand-d); color: #fff; border: 0; border-radius: 4px; padding: 6px 12px; margin-left: auto; }
.recon-rpop-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 20px; }
.recon-rpop { background: #fff; color: #111; border-radius: 8px; padding: 16px; width: min(360px, 100%); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.recon-rpop-title { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.recon-rpop-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.recon-rpop-fields input[type="date"] { flex: 1; min-width: 120px; border: 1px solid var(--line); padding: 6px 8px; background: #fff; }
.recon-rpop-acts { display: flex; justify-content: flex-end; gap: 8px; }
.recon-page .recon-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.recon-page .recon-empty { margin-top: 12px; }
.recon-page .recon-file { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 8px 10px; }
.recon-page .recon-file-main { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.recon-page .recon-file-time { font-size: 13px; font-weight: 600; color: var(--brand-d); }
.recon-page .recon-file-name { font-size: 12px; color: var(--muted); word-break: break-all; }
.recon-page .recon-file-st { font-size: 12px; color: var(--brand); margin-top: 2px; }
.recon-page .recon-file-st.err { color: var(--danger); }
.recon-page .recon-file.pending { opacity: .92; }
.recon-page .recon-file-acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 759px) { .recon-pc-only { display: none !important; } }
.recon-page .recon-out { padding: 10px; overflow-x: auto; background: #fff; }
.recon-page .stmt-a4 h1 { text-align: center; font-size: 18px; margin: 0 0 4px; }
.recon-page .stmt-a4 h2 { text-align: center; font-size: 15px; margin: 0 0 10px; }
.recon-page .stmt-a4 table { border-collapse: collapse; width: 100%; margin: 0 0 10px; font-size: 12px; }
.recon-page .stmt-a4 th, .recon-page .stmt-a4 td { border: 1px solid #333; padding: 3px 5px; text-align: center; }
.recon-page .stmt-a4 .h2 { font-weight: 700; margin: 8px 0 4px; text-align: center; }
.recon-page .stmt-a4 .h2.left { text-align: left; }
.recon-page .stmt-a4 .meta td { border: 0; padding: 2px 4px; text-align: center; }
.recon-page .stmt-a4 .foot { margin-top: 8px; text-align: left; white-space: nowrap; }
.recon-page .stmt-a4 .sum th { background: #f3f3f3; }
.pagehead .cust-entries .chip-chk:last-child { border-right: 0 !important; }

/* 百一批：客户页第一行 放大镜｜客户数量｜欠款总额｜添加客户（｜分隔、间距2px）；第二行 排序下拉 + 搜索框(点放大镜出) */
.cu-bar { gap: 2px; }
.cu-sep { color: rgba(255, 255, 255, .5); font-size: 14px; padding: 0 1px; }
.pagehead .cu-bar .cu-mag { padding: 2px 6px; }
.cu-bar2 { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cu-bar2 .cu-search-in { flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: 7px 10px; background: var(--soft2); color: var(--text); }

/* 百二批：订单页时间按钮 今日｜本周｜本月｜全年｜时间段 之间加白色竖杠分隔 */
.ortime-sep { color: #fff; opacity: .8; font-size: 13px; padding: 0 1px; }

/* 百三批（样式/排版专轮）：
   ①订单页 页头第一行与下一行间距+50% ②流水页时间段行(仅点击时出) ③客户页第一行重排(左:放大镜+添加客户/右:两统计)+排序下拉右对齐·主题浅色·去箭头·更窄
   ④客户详情 汇总上下边距翻倍+总单数与退货数量间横杠 ⑤商品历史 下拉主题浅色去箭头+列表/各色各码明细字+40% ⑥现货列表 缩略图+款号+库存+已卖+欠货同一行·字+30%
   ⑦欠货详情 加减极简去背景·发货主题浅色 ⑧预下单 新建按钮1px边框·明细同色不同码去分隔·列表预订/已转/剩余同一行 ⑨销售页 销量蓝/库存黄/退货红·字号同码 ⑩客户页明细 色码|卖出|金额|退款|欠货(红大字)前面小一半 */

/* ① 订单页：页头第一行(时间行)与下面一行间距 +50% */
.pagehead .ortime { margin-bottom: 6px; }

/* ② 流水页：时间段起止框只在选中「时间段」时出现（结构已改），这里微调间距 */
.payflow-page .pf-daterow { margin-top: 8px; }

/* ③ 客户页第一行：左[放大镜 + 添加客户] 右[客户数量 ｜ 欠款总额] */
.cu-bar .cu-right { margin-left: auto; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
/* 排序/商品历史下拉：主题浅色底、白字、无边框、去掉上下箭头、更窄（弹出层宽度浏览器原生不可控，已尽量收窄控件本身） */
.pagehead .ch-sort, .pagehead .cu-sort {
  background: var(--brand) !important; color: #fff !important; border: 0 !important;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding: 2px 6px; font-size: 13px; border-radius: 6px;
}

/* ④ 客户详情：汇总表上下边距翻倍；总单数(行1)与退货数量(行2)之间加横杠 */
.pagehead .cust-sum2 { margin-top: 12px !important; }
.pagehead .cust-sum2 + .cust-sum2 { margin-top: 8px !important; border-top: 1px solid rgba(255, 255, 255, .6); }
.pagehead .cust-entries { margin-top: 12px !important; }

/* ⑤ 商品历史：列表 + 点款号进去的各色各码明细页，字体 +40% */
#ch-list .lrow .lno, .chistd-grid .lrow .lno { font-size: 19.6px; }
#ch-list .lrow .ldesc, .chistd-grid .lrow .ldesc { font-size: 15.4px; }
#ch-list .lrow .lstat, .chistd-grid .lrow .lstat { font-size: 16.8px; }
/* 各色各码明细页：件数/金额 靠到行最右（该页图+款号被包在不伸缩的内层，需把右侧数字块推到最右） */
.chistd-grid .lrow .lside { margin-left: auto; text-align: right; }

/* ⑥ 现货列表：缩略图 + 款号 + 库存 + 已卖 + 欠货 同一行，字体 +30% */
.gs-row .gs-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.gs-row .gs-sts { display: flex; align-items: baseline; gap: 10px; flex-wrap: nowrap; }
.gs-row .gs-no { font-weight: 400; color: var(--text); }
.gs-row .gs-st { white-space: nowrap; }
.gs-row .lacts { flex: 0 0 auto; }

/* ⑦ 欠货详情：加减极简（去掉背景色块），发货按钮主题浅色 */
.lk-detail .lk-stp .stp { background: transparent; color: var(--brand-d); border: 0; }
.lk-detail .lk-acts .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ⑧ 预下单：新建按钮 1px 白边框；明细同色不同码之间去掉分隔线（只保留款头/每色末尾）；列表 预订/已转/剩余 同一行 */
.pagehead .pre-newbtn { border: 1px solid #fff !important; }/* 预下单列表：已完成的单子可手工删除（极简文字按钮，删除不影响任何数据） */
.pre-del-row { flex: 0 0 auto; margin-left: 6px; background: none; border: 0; color: var(--muted); font-size: 13px; padding: 4px 2px; cursor: pointer; text-decoration: underline; }

/* 设置页「数据总表」按钮：主题深色背景、白字、去框 */
.data-tbl-acts .btn, .data-tbl-acts .btn.sm { background: var(--brand-d); color: #fff; border: 0; }

/* ⑨ 商品详情销售页：销量蓝 / 库存黄 / 退货红 */
.gd-stbl th.gd-h-sold, .gd-stbl td.gd-sold { color: #2f6fed; }
.gd-stbl th.gd-h-stock, .gd-stbl td.gd-stock { color: #d98c00; }
.gd-stbl th.gd-h-ret, .gd-stbl td.gd-ret { color: #e5484d; }
/* 商品详情内容列表(2026-10-28)：字体全部统一=本页「销售总量」下面那个数字(15px)、缩略图减半(66→33)、颜色相对图片居中 */
.gd-stbl td, .gd-stbl td.gd-csize, .gd-stbl .gd-num, .gd-stbl td.gd-sold, .gd-stbl td.gd-stock, .gd-stbl td.gd-ret, .gd-ccolor { font-size: 15px; }
.gd-stbl .gd-thumb { width: 33px; }
.gd-stbl .gd-thumb.empty { width: 33px; height: 33px; }
.gd-c1in { align-items: center; }
.gd-ccolor { text-align: center; }

/* ⑩ 商品详情客户页明细：色码|卖出|金额|退款|欠货；欠货列红字正常大(18px)，前面几列在原「小一半(9px)」基础上再 +30% = 11.7px */
.gd-cust2-tbl th, .gd-cust2-tbl td { font-size: 11.7px; }
/* 百四批：商品详情 销售页/员工页 时间按钮（今日/本周/本月/全部/时间段）去掉按钮边框（｜分隔已在 JS 去掉） */
.gd-ofrow .chip-chk { border: 0; }
.gd-ofrow .chip-chk.on { border: 0; }

/* 百五批：客户详情页下方订单列表——去掉卡片/表格样式(白底·边框·圆角·阴影·行间距)，改成跟订单页一样的「一线之隔」扁平列表，距离更短 */
/* 百六批：客户详情页 页头数据表 字体统一——数字(b)与标签(span，如「总单数」)一样大(12px) */
.pagehead .cust-sum2 .sbox span, .pagehead .cust-sum2 .sbox b { font-size: 12px !important; }

/* 百七批：生产系统 下单/出货 表单精致化——
   ①预计出货日收窄、不再全宽(避免过宽/超出页面) ②各色各码按颜色分块，色与色之间深浅交替，好识别 ③步进按钮比例协调(34×34 圆角)、数量框干净居中 */
#gd-op-exp { width: 100%; max-width: 200px; }
.gd-op-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.gd-opg { border-radius: 10px; padding: 6px 10px 8px; }
.gd-opg.even { background: #fff; border: 1px solid var(--line); }
.gd-opg.odd { background: color-mix(in srgb, var(--brand-d) 7%, #fff); border: 1px solid color-mix(in srgb, var(--brand-d) 16%, #fff); }
.gd-opg-h { font-size: 14px; font-weight: 700; color: var(--brand-d); padding: 2px 0 4px; }
.gd-oprow { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px dashed color-mix(in srgb, var(--brand-d) 15%, #fff); }
.gd-opg-h + .gd-oprow { border-top: 0; }
.gd-opsize { flex: 0 0 auto; min-width: 30px; font-size: 15px; color: var(--text); }
.gd-op-rem { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.gd-op-rem.owe { color: var(--danger); }
.gd-opq { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.gd-opq .stp { flex: 0 0 34px; width: 34px; height: 34px; font-size: 20px; line-height: 1; padding: 0; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--brand-d) 12%, #fff); color: var(--brand-d); font-weight: 700; }
.gd-opq .stp:active { background: color-mix(in srgb, var(--brand-d) 24%, #fff); }
.gd-opq input { flex: 0 0 auto; width: 54px; max-width: 54px; height: 34px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 15px; background: #fff; color: var(--text); padding: 0 4px; }
.gd-op-empty { padding: 12px 0; text-align: center; }

/* 百八批：商品详情页右上角「价格等级」下拉——底色改主题浅色、去掉上下箭头（与客户页/商品历史下拉统一） */
.pagehead .gd-psel { background: var(--brand) !important; -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* 百九批：客户详情订单列表「上拉显示更多」提示（取代原「加载更多」按钮，配合上拉自动加载） */
.cu-more { text-align: center; color: var(--muted); font-size: 13px; padding: 14px 0; cursor: pointer; }

/* 百十批：①员工标签列表字体对齐【今日】chip(.chip-chk=13px) ②客户标签 搜索/时间工具条 + 欠货逐行发货 + 明细小计 ③本款入库历史 每条横杠隔开·不加粗·字体统一 */
   /* 员工表字体改成与【今日】按钮一样大 */
.gd-cust-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.gd-cust-kw { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--text); font-size: 14px; }
.gd-cust-times { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.gd-cust-times .chip-chk { border-radius: 2px; color: #000; background: #fff; border: 1px solid var(--line); font-size: 13px; padding: 4px 10px; }
.gd-cust-times .chip-chk.on { background: var(--soft); color: #000; border-color: var(--brand); font-weight: 600; }
.gd-cs-ship { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; height: 30px; }
.gd-cs-stp { display: inline-flex; align-items: center; gap: 1px; height: 30px; }
.gd-cs-stp .stp { flex: 0 0 30px; width: 30px; height: 30px; font-size: 18px; line-height: 1; padding: 0; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--brand-d) 12%, #fff); color: var(--brand-d); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gd-cs-stp .stp:active { background: color-mix(in srgb, var(--brand-d) 24%, #fff); }
.gd-cs-stp input { width: calc(4ch + 10px); max-width: calc(4ch + 10px); height: 30px; line-height: 30px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text); padding: 0 4px; margin: 0; }
.gd-cs-ship .btn.sm { height: 30px; padding: 0 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.gdc-sec .gd-cust2-tbl td { vertical-align: middle; }
.gdc-sec .gd-cust2-tbl:has(.gd-cs-ship) th:last-child,
.gdc-sec .gd-cust2-tbl td:has(.gd-cs-ship) { text-align: right; }
.gdc-sec .gd-cs-ship { justify-content: flex-end; }
.gd-cust2-tbl tfoot .gd-cs-sum td { font-size: 12.5px; font-weight: 600; border-top: 2px solid var(--line); border-bottom: 0; background: var(--soft); }
.gd-cust2-tbl tfoot .gd-cs-sum td.gd-owe { font-size: 12.5px; color: var(--danger); font-weight: 400; }
.gd-inb-rec { border-bottom: 1px solid var(--line2); padding: 8px 0; }
.gd-inb-rec:first-of-type { padding-top: 2px; }
.gd-inb-rec:last-of-type { border-bottom: 0; padding-bottom: 0; }
.gd-inb-qty { margin-left: auto; font-weight: 400; }
.gd-cust2-tbl th.gd-owe, .gd-cust2-tbl td.gd-owe { font-size: 11.7px; color: var(--danger); font-weight: 400; }

/* 百十三批：订单详情页 列表改扁平「一行一个色一个码」——[小图] | [款号(纯数字) / 颜色·码] | [价格] | [数量]；
   一个款内无分隔线、行间距 2px；款与款之间一条分隔线、上下间距 0（贴紧） */
.odgrp { margin: 0; padding: 0; border-bottom: 1px solid var(--line2); }
.odgrp:last-child { border-bottom: 0; }
.odlines { display: flex; flex-direction: column; gap: 2px; }
.odline { display: flex; align-items: center; gap: 8px; }
.odl-img { flex: 0 0 auto; }
.odl-img .cthumb, .odl-img .cthumb.sm { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; }
.odl-img .cthumb.empty { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); background: var(--soft); }
.odl-no { font-size: 15px; color: var(--text); line-height: 1.3; }
.odl-cs { font-size: 12.5px; line-height: 1.3; }
.odl-price { flex: 0 0 auto; min-width: 58px; text-align: center; font-size: 14px; }
.odl-price.odprice-chg { font-weight: 700; }
.odl-qty { flex: 0 0 auto; min-width: 34px; text-align: right; font-size: 15px; color: var(--text); }

/* 百十四批：订单详情 ①小图 +20%(42→50) ②款号与价格之间加「款式备注」单独一列(超长省略号) ③4 格数据表在弹窗里收窄防溢出 */
.odl-img .cthumb, .odl-img .cthumb.sm { width: 50px; height: 50px; }
.odl-mid { flex: 0 1 auto; min-width: 0; }
.odl-desc { flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal .summary.od-sum .sbox { min-width: 0; }
.modal .summary.od-sum .sbox b { font-size: 13px; }

/* 百十五批：订单详情 ①动作按钮收进页头右上「⋯」下拉菜单(右对齐、点外面收起) ②最下方显示本单发货记录 */
.od-kebab { position: relative; flex: 0 0 auto; }
.od-dots { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; padding: 0 8px; cursor: pointer; border-radius: 8px; }
.od-dots:active { background: rgba(255, 255, 255, .18); }
.od-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; display: flex; flex-direction: column; gap: 5px; min-width: 118px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.od-menu.hidden { display: none; }
.od-menu .btn { width: 100%; margin: 0; justify-content: center; }
.od-shiplog { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 8px; }
.od-sl-empty { padding: 6px 0; }
.od-shiplog .item.two { margin-top: 6px; }

/* 百十六批：订单详情 ①价格列左对齐 ②发货记录改用「发货日志总表」卡片样式(复用 .item.two/.tags)，去掉矩阵表 */
.odl-price { text-align: left; }

/* 百十七批：订单详情 数量列右间距加到 10px（数字不再贴着最右边） */
.odl-qty { padding-right: 10px; }

/* 百十八批：订单详情 备注移进中间列——中间列三行「款号 / 备注 / 颜色·码」；中间列可伸展且限宽，价格列位置基本不变，备注超长省略号 */
.odl-mid { flex: 1 1 auto; max-width: 58%; }

/* 百十九批：订单详情 价格列距最右边「固定 130px」——去掉弹性占位，中间列撑满把价格+数量推到右边；
   价格 margin-right 78 + 列间隙 8 + 数量固定 44 = 130px（数量右间距 10px 仍在 44px 内） */
.odl-mid { max-width: none; }
.odl-price { min-width: 0; margin-right: 78px; }
.odl-qty { flex: 0 0 44px; width: 44px; }

/* 百二十批：订单详情 发货记录上方加「收银记录」区（本单收款/退钱流水，同卡片样式） */
.od-paylog { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 8px; }
.od-paylog .item.two { margin-top: 6px; }

/* 百廿一批：收银记录 / 发货记录 间距收紧——两段上下 margin 1px、段内顶距 4px、记录卡之间 1px（原来卡片自带 margin-bottom:10px+padding:10px+阴影，太松） */
.od-paylog, .od-shiplog { margin-top: 1px; margin-bottom: 1px; padding-top: 4px; }
.od-paylog .item.two, .od-shiplog .item.two { margin-top: 1px; margin-bottom: 1px; padding: 6px 8px; box-shadow: none; }

/* 百廿二批：订单详情 ①页头「尺码竖排/横排」分段切换(⋯前、间距5px、相互切换) ②横排展示：每款「款头(图/款号/备注/价格/单款总数) + 色码矩阵(竖色横码、左上角留空)」，款间不分隔仅2px ③收银/发货记录折叠(默认收起，点标题展开) ④收银记录改单表格 */
.od-headtools { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.od-sizetgl { display: inline-flex; border: 1px solid rgba(255, 255, 255, .55); border-radius: 8px; overflow: hidden; }
.od-sz { border: 0; background: transparent; color: #fff; font-size: 12px; padding: 4px 8px; cursor: pointer; line-height: 1.2; }
.od-sz.on { background: #fff; color: var(--brand-d); font-weight: 600; }
.od-fold-h { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; padding: 2px 0; -webkit-user-select: none; user-select: none; }
.od-fold-tg { flex: 0 0 auto; width: 12px; font-size: 11px; color: var(--brand-d); }
.od-fold-b { padding-top: 4px; }
.od-fold-b.hidden { display: none; }
.od-pay-tbl { width: 100%; border-collapse: collapse; }
.od-pay-tbl th, .od-pay-tbl td { border-bottom: 1px solid var(--line2); padding: 4px 6px; font-size: 12.5px; text-align: left; vertical-align: top; }
.od-pay-tbl th { color: var(--muted); font-weight: 400; background: var(--soft); }
.od-pay-tbl th.ta-r, .od-pay-tbl td.ta-r { text-align: right; }
.od-items-h { display: flex; flex-direction: column; gap: 2px; }
.odh-top { display: flex; align-items: center; gap: 8px; }
.odh-img { flex: 0 0 auto; }
.odh-img .cthumb, .odh-img .cthumb.sm { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }
.odh-img .cthumb.empty { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); background: var(--soft); }
.odh-mid { flex: 1 1 auto; min-width: 0; }
.odh-no { font-size: 15px; color: var(--text); line-height: 1.3; }
.odh-desc { font-size: 11px; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odh-price { font-size: 14px; line-height: 1.3; }
.odh-qty { flex: 0 0 auto; min-width: 34px; text-align: right; font-size: 16px; color: var(--text); padding-right: 10px; }
.odh-tbl { width: 100%; border-collapse: collapse; margin-top: 4px; }
.odh-tbl th, .odh-tbl td { border: 1px solid var(--line); padding: 3px 6px; text-align: center; font-size: 13px; }
.odh-tbl th { background: var(--soft); font-weight: 400; }
/* 百廿三批：一批页面样式 A~F */
/* A 订单详情横排：去矩阵表格线、颜色字居中、款间浅色分隔线 */
.odh-tbl th, .odh-tbl td { border: 0; }
.odh-tbl td.odh-c { text-align: center; }
.od-items-h .odh-g { border-bottom: 1px solid rgba(0, 0, 0, .07); padding-bottom: 4px; }
.od-items-h .odh-g:last-child { border-bottom: 0; }
/* B 商品历史列表：缩略图|款号|拿退|金额 四列，字体统一 15.4px(同「拿」) */
.ch-row .ch-no { flex: 0 0 auto; min-width: 56px; font-size: 15.4px; font-weight: 400; color: var(--text); }
.ch-row .ch-nt { flex: 1 1 auto; min-width: 0; font-size: 15.4px; font-weight: 400; color: var(--muted); }
.ch-row .ch-amt { flex: 0 0 auto; margin-left: auto; text-align: right; font-size: 15.4px; font-weight: 400; color: var(--text); }
/* C 欠货商品页：整页字体 14px(同「返回」键)、不加粗(红色保留) */
.clk h3, .clk .gd-sum-line, .clk .lrow .lno, .clk .lrow .ldesc, .clk .lrow .lstat { font-size: 14px; font-weight: 400; }
.clk .owe, .clk .lstat.owe { font-weight: 400; }
/* D 欠货详情行：单行 [色/码] [单号·日期(小·居中)] [欠N] [±] [发货]；色码与欠数同字号，单号日期偏小 */
.lk-shiprow { display: flex; align-items: center; gap: 8px; }
.lk-shiprow .lk-cs { flex: 0 0 auto; }
.lk-shiprow .lk-meta { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-shiprow .lk-c2 { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
/* E 对账单·订单记录：4 列[时间/单号 | 金额 | 单上已收 | 原内容] */
.stmt-row { flex-wrap: nowrap; align-items: center; }
.stmt-row .st-c2 { flex: 0 0 auto; min-width: 62px; text-align: right; }
.stmt-row .st-c3 { flex: 0 0 auto; min-width: 58px; text-align: right; }
/* F 预下单：新建按钮 1px 白边(修正被 .btn.primary 覆盖)、列表字体 12px 不加粗、保存预下单绿色、明细已转/剩余 14px(同码号) */
.pagehead .btn.primary.pre-newbtn { border: 1px solid #fff !important; }
.btn.pre-save-g, .pre-acts .pre-save-g { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }

/* 百廿四批：对账单表头 / 商品详情head(修改按钮1px边框·价格框浅底黑字右对齐·chips左对齐去边距加竖杠2px) / 款式详情修改页(推荐白字·返回去箭头靠右) / 客户明细新页 / 欠货详情字体+30% */
/* ① 对账单「订单记录」列表——4列表头（只显示在列顶） */
.stmt-row.stmt-hd { font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line2); }
.stmt-row.stmt-hd .st-c1, .stmt-row.stmt-hd .st-c2, .stmt-row.stmt-hd .st-c3, .stmt-row.stmt-hd .st-c4 { font-size: 12px; }

/* ② 商品详情页 head */
.pagehead .gd-psel { background: var(--soft) !important; color: #000 !important; text-align: right; text-align-last: right; }   /* 价格框：主题最浅色底 + 黑字 + 右对齐 */
.pagehead .gd-psel option { color: #000; background: #fff; }
.pagehead .chip-chk.gd-edit-btn { border: 1px solid #fff !important; }   /* 修改按钮 1px 白边框（盖过 .pagehead .chip-chk{border:0!important}） */
.pagehead .chips.gd-navrow { justify-content: flex-start; gap: 2px; }   /* 导航 chips 左对齐、间距 2px */
.pagehead .chips.gd-navrow .chip-chk { margin: 0; }   /* 去掉按钮边距 */
.gd-navrow .gd-sep { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1; margin: 0; user-select: none; }   /* 按钮之间竖杠 */

/* ③ 款式详情修改页：推荐款式白字 + 返回按钮去箭头靠右 */
.modal-head .g-recplain { color: #fff !important; }

/* ④ 客户明细新页：上销售记录 / 下欠货发货 */
.gdc-body { padding: 4px 0 12px; }
.gdc-sec { margin-top: 10px; }
.gdc-sec h3 { margin: 0 0 6px; }

/* ⑤ 欠货详情页：色码与欠数同字号(17px)，单号·日期居中偏小(12px)，步进/发货为控件字号 */
.lk-detail .lk-shiprow { font-size: 17px; }
.lk-detail .lk-shiprow .lk-cs { font-size: 17px; }
.lk-detail .lk-shiprow .lk-meta { font-size: 12px; }
.lk-detail .lk-shiprow b.owe.lk-owe { font-size: 17px; }
.lk-detail .lk-shiprow .lk-qty { font-size: 16px; }
.lk-detail .lk-shiprow .btn.sm { font-size: 15px; }

/* 百廿五批：对账单列对齐居中 / 修改按钮边框贴字1px·圆角2px / 导航chip字与竖杠间距2px / 欠货详情两列排版 */
/* ① 对账单「订单记录」——每列与表头对齐、内容靠左（固定列宽，表头与数据行同宽） */
.stmt-row .st-c1 { display: flex; flex-direction: column; align-items: flex-start; text-align: left; flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.stmt-row .st-c2 { flex: 0 0 76px; text-align: left; }
.stmt-row .st-c3 { flex: 0 0 76px; text-align: left; }
.stmt-row .st-c4 { flex: 0 0 92px; text-align: left; }
.stmt-row.stmt-hd { justify-content: flex-start; }
.stmt-body .stmt-gray { color: #c5c5c5 !important; font-size: 9px; line-height: 1.2; }   /* 单号、备注固定浅灰，9px */
/* 对账单独立表框(2026-10-28)：整笔收款/冲账明细各自一个带边框的表框 */
.stmt-box { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; margin-top: 4px; background: var(--card); }
.stmt-box-ft { border-top: 1px solid var(--line2); margin-top: 4px; padding-top: 4px; font-size: 12px; color: var(--muted); text-align: right; }

/* ③ 导航 chips：去掉左右内边距，让「字—｜—字」间距正好 2px（gap 已是 2px） */
.pagehead .chips.gd-navrow .chip-chk { padding-left: 0; padding-right: 0; }

/* ④ 欠货详情页：单行排版（色码 | 单号·日期 | 欠N±发货），不再左栏竖排三行 */
.lk-detail .lk-shiprow { align-items: center; }
.lk-detail .lk-c2 .lk-acts { margin-left: 0; }

/* 百廿六批：全站页头(.pagehead)里的按钮字体全部加粗（含选中态 .on / hit-gold，盖过之前的 font-weight:400!important） */
.pagehead .btn, .pagehead .chip-chk, .pagehead .pk-color-btn { font-weight: 700 !important; }
.pagehead .chip-chk.on, .pagehead .btn.hit-gold, .pagehead .chip-chk.hit-gold, .pagehead .pk-color-btn.on { font-weight: 700 !important; }

/* 百廿七批：客户列表表格化 / 明细页表字体15px不加粗 / 员工页17px / 生产日志字体=总表·颜色靠左 / 改数量弹窗 */
/* A. 商品详情·客户页——客户列表改表格（6列：等级/客户名/价/件数/欠货/明细），表头等级列留空 */
.gd-cust-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.gd-cust-tbl th { font-size: 14px; font-weight: 400; color: var(--muted); background: var(--soft); padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line2); }
.gd-cust-tbl td { padding: 6px 4px; text-align: center; font-size: 16px; border-bottom: 1px solid var(--line2); }
.gd-cust-tbl td.gd-cc-name { text-align: left; }
.gd-cust-tbl th.gd-cc-name { text-align: left; }
.gd-cust-tbl td.gd-cc-price { color: var(--brand-d); }
.gd-cust-tbl td.gd-cc-owe { color: var(--danger); }
.gd-cust-tbl .lv-tag { font-size: 14px; font-weight: 400; }
.gd-cust-tbl .gd-cc-more .btn.sm { padding: 3px 10px; font-size: 14px; }

/* B. 客户明细页——销售记录表 / 欠货发货表：内容字体＝【销售记录】标题(15px)、不加粗 */
.gdc-sec .gd-cust2-tbl th, .gdc-sec .gd-cust2-tbl td { font-size: 15px; font-weight: 400; }
.gdc-sec .gd-cust2-tbl th.gd-owe, .gdc-sec .gd-cust2-tbl td.gd-owe { font-size: 15px; font-weight: 400; }
.gdc-sec .gd-cust2-tbl tfoot .gd-cs-sum td { font-size: 15px; font-weight: 400; }

/* C. 商品详情·员工页——表格字体加大到与款号(.gd-no=17px)一样 */
.gd-staff-tbl th, .gd-staff-tbl td { font-size: 17px; }

/* D. 生产系统·生产日志——字体＝上面总表(.pd-cells td=15px)，颜色列靠左对齐 */
.pdlog-tbl td { font-size: 15px; }
.pdlog-tbl td.pd-c { text-align: left; }
.pd-editrow .pd-qtybtn { flex: 0 0 auto; }

/* 百廿八批：更多页「数据总表」按钮列排+说明 / 生产系统·编辑页5列排版(每单一线隔开·三按钮间距1px) */
/* A. 更多页数据总表：按钮竖排(列)，每个按钮下面一行说明 */
.dtbl-list { display: flex; flex-direction: column; }
.dtbl-item { display: flex; flex-direction: column; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.dtbl-item:last-child { border-bottom: 0; }
.dtbl-item .btn.sm { align-self: flex-start; }
.dtbl-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* B. 生产系统·编辑页：第一列(下单+人名 / 时间 两行)、第二列(日期框)、第三~五列(保存/改数量/删除，间距1px)；每单之间一条线隔开 */
.pd-editrow { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.pd-editrow:last-child { border-bottom: 0; }
.pd-editrow .pd-c1 { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.pd-editrow .pd-c1a { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-editrow .pd-c1b { font-size: 12px; white-space: nowrap; }
.pd-editrow .pd-c2 { flex: 0 0 auto; }
.pd-editrow input.pd-exp { padding: 4px 5px; font-size: 13px; max-width: 108px; }
.pd-editrow .pd-acts { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.pd-editrow .pd-acts .btn.sm { padding: 5px 7px; font-size: 13px; }

/* 百廿九批：对账单·收款记录（方案A，列宽同订单记录；金额靠右、正绿负红；类型小标签；备注小字行） */
.stmt-row.pay-row .st-c4, .stmt-row.pay-hd .st-c4 { text-align: right; }
.st-c4 .pay-pos { color: var(--ok); font-weight: 600; }
.st-c4 .pay-neg { color: var(--danger); font-weight: 600; }

/* 百三十批：上拉分页底部提示 + 订单详情/对账单「更多/查看更多」按钮 */
.list-hint.pk-end { text-align: center; color: var(--muted); font-size: 12.5px; padding: 10px 0 4px; }
.od-more, .stmt-more { text-align: center; color: var(--brand-d); font-size: 13px; padding: 8px 0 2px; cursor: pointer; }
.od-more:active, .stmt-more:active { opacity: .6; }
.stmt-more { border-top: 1px dashed var(--line); margin-top: 2px; }
#st-flush-tg { display: block; border: 1px solid var(--line); border-radius: 3px; background: #fff; padding: 8px 12px; }

/* 百三十一批：004客户页(时间筛选条+浅色排序下拉+4列客户卡) / 032下单弹窗预计出货日(标题字号加粗·与日期框同行同高) */
/* 004 页头：时间筛选条（今天/本月/时间段 左，排序下拉 右·浅色） */
.cu-timebar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cu-timebar .cu-times { display: flex; align-items: center; gap: 3px; margin-left: auto; }   /* 今天/本月/时间段 右对齐，间距3px */
.cu-timebar .cu-times .chip-chk { padding-left: 2px; padding-right: 2px; }   /* 按钮字边距2px */
.cu-timebar .cu-tsep { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1; }   /* chip 之间的竖杠 */
.pagehead .cu-timebar .cu-sort { margin-left: 4px; background: #fff !important; color: #000 !important; border: 0 !important; font-weight: 600; border-radius: 2px !important; }   /* 排序下拉四角 2px，在时间段之后、最右 */
.cu-sortlab { color: inherit; font-size: 13px; white-space: nowrap; margin-left: 6px; }
.cu-sort option { background: #fff; color: #000; }
/* 004 客户卡：4列——等级 | 名字(最多3个字+..) | 来自哪里 | 指标(靠右) */
#cu-list2 .lv-col { font-size: 28px; line-height: 1; }
.cc2-name { font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cc2-from { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-align: left; }   /* 来自哪里：左对齐、没填留空（电话号码列已按要求删掉） */
.cc2-c4 { text-align: right; align-self: center; }
.cc2-v { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; }
.cc2-v.owe { color: var(--danger); }

/* 032 下单/加单弹窗·预计出货日：标签字号同标题(16px)加粗，与日期框同一行、同高 */
.gd-op-expfield { display: flex; align-items: center; gap: 8px; max-width: none; }
.gd-op-expfield label { display: inline-block; margin: 0; font-size: 16px; font-weight: 700; line-height: 30px; }
.gd-op-expfield input { flex: 0 0 auto; height: 30px; line-height: 30px; padding: 0 8px; font-size: 14px; }

/* 百三十二批：004客户列表——等级字母小一半(28→14px)、四级分色(只字母、去底色块)、行距1px、首列收窄 */
#cu-list2 .item.two { grid-template-columns: 20px minmax(0, auto) auto minmax(0, 1fr); padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line2); margin-bottom: 0; }
#cu-list2 .lv-col { background: transparent; font-size: 14px; font-weight: 700; }
#cu-list2 .cust-card.A .lv-col { color: #DB5A6B; }
#cu-list2 .cust-card.B .lv-col { color: #475B74; }
#cu-list2 .cust-card.C .lv-col { color: #B35723; }
#cu-list2 .cust-card.D .lv-col { color: #6E3569; }

/* 百三十三批：004客户列表——「已发/未发」列在全部行居中对齐（名字列与指标列各占1fr等宽弹性，中间col3固定居中，不再随名字长短左右错位） */
/* 百三十四批：004客户列表——「已发」「未发」拆成两个独立列、各自居中（固定列宽保证每行对齐） */
#cu-list2 .item.two { grid-template-columns: minmax(0, 1fr); gap: 6px; }   /* sw-acts绝对定位不在流内，.item单列即可；5列网格在内层.sw-main.cu-g */

/* 百三十五批：008 本单明细——款号前加缩略图，尺寸/圆角/无图样式与「订单详情」完全一致(50px)，点击可放大(复用 img-view) */
.oline2 .oe-thumb { flex: 0 0 auto; display: flex; align-items: center; }
.oline2 .oe-thumb .cthumb, .oline2 .oe-thumb .cthumb.sm { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }
.oline2 .oe-thumb .cthumb.empty { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); background: var(--soft); }
/* 014 修改订单弹窗：顶部「客户」行——原客户名 + 「修改」按钮（点开客户搜索浮层换客户） */
.oe-custfield { margin: 0 0 8px; }
.oe-custrow { display: flex; align-items: center; gap: 10px; }
.oe-custrow #oe-cust-name { font-size: 16px; font-weight: 700; color: var(--text); }
/* 客户搜索浮层：盖在弹窗之上(z-index 高于 .modal-mask 的 50)，底部抽屉/桌面居中 */
.custpick-mask { position: fixed; inset: 0; background: rgba(15, 20, 30, .5); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.custpick { background: #fff; width: 100%; max-width: 720px; max-height: 88vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 14px 16px; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cp-head b { font-size: 17px; }
@media (min-width: 760px) { .custpick-mask { align-items: center; } .custpick { border-radius: 16px; } }
/* 日报表弹窗：日期 + 生成；生成后表格满宽细边框，可复制/打印 */
.daily-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.daily-bar input[type="date"] { flex: 1 1 120px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; color: var(--text); font-size: 14px; }
.daily-bar .ios-range-btn { flex: 1 1 160px; width: auto; }
.daily-bar .btn { flex: 0 0 auto; }
.daily-tip { margin: 6px 0 8px; }
.daily-acts { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.daily-acts .dim { margin-left: auto; }
table.daily-tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
table.daily-tbl th, table.daily-tbl td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; word-break: break-all; }
table.daily-tbl th { background: var(--soft); color: var(--text); font-weight: 700; }
table.daily-tbl td.dt-no { font-weight: 700; }
table.daily-tbl tr.dt-sub td { font-weight: 700; }
table.daily-tbl tr.dt-grand td { background: var(--soft); font-weight: 700; }
table.daily-tbl tr.dt-cust td { background: var(--soft2, var(--soft)); font-weight: 700; text-align: left; padding-left: 8px; }   /* 发货日报表：客户分段头 */

/* 百三十六批：表格「打印浮层」——生产/入库日报表、预下单明细、040欠货单款 共用。
   屏幕上 #kd-print-area 隐藏；打印时只显示它、隐藏其余整页，纸宽 80mm、全部不加粗（用户要求）。 */
#kd-print-area { display: none; }
@media print {
  body.printing-table > *:not(#kd-print-area) { display: none !important; }
  body.printing-table #kd-print-area { display: block !important; }
  #kd-print-area, #kd-print-area * { font-weight: normal !important; color: #000 !important; background: #fff !important; }
  #kd-print-area .kp-title { text-align: center; font-size: 14px; margin: 0 0 5px; }
  #kd-print-area table { border-collapse: collapse; width: 100%; font-size: 11px; }
  #kd-print-area th, #kd-print-area td { border: 1px solid #555; padding: 1px 3px; text-align: center; word-break: break-all; }
  @page { size: 80mm auto; margin: 3mm; }
}

/* 百三十七批：收银弹窗(cash-pop)恢复成「弹窗」——底部抽屉(桌面居中)、半透明遮罩背后露出开单页，不再整屏。
   只影响收银这一个弹窗，其它弹窗仍按九三批整屏。优先级靠 .modal-mask.cash-pop 叠类压过整屏规则。 */
.modal-mask.cash-pop { background: rgba(15, 20, 30, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal-mask.cash-pop .modal { background: #fff; width: 100%; max-width: 720px; height: auto; max-height: 92vh; border-radius: 16px 16px 0 0; overflow: auto; display: block; padding: 14px 16px; }
.modal-mask.cash-pop .modal-head { background: transparent; border-bottom: 1px solid var(--line2); padding: 0 0 8px; margin-bottom: 10px; }
.modal-mask.cash-pop .modal-head h2 { color: var(--text); font-size: 17px; }
.modal-mask.cash-pop .modal-head .btn.sm.mp-back { color: var(--brand-d); }
.modal-mask.cash-pop #modal-body { overflow: visible; padding: 0; }
.modal-mask.cash-pop .modal .split.mp-foot { position: static; background: transparent; border-top: 0; margin-top: 12px; padding: 0 0 40px; }   /* 按钮下方再空出≈一个按钮高(40px)，不贴底 */
@media (min-width: 760px) { .modal-mask.cash-pop { align-items: center; } .modal-mask.cash-pop .modal { border-radius: 16px; } }

/* 百三十八批：005商品页列表模式——入库/修改/取消(推荐)三按钮增大50%；缩略图后面文字(款号/库存/已卖/欠货)小20% */
.gs-row .lacts .btn.sm { font-size: 13.65px; padding: 5.25px 10.5px; }
/* 014/008 明细行「删」按钮：背景=页面底色(var(--bg))、删字=主题深色(var(--brand-d))、字小25%(20→15px)，按钮尺寸不变 */
.oline2 .btn-del { flex: 0 0 34px; width: 34px; height: 34px; font-size: 15px; background: var(--bg); color: var(--brand-d); border: 0; border-radius: 6px; padding: 0; line-height: 1; font-weight: 700; }
/* 016发货日志总表：每行右侧 分享/打印 靠右、贴底部对齐 */
.sh-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; text-align: right; }
.sh-right .sh-acts { display: flex; gap: 4px; align-items: flex-end; margin-top: auto; padding-top: 4px; }
/* 038预下单总表：汇总行(共/进行中/剩余) + 我的单/全部单 切换，切换组靠右对齐 */
.pre-sumrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pre-sumrow .pre-scope { margin-left: auto; }
/* 返回符号〈加粗：〈(U+3008) 在多数手机字体里没有粗体字面，<b> 看不出变粗；
   用 font-weight:900 + 描边(-webkit-text-stroke) 强制视觉加粗，不依赖字体粗体字面 */
.blt { font-size: 1.2em; font-weight: 900 !important; -webkit-text-stroke: 0.7px currentColor; text-shadow: 0.4px 0 currentColor, -0.4px 0 currentColor; }

/* 百三十九批：003订单列表——行间距1px、分隔线1px：去掉卡片圆角/阴影/四周描边，改为单条1px下分隔线、行间只留1px */
.oitem { margin-bottom: 0; padding: 1px 0; border: 0; border-bottom: 0; border-radius: 0; box-shadow: none; }
/* 三条竖杠：底往上缩10%、顶再缩5%(凑整)→占列高85%、上留5%下留10% */
.oitem .obar-col { height: auto; align-self: stretch; transform: translateY(5%) scaleY(.85); transform-origin: top; }
/* 订单列表左右边距：原离边约6px(半个 wrap 12px) → 约18px(1.5×wrap / 现距×3)；订单页与客户详情订单列表同一套 */
#or-list, #cu-mix { margin: 0 6px; }
/* 分隔线收窄到与行内文字列同宽（左右各缩20px=两层内边距），不再通栏；画在行上、左滑时不跟手势移动 */
#or-list .oitem, #cu-mix .oitem { border-bottom: 0; }
#or-list .oitem::after, #cu-mix .oitem::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--line2); }   /* 与白底行卡同宽(同10px内边距)；行padding-bottom=1px → 离竖杠1px */
/* ===== 2.2 扫码登录（正式站移植）：新登录页 / 扫一扫 / 二维码弹层 ===== */
.login .card.login2 { max-width: 380px; }
.scancta { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: var(--on-brand, #fff); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.14); user-select: none; -webkit-tap-highlight-color: transparent; }
.scancta:active { transform: scale(.985); filter: brightness(.95); }
.scancta-ico { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 14px; background: rgba(255,255,255,.16); flex: 0 0 auto; }
.scancta-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scancta-t b { font-size: 20px; letter-spacing: 1px; }
.scancta-go { font-size: 26px; opacity: .8; flex: 0 0 auto; }
.login-sep { display: flex; align-items: center; gap: 10px; margin: 22px 0 16px; color: var(--muted); font-size: 13px; }
.login-sep::before, .login-sep::after { content: ""; flex: 1; height: 1px; background: var(--line2); }

/* 扫一扫页 */
.scanpage { min-height: 100vh; display: flex; flex-direction: column; background: #141414; color: #eee; }
.scanhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 16px; }
.scanhead .btn { background: rgba(255,255,255,.12); color: #eee; border-color: rgba(255,255,255,.2); }
.scanbody { position: relative; flex: 1; min-height: 46vh; overflow: hidden; background: #000; }
.scanbody video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 50%; top: 50%; width: min(72vw, 320px); height: min(72vw, 320px); transform: translate(-50%, -50%); pointer-events: none; border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.42); }
.scan-frame::before, .scan-frame::after { content: ""; position: absolute; width: 34px; height: 34px; border: 3px solid var(--brand, #DB5A6B); }
.scan-frame::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scan-frame::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scantip { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); font-size: 14px; line-height: 1.7; text-align: center; color: #ddd; }
.scantip .dim { color: #999; font-size: 12px; }

/* 账号登录二维码弹层 */
.qrbox { display: flex; justify-content: center; padding: 10px 0 2px; }
.qrbox img { width: min(66vw, 260px); height: auto; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }

/* ===== 013 订单详情：底部主菜单 =====
   那条底部悬浮位以前只藏了一个 visibility:hidden 的「关闭」按钮，看着就是一条空白条。
   现在放主菜单（viewTabs），所以要取消 .tabbar 自己的 fixed 定位，让它老老实实待在悬浮条里。
   只作用于 .od-modal，其它弹窗（改单/收银/二维码）的底部按钮条一点不受影响。 */
.od-modal .split.mp-foot { display: block; padding: 0; margin-top: 8px; border-top: 1px solid var(--line2); background: var(--bg); }
.od-modal .split.mp-foot .tabbar { position: static; left: auto; right: auto; bottom: auto; z-index: auto; border-top: 0; background: transparent; padding-bottom: env(safe-area-inset-bottom); }

/* ===== 043 单款库存流水（从 024 商品详情页「库存流水」进） =====
   整段都是为这一页新加的；若店主要删掉这个功能，把这一段连同 app.js 里
   「043 单款库存流水」到「043 单款库存流水 · 结束」之间的那一整块一起删掉即可，不影响其它页面。 */

/* 页头右上角「含发货参考 / 只看库存变动」开关：两种状态都用主体深色底 + 白字，
   选中态只把字变金（与全站 .pagehead .chip-chk.on 一致）。
   （原先误挂了价格框的 .gd-psel 类，那条是浅底黑字右对齐，所以看着突兀） */
.pagehead .chip-chk.sf-tgl { background: var(--brand-d) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.5) !important; border-radius: 6px; font-size: 12.5px; padding: 5px 9px; margin: 0; flex: 0 0 auto; }
.pagehead .chip-chk.sf-tgl.on { color: #ffd700 !important; }

/* 024 商品详情：「修改」按钮挪到价格等级右边同一行，
   所以要抵掉它原来在导航行里那套 margin-left:auto 右对齐和大内边距 */
.pagehead .gd-h1 .chip-chk.gd-edit-btn { margin-left: 0; padding: 3px 9px; border-radius: 2px; font-size: 13px; flex: 0 0 auto; }

/* 汇总五格：数字用等宽对齐，结存格加重底色突出（它是这页的答案） */
.sf-sum .summary { gap: 4px; }
.sf-sum .summary .sbox { padding: 6px 2px; border-radius: 8px; }
.sf-sum .summary .sbox span { font-size: 10.5px; }
.sf-sum .summary .sbox b { font-size: 16px; font-variant-numeric: tabular-nums; }
.sf-sum .summary .sbox.sf-balbox { background: color-mix(in srgb, var(--brand-d) 12%, #fff); border-color: color-mix(in srgb, var(--brand-d) 32%, #fff); }
.sf-sum .summary .sbox.sf-balbox b { font-size: 19px; color: var(--brand-d); }
.sf-note { margin-top: 6px; line-height: 1.65; font-size: 12px; }
.sf-note b { font-weight: 700; color: var(--text); }

/* 流水行：左栏「发生了什么」，右栏「数量 / 结存」固定宽度右对齐——
   整页往下看，右侧两个数字各自成一条竖列，像银行流水一样好扫读 */
.sf-row { display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid var(--line2); border-left: 3px solid transparent; padding: 7px 0 7px 8px; }
.sf-row:first-of-type { padding-top: 3px; }
.sf-row:last-of-type { border-bottom: 0; }
.sf-main { flex: 1 1 auto; min-width: 0; }
.sf-l1 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sf-tag { flex: 0 0 auto; display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.55; padding: 1px 6px; border-radius: 4px; }
.sf-at { font-size: 12px; }
.sf-det { padding-left: 0; margin-top: 2px; font-size: 12.5px; line-height: 1.55; word-break: break-all; }
.sf-who { margin-top: 2px; font-size: 11.5px; line-height: 1.5; }
.sf-side { flex: 0 0 auto; min-width: 62px; text-align: right; }
.sf-num { font-size: 16px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sf-bal { margin-top: 2px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 五种类型各一色：进货绿 / 销售红 / 退货主题深 / 期初中性 / 发货整体压灰 */
.sf-in    { border-left-color: var(--ok); }
.sf-in .sf-tag { background: color-mix(in srgb, var(--ok) 14%, #fff); color: var(--ok); }
.sf-in .sf-num { color: var(--ok); }
.sf-sale  { border-left-color: var(--danger); }
.sf-sale .sf-tag { background: color-mix(in srgb, var(--danger) 12%, #fff); color: var(--danger); }
.sf-sale .sf-num { color: var(--danger); }
.sf-ret   { border-left-color: var(--brand-d); }
.sf-ret .sf-tag { background: color-mix(in srgb, var(--brand-d) 12%, #fff); color: var(--brand-d); }
.sf-ret .sf-num { color: var(--brand-d); }
.sf-open  { border-left-color: var(--muted); }
.sf-open .sf-tag { background: var(--soft); color: var(--muted); }
.sf-open .sf-num { color: var(--text); }
.sf-ship  { border-left-color: var(--line); background: var(--dash-bg, var(--soft2)); opacity: .8; }
.sf-ship .sf-tag { background: var(--soft); color: var(--muted); font-weight: 400; }
.sf-ship .sf-num { color: var(--muted); font-weight: 400; font-size: 14px; }

/* ===== 024 款式详情页页头第三行：下单 / 已到货 / 未到货（居中；从 028「修改」弹窗移过来） =====
   .pagehead > div + div 带 margin-top:0 !important，所以行间距用 padding 而不是 margin。
   文字用页头的半透明白、数字纯白加粗 + 等宽数字，深色页头底上看得清。 */
.pagehead .gd-arr { text-align: center; font-size: 13.5px; line-height: 1.5; padding-top: 5px !important; color: rgba(255,255,255,.85); }
.pagehead .gd-arr b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 1px; }

/* ===== 013 订单详情页：底部主菜单恒定钉屏幕底（与其它主页一致，不随订单长短浮动） =====
   .od-modal 是整屏弹窗，主菜单原本用 sticky bottom:0 待在 #modal-body 里——
   内容不足一屏时 sticky 不会把它拉到底，于是订单短就往上飘、订单长才贴底。
   改成 fixed 钉底，跟主页 .tabbar 一个套路；再给 #modal-body 底部留一条空高，
   内容正常滚到菜单上方、不被盖住。只作用 .od-modal，改单/收银/商品/二维码等其它弹窗不受影响。 */
.od-modal .split.mp-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  display: block; margin-top: 0; padding: 0;
  background: var(--card); border-top: 1px solid var(--line2);
}
.od-modal #modal-body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

/* ===== 百四十批：素黑 The Row 主题（仅 data-theme=row 生效，其它主题零影响） =====
   风格参照 therow.com 的方向：纯白底 / 近黑墨色 / 发丝分隔线 / 全直角 / 无阴影 / 字重400 / 字距微调；
   按钮形态不照抄对方，只取"扁平直角单色"这股劲。调色变量在 app.js applyTheme 里精确覆盖；
   本批只做结构与细节。回滚：设置里换回其它主题即复原；彻底删=删本批+app.js 的 row 条目。 */
[data-style="row"] *, [data-style="row"] *::before, [data-style="row"] *::after { border-radius: 0 !important; }
[data-style="row"] .section, [data-style="row"] .item, [data-style="row"] .login .card, [data-style="row"] .toast,
[data-style="row"] .od-menu, [data-style="row"] .settlebar, [data-style="row"] .gbatchbar, [data-style="row"] .scancta { box-shadow: none !important; }
[data-style="row"] .btn, [data-style="row"] .chip-chk { font-weight: 400; letter-spacing: .08em; }
[data-style="row"] .pagehead .btn, [data-style="row"] .pagehead .chip-chk, [data-style="row"] .pagehead .pk-color-btn { font-weight: 400 !important; }
[data-style="row"] .section h3, [data-style="row"] .modal-head h2, [data-style="row"] .login h1 { font-weight: 400; letter-spacing: .06em; }
[data-style="row"] .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
/* 页头：主题深色横 bar → 白 bar + 发丝下边线 */
[data-style="row"] { --pagehead-bg: #fff; }
[data-style="row"] .pagehead { color: var(--text); box-shadow: none; border-bottom: 1px solid var(--line2); }
[data-style="row"] .pagehead .dim, [data-style="row"] .pagehead span:not(.chip-chk) { color: var(--muted); }
[data-style="row"] .pagehead .btn, [data-style="row"] .pagehead .chip-chk, [data-style="row"] .pagehead .pk-color-btn { background: #fff !important; color: var(--text) !important; }
[data-style="row"] .pagehead input, [data-style="row"] .pagehead select { background: #fff; color: var(--text); border: 1px solid var(--line); }
[data-style="row"] .pagehead .ch-sort, [data-style="row"] .pagehead .cu-sort, [data-style="row"] .pagehead .gd-psel { background: #fff !important; color: #000 !important; border: 1px solid var(--line) !important; }
[data-style="row"] .pagehead .summary .sbox, [data-style="row"] .pagehead .cust-sum2 { background: #fff; border: 0; }
[data-style="row"] .pagehead .summary .sbox { border-right: 1px solid var(--line); }
[data-style="row"] .pagehead .summary .sbox:last-child { border-right: 0; }
[data-style="row"] .pagehead .summary .sbox span, [data-style="row"] .pagehead .summary .sbox b,
[data-style="row"] .pagehead .cust-sum2 .sbox span, [data-style="row"] .pagehead .cust-sum2 .sbox b,
[data-style="row"] .pagehead .sbox.btnbox span { color: var(--text) !important; }
[data-style="row"] .pagehead .custbar .cur, [data-style="row"] .pk-no b, [data-style="row"] .pk-price-big, [data-style="row"] .pk-cust2,
[data-style="row"] .gd-h1 .gd-no, [data-style="row"] .cust-h1 .cust-lv, [data-style="row"] .cu-stat b,
[data-style="row"] .pagehead .gd-arr b, [data-style="row"] .gd-h2 b { color: var(--text); }
[data-style="row"] .pk-desc, [data-style="row"] .pk-h1 .pk-desc, [data-style="row"] .gd-h2, [data-style="row"] .cu-stat,
[data-style="row"] .pagehead .gd-arr, [data-style="row"] .ortime-sep, [data-style="row"] .cu-sep, [data-style="row"] .gd-navrow .gd-sep { color: var(--muted); }
[data-style="row"] .gd-h2 .owe { color: var(--danger); font-weight: 400; }
[data-style="row"] .pk-cbar { background: var(--line); }
[data-style="row"] .cust-entries .chip-chk { color: var(--text); border-right: 1px solid var(--line) !important; }
[data-style="row"] .orbar input { border-right: 1px solid var(--line); }
[data-style="row"] .od-dots { color: var(--text); }
[data-style="row"] .od-dots:active { background: var(--soft); }
[data-style="row"] .od-sizetgl { border-color: var(--line); }
[data-style="row"] .od-sz { color: var(--text); }
/* 步进按钮：主题深色块 → 浅灰块黑字 */
[data-style="row"] .stp, [data-style="row"] .lk-stp .stp, [data-style="row"] .gd-opq .stp, [data-style="row"] .gd-cs-stp .stp,
[data-style="row"] .qtyrows .qr-stpv .stp, [data-style="row"] .oline2 .oe-stp .stp { background: var(--soft) !important; color: var(--text) !important; }
/* 弹窗顶 bar：主题色 → 白 bar 发丝线 */
[data-style="row"] .modal-head h2 { color: var(--text); }
[data-style="row"] .modal-head .btn.sm.mp-back, [data-style="row"] .modal-head .g-recplain { color: var(--text) !important; }
/* 登录扫码卡：渐变 → 纯色平面 */
[data-style="row"] .scancta { background: var(--brand); }
/* 素黑 v2：按钮全部去边框（次级按钮=纯文字感），搜索框只留底下一条发丝线 */
[data-style="row"] .btn { border: 0; }
[data-style="row"] .btn.danger { background: transparent; color: #b3262b; }
[data-style="row"] .btn.close { background: transparent; color: var(--text); }
[data-style="row"] .pagehead .btn, [data-style="row"] .pagehead .chip-chk, [data-style="row"] .pagehead .pk-color-btn { border: 0 !important; }
[data-style="row"] .chip-chk { border: 0; }
[data-style="row"] .pagehead .chip-chk { background: transparent !important; }
[data-style="row"] input[type="search"], [data-style="row"] .search input, [data-style="row"] .orbar input,
[data-style="row"] .cu-bar2 .cu-search-in, [data-style="row"] .gd-cust-kw {
  border: 0 !important; border-bottom: 1px solid var(--line2) !important; background: transparent !important;
}
[data-style="row"] input[type="search"]:focus, [data-style="row"] .search input:focus, [data-style="row"] .orbar input:focus,
[data-style="row"] .cu-bar2 .cu-search-in:focus, [data-style="row"] .gd-cust-kw:focus { border-bottom-color: var(--brand) !important; }
/* 素黑 v3：状态按钮（当前页/当前筛选/选中态）只加下划线，不再黑底；底部菜单当前页同样下划线 */
[data-style="row"] .chip-chk.on, [data-style="row"] .pagehead .chip-chk.on, [data-style="row"] .pagehead .btn.hit-gold,
[data-style="row"] .pagehead .chip-chk.hit-gold, [data-style="row"] .pk-color-btn.on, [data-style="row"] .pagehead .chip-chk.sf-tgl.on,
[data-style="row"] .od-sz.on, [data-style="row"] .gd-ofrow .chip-chk.on, [data-style="row"] .gd-cust-times .chip-chk.on {
  background: transparent !important; color: var(--text) !important;
  border: 0 !important; border-bottom: 2px solid var(--brand) !important;
}
[data-style="row"] .tabbar .tab.on { color: var(--brand); font-weight: 400; }
/* 商品详情页页头按钮：上下贴字 1px 后再 +2px = 3px */
[data-style="row"] .pagehead .chips.gd-navrow .chip-chk, [data-style="row"] .pagehead .gd-h1 .chip-chk.gd-edit-btn,
[data-style="row"] .pagehead .gd-psel, [data-style="row"] .pagehead .gd-h1 .btn.sm { padding-top: 3px; padding-bottom: 3px; }
/* 商品详情页页头：按钮与竖杠之间 0px */
[data-style="row"] .pagehead .chips.gd-navrow { gap: 0; }
/* 订单页时间段选择表（起止日期两格）：红/黑主题下边框全去 */
[data-style="row"] #range-row { border-bottom: 0; }
[data-style="row"] #range-row .rg-cell + .rg-cell { border-left: 0; }

/* ===== 列表行横滑露出「修改/删除」（订单页/客户页） =====
   外层 .sw-row 只留卡片壳（边框/圆角/分隔线），grid 排版整体搬进 .sw-main；
   按钮层 .sw-acts 绝对定位贴右、默认藏在 101%，向左滑开态两层一起平移（同一曲线=丝滑）；
   拖拽中加 .sw-drag 关 transition 跟手，松手去掉回弹到开/合两档。
   touch-action:pan-y＝竖着滚列表照旧交给浏览器，横向才归我们管。 */
.sw-row { position: relative; overflow: hidden; display: block; touch-action: pan-y; }
#cu-list2 .item.sw-row { padding: 0; }   /* 盖掉 #cu-list2 .item.two 的上下 padding，行高改由 .sw-main 控制 */
.sw-row .sw-main { position: relative; z-index: 1; width: 100%; background: var(--card); transition: transform .28s cubic-bezier(.22, .8, .36, 1); }
.sw-row.sw-drag .sw-main, .sw-row.sw-drag .sw-acts { transition: none; }
.sw-row.sw-drag { user-select: none; -webkit-user-select: none; }
.sw-row.sw-open .sw-main { transform: translateX(calc(-1 * var(--sw-w, 144px))); }
.sw-acts { position: absolute; right: 0; top: 0; bottom: 0; z-index: 0; display: flex; align-items: stretch; transform: translateX(101%); transition: transform .28s cubic-bezier(.22, .8, .36, 1); }
.sw-row.sw-open .sw-acts { transform: translateX(0); }
.sw-btn { display: flex; align-items: center; justify-content: center; width: 64px; border: 0; border-radius: 0; color: #fff; font-size: 14px; font-weight: 600; background: var(--brand-d, #4a5560); cursor: pointer; }
.sw-btn.sw-ship { background: #177245; }   /* 发货=绿（跟「发完/发货」一个色系） */
.sw-btn.sw-del { background: var(--danger, #c34a5a); }
/* 内容层继承原行排版：订单行四列 / 客户卡四列（等级窄列＋名字＋已发未发＋指标） */
.sw-main.od-g { display: grid; grid-template-columns: auto 1.4fr .6fr .9fr; gap: 8px; align-items: center; padding: 5px 0 6px; }   /* 上下5/6px：行高再+15%（45→52px，四舍五入）；左右0：配合 #or-list 外扩 */
.sw-main.cu-g { display: grid; grid-template-columns: 20px 60px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px 8px 0; }   /* 四列：等级|名字(固定60px=3个字+..)|来自哪里|金额(靠右)；名字列定宽，所以每行「来自哪里」都从同一个位置起笔=真左对齐 */
#cu-list2 .sw-row .lv-col { margin: -8px 0; }   /* 等级列与行同高：负 margin 跟 .sw-main 上下 8px 对消 */
#cu-list2 .cc2-from { text-align: left; }   /* 强制左对齐(id级，防被覆盖) */

/* ===== 收银弹窗（.cash-pop）表内所有字 +20%（店主定 2026-10-07） =====
   只作用收银这一个弹窗（开单页上弹的那个），其它弹窗/页面零影响。
   基准：sbox 标签10/数字14、chip13、label13、输入框默认13.3、banner13、dim12、按钮14、标题16。 */
.cash-pop .modal-head h2 { font-size: 19.2px; }
.cash-pop .summary .sbox span { font-size: 12px; }
.cash-pop .summary .sbox b { font-size: 16.8px; }
.cash-pop .chip-chk { font-size: 15.6px; padding: 5px 13px; }
.cash-pop .field label { font-size: 15.6px; }
.cash-pop .field input, .cash-pop .field select { font-size: 16px; }
.cash-pop .od-banner { font-size: 15.6px; }
.cash-pop .dim { font-size: 14.4px; }
.cash-pop .btn { font-size: 16.8px; }

/* ===== 系统初始化：三个按钮一人一格卡片，格内「删/留/什么时候用」三行说明（店主定 2026-10-08） ===== */
.init-list { display: flex; flex-direction: column; gap: 8px; }
.init-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--soft2, #fff); }
.init-item .btn.sm { align-self: flex-start; }
.init-desc { margin-top: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.init-desc b { color: var(--text); }

/* ===== 百三十二批：本单明细页（draftLinesModal，专属类 .oe-draft）手机端「钉死」外框——
   禁左右横滑、禁到顶/底橡皮筋回弹、禁原生下拉刷新；明细行超过一屏时列表仍能正常上下滚。
   只作用于本页；「修改订单」等其它弹窗（同为 .oe-modal 但无 .oe-draft）不受影响。店主定 2026-10-23。 ===== */
.oe-draft { overscroll-behavior: none; }
.oe-draft #modal-body {
  overflow-x: hidden;              /* 关掉 overflow-y:auto 自动带出的横向滚动＝「左右活动」的根源 */
  overflow-y: auto;                /* 明细多、超一屏时保留上下滚动 */
  overscroll-behavior: none;       /* 滚到顶/底不再橡皮筋回弹、不触发原生下拉刷新 */
  touch-action: pan-y;             /* 只认竖直滑动：禁横滑、禁双指/双击缩放（左右彻底钉死） */
  -webkit-overflow-scrolling: touch;
}
.oe-draft .modal-head { touch-action: none; }   /* 拖顶部标题栏不带动整页；返回键/标题仍可点 */

/* ===== 预下单页悬浮条（preSettleBar）：底部导航栏上方常驻，左=已加入汇总(款/件/金额)，右=［＋添加］［保存］。
   复用 .settlebar 的 fixed 定位 / body.kb-open 键盘隐藏 / 阴影，这里只调内部两栏布局与按钮。 ===== */
.pre-settle .inner { display: flex; align-items: center; gap: 10px; }
.pre-settle .sb-orders { flex: 0 1 auto; text-align: left; min-width: 0; }
.pre-settle .sb-orders .sb-qty { font-size: 15px; color: var(--brand); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-settle .sb-orders .sb-amt { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.pre-settle .sb-main { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pre-settle .sb-main .btn { transform: none !important; width: auto; flex: 0 0 auto; padding: 9px 18px !important; font-size: 14px; font-weight: 400; border-radius: 8px; }
.pre-settle .pre-sumbtn { cursor: pointer; }   /* 选款页悬浮条左侧汇总可点→跳预下单 */

/* 对账单底部三按钮（打印对账单 / 分享对账单 / 关闭）：三等分铺满一行、字居中，不再整组靠左挤在左边空出右侧。
   .s4 只有对账单在用，改这一条不影响别的弹窗底部按钮。 */
.split .s4 { flex: 1 1 0; text-align: center; }

/* 订单页订单列表：最后一列(日期时间 + ¥金额)整体靠右对齐；件数列没点，不动 */
.oitem .col:nth-child(4) { text-align: right; }
.oitem .col:nth-child(4) .val.v-money { color: #000; }   /* 金额固定黑色 */
#or-list .od-meta, #cu-mix .od-meta { color: #c5c5c5 !important; }   /* 时间、开单员、单号：在 #8a8a8a 上再淡一半，固定色不跟主题 */

/* 收银弹窗批(2026-10-28)：①按钮/表格框圆角3px ②底部三按钮等宽+字号字重统一 ③实收/挂账/随单发货/不发货 圆角3px */
.cash-pop .btn, .cash-pop .summary .sbox, .cash-pop .section, .cash-pop table { border-radius: 3px; }
.cash-pop .split.mp-foot .btn { flex: 1 1 0; font-size: 16.8px; font-weight: 600; }
.cash-pop .chip-chk { border-radius: 3px; }
/* 本单明细弹窗：去收银/关闭 圆角3px */
.oe-draft .split.mp-foot .btn { border-radius: 3px; }


/* 开单页选择客户列表：无表格框，行间仅一条分隔线 */
#cs-list { border: 0; background: transparent; padding: 0; margin: 0; }
#cs-list .cs-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin: 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; box-shadow: none; background: transparent; cursor: pointer; }
#cs-list .cs-row:last-of-type { border-bottom: 1px solid var(--line2); }

/* 苹果手机时间段滚轮：开始于 / 结束于 + 确定 */
.ios-range-btn { appearance: none; -webkit-appearance: none; flex: 1; width: 100%; border: 1px solid var(--line); background: #fff; color: #111; font-size: 14px; border-radius: 8px; padding: 8px 10px; text-align: center; }
#range-row .ios-range-btn { border: 0; border-radius: 0; padding: 10px 8px; }
.iosdp-mask { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.25); display: flex; align-items: flex-end; }
.iosdp { width: 100%; background: #f2f2f7; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
.iosdp-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; }
.iosdp-seg { flex: 1; display: flex; background: #e5e5ea; border-radius: 9px; padding: 2px; }
.iosdp-seg button { flex: 1; border: 0; background: transparent; border-radius: 7px; padding: 7px 0; font-size: 16px; font-weight: 400; color: #111; }
.iosdp-seg button.on { background: #fff; font-weight: 400; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.iosdp-ok { border: 0; background: transparent; color: #007aff; font-size: 18px; font-weight: 400; padding: 6px 2px; }
.iosdp-wheels { position: relative; display: flex; height: 180px; }
.iosdp-hl { position: absolute; left: 8px; right: 8px; top: 72px; height: 36px; background: rgba(120,120,128,.16); border-radius: 8px; pointer-events: none; z-index: 0; }
.iosdp-col { position: relative; z-index: 1; flex: 1; height: 180px; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain; }
.iosdp-col::-webkit-scrollbar { display: none; }
.iosdp-pad { height: 72px; }
.iosdp-item { height: 36px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400; color: #c4c4c8; }
.iosdp-item.on { color: #111; font-weight: 400; }

/* 按钮圆角统一成「本单明细 · 去收银」的 3px。左滑的发货/修改/删除是直角。商品格子、底栏、苹果滚轮不在内。 */
.btn, .stp, .btn-del, .pk-color-btn, .ios-range-btn, .od-sz, .od-dots, .chip-chk, .sbox.btnbox,
[data-style="row"] .btn, [data-style="row"] .stp, [data-style="row"] .btn-del, [data-style="row"] .pk-color-btn,
[data-style="row"] .ios-range-btn, [data-style="row"] .od-sz, [data-style="row"] .od-dots,
[data-style="row"] .chip-chk, [data-style="row"] .sbox.btnbox { border-radius: 3px !important; }
.sw-btn, [data-style="row"] .sw-btn { border-radius: 0 !important; }

/* 订单详情款式列表：颜色、码、金额固定色，不跟主题 */
.odl-cs,
.odh-tbl th,
.odh-tbl td.odh-c { color: #1c1b1b !important; }
.odl-price,
.odh-price { color: #000 !important; }
.odl-price.odprice-chg { color: #b3262b !important; }

/* 商品列表：入库按钮主题浅色；款号 15px；库存/已卖固定灰 12px；欠货红色 12px */
.gs-row .lacts .btn.ship { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.gs-row .gs-no { font-size: 15px; }
.gs-row .gs-st { font-size: 12px; color: #8a8a8a !important; }
.gs-row .gs-owe { display: block; font-size: 12px; color: #8a8a8a; font-weight: 400; white-space: nowrap; }
.gitem .g-statline { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px; }
.gitem .g-statline .g-stat { white-space: nowrap; }
.gs-row .gs-owe.owe, .gitem .g-stat.owe { color: #e5484d !important; font-weight: 400; }

/* 商品卡片：销售/客户/生产 与图片左右对齐，三颗等宽，字和高度一起放大 */
.gitem .g-acts { width: 100%; gap: 1px !important; }
.gitem .g-acts .btn { flex: 1 1 0; min-width: 0; text-align: center; font-size: 14px; padding: 3px 0; line-height: 1.2; white-space: nowrap; }

/* 商品页第一行：搜索框后面是排序下拉，再是添加款式 */
.pagehead .gd-toprow { display: flex; align-items: center; gap: 10px !important; }
.gd-toprow #gd-kw { flex: 1 1 auto; min-width: 64px; height: 28px; padding: 0 8px !important; line-height: 26px; font-size: 14px; }
.pagehead .gd-topacts { display: flex; align-items: center; flex: 0 0 auto; gap: 10px !important; }
[data-style="row"] .pagehead .gd-ssort { background-color: #fff !important; color: #000 !important; border: 0 !important; }
.pagehead .gd-ssort {
  flex: 0 0 auto; width: auto; max-width: 46vw; margin: 0; height: 28px; line-height: 26px;
  background-color: #fff !important; color: #000 !important; border: 0 !important; border-radius: 2px !important;
  font-size: 14px; font-weight: 600; padding: 0 16px 0 6px !important;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.2 L6 6.2 L11 1.2' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 4px center !important; background-size: 10px 7px !important;
}
.pagehead .gd-topacts .chip-chk { background: transparent !important; border: 1px solid #fff !important; border-radius: 2px !important; margin: 0; height: 28px; padding: 0 8px; line-height: 1; display: inline-flex; align-items: center; box-sizing: border-box; color: #fff !important; font-size: 15px; }
.pagehead .gd-topacts .chip-chk.on { color: #ffd700 !important; }
[data-style="row"] .pagehead .gd-topacts .chip-chk { color: var(--text) !important; border: 1px solid var(--text) !important; }
[data-style="row"] .pagehead .gd-topacts .chip-chk.on { color: var(--brand-d) !important; }

/* 标志 / 琉璃：按钮无边框；页头按钮半透明。订单页、客户详情页头的数据表也透明。 */
html[data-glow="1"] .btn,
html[data-glow="1"] .chip-chk,
html[data-glow="1"] .sw-btn,
html[data-glow="1"] .pk-color-btn,
html[data-glow="1"] .btn-del,
html[data-glow="1"] .pagehead .cust-entries .chip-chk {
  border: 0 !important;
  box-shadow: none !important;
}
html[data-glow="1"] .pagehead .btn,
html[data-glow="1"] .pagehead .btn.add,
html[data-glow="1"] .pagehead .btn.ship,
html[data-glow="1"] .pagehead .btn.danger,
html[data-glow="1"] .pagehead .btn.primary,
html[data-glow="1"] .pagehead .btn.close,
html[data-glow="1"] .pagehead .chip-chk,
html[data-glow="1"] .pagehead .pk-color-btn,
html[data-glow="1"] .pagehead .chip-chk.on,
html[data-glow="1"] .pagehead .btn.hit-gold,
html[data-glow="1"] .pagehead .chip-chk.hit-gold,
html[data-glow="1"] .pagehead .pk-color-btn.on {
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
}
html[data-glow="1"] .pagehead .chip-chk.on,
html[data-glow="1"] .pagehead .btn.hit-gold,
html[data-glow="1"] .pagehead .chip-chk.hit-gold,
html[data-glow="1"] .pagehead .pk-color-btn.on {
  color: #ffd700 !important;
}
html[data-glow="1"] .pagehead .summary,
html[data-glow="1"] .pagehead .summary .sbox,
html[data-glow="1"] .pagehead .summary .sbox.btnbox,
html[data-glow="1"] .pagehead .cust-sum2,
html[data-glow="1"] .pagehead .cust-sum2 .sbox {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 客户页排序下拉：右侧向下箭头，提示可以展开 */
.pagehead .cu-timebar .cu-sort {
  padding-right: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.2 L6 6.2 L11 1.2' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  background-size: 10px 7px !important;
}
