html, body { margin: 0; height: 100%; background: #f5f7fa; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
#app { height: 100%; }
.layout { min-height: 100vh; }
.sidebar { background: #1f2d3d; color: #fff; width: 200px; flex-shrink: 0; }
.sidebar .brand { height: 56px; line-height: 56px; text-align: center; font-weight: 600; font-size: 16px; color: #fff; background: #16222f; }
.sidebar .el-menu { border-right: none; }
.sidebar { overflow-y: auto; }   /* 分组都展开时能滚动 */
.topbar { background: #fff; height: 56px; display: flex; align-items: center; padding: 0 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 10; }
.topbar .title { font-size: 16px; font-weight: 600; margin-left: 8px; flex: 1; }
.page { padding: 16px; }
.card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .el-input, .toolbar .el-select { width: 180px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
.stat { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.stat .label { color: #909399; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .value { font-size: 24px; font-weight: 600; margin-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat .sub { color: #909399; font-size: 12px; margin-top: 2px; white-space: nowrap; }
.stat .value.warn { color: #e6a23c; }
.mono { font-family: Consolas, Menlo, monospace; }
.muted { color: #909399; font-size: 12px; }
.menu-btn { display: none; }
.pager { margin-top: 12px; display: flex; justify-content: flex-end; }
.desc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.desc-grid .k { color: #909399; font-size: 12px; }
.desc-grid .v { font-size: 14px; }
@media (max-width: 768px) {
  .sidebar { display: none; }
  .menu-btn { display: inline-flex; }
  .page { padding: 10px; }
  .toolbar .el-input, .toolbar .el-select { width: 100%; }
  .el-dialog { width: 95% !important; }
  .row { flex-wrap: wrap; }              /* 手机上挤不下就换行，别把输入框压成一条缝 */
  .field.wide { flex: 1 1 100%; }        /* 电话、备注这类需要横向空间的，独占一行 */
}
.el-table .row-current td { background: #ecf5ff !important; }
/* 手机宽度（和 el-col 的 xs 同一断点）下重排表单字段：mo-N = 第 N 个；电脑端仍按页面里的顺序 */
@media (max-width: 767.98px) {
  .mo-1 { order: 1; } .mo-2 { order: 2; } .mo-3 { order: 3; } .mo-4 { order: 4; }
  .mo-5 { order: 5; } .mo-6 { order: 6; } .mo-7 { order: 7; } .mo-8 { order: 8; }
}
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #1f2d3d; padding: 16px; }
.login-card { background: #fff; border-radius: 10px; padding: 32px 28px; width: 100%; max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.login-brand { font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 20px; }
.perm-table { border-collapse: collapse; min-width: 480px; }
.perm-table th, .perm-table td { padding: 8px 12px; border-bottom: 1px solid #ebeef5; text-align: left; font-size: 13px; }
.perm-table th { color: #909399; font-weight: 500; background: #f5f7fa; }
.perm-dirty .el-select__wrapper { box-shadow: 0 0 0 1px #e6a23c inset !important; }   /* 权限表里改了还没保存的格子 */
.row { display: flex; gap: 8px; align-items: center; }
.el-table .row-inactive td { color: #c0c4cc; }
.receipt-page { background: #fff; min-height: 100vh; padding: 16px; display: flex; flex-direction: column; align-items: center; }
.receipt { width: 302px; background: #fff; padding: 10px 6px; font-family: Consolas, Menlo, "Courier New", monospace; font-size: 12px; color: #111; }
.receipt h3 { margin: 0; text-align: center; font-size: 15px; font-weight: 700; }
.receipt .c { text-align: center; }
.receipt hr { border: none; border-top: 1px dashed #999; margin: 6px 0; }
.receipt .l { display: flex; justify-content: space-between; gap: 8px; }
.receipt .l.b { font-weight: 700; font-size: 13px; }
.receipt .l.sub { color: #555; font-size: 11px; }
.receipt .sign { margin-top: 20px; display: flex; justify-content: space-between; font-size: 11px; }
.item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #ebeef5; }
.item .name { font-weight: 600; }
.sum { display: flex; justify-content: space-between; padding: 4px 0; }
.sum.total { font-size: 18px; font-weight: 600; border-top: 1px solid #ebeef5; padding-top: 10px; margin-top: 4px; }
.sum .lak { font-size: 12px; color: #909399; font-weight: 400; margin-left: 4px; }
.sum-divider { border-top: 1px solid #ebeef5; margin: 6px 0 8px; }          /* 应收那一块和下面的人员 / 备注隔开 */
.plain-labels .field label { color: #303133; }                                  /* 这块的字段名用正常字色，不置灰 */
.input { height: 40px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 11px; display: flex; align-items: center; background: #fff; }
.input input { border: none; outline: none; background: transparent; font: inherit; width: 100%; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.field label { font-size: 12px; color: #909399; }
.grow { flex: 1; min-width: 0; }
.row.between { justify-content: space-between; }
@media print {
  @page { size: 80mm auto; margin: 3mm; }
  body { background: #fff; }
  .no-print, .preview-banner { display: none !important; }
  .receipt-page { padding: 0; }
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #dcdfe6; background: #fff; color: #606266; font: inherit; cursor: pointer; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"] { background: #ecf5ff; border-color: #409eff; color: #409eff; font-weight: 600; }
.tag.primary { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }
.receipt .c.b { font-weight: 700; }

/* 表格正文、表头与明细字号整体调大一号 */
.el-table--small .el-table__body .cell, .el-table .el-table__body .cell { font-size: 14px; }
.el-table--small .el-table__body td.el-table__cell { padding: 6px 0; }
.el-table__header .cell { font-size: 14px; }
.desc-grid .k, .field label { font-size: 13px; }
.desc-grid .v, .field .v { font-size: 15px; }
.perm-table td { font-size: 14px; }

/* 测试环境提示：斜纹橙条固定在最上面，页面和吸顶的顶栏往下让开 */
.preview-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 3000; height: 32px; line-height: 32px; padding: 0 12px; text-align: center;
  font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: repeating-linear-gradient(45deg, #d9480f 0 14px, #e8590c 14px 28px); letter-spacing: .5px; }
body.is-preview { padding-top: 32px; }
body.is-preview .topbar { top: 32px; }
@media (max-width: 767.98px) { .preview-banner .pb-more { display: none; } .preview-banner::after { content: '：数据会被覆盖'; } }
/* 费用页：点选的行高亮更明显；拖图片进来时表格加虚线框；凭证缩略图（点开大图，悬停出删除 ×） */
.exp-thumb { position: relative; display: inline-block; width: 24px; height: 24px; vertical-align: middle; }
.exp-thumb .el-image { width: 24px; height: 24px; box-sizing: border-box; border-radius: 3px; border: 1px solid #dcdfe6; display: block; cursor: zoom-in; }
.exp-thumb-del { position: absolute; top: 0; right: -11px; width: 14px; height: 14px; line-height: 13px; border-radius: 50%;
  background: #f56c6c; color: #fff; font-size: 12px; text-align: center; cursor: pointer; display: none; }
.exp-thumb:hover .exp-thumb-del { display: block; }
@media (hover: none) { .exp-thumb-del { display: block; } }   /* 手机 / 平板没有悬停，常显 */
/* 配件商品图缩略图：有图可点开大图；没图灰色占位 */
.acc-thumb { display: inline-flex; flex: none; vertical-align: middle; border-radius: 3px; border: 1px solid #dcdfe6; box-sizing: border-box; overflow: hidden; }
.acc-thumb.el-image { cursor: zoom-in; }
.acc-thumb-empty { align-items: center; justify-content: center; background: #f5f7fa; color: #c0c4cc; border-style: dashed; }
.acc-photo-box { display: flex; align-items: center; gap: 12px; }
/* 工资单顶部汇总：应发 / 工资已发 / 提成已发 / 实发 */
.payroll-sum { margin: 4px 0 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.payroll-sum .stat { padding: 10px 14px; border: 1px solid #ebeef5; box-shadow: none; }
.payroll-sum .value { font-size: 18px; }
.payroll-sum .value .lak { font-size: 14px; font-weight: 500; color: #606266; margin-left: 6px; }
.payroll-sum .sub.warn { color: #e6a23c; }
.exp-wrap .el-table__body tr.current-row > td.el-table__cell { background: #d9ecff !important; }
.exp-wrap .el-table__body tr.current-row > td.el-table__cell:first-child { box-shadow: inset 3px 0 0 #409eff; }
.exp-wrap.exp-drop { outline: 2px dashed #409eff; outline-offset: 2px; border-radius: 4px; }

/* 分期附件资料 */
.inst-att-kind { padding: 10px 0; border-top: 1px solid #ebeef5; }
.inst-att-items { display: flex; flex-wrap: wrap; gap: 12px; }
.inst-att-item { position: relative; width: 84px; }
.inst-att-box { width: 84px; height: 84px; border-radius: 4px; border: 1px solid #dcdfe6; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #f5f7fa; cursor: zoom-in; overflow: hidden; }
.inst-att-video { background: #303133; color: #fff; font-size: 24px; cursor: pointer; }
.inst-att-del { top: -6px; right: -6px; }
.inst-att-item:hover .inst-att-del { display: block; }

/* 单行显示，超长省略（鼠标悬停看全名用 title） */
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 测试环境顶部横幅盖住了右侧抽屉的标题：抽屉整体下移 */
body.is-preview .el-drawer.rtl, body.is-preview .el-drawer.ltr { top: 32px; height: calc(100% - 32px) !important; }

/* 经营报表：利润表 */
.pl-row { display: grid; grid-template-columns: 110px 140px 1fr; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #ebeef5; }
.pl-row b { text-align: right; }
.pl-row .muted { font-size: 12px; }
.pl-row.sub { background: #f5f7fa; font-weight: 600; }
.pl-row.total { border-bottom: none; font-size: 16px; font-weight: 600; }
@media (max-width: 767.98px) { .pl-row { grid-template-columns: 90px 1fr; } .pl-row .muted { grid-column: 1 / -1; } }

/* 颜色色块（像 Apple 官网的色卡圆点） */
.color-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); flex-shrink: 0; }

/* ---- 经营分析 ---- */
.an-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 12px; margin-bottom: 4px; background: #f5f7fa; }
.an-card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.an-card h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.an-card h3 .muted { font-weight: 400; }
.an-kpis { display: grid; gap: 12px; margin-bottom: 12px; }
.an-kpi .l { color: #909399; font-size: 13px; white-space: nowrap; }
.an-kpi .v { font-size: 24px; font-weight: 600; margin: 4px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-kpi .d { font-size: 12px; min-height: 18px; }
.an-kpi .sp { height: 36px; margin-top: 4px; }
.an-up { color: #67c23a; } .an-down { color: #f56c6c; }
.an-grid { display: grid; gap: 12px; }
.an-grid.an-1-1 { grid-template-columns: 1fr 1fr; } .an-grid.an-3-2 { grid-template-columns: 3fr 2fr; }
.an-grid.an-gross { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); column-gap: 40px; align-items: start; }
.an-grid > .an-card { margin-bottom: 0; } .an-grid + .an-card, .an-grid + .an-grid { margin-top: 12px; }
.an-chart { height: 320px; } .an-chart.s { height: 260px; } .an-chart.l { height: 380px; }
.an-ins { background: #ecf5ff; border-left: 3px solid #409eff; padding: 10px 14px; border-radius: 4px; font-size: 13px; line-height: 1.9; }
.an-ins b { color: #409eff; } .an-ins b.an-down { color: #f56c6c; }
.an-per100 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.an-per100 > div { flex: 1; min-width: 120px; background: #fafafa; border-radius: 6px; padding: 10px 12px; }
.an-per100 b { font-size: 20px; display: block; font-variant-numeric: tabular-nums; }
.an-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.an-table th, .an-table td { padding: 7px 10px; border-bottom: 1px solid #ebeef5; text-align: right; }
.an-table th { color: #909399; font-weight: 500; background: #fafafa; }
.an-pl td:first-child, .an-pl th:first-child { text-align: left; }
.an-pl tr.pl-sum td { font-weight: 600; background: #f5f7fa; }   /* 不能叫 .sum：全局 .sum 是开单合计的 flex 布局 */
.an-pl tr.sub td { color: #606266; font-size: 12px; } .an-pl tr.sub td:first-child { padding-left: 28px; }
.an-pl tr.pl-group { cursor: pointer; } .an-pl tr.pl-group:hover td { background: #ecf5ff; }
.an-pl .pl-caret { display: inline-block; width: 16px; color: #909399; }
.an-pl tr.sub td:first-child { padding-left: 38px; }
.an-pl tr.total td { font-weight: 700; font-size: 14px; border-top: 2px solid #303133; }
.an-tabs { display: flex; gap: 24px; border-bottom: 1px solid #ebeef5; margin: -4px 0 14px; }
.an-tabs span { padding: 8px 0; cursor: pointer; color: #606266; } .an-tabs span.on { color: #409eff; border-bottom: 2px solid #409eff; }
/* 收银台：电脑横屏，左商品右收款；字号比后台大一档，金额等宽数字 */
.pos { font-size: 15px; }
.pos .num, .pos .pos-price input { font-variant-numeric: tabular-nums; }
.pos-scan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-scan-input { flex: 1 1 320px; height: 48px; font-size: 20px; padding: 0 14px; border: 2px solid #409eff; border-radius: 6px; outline: none; font-family: inherit; }
.pos-scan-input:focus { box-shadow: 0 0 0 3px rgba(64,158,255,.2); }
.pos-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr); gap: 12px; align-items: start; }
.pos-main > .card { margin-bottom: 0; }
.pos-left { display: flex; flex-direction: column; min-height: 60vh; }
.pos-items { flex: 1; }
.pos-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ebeef5; }
.pos-row .name { font-weight: 600; }
.pos-name { min-width: 0; } .pos-name .name, .pos-name .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-phone-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #f0f2f5; border-radius: 6px; color: #909399; flex: none; }
.pos-price { width: 140px; flex: none; }
.pos-qty { display: flex; align-items: center; gap: 8px; width: 96px; justify-content: center; flex: none; }
.pos-line { width: 120px; text-align: right; font-weight: 600; flex: none; }
.pos-empty { color: #c0c4cc; text-align: center; padding: 60px 0; font-size: 18px; }
.pos-sum { border-top: 2px solid #ebeef5; padding-top: 8px; }
.pos-payable .num { font-size: 26px; }
.pos-right { display: flex; flex-direction: column; gap: 10px; }
.pos-checkout { width: 100%; height: 60px !important; font-size: 20px !important; }
.pay-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.pay-quick .el-button + .el-button { margin-left: 0; }
.pay-line { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid #ebeef5; }
.pay-line.on { background: #ecf5ff; margin: 0 -8px; padding: 8px; border-radius: 4px; }
.pos-print-frame { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }
@media (max-width: 1000px) { .pos-main { grid-template-columns: 1fr; } .pos-price { width: 110px; } .pos-line { width: 90px; } }
.pos-slides { display: flex; flex-wrap: wrap; gap: 10px; }
.pos-slide { width: 192px; border: 1px solid #ebeef5; border-radius: 6px; overflow: hidden; }
.pos-slide .el-image { width: 192px; height: 120px; display: block; }
.pos-slide .ops { display: flex; justify-content: space-between; padding: 2px 6px; }
.pos-slide.add { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #909399; cursor: pointer; border-style: dashed; }
/* 顾客副屏（平板横屏 1280×800）：深色底、大字；老挝语为主，中文小一号 */
.dsp { position: fixed; inset: 0; background: #0f172a; color: #fff; overflow: hidden; font-family: "Leelawadee UI", "Phetsarath OT", "Microsoft YaHei", sans-serif; }
.dsp-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dsp-big { font-size: 96px; font-weight: 700; } .dsp-sub { font-size: 40px; opacity: .8; margin-top: 8px; }
.dsp-idle { position: absolute; inset: 0; }
.dsp-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.dsp-slide.on { opacity: 1; }
.dsp-cart { position: absolute; inset: 0; display: grid; grid-template-columns: 3fr 2fr; }
.dsp-items { padding: 28px 32px; overflow: hidden; }
.dsp-h, .dsp-label { font-size: 26px; opacity: .85; margin-bottom: 12px; } .dsp-h span, .dsp-label span { font-size: 20px; opacity: .7; margin-left: 8px; }
.dsp-item { display: grid; grid-template-columns: 1fr auto 170px; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 24px; }
.dsp-item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dsp-item .q { opacity: .7; font-size: 20px; } .dsp-item .m { text-align: right; font-variant-numeric: tabular-nums; }
.dsp-total { background: #1e293b; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.dsp-amount { font-size: 76px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; color: #fbbf24; } .dsp-amount small { font-size: 30px; color: #fff; opacity: .8; }
.dsp-line { font-size: 26px; opacity: .9; margin-top: 10px; } .dsp-line b { margin-left: 8px; }
.dsp-pay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 32px; }
.dsp-qr { height: min(86vh, 640px); max-width: 52vw; object-fit: contain; background: #fff; border-radius: 16px; padding: 12px; }
.dsp-payinfo { max-width: 40vw; } .dsp-tip { font-size: 22px; opacity: .75; margin-top: 24px; line-height: 1.5; }
.dsp-dot { position: absolute; right: 14px; bottom: 14px; width: 14px; height: 14px; border-radius: 50%; background: #f56c6c; box-shadow: 0 0 6px #f56c6c; }
/* 配件标签 40×30mm：屏幕上带框排开，打印时一张一页（@page 尺寸由标签页自己注入） */
.labels-page { background: #fff; }
.lbl { box-sizing: border-box; width: 40mm; height: 30mm; padding: 1mm 1.5mm; overflow: hidden; display: flex; flex-direction: column; font-family: "Microsoft YaHei", "Leelawadee UI", sans-serif; color: #000; }
.lbl-name { font-size: 8pt; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lbl-spec { font-size: 7pt; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl-bar { width: 100%; height: 9mm; margin-top: auto; object-fit: fill; image-rendering: pixelated; }
.lbl-foot { display: flex; justify-content: space-between; font-size: 8pt; line-height: 1.2; }
@media screen { .lbl { border: 1px dashed #c0c4cc; margin: 6px auto; } }
@media print { .lbl { page-break-after: always; break-after: page; } }
/* 现金流页：资金进出的分组小计行、月初到月末的勾稽、本月新办分期待收高亮 */
.an-card .cf-sub td { background: #f5f7fa; }
.cf-sum { margin-top: 10px; border-top: 1px solid #ebeef5; padding-top: 8px; }
.cf-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.cf-sum > div.total { border-top: 1px dashed #dcdfe6; margin-top: 4px; padding-top: 6px; font-size: 15px; }
.stat.cf-hl { border: 1px solid #f3d19e; background: #fdf6ec; }
.an-sec { font-size: 16px; font-weight: 600; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.an-sec::before { content: ""; width: 4px; height: 16px; background: #409eff; border-radius: 2px; }
.an-table th.l, .an-table td.l { text-align: left; }
.an-scroll { max-height: 560px; overflow: auto; }
.an-plans td, .an-plans th { white-space: nowrap; }
.an-plans tr.row { cursor: pointer; } .an-plans tr.row:hover td, .an-plans tr.on td { background: #f5f9ff; }
.an-plans tr.detail td { background: #fafcff; padding: 4px 8px 10px; }
.an-prog { position: relative; height: 8px; background: #ebeef5; border-radius: 4px; margin-right: 44px; }
.an-prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transition: width .8s ease; }
.an-prog b { position: absolute; left: 62.5%; top: -3px; width: 2px; height: 14px; background: #303133; }   /* 回本线：100% ÷ 160% 满格 */
.an-prog span { position: absolute; right: -44px; top: -6px; font-size: 12px; }
.an-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.an-mini > div { background: #fafafa; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; }
.an-mini b { font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .an-grid.an-1-1, .an-grid.an-3-2, .an-grid.an-gross { grid-template-columns: 1fr; } .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media print { .an-bar .el-button, .sidebar, .el-aside, header { display: none !important; } .an-card { box-shadow: none; break-inside: avoid; } }

/* 以旧换新付给客户：金额框前的红色负号、框里数字红色 */
.payout-minus { color: #f56c6c; font-weight: 700; font-size: 18px; line-height: 32px; margin-right: -4px; }
.payout-input .el-input__inner { color: #f56c6c; font-weight: 600; }

/* 经营概览：零售利润 & 分期预估利润 */
.an-brief .brief-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 14px; }
.an-brief .brief-big > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #f5f7fa; border-radius: 6px; }
.an-brief .brief-big b { font-size: 26px; font-variant-numeric: tabular-nums; color: #303133; }
.an-brief .brief-big b.an-down { color: #f56c6c; }
.an-brief .brief-scroll { overflow-x: auto; }
.an-brief td, .an-brief th { white-space: nowrap; }
.an-brief tr.on td { background: #ecf5ff; }
.an-brief tr.brief-sum td { font-weight: 700; background: #f5f7fa; border-top: 2px solid #dcdfe6; }
.an-brief .brief-note { margin-top: 8px; line-height: 1.7; }
@media (max-width: 768px) { .an-brief .brief-big { grid-template-columns: 1fr; } }
.an-brief .brief-acc { font-size: 11px; margin-left: 4px; }
/* 利润分析 · 毛利构成右栏 */
.gross-side { padding-top: 30px; }
.gross-side .gross-total { display: flex; gap: 40px; padding-bottom: 14px; border-bottom: 1px solid #ebeef5; }
.gross-side .gross-total > div { display: flex; flex-direction: column; gap: 2px; }
.gross-side .gross-total b { font-size: 26px; font-variant-numeric: tabular-nums; color: #303133; }
.gross-side .gross-notes { margin: 12px 0 18px; padding-left: 18px; font-size: 13px; line-height: 2; color: #606266; }
.gross-side .gross-notes b { color: #409eff; } .gross-side .gross-notes b.an-down { color: #f56c6c; }
.gross-side h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #303133; }
.gross-side .p100-row { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; }
.gross-side .p100-row b { text-align: right; font-variant-numeric: tabular-nums; }
.gross-side .p100-bar { height: 8px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.gross-side .p100-bar i { display: block; height: 100%; border-radius: 4px; }
