/* ============================================================
 * 悦点进销存 Web 版 · 企业管理模块专属样式
 * 支付弹窗（扫码 / 收银台 / 支付宝嵌入二维码三选一）+ 支付方式选择 + 付费版本选择 + 行内启用链接
 * ============================================================ */
/* ==================== 支付弹窗（微信 / 支付宝共用） ==================== */
.wxpay { text-align: center; padding: 6px 4px 2px; }
.wxpay-amount { font-size: 30px; font-weight: 700; color: var(--t1, #1d2129); letter-spacing: .5px; }
.wxpay-desc { margin-top: 6px; color: var(--t3, #86909c); font-size: 13px; }
.wxpay-qr { margin: 14px auto 10px; padding: 10px; background: #fff; border: 1px solid var(--line, #e5e6eb); border-radius: 10px; display: inline-block; box-shadow: 0 4px 14px rgba(28, 36, 52, .06); }
.wxpay-qr img { display: block; width: 200px; height: 200px; }
.wxpay-tip { color: var(--t3, #86909c); font-size: 12px; margin-top: 4px; line-height: 1.6; }
/* 收银台态：二维码位置换成大号品牌标（这时没有码可扫） */
.wxpay-qr .pay-brand-big { width: 96px; height: 96px; margin: 12px auto; }
/* turn130k-66：支付宝「电脑网站支付」态 —— 收银台页面（含二维码）整页嵌进弹窗。
   20261110a：第一轮收紧（padding 6px→0、iframe 高 320→裁剪窗口 290）。
   20261110b：第二轮收紧（用户反馈「感觉还是有空隙」）。
   ─────────────────────────────────────────────────────────────────
   ★ 空隙的真正原因（按真实截图像素反推，不是容器太大）：
     后端 qrcode_width=280，支付宝页面在 300 宽视口里把二维码放在 x≈5、
     y≈0（偏左上，并非水平居中）。第一轮 left:-5 / top:0 只让二维码贴住
     左上，于是四周留白变成 左1 / 上1 / 右14 / 下9 CSS px —— 右下仍空。
   ★ 现在把「裁剪窗口」缩到 286×286（全局 box-sizing:border-box，边框含在
     尺寸里，内容区 284×284），并把 iframe 微调到 left:-2 / top:2，让
     280×280 的二维码在窗口里居中。外边距也从 14/10 收到 8/6。
   ★ 实测（output/t164-alipay-qr-tight.cjs 像素级截图）：黑图案 280×280 完整，
     四边留白 左4 / 右2 / 上3 / 下4 px，最大差 2px；三个定位角黑像素各 1680，
     一个角都没被切。第一轮是 左1 / 右14 / 上1 / 下9，右下那圈白没了。
   ⚠ 只裁支付宝页面的白边，不裁二维码：二维码落在窗口 x≈3..283 / y≈2..282，
     四个定位角完整，图片自带的静区也保留，扫码不受影响。
   ⚠ 别把窗口再往小改：小于 282 就有切到定位角的风险。
   想留多一点白边：把 286 调大，同时把 left/top 各加 1~2px（三个值一起调）。 */
.wxpay-qr.ali-embed {
  position: relative; width: 286px; height: 286px;
  margin: 8px auto 6px;
  padding: 0; overflow: hidden; line-height: 0;
  border-color: #eef0f3; border-radius: 4px; box-shadow: none;
}
.wxpay-qr .ali-frame {
  position: absolute; top: 2px; left: -2px;
  display: block; width: 300px; height: 320px; border: 0; background: #fff;
}

/* ==================== 支付方式选择（微信 / 支付宝） ==================== */
.way-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.way-card {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px; border: 2px solid var(--line, #e5e6eb); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.way-card:hover { border-color: #c9cdd4; }
.way-card.on { border-color: #1677ff; box-shadow: 0 6px 18px rgba(47, 133, 252, .16); transform: translateY(-1px); }
.way-icon { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 44px; }
.way-main { min-width: 0; }
.way-name { display: block; font-size: 14px; font-weight: 700; color: var(--t1, #1d2129); }
.way-desc { display: block; font-size: 12px; color: var(--t3, #86909c); margin-top: 2px; }
.link-act.act-enable { color: #00b42a; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line, #e5e6eb); }
.link-act.act-upgrade { color: #ff9a2e; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line, #e5e6eb); }

/* ==================== 付费版本选择弹窗 ==================== */
.ed-intro { font-size: 13px; color: var(--t2, #4e5969); margin-bottom: 12px; line-height: 1.6; }
/* 20261112f：专业版买断上线后共 5 个版本 → 三列（3 + 2 居中），
   避免两列时最后一张单独占一行被拉满宽度；窄屏回落两列 */
.ed-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ed-card {
  position: relative; display: block; cursor: pointer; padding: 14px 12px 12px;
  flex: 1 1 200px; max-width: calc((100% - 24px) / 3);
  border: 2px solid var(--line, #e5e6eb); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ed-card:hover { border-color: #c9cdd4; }
.ed-card.on { border-color: #1677ff; box-shadow: 0 6px 18px rgba(47, 133, 252, .16); transform: translateY(-1px); }
.ed-card > input { position: absolute; top: 12px; right: 12px; margin: 0; accent-color: #1677ff; }
.ed-top { display: flex; align-items: center; gap: 6px; }
.ed-name { font-size: 15px; font-weight: 700; color: var(--t1, #1d2129); }
.ed-cur { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #e8f3ff; color: #1677ff; }
.ed-price { margin-top: 6px; font-size: 24px; font-weight: 700; color: #00b42a; }
.ed-price .ed-per { font-size: 12px; font-weight: 400; color: var(--t3, #86909c); margin-left: 2px; }
.ed-tag { margin-top: 2px; font-size: 12px; color: var(--t3, #86909c); }
.ed-feats { margin: 10px 0 0; padding-left: 16px; font-size: 12px; color: var(--t2, #4e5969); line-height: 1.9; }
.ed-feats li { list-style: disc; }
.ed-note { margin-top: 12px; font-size: 12px; color: var(--t3, #86909c); text-align: center; }

/* 窄屏（手机浏览器）：三列挤不开，回落两列 */
@media (max-width: 760px) {
  .ed-card { flex-basis: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
}

/* ==================== 单位详情弹窗 / 编号（20261027） ==================== */
/* 列表里的单位编号：等宽显示，抄给客户时不会看错 0/O */
.og-code {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  background: var(--bg2, #f2f3f5); color: var(--t1, #1d2129);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .5px;
}
.od-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.od-name { font-size: 17px; font-weight: 700; color: var(--t1, #1d2129); }
.od-badges { display: flex; gap: 6px; flex: none; }
/* 编号是详情的核心信息：放大 + 等宽 + 一键复制 */
.od-code-box {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 12px 14px;
  border-radius: 10px; background: linear-gradient(135deg, #f0f6ff, #f7faff);
  border: 1px solid #d6e6ff;
}
.od-code-label { font-size: 12px; color: var(--t3, #86909c); flex: none; }
.od-code-val { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 19px; font-weight: 700; color: #1677ff; letter-spacing: 1px; word-break: break-all; }
.od-code-val .od-code-none { font-family: inherit; font-size: 13px; font-weight: 400; color: var(--t3, #86909c); letter-spacing: 0; }
.od-list { margin-top: 10px; border-top: 1px solid var(--line, #e5e6eb); }
.od-row { display: flex; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line, #e5e6eb); font-size: 13px; }
.od-row:last-child { border-bottom: 0; }
.od-k { width: 76px; flex: none; color: var(--t3, #86909c); }
.od-v { flex: 1; color: var(--t1, #1d2129); word-break: break-all; }

/* 客户维护弹窗内的档案面板（20261027）：复用 customers.js 的面板，
   去掉它自带的卡片外框/间距，让弹窗里看起来是一个整体 */
.oc-host .card { border: 0; box-shadow: none; margin: 0 !important; padding: 0; background: transparent; }
.oc-host .card-head { padding: 0 0 10px; }
.oc-host .tbl { font-size: 13px; }
.oc-host .hint { margin-top: 10px !important; font-size: 12px; }
/* 弹窗里的客户面板不放「批量导入」：它是整页流程（数据迁移页），在弹窗里点会导致页面被弹窗盖住；
   面板工具条是异步渲染的，靠 CSS 兜底比在 JS 里 remove 更可靠 */
.oc-host [data-act="cs-import"] { display: none !important; }

/* 20261113q：买断显示在标准/专业卡内 —— 「买断版」选项行：标题 + 绿色金额 + 右侧 radio，
   radio 与年费 radio 同 name="ed-lv" 互斥（选买断则年费自动取消），选中行绿框高亮 */
.ed-buyout { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px;
  border: 1px dashed var(--line, #e5e6eb); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.ed-buyout.on { border-color: #00b42a; background: rgba(0, 180, 42, .05); }
.eb-l { flex: 1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.eb-name { font-size: 13px; font-weight: 700; color: var(--t1, #1d2129); }
.eb-price { font-size: 18px; font-weight: 700; color: #00b42a; }
.eb-per { font-size: 11px; font-weight: 400; color: var(--t3, #86909c); margin-left: 2px; }
.ed-buyout input { margin: 0; accent-color: #00b42a; flex: none; }

/* 20261113j：系统配置 · 企业授权列表数量列 */
#sc-rows td { font-size: 13px; }
#sc-rows .sc-quota b { color: var(--t1, #1d2129); }

/* 20261113o：企业授权弹窗 · 数量步进器（职员 ±1 / 商品 ±1000） */
.ga-step { display: flex; align-items: stretch; gap: 6px; }
.ga-step input { flex: 1; min-width: 0; }
.ga-btns { display: flex; flex-direction: column; justify-content: center; gap: 3px; flex: none; }
.ga-btns button { width: 30px; height: 17px; padding: 0; font-size: 9px; line-height: 1; text-align: center;
  border: 1px solid var(--line, #e5e6eb); border-radius: 4px; background: #fff; color: var(--t2, #4e5969); cursor: pointer; }
.ga-btns button:hover { border-color: var(--brand, #1677ff); color: var(--brand, #1677ff); }
