/* ================= 演示台 ================= */
* { box-sizing: border-box; }
body {
  margin: 0; background: #eef1f5; color: #1b1f24;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.stage { display: flex; gap: 28px; justify-content: center; align-items: flex-start; padding: 24px; min-height: 100vh; }

.sidebar { width: 232px; flex: 0 0 232px; background: #fff; border-radius: 14px; padding: 18px 0; box-shadow: 0 1px 3px rgba(16,24,40,.06); position: sticky; top: 24px; }
.sidebar h3 { margin: 0 0 4px; padding: 0 18px; font-size: 14px; }
.sidebar .sdesc { margin: 0 0 12px; padding: 0 18px; font-size: 11.5px; color: #858d95; line-height: 1.5; }
.navgrp { padding: 8px 10px 2px; font-size: 11px; color: #9aa2aa; letter-spacing: .06em; }
.navitem { display: flex; align-items: center; gap: 8px; padding: 7px 18px; font-size: 13px; color: #4b535b; cursor: pointer; border-left: 2px solid transparent; }
.navitem:hover { background: #f2f6fb; color: #1b4d8f; }
.navitem.active { background: #eaf1f9; color: #1b4d8f; border-left-color: #1b4d8f; font-weight: 500; }
.navitem .dot { width: 6px; height: 6px; border-radius: 50%; background: #cfd6de; flex: 0 0 6px; }
.navitem.active .dot { background: #1b4d8f; }

.infopanel { width: 300px; flex: 0 0 300px; background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(16,24,40,.06); position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.infopanel h3 { margin: 0 0 12px; font-size: 14px; }
.traceline { border-left: 2px solid #e4e8ed; padding-left: 14px; margin-bottom: 14px; }
.traceline .tl-t { font-size: 12.5px; font-weight: 500; color: #1b1f24; margin-bottom: 3px; }
.traceline .tl-d { font-size: 11.5px; color: #6b737b; line-height: 1.6; word-break: break-all; }
.src-tag { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; margin: 2px 3px 2px 0; }
.src-crm { background: #eaf1f9; color: #1b4d8f; }
.src-yqy { background: #e6f4f6; color: #0d7a86; }
.src-self { background: #f3f0fb; color: #5b4b9e; }

/* ================= 手机外壳 ================= */
.phone-shell {
  width: 375px; flex: 0 0 375px; height: 812px; background: #1c1c1e; border-radius: 44px;
  padding: 11px; box-shadow: 0 18px 48px rgba(16,24,40,.24); position: relative;
}
.phone-screen { width: 100%; height: 100%; background: #f5f6f8; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 148px; height: 26px; background: #1c1c1e; border-radius: 0 0 16px 16px; z-index: 30; }

.statusbar { height: 44px; flex: 0 0 44px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 6px; font-size: 12px; font-weight: 600; color: #1b1f24; background: #f5f6f8; }
.statusbar .sb-right { display: flex; gap: 4px; align-items: center; }

.navbar { height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; position: relative; background: #fff; border-bottom: 1px solid #eceff2; font-size: 15px; font-weight: 500; }
.navbar .back { position: absolute; left: 12px; font-size: 17px; color: #1b1f24; cursor: pointer; width: 24px; }
.navbar .capsule { position: absolute; right: 10px; width: 78px; height: 30px; border: 1px solid #e2e5ea; border-radius: 15px; display: flex; align-items: center; justify-content: space-around; background: rgba(255,255,255,.9); }
.navbar .capsule i { width: 14px; height: 14px; border-radius: 3px; background: #d4d8de; display: block; }
.navbar.dark { background: linear-gradient(135deg, #1b4d8f, #0d7a86); color: #fff; border-bottom: none; }
.navbar.dark .back { color: #fff; }
.navbar.dark .capsule { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.16); }
.navbar.dark .capsule i { background: rgba(255,255,255,.75); }

.page-content { flex: 1; overflow-y: auto; overflow-x: hidden; background: #f5f6f8; -webkit-overflow-scrolling: touch; }
.page-content::-webkit-scrollbar { width: 0; }

.tabbar { height: 56px; flex: 0 0 56px; display: flex; background: #fff; border-top: 1px solid #eceff2; padding-bottom: 4px; }
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: #8a9199; cursor: pointer; position: relative; }
.tabbar .tab.active { color: #1b4d8f; }
.tabbar .tab .ticon { width: 21px; height: 21px; }
.tabbar .tab .badge { position: absolute; top: 4px; right: 50%; margin-right: -22px; background: #d93025; color: #fff; font-size: 9px; min-width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ================= 通用组件 ================= */
.pad { padding: 12px 14px; }
.card { background: #fff; border-radius: 10px; margin: 0 12px 10px; padding: 14px; }
.card.flat { margin: 0 0 10px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-t { font-size: 14.5px; font-weight: 500; color: #1b1f24; }
.card-more { font-size: 11.5px; color: #9aa2aa; cursor: pointer; }

.hero-card { background: linear-gradient(135deg, #1b4d8f, #0d7a86); color: #fff; border-radius: 12px; margin: 12px; padding: 16px; position: relative; overflow: hidden; }
.hero-card .hc-label { font-size: 11.5px; opacity: .82; }
.hero-card .hc-value { font-size: 26px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.hero-card .hc-sub { font-size: 11px; opacity: .82; }
.hero-card .hc-switch { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; display: flex; align-items: center; gap: 4px; max-width: 46%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* hero 顶行 2026-09-30：左「货币资金」标签 + 右账期药丸同一行（内容上移与药丸对齐） */
.hero-card .hc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
/* 标签占满余量，超长省略，避免把右侧药丸挤变形 */
.hero-card .hc-top .hc-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .hc-period { flex: none; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
/* hero 内嵌 2×2 指标区 2026-10-11：原独立四宫格（营收/净利/应收/应付）整合进主卡，
   用内部横竖分隔线分栏，字号沿用主卡层级（标签 11 / 数值 17 / 备注 10.5），不再另起白底卡片。 */
.hero-card .hs-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-card .hs-item { min-width: 0; padding: 11px 0 0; }
/* 右列：竖分隔线；第二行起：横分隔线，构成完整 2×2 分栏 */
.hero-card .hs-item:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-card .hs-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
.hero-card .hs-l { font-size: 11px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .hs-v { font-size: 17px; font-weight: 600; margin-top: 3px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.hero-card .hs-s { font-size: 10.5px; opacity: .68; margin-top: 2px; }
/* 深底上的涨跌色：统一换浅色系保证对比度（红=增 / 绿=减，国内习惯） */
.hero-card .hs-v.up { color: #ffb3a8; }
.hero-card .hs-v.down { color: #8fe0b4; }
/* .trend-box / .trend-loading 2026-10-11 随「近 6 个月趋势」卡片移除 */

/* .stat-grid / .stat-box（原工作台四宫格）2026-10-11 已并入主卡，样式移除 */
.up { color: #d93025; } .down { color: #1f7a45; }

/* ================= 工作台「功能菜单」（2026-10-11） =================
   货币资金主卡下方的三组入口（发票及凭证 / 财务明细 / 会计报表），
   与小程序 pages/index 同结构、同图标（内联 base64 PNG，双端同源）。 */
.fm-group { background: #fff; border-radius: 10px; margin: 0 12px 10px; padding: 14px 10px 6px; }
.fm-h { font-size: 14.5px; font-weight: 600; color: #1b1f24; margin: 0 4px 2px; }
.fm-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fm-item { text-align: center; padding: 10px 0 8px; border-radius: 8px; cursor: pointer; }
.fm-item:active { background: #f5f7fa; }
.fm-ic { width: 40px; height: 40px; display: block; margin: 0 auto 6px; }
.fm-ic-fallback { width: 40px; height: 40px; border-radius: 12px; background: #eef1f4; }
.fm-t { font-size: 12px; color: #4b535b; line-height: 1.25; }
/* 报表页锚点定位后短暂高亮，让用户看清「跳到了哪一块」 */
.anchor-flash { animation: anchorPulse 1.3s ease-out; }
@keyframes anchorPulse {
  0% { box-shadow: 0 0 0 0 rgba(27,77,143,.34); }
  100% { box-shadow: 0 0 0 14px rgba(27,77,143,0); }
}

.row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: #fff; border-bottom: 1px solid #f2f4f6; font-size: 13.5px; }
.row:last-child { border-bottom: none; }
.row .rl { color: #4b535b; }
.row .rr { color: #1b1f24; display: flex; align-items: center; gap: 6px; }
.row .rr.muted { color: #9aa2aa; }
/* 财务报表往来科目行：可点击下钻（应收/应付派生视图） */
.row.row-drill:hover { background: #f5f8fd; }
.row.row-drill:active { background: #eaf1fb; }
.row.row-drill .drill-chev { display: inline-block; color: #c2c8d0; margin-left: 6px; font-size: 13px; transition: transform .15s; }
/* 下钻明细：就地展开在该科目行正下方（2026-10-13 由底部弹层改为行内展开） */
.dsub { background: #f6f8fa; border-radius: 8px; border-left: 2px solid #c9d8ea; margin: 2px -6px 6px; padding: 9px 10px 10px; }
.dsub-note { font-size: 11.5px; color: #9aa2aa; line-height: 1.75; padding: 1px 0; }
.dsub-h { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #9aa2aa; padding: 1px 0 4px; }
.dsub-r { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 12.5px; }
.dsub-n { color: #4b535b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsub-a { color: #1b4d8f; flex-shrink: 0; margin-left: 10px; font-variant-numeric: tabular-nums; }
.dsub-foot { font-size: 10.5px; color: #b3bac2; border-top: 1px dashed #e8edf3; margin-top: 4px; padding-top: 6px; }
.group { background: #fff; border-radius: 10px; margin: 0 12px 10px; overflow: hidden; }

.btn { display: block; width: 100%; padding: 11px; border-radius: 8px; border: none; font-size: 14.5px; text-align: center; cursor: pointer; font-family: inherit; }
.btn-primary { background: #1b4d8f; color: #fff; }
.btn-primary:active { background: #163f75; }
.btn-ghost { background: #fff; color: #1b4d8f; border: 1px solid #c9d8ea; }
.btn-teal { background: #0d7a86; color: #fff; }
.btn-block { margin: 12px; width: calc(100% - 24px); }
.btn:disabled { background: #c3cbd4; }

.tag { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 4px; margin-right: 4px; }
.tag-blue { background: #eaf1f9; color: #1b4d8f; }
.tag-teal { background: #e6f4f6; color: #0d7a86; }
.tag-amber { background: #fdf3e2; color: #b8791a; }
.tag-red { background: #fbecea; color: #b5342c; }
.tag-green { background: #e9f4ee; color: #1f7a45; }
.tag-gray { background: #f1f3f5; color: #6b737b; }

.alert { margin: 12px; border-radius: 10px; padding: 11px 13px; display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; }
.alert-red { background: #fbecea; color: #8a2b25; border-left: 3px solid #b5342c; }
.alert-amber { background: #fdf3e2; color: #6b4c14; border-left: 3px solid #b8791a; }
.alert-blue { background: #eaf1f9; color: #23456b; border-left: 3px solid #1b4d8f; }
.alert .a-title { font-weight: 500; margin-bottom: 2px; }

.notice-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d93025; margin-right: 5px; }

/* 进度条 */
.pbar { height: 5px; background: #eceff2; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.pbar > i { display: block; height: 100%; background: #1b4d8f; border-radius: 3px; }

/* 时间轴 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: #e4e8ed; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #cfd6de; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #e4e8ed; }
.tl-item.done::before { background: #1b4d8f; box-shadow: 0 0 0 1.5px #b5d4f4; }
.tl-item.current::before { background: #b8791a; box-shadow: 0 0 0 2.5px #fdf3e2; }
.tl-item .tl-n { font-size: 13px; font-weight: 500; }
.tl-item .tl-t { font-size: 11px; color: #9aa2aa; }

/* 列表项 */
.list-item { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #f2f4f6; align-items: flex-start; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-t { font-size: 13.5px; font-weight: 500; margin-bottom: 3px; }
.list-item .li-d { font-size: 11.5px; color: #858d95; line-height: 1.5; }
.list-item .li-x { font-size: 11px; color: #9aa2aa; margin-top: 4px; display: flex; gap: 10px; }
/* 订单记录：右列金额 + 未付款。未付款只在有欠款时出现（付清/多付不渲染该行） */
.list-item .ord-amt { text-align: right; flex: none; }
.list-item .ord-unpaid { margin-top: 3px; font-size: 11.5px; color: #b5342c; white-space: nowrap; }
/* 订单记录：抵扣积分（CRM c__dikoujifen 读侧）——只在 > 0 时出现，琥珀色区分「欠款红」 */
.list-item .ord-deduct { margin-top: 3px; font-size: 11.5px; color: #ad6800; white-space: nowrap; }
/* 订单区标题右侧的「待收合计」：只在有欠款时出现 */
.ord-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 500; }
.ord-head > span:first-child { flex: 1; min-width: 0; }
.ord-head .ord-sum { font-size: 11.5px; font-weight: 400; color: #b5342c; flex: none; }

/* 表单 */
.form-item { display: flex; align-items: center; padding: 11px 14px; background: #fff; border-bottom: 1px solid #f2f4f6; font-size: 13.5px; }
.form-item label { width: 88px; flex: 0 0 88px; color: #6b737b; }
.form-item input, .form-item select, .form-item textarea { flex: 1; border: none; outline: none; font-size: 13.5px; font-family: inherit; background: transparent; color: #1b1f24; }
.form-item textarea { resize: none; height: 46px; }
.form-item .unit { font-size: 12px; color: #9aa2aa; }
/* 只读回填行：订单与发票的「开票抬头」+ 随主体带入的税号、共享开票的「开票主体」。
   灰字 + 默认光标，提示「这是系统带入的，改的是上面的选择器而不是这里」。 */
.form-item input[readonly] { color: #6b737b; cursor: default; }
/* ⚠️ 2026-09-21：「开票主体」行已从表单移除（终端用户只会给自己的主体开票），
   随之删掉 .fi-tap / .fi-val / .fi-arrow 三条样式 —— 不留没人用的死样式，
   否则下次有人搜到 .fi-tap 会以为表单里还有可点选的行。 */
/* 「抬头库」快捷入口行：紧贴购货方抬头行正下方、右对齐（对应小程序 .lib-row）。
   2026-09-22 二次调整：购货方抬头恢复手填 + 抬头库选用，入口行随之回归。
   2026-09-23：该入口现在只出现在共享开票形态（订单与发票侧已无购货方抬头）。 */
.lib-row { display: flex; justify-content: flex-end; align-items: center; padding: 0 14px 9px;
  background: #fff; border-bottom: 1px solid #f2f4f6; }
.lib-row .tag { margin-right: 0; margin-left: 6px; cursor: pointer; }

/* 开票明细 —— **只有共享开票形态**渲染此块（订单与发票 › 开票申请不含明细）。
   2026-09-23 起按常规票面口径重排：名称独占一行，其余六项两列栅格；
   金额(不含税) 只读、税额与价税合计自动算。类名与小程序的明细块同序同名。 */
.inv-detail-group .card-t { padding: 2px 4px; }
.inv-detail-row { border: 1px solid #eceff2; border-radius: 10px; padding: 10px 10px 8px; margin-bottom: 10px; background: #fff; }
.inv-detail-row .invd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.inv-detail-row .invd-name { flex: 1; min-width: 0; height: 38px; border: 1px solid #eceff2; border-radius: 8px; padding: 0 10px; font-size: 14px; background: #fff; box-sizing: border-box; }
.inv-detail-row .invd-del { width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 50%; color: #d9534f; border: 1px solid #f3c2c0; cursor: pointer; font-size: 12px; flex: none; }
.inv-detail-row .invd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-detail-row .invd-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inv-detail-row .invd-l { font-size: 11.5px; color: #9aa2aa; }
.inv-detail-row .invd-f input, .inv-detail-row .invd-f select { height: 34px; width: 100%; box-sizing: border-box; border: 1px solid #eceff2; border-radius: 8px; padding: 0 8px; font-size: 13px; background: #fff; color: #2b3138; }
/* 只读的计算列（金额不含税）= 灰底灰字，别看着像可编辑 */
.inv-detail-row .invd-f input[readonly] { background: #f7f9fb; color: #5b636b; text-align: right; }
.inv-detail-row .invd-calc { margin-top: 6px; text-align: right; font-size: 12px; color: #5b636b; }
.inv-detail-row .invd-calc b { color: #1b4d8f; }
.inv-detail-add { display: inline-block; margin: 2px 0 6px; padding: 6px 12px; border: 1px dashed #c3cbd4; border-radius: 8px; color: #1b4d8f; font-size: 13px; cursor: pointer; }
.inv-detail-add:hover { background: #f4f8fc; }
/* 明细三项合计（不含税 / 税额 / 价税合计）—— 唯一一处 .inv-detail-sum；原先另有一份是
   发票中心展开明细的，2026-09-22 展开移除后已删除（那份在级联里覆盖过这里，取值已折进来） */
.inv-detail-sum { text-align: right; font-size: 12px; color: #5b636b; margin-top: 8px; padding-top: 4px; border-top: 1px dashed #eceff2; }
.inv-detail-sum b { color: #1b4d8f; font-size: 15px; }

/* 主体切换弹层 */
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 40; display: flex; align-items: flex-end; }
.sheet { width: 100%; background: #fff; border-radius: 14px 14px 0 0; padding: 8px 0 12px; max-height: 76%; display: flex; flex-direction: column; animation: slideup .22s ease; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-h { text-align: center; font-size: 13.5px; padding: 8px 0 10px; color: #6b737b; position: relative; border-bottom: 1px solid #f2f4f6; }
.sheet-h .close { position: absolute; right: 14px; top: 8px; color: #9aa2aa; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 4px 0; }
.sheet-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f6f7f9; cursor: pointer; }
.sheet-item.active { background: #f2f7fc; }
.sheet-item .si-name { font-size: 13.5px; font-weight: 500; }
.sheet-item .si-sub { font-size: 11px; color: #9aa2aa; margin-top: 2px; }
.sheet-item .si-check { margin-left: auto; color: #1b4d8f; font-size: 15px; }

/* 我的服务团队弹层（2026-10-13 排版优化）：双列名片卡 —— 二维码在上、姓名/角色在下，替代稀疏左右排布 */
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 6px; }
.tm-card { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 10px; padding: 12px 10px 11px; text-align: center; }
.tm-qrbox { width: 94px; height: 94px; margin: 0 auto; border-radius: 8px; background: #fff; border: 1px solid #e8edf3; padding: 5px; box-sizing: border-box; }
.tm-qrbox img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; display: block; }
.tm-qr-empty { width: 94px; height: 94px; margin: 0 auto; border-radius: 8px; border: 1px dashed #d4dbe3; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: #9aa2aa; padding: 8px; box-sizing: border-box; line-height: 1.5; }
.tm-name { font-size: 13px; font-weight: 600; color: #1b1f24; margin-top: 9px; }
.tm-role { display: inline-block; font-size: 10.5px; color: #1b4d8f; background: #e8f0f9; border-radius: 999px; padding: 2px 10px; margin-top: 5px; }
.tm-cap { font-size: 10px; color: #b3bac2; margin-top: 6px; }

/* 签到日历 */
.sign-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.sign-cell { aspect-ratio: 1; border-radius: 7px; background: #f3f5f7; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #9aa2aa; }
.sign-cell.on { background: #1b4d8f; color: #fff; }
.sign-cell.today { border: 1.5px solid #b8791a; color: #b8791a; }

/* 商品 */
.prod-card { background: #fff; border-radius: 10px; margin-bottom: 9px; display: flex; gap: 11px; padding: 12px; }
.prod-thumb { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; text-align: center; padding: 4px; line-height: 1.3; }
.prod-name { font-size: 13.5px; font-weight: 500; margin-bottom: 3px; }
.prod-desc { font-size: 11.5px; color: #858d95; line-height: 1.5; }
.prod-price { color: #d93025; font-size: 15px; font-weight: 600; }
.prod-price small { font-size: 11px; font-weight: 400; }
.price-del { color: #b0b7be; text-decoration: line-through; font-size: 11px; margin-left: 5px; }

/* 分类 tab */
.catbar { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: #fff; }
.catbar::-webkit-scrollbar { height: 0; }
.cat-chip { flex: 0 0 auto; padding: 5px 13px; border-radius: 15px; background: #f1f3f5; font-size: 12.5px; color: #6b737b; cursor: pointer; }
.cat-chip.active { background: #1b4d8f; color: #fff; }
/* 财务报表两页（财务明细 / 会计报表，2026-10-13 由「同页两块」拆为两个页面）的二级菜单药丸行。
 * 页面名已在导航栏，页内不再渲染组标题，故原 .fs-grp-h 已删除。 */
.fs-grp { margin-bottom: 8px; }
.fs-grp:last-child { margin-bottom: 0; }
.fs-grp-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* 空态 */
.empty { text-align: center; padding: 54px 20px; color: #9aa2aa; font-size: 13px; }
.empty .e-ic { font-size: 34px; margin-bottom: 10px; opacity: .35; }

/* Toast */
.toast { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; z-index: 60; max-width: 78%; text-align: center; }

/* 顶部切换器条 */
.switchbar { display: flex; align-items: center; gap: 7px; background: #fff; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid #f2f4f6; }
.switchbar .sw-name { font-weight: 500; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* 类型标签不参与压缩，挤压时由企业名省略 */
.switchbar .tag { flex: none; }
.switchbar .sw-arrow { color: #9aa2aa; font-size: 10px; }
/* 切换主体按钮 2026-09-30：由灰色小字改为实心药丸；头部是唯一主体切换入口，需明显 */
.switchbar .sw-btn { background: #0d7a86; color: #fff; border-radius: 12px; padding: 3px 9px; font-size: 11px; font-weight: 600; flex: none; }

/* 数据溯源角标 */
.src-foot { font-size: 10.5px; color: #a8afb6; text-align: center; padding: 10px 0 6px; }

/* 2026-09-22 移除：发票中心「点开记录看开票明细」（.inv-row / .inv-chev / .inv-detail /
   .inv-detail-empty / .inv-detail-h / .inv-tbl*）—— 开票记录与共享开票拆分后，
   票面明细不再在「订单与发票」展开渲染，这些样式已无引用，删掉避免留死样式。 */

/* ================= 财税分析报告 ================= */
.report-page { background: #f5f6f8; }
.rep-head { background: linear-gradient(135deg, #1b4d8f, #0d7a86); color: #fff; border-radius: 0 0 14px 14px; padding: 16px 16px 14px; margin-bottom: 10px; }
.rep-head .rep-title { font-size: 18px; font-weight: 600; }
.rep-head .rep-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.rep-head .rep-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 11px; opacity: .92; }
.rep-head .rep-meta .tag { opacity: 1; }

/* 概要指标网格（报告页） */
.rep-ov { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #f2f4f6; border-radius: 8px; overflow: hidden; }
.rep-ov-i { background: #fff; padding: 10px 12px; }
.rep-ov-i .ro-l { font-size: 11px; color: #858d95; }
.rep-ov-i .ro-v { font-size: 17px; font-weight: 600; margin-top: 3px; letter-spacing: -.3px; }
.rep-note { font-size: 11.5px; color: #6b737b; line-height: 1.6; margin-top: 8px; }

/* 报告内「本月 / 本年累计」副值 */
.row .ro-yr { font-size: 11px; color: #9aa2aa; margin-left: 8px; font-weight: 400; }

/* 首页卡片迷你指标（3 列） */
.rep-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.rep-mini-i { text-align: center; background: #f7f9fc; border-radius: 8px; padding: 9px 4px; }
.rep-mini-i .rm-l { font-size: 11px; color: #858d95; }
.rep-mini-i .rm-v { font-size: 16px; font-weight: 600; margin-top: 2px; letter-spacing: -.3px; }
.rep-demo { font-size: 10.5px; color: #b8791a; background: #fdf3e2; border-radius: 6px; padding: 4px 8px; margin-top: 8px; display: inline-block; }

/* 风险明细 */
.rep-risk { border: 1px solid #f1d9d6; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fffcfb; }
.rep-risk:last-child { margin-bottom: 0; }
.rr-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rr-no { width: 18px; height: 18px; border-radius: 50%; background: #1b4d8f; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 18px; }
.rr-d { font-weight: 500; font-size: 13px; color: #1b1f24; }
.rr-note { font-size: 11.5px; color: #6b737b; margin-top: 6px; line-height: 1.6; }

/* 建议列表 */
.rep-sug { margin: 0; padding-left: 18px; }
.rep-sug li { font-size: 12.5px; color: #4b535b; line-height: 1.7; margin-bottom: 6px; }

/* ============ 每月纳税通知 ============ */
/* 首页卡片：税额 + 状态 + 截止日 */
.tn-card-top { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.tn-card-amt .tn-l { font-size: 11px; color: #858d95; }
.tn-card-amt .tn-v { font-size: 20px; font-weight: 600; letter-spacing: -.3px; margin-top: 2px; }
.tn-card-st { text-align: right; }
.tn-ddl { font-size: 11px; color: #9aa2aa; margin-top: 4px; }
.tn-card-prg { font-size: 11.5px; color: #6b737b; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f2f4f6; }

/* 完整页：状态横幅 */
.tn-banner { border-radius: 10px; padding: 12px 14px; margin: 0 12px 10px; line-height: 1.5; }
.tn-banner-red { background: #fbecea; border: 1px solid #f3c5bf; color: #b5342c; }
.tn-banner-amber { background: #fdf3e2; border: 1px solid #f3e0bd; color: #b8791a; }
.tn-banner-green { background: #e9f4ee; border: 1px solid #cfe8d8; color: #1f7a45; }
.tn-b-t { font-size: 14px; font-weight: 600; }
.tn-b-d { font-size: 12px; opacity: .92; margin-top: 3px; }
.tn-b-d b { font-weight: 700; }

/* ============ 共享开票 ============ */
/* 服务首页板块卡片 */
/* 共享开票板块卡：2026-09-21 由深色渐变改为白卡（用户反馈底色太抢眼），
   底色/圆角/外边距与 .group 对齐，靠 🧾 图标 + 右侧箭头表达可点。 */
.svc-board { display: flex; align-items: center; gap: 12px; background: #fff; color: #1b1f24; border-radius: 10px; margin: 0 12px 10px; padding: 14px; cursor: pointer; }
.svc-board .sb-main { flex: 1; min-width: 0; }
.svc-board .sb-t { font-size: 13.5px; font-weight: 500; }
.svc-board .sb-d { font-size: 11.5px; color: #858d95; margin-top: 3px; line-height: 1.5; }

/* 共享开票台页头（按是否待开票切换配色） */
.svc-hero { border-radius: 12px; margin: 12px; padding: 16px; color: #fff; }
.svc-hero-amber { background: linear-gradient(135deg, #b8791a, #d99a3a); }
.svc-hero-green { background: linear-gradient(135deg, #1f8f6a, #0d9a86); }
.svc-hero .sh-t { font-size: 18px; font-weight: 600; }
.svc-hero .sh-d { font-size: 12px; opacity: .92; margin-top: 5px; line-height: 1.55; }
.svc-hero .sh-stats { display: flex; gap: 10px; margin-top: 14px; }
.svc-hero .sh-stat { flex: 1; background: rgba(255,255,255,.16); border-radius: 8px; padding: 8px 6px; text-align: center; }
.svc-hero .sh-v { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.svc-hero .sh-l { font-size: 11px; opacity: .9; margin-top: 2px; }
