dsh-data-dashboard 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,8 +34,8 @@ export function createV10OverviewData(model, presentation) {
34
34
  for (const item of values) { const next = item - correction, updated = value + next; correction = (updated - value) - next; value = updated; }
35
35
  return value;
36
36
  };
37
- function windowMetric(id, module, start, end, requireMonths = false) {
38
- const field = id === 'opening' ? 'bottles' : 'amount', unit = id === 'opening' ? '瓶' : '元';
37
+ function windowMetric(id, module, start, end, requireMonths = false, fieldOverride = null) {
38
+ const field = fieldOverride || (id === 'opening' ? 'bottles' : 'amount'), unit = field === 'bottles' ? '瓶' : '元';
39
39
  const fail = (reason, state = 'missing') => ({ ...pending('同期来源合计', unit, reason, state), range: { start, end } });
40
40
  const source = model.payload.modules[id], cover = model.payload.coverage[id];
41
41
  if (source.state === 'unavailable') return fail('未接入有效来源');
@@ -58,21 +58,43 @@ export function createV10OverviewData(model, presentation) {
58
58
  return { label: '同期来源合计', unit, value, state: 'available', reason: null, range: { start, end },
59
59
  negative: id === 'opening' ? null : sum(rows.filter(row => row.amount < 0).map(row => row.amount)) };
60
60
  }
61
- function yearComparison(id, module, filters, cumulative = false, fixedRange = null) {
61
+ function yearComparison(id, module, filters, cumulative = false, fixedRange = null, field = null) {
62
62
  const p = periodOf(filters), range = p.mode === 'range';
63
63
  const label = cumulative ? '累计同比' : range ? '区间同比' : '当月同比', cover = model.payload.coverage[id];
64
64
  const month = range ? p.month : filters.month, validMonth = /^\d{4}-(0[1-9]|1[0-2])$/.test(month || '');
65
65
  const start = fixedRange?.start || (validMonth ? cumulative ? `${month.slice(0, 4)}-01-01` : range ? p.start : `${month}-01` : null);
66
66
  const end = fixedRange?.end || (validMonth && validDate(cover?.end) ? [range ? p.end : monthEnd(month), cover.end].sort()[0] : null);
67
- const current = windowMetric(id, module, start, end, cumulative);
67
+ const current = windowMetric(id, module, start, end, cumulative, field);
68
68
  const previous = windowMetric(id, module, validDate(start) ? priorDate(start) : null,
69
- validDate(end) ? priorDate(end, end === monthEnd(end.slice(0, 7))) : null, cumulative);
69
+ validDate(end) ? priorDate(end, end === monthEnd(end.slice(0, 7))) : null, cumulative, field);
70
70
  let reason = !ready(current) ? `本期:${current.reason}` : !ready(previous) ? `去年同期:${previous.reason}` : previous.value <= 0 ? '去年同期为零或负数,不计算增长率' : null;
71
71
  const value = reason ? null : (current.value - previous.value) / previous.value * 100;
72
72
  if (!reason && !finite(value)) reason = '同比超出可表示范围';
73
73
  return { label, unit: '%', value: reason ? null : value, state: reason ? 'pending' : 'available', reason,
74
74
  current, previous, range: { start, end }, notes: validDate(start) && validDate(end) ? [`${start} 至 ${end};对比 ${previous.range.start} 至 ${previous.range.end}`] : [] };
75
75
  }
76
+ // 环比:本期对上月同一段日期(日数超出上月天数时取上月月末),来源须覆盖两段。
77
+ function monthComparison(id, module, filters, field = null) {
78
+ const p = periodOf(filters), cover = model.payload.coverage[id];
79
+ const month = p.mode === 'range' ? p.month : filters.month;
80
+ if (!/^\d{4}-(0[1-9]|1[0-2])$/.test(month || '') || !validDate(cover?.end)) return pending('环比', '%', '所选期间无法定位上月同期');
81
+ const start = p.mode === 'range' ? p.start : `${month}-01`, end = [p.mode === 'range' ? p.end : monthEnd(month), cover.end].sort()[0];
82
+ if (end < start) return pending('环比', '%', '本期尚无来源记录', 'missing');
83
+ const back = date => { const y = Number(date.slice(0, 4)), m = Number(date.slice(5, 7)) - 1, prior = m === 0 ? `${y - 1}-12` : `${y}-${String(m).padStart(2, '0')}`; return `${prior}-${String(Math.min(Number(date.slice(8)), Number(monthEnd(prior).slice(8)))).padStart(2, '0')}`; };
84
+ const current = windowMetric(id, module, start, end, false, field), previous = windowMetric(id, module, back(start), back(end), false, field);
85
+ let reason = !ready(current) ? `本期:${current.reason}` : !ready(previous) ? `上月同期:${previous.reason}` : previous.value <= 0 ? '上月同期为零或负数,不计算环比' : null;
86
+ const value = reason ? null : (current.value - previous.value) / previous.value * 100;
87
+ return { label: '环比', unit: '%', value, state: reason ? 'pending' : 'available', reason, current, previous, range: { start, end }, notes: [`${start} 至 ${end};对比 ${previous.range.start} 至 ${previous.range.end}`] };
88
+ }
89
+ // 季度累计同比:季度首日至所选期间末日(不晚于来源截止日),对比去年同一段日期。
90
+ function quarterComparison(id, module, filters) {
91
+ const t = module.targets?.quarter, cover = model.payload.coverage[id];
92
+ if (!t || !validDate(t.start) || !validDate(t.end)) return pending('季度同比', '%', '所选期间无法定位季度');
93
+ if (!validDate(cover?.end)) return pending('季度同比', '%', '来源截止日期缺失');
94
+ const end = [t.end, cover.end].sort()[0];
95
+ if (end < t.start) return pending('季度同比', '%', '本季度尚无来源记录', 'missing');
96
+ return { ...yearComparison(id, module, filters, false, { start: t.start, end }), label: '季度同比' };
97
+ }
76
98
  function yearMonths(id, module, filters) {
77
99
  const year = Number(filters.month.slice(0, 4)), selected = Number(filters.month.slice(5));
78
100
  if (!Number.isInteger(year) || !selected) return [];
@@ -92,9 +114,9 @@ export function createV10OverviewData(model, presentation) {
92
114
  if (!validDate(previous.range.start) || !validDate(previous.range.end) || !validDate(cover?.start) || !validDate(cover?.end)
93
115
  || cover.start > previous.range.start || cover.end < previous.range.end) return [];
94
116
  const scoped = module.scopedRows || [], byDay = new Map();
95
- const blocked = scoped.some(row => !validDate(row.date)) || model.payload.modules.opening.metrics?.bottles?.status === 'pending';
117
+ const blocked = scoped.some(row => !validDate(row.date)) || model.payload.modules.opening.metrics?.amount?.status === 'pending';
96
118
  for (const row of scoped) if (row.date >= previous.range.start && row.date <= previous.range.end) {
97
- if (!byDay.has(row.date)) byDay.set(row.date, []); byDay.get(row.date).push(row.bottles);
119
+ if (!byDay.has(row.date)) byDay.set(row.date, []); byDay.get(row.date).push(row.amount);
98
120
  }
99
121
  return currentPoints.map(point => {
100
122
  const date = priorDate(point.date), values = byDay.get(date) || [];
@@ -149,7 +171,17 @@ export function createV10OverviewData(model, presentation) {
149
171
  signed: copy(terminal.main), effectiveCount: copy(terminal.extra?.find(item => item.label === '有效终端数') || pending('有效终端数', '家', '有效终端尚未完整判定')),
150
172
  openingRate, openingTotal: openingTotal(filters, modules.opening, openingRate),
151
173
  ratio: copy(modules.movement.crossMetrics?.find(item => item.key === 'invoiceMovementMonthRatio')
152
- || pending('当月动销 / 开票', '%', '当前来源未确认该跨表指标')) };
174
+ || pending('当月动销 / 开票', '%', '当前来源未确认该跨表指标')),
175
+ // 季度累计、季度同比与季度目标达成率(区域一览“动销/发票”视图按季度展示)。
176
+ quarterInvoice: copy(modules.invoice.targets?.quarter?.actual || pending('季度累计', '元', '所选期间无法定位季度')),
177
+ quarterMovement: copy(modules.movement.targets?.quarter?.actual || pending('季度累计', '元', '所选期间无法定位季度')),
178
+ quarterInvoiceYoY: quarterComparison('invoice', modules.invoice, filters),
179
+ quarterMovementYoY: quarterComparison('movement', modules.movement, filters),
180
+ invoiceQuarterAttainment: copy(modules.invoice.targets?.quarter?.attainment || pending('季度目标达成率', '%', '未上传经营目标', 'missing')),
181
+ movementQuarterAttainment: copy(modules.movement.targets?.quarter?.attainment || pending('季度目标达成率', '%', '未上传经营目标', 'missing')),
182
+ // 当月(区间)目标达成率,与总览卡同一取数规则。
183
+ invoiceAttainment: copy(modules.invoice.targets?.attainment || pending('发票目标达成率', '%', '未上传经营目标', 'missing')),
184
+ movementAttainment: copy(modules.movement.targets?.attainment || pending('动销目标达成率', '%', '未上传经营目标', 'missing')) };
153
185
  result.invoiceYoY = yearComparison('invoice', modules.invoice, filters);
154
186
  result.movementYoY = yearComparison('movement', modules.movement, filters);
155
187
  result.openingYoY = ready(result.openingTotal) && result.openingTotal.range
@@ -183,18 +215,18 @@ export function createV10OverviewData(model, presentation) {
183
215
  }
184
216
  result.openingPeriod = `${start} 至 ${end}`;
185
217
  const unknownDate = scoped.some(row => !validDate(row.date));
186
- const blocked = unknownDate ? '存在缺失或无效日期,无法完整分期' : source.metrics?.bottles?.status === 'pending' ? '开瓶瓶数来源规则或口径待确认' : null;
218
+ const blocked = unknownDate ? '存在缺失或无效日期,无法完整分期' : source.metrics?.amount?.status === 'pending' ? '开瓶金额来源规则或口径待确认' : null;
187
219
  const byDay = new Map();
188
220
  for (const row of scoped) {
189
221
  if (!validDate(row.date) || row.date < start || row.date > end) continue;
190
222
  if (!byDay.has(row.date)) byDay.set(row.date, []);
191
- byDay.get(row.date).push(row.bottles);
223
+ byDay.get(row.date).push(row.amount);
192
224
  }
193
225
  for (let day = start; day <= end; day = new Date(Date.parse(`${day}T00:00:00Z`) + 86400000).toISOString().slice(0, 10)) {
194
226
  const values = byDay.get(day) || [];
195
227
  let value = null, state = 'pending', reason = blocked;
196
228
  if (!blocked && !values.length) { state = 'missing'; reason = '当日无来源记录,不推定为零'; }
197
- else if (!blocked && values.some(item => !finite(item))) reason = '当日存在缺失或不可用开瓶瓶数';
229
+ else if (!blocked && values.some(item => !finite(item))) reason = '当日存在缺失或不可用开瓶金额';
198
230
  else if (!blocked) {
199
231
  let sum = 0, correction = 0;
200
232
  for (const item of values) { const next = item - correction, updated = sum + next; correction = (updated - sum) - next; sum = updated; }
@@ -216,7 +248,7 @@ export function createV10OverviewData(model, presentation) {
216
248
  const groupField = ['region', 'office', 'unit'].includes(supplied.groupField) ? supplied.groupField : f.region === 'all' ? 'region' : f.office === 'all' ? 'office' : 'unit';
217
249
  const keys = [...new Set((supplied.grouped || []).map(item => item.name))];
218
250
  const expectedParts = groupField === 'region' ? 4 : groupField === 'office' ? 5 : 6;
219
- const parentInvoice = supplied.modules.invoice.main;
251
+ const parentInvoice = supplied.modules.invoice.main, parentQuarter = supplied.modules.invoice.targets?.quarter?.actual;
220
252
  const regional = keys.map(key => {
221
253
  const selection = childFilters(f, groupField, key), parts = partsFor(key);
222
254
  const metrics = regionalMetrics(selection, keyFor(selection) === cacheKey ? supplied : null);
@@ -224,7 +256,12 @@ export function createV10OverviewData(model, presentation) {
224
256
  ? { label: '发票占比', unit: '%', value: metrics.invoice.value / parentInvoice.value * 100, state: 'available', reason: null,
225
257
  numerator: metrics.invoice.value, denominator: parentInvoice.value }
226
258
  : pending('发票占比', '%', '当前组织或父范围发票净额不完整,或父范围合计不大于零');
227
- return { key, name: model.label(key), fullName: fullName(key),
259
+ // 该组织(含下级)在哪些来源出现过;总览各视图只列出与本视图来源相关的组织。
260
+ const sources = [...new Set(model.organizations.filter(item => item[groupField] === key).flatMap(item => [...(item.sources || [])]))];
261
+ const quarterShare = ready(metrics.quarterInvoice) && ready(parentQuarter) && parentQuarter.value > 0 && finite(metrics.quarterInvoice.value / parentQuarter.value * 100)
262
+ ? { label: '季度发票占比', unit: '%', value: metrics.quarterInvoice.value / parentQuarter.value * 100, state: 'available', reason: null }
263
+ : pending('季度发票占比', '%', '当前组织或父范围季度发票不完整,或父范围合计不大于零');
264
+ return { key, name: model.label(key), fullName: fullName(key), sources, quarterShare,
228
265
  drillable: f.unit === 'all' && parts.length === expectedParts && parts.every(text) && model.organizations.some(item => item[groupField] === key),
229
266
  ...Object.fromEntries(Object.entries(metrics).map(([name, item]) => [name, copy(item)])), invoiceShare };
230
267
  });
@@ -235,11 +272,14 @@ export function createV10OverviewData(model, presentation) {
235
272
  openingGrowth: (({ groups, ...total }) => total)(supplied.modules.opening.dayChange || { ...pending('较昨日开瓶', '%', '当前数据未提供日度比较'), precision: 1 }),
236
273
  sourceEndLabel: ends.length === 1 && ends[0] ? `截至 ${ends[0]}` : !ends.length || ends.every(value => value === null) ? '来源截止日期未提供' : '各来源截止不同', sourceEnds };
237
274
  result.heroes = Object.fromEntries(['invoice', 'movement'].map(id => [id, {
238
- monthly: yearMonths(id, supplied.modules[id], f), yoy: yearComparison(id, supplied.modules[id], f),
275
+ monthly: yearMonths(id, supplied.modules[id], f), yoy: yearComparison(id, supplied.modules[id], f), quarterYoY: quarterComparison(id, supplied.modules[id], f),
239
276
  ytdYoY: yearComparison(id, supplied.modules[id], f, true),
240
277
  }]));
241
278
  result.openingYoY = yearComparison('opening', supplied.modules.opening, f);
242
- result.openingPreviousDaily = previousOpeningDays(supplied.modules.opening, result.openingYoY, result.openingDaily);
279
+ // 开瓶卡以开瓶金额为主(2026-11-27):金额同比、环比;走势也画金额。
280
+ result.openingAmountYoY = { ...yearComparison('opening', supplied.modules.opening, f, false, null, 'amount'), label: '开瓶金额同比' };
281
+ result.openingAmountMoM = { ...monthComparison('opening', supplied.modules.opening, f, 'amount'), label: '开瓶金额环比' };
282
+ result.openingPreviousDaily = previousOpeningDays(supplied.modules.opening, result.openingAmountYoY, result.openingDaily);
243
283
  if (!byFilters) { byFilters = new Map(); cache.set(supplied, byFilters); }
244
284
  byFilters.set(cacheKey, result);
245
285
  return result;
@@ -9,7 +9,7 @@ body:has(.app-shell.overview-mode)::before,.app-shell.overview-mode::before{disp
9
9
  .app-shell.overview-mode .page-header .eyebrow{font-family:var(--ov-num);font-size:10.5px;font-weight:500;line-height:1.5;letter-spacing:.32em;color:#b8343c;margin:0}
10
10
  .app-shell.overview-mode .page-header h1{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:26px;font-weight:500;line-height:1.25;letter-spacing:.12em;color:#18212b;margin:8px 0 0}
11
11
  .app-shell.overview-mode .header-actions{position:static;display:flex;flex-direction:row;align-items:center;gap:16px;padding:0;font-size:11.5px;line-height:1.5}
12
- .app-shell.overview-mode .demo-badge{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#8a94a1;font-size:11.5px;font-weight:400;letter-spacing:0;white-space:nowrap}
12
+ .app-shell.overview-mode .demo-badge{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#66717e;font-size:11.5px;font-weight:400;letter-spacing:0;white-space:nowrap}
13
13
  .app-shell.overview-mode .demo-badge>span{width:6px;height:6px;border-radius:50%;background:#c9a85a;margin:0;box-shadow:none}
14
14
  .app-shell.overview-mode .definition-button{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#3a4552;font-size:11.5px;font-weight:400}
15
15
  .app-shell.overview-mode .definition-button svg{display:none}
@@ -17,11 +17,11 @@ body:has(.app-shell.overview-mode)::before,.app-shell.overview-mode::before{disp
17
17
  .app-shell.overview-mode .filter-label{display:none}
18
18
  .app-shell.overview-mode .filter-bar label{display:flex;flex:1 1 0;align-items:center;gap:8px;min-width:0;height:100%;padding:0 16px;border-left:1px solid #edf0f3;line-height:1.5}
19
19
  .app-shell.overview-mode .filter-bar label:nth-child(2){border-left:0;padding-left:0}
20
- .app-shell.overview-mode .filter-bar label>span{display:inline;flex:none;color:#a8b0ba;font-size:11.5px;white-space:nowrap}
20
+ .app-shell.overview-mode .filter-bar label>span{display:inline;flex:none;color:#7a8491;font-size:11.5px;white-space:nowrap}
21
21
  .app-shell.overview-mode .filter-bar select{flex:1 1 0;min-width:0;width:100%;max-width:100%;padding:0;border:0;border-radius:0;background:transparent;font-family:var(--ov-num),var(--ov-cn);font-size:12.5px;font-weight:500;color:#18212b;text-overflow:ellipsis;cursor:pointer}
22
- .app-shell.overview-mode .filter-bar .reset-button{display:flex;flex:none;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#8a94a1}
22
+ .app-shell.overview-mode .filter-bar .reset-button{display:flex;flex:none;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#66717e}
23
23
  .app-shell.overview-mode .filter-bar .reset-button svg{width:15px;height:15px}
24
- .app-shell.overview-mode main>.scope-line{display:flex;flex:none;align-items:center;justify-content:space-between;gap:24px;width:100%;min-height:16px;margin:8px 0 16px;font-size:11px;line-height:1.5;color:#a8b0ba}
24
+ .app-shell.overview-mode main>.scope-line{display:flex;flex:none;align-items:center;justify-content:space-between;gap:24px;width:100%;min-height:16px;margin:8px 0 16px;font-size:11px;line-height:1.5;color:#7a8491}
25
25
  .app-shell.overview-mode main>.scope-line:empty{min-height:0;height:0;margin:0 0 16px}
26
26
  .app-shell.overview-mode .overview-shell{display:grid;flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 288px;grid-template-rows:432px 248px;gap:16px;width:1180px;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
27
27
  .app-shell.overview-mode .overview-card{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;padding:24px;border:1px solid #e8ebef;border-radius:16px;background:#fff;box-shadow:none;color:#18212b;text-align:left}
@@ -37,35 +37,35 @@ body:has(.app-shell.overview-mode)::before,.app-shell.overview-mode::before{disp
37
37
  .app-shell.overview-mode .ov-dot{display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:#3a4552}
38
38
  .app-shell.overview-mode .ov-hero .ov-dot{background:var(--ov-accent)}
39
39
  .app-shell.overview-mode .ov-opening .ov-dot{background:#4a6f94}
40
- .app-shell.overview-mode .ov-action{display:inline-flex;flex:none;margin-left:auto;font-size:11px;font-weight:400;line-height:1.5;color:#a8b0ba;white-space:nowrap}
41
- .app-shell.overview-mode .ov-label{flex:none;margin:16px 0 0;font-size:11.5px;line-height:1.5;color:#8a94a1}
40
+ .app-shell.overview-mode .ov-action{display:inline-flex;flex:none;margin-left:auto;font-size:11px;font-weight:400;line-height:1.5;color:#7a8491;white-space:nowrap}
41
+ .app-shell.overview-mode .ov-label{flex:none;margin:16px 0 0;font-size:11.5px;line-height:1.5;color:#66717e}
42
42
  .app-shell.overview-mode :is(.ov-value,.ov-secondary-value,.ov-stats b,.ov-kv b,.ov-number,.ov-growth,.ov-previous,.ov-month,.ov-rank){font-family:var(--ov-num),var(--ov-cn);font-variant-numeric:tabular-nums lining-nums}
43
43
  .app-shell.overview-mode .ov-hero-values{display:flex;align-items:flex-end;gap:24px;margin-top:8px;min-width:0}
44
44
  .app-shell.overview-mode .ov-value{margin:0;font-size:44px;font-weight:300;line-height:1;letter-spacing:-.035em;white-space:nowrap}
45
45
  .app-shell.overview-mode .ov-movement .ov-value{color:#16705d}
46
- .app-shell.overview-mode :is(.ov-value,.ov-secondary-value) small{font-family:var(--ov-cn);font-size:13px;font-weight:400;letter-spacing:0;color:#a8b0ba;margin-left:8px}
47
- .app-shell.overview-mode .ov-comparison{display:flex;flex-direction:column;gap:8px;padding-left:24px;border-left:1px solid #edf0f3;min-width:0;line-height:1.2;font-size:12px;color:#8a94a1;white-space:nowrap}
48
- .app-shell.overview-mode .ov-growth{display:inline-flex;align-items:baseline;gap:8px;font-size:10.5px;line-height:1.3;white-space:nowrap;color:#8a94a1;font-weight:400}
46
+ .app-shell.overview-mode :is(.ov-value,.ov-secondary-value) small{font-family:var(--ov-cn);font-size:13px;font-weight:400;letter-spacing:0;color:#7a8491;margin-left:8px}
47
+ .app-shell.overview-mode .ov-comparison{display:flex;flex-direction:column;gap:8px;padding-left:24px;border-left:1px solid #edf0f3;min-width:0;line-height:1.2;font-size:12px;color:#66717e;white-space:nowrap}
48
+ .app-shell.overview-mode .ov-growth{display:inline-flex;align-items:baseline;gap:8px;font-size:10.5px;line-height:1.3;white-space:nowrap;color:#66717e;font-weight:400}
49
49
  .app-shell.overview-mode .ov-growth em{font-style:normal;font-weight:500}
50
50
  .app-shell.overview-mode .ov-comparison .ov-growth{font-size:12px}
51
51
  .app-shell.overview-mode .ov-hero-values .ov-growth em{font-size:14px}
52
52
  .app-shell.overview-mode .ov-previous small{font-size:inherit;margin-left:3px;font-weight:400}
53
53
  .app-shell.overview-mode .is-up{color:#1f7a66}
54
54
  .app-shell.overview-mode :is(.is-down,.is-negative,.is-alert){color:#b8343c}
55
- .app-shell.overview-mode .is-flat{color:#8a94a1}
56
- .app-shell.overview-mode :is([data-state="pending"],[data-state="missing"],[data-state="unavailable"],.is-pending){color:#c3c9d0}
55
+ .app-shell.overview-mode .is-flat{color:#66717e}
56
+ .app-shell.overview-mode :is([data-state="pending"],[data-state="missing"],[data-state="unavailable"],.is-pending){color:#b3bac3}
57
57
  .app-shell.overview-mode .ov-stats{display:grid;flex:none;grid-template-columns:repeat(4,auto);justify-content:start;gap:0;margin-top:16px;padding-top:16px;border-top:1px solid #edf0f3;min-width:0}
58
58
  .app-shell.overview-mode .ov-stats>div{padding:0 16px;border-left:1px solid #edf0f3;white-space:nowrap}
59
59
  .app-shell.overview-mode .ov-stats>div:first-child{padding-left:0;border-left:0}
60
60
  .app-shell.overview-mode .ov-stats>div:last-child{padding-right:0}
61
- .app-shell.overview-mode .ov-stats>div>span:first-child{display:block;color:#a8b0ba;font-size:10.5px;line-height:1.3}
61
+ .app-shell.overview-mode .ov-stats>div>span:first-child{display:block;color:#7a8491;font-size:10.5px;line-height:1.3}
62
62
  .app-shell.overview-mode .ov-stats b{display:block;margin-top:8px;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-.01em}
63
- .app-shell.overview-mode .ov-stats small{font-size:10.5px;font-weight:400;color:#a8b0ba;margin-left:3px}
63
+ .app-shell.overview-mode .ov-stats small{font-size:10.5px;font-weight:400;color:#7a8491;margin-left:3px}
64
64
  .app-shell.overview-mode .ov-stats .ov-growth{margin-top:8px}
65
65
  .app-shell.overview-mode .ov-stats .ov-negative-amount,.app-shell.overview-mode .ov-negative-amount .is-negative{color:#a8761a}
66
66
  .app-shell.overview-mode .ov-negative-amount:before,.app-shell.overview-mode .ov-negative-swatch{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;background:repeating-linear-gradient(-45deg,#e7b75a 0 2px,#f6e3b8 2px 4px)}
67
67
  .app-shell.overview-mode .ov-negative-amount:before{margin-right:8px}
68
- .app-shell.overview-mode .ov-chart-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;color:#a8b0ba;font-size:10.5px;line-height:1.3}
68
+ .app-shell.overview-mode .ov-chart-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;color:#7a8491;font-size:10.5px;line-height:1.3}
69
69
  .app-shell.overview-mode .ov-chart-legend{display:flex;gap:16px}
70
70
  .app-shell.overview-mode .ov-chart-legend>span{display:flex;align-items:center;gap:8px;white-space:nowrap}
71
71
  .app-shell.overview-mode .ov-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px}
@@ -87,46 +87,46 @@ body:has(.app-shell.overview-mode)::before,.app-shell.overview-mode::before{disp
87
87
  .app-shell.overview-mode .ov-net-label{position:absolute;left:50%;transform:translateX(-50%);padding-bottom:8px;font-size:10px;font-weight:500;line-height:1;white-space:nowrap}
88
88
  .app-shell.overview-mode .ov-negative-label{position:absolute;top:0;left:100%;font-size:10px;font-weight:500;color:#a8761a;line-height:1;white-space:nowrap}
89
89
  .app-shell.overview-mode .ov-month:last-child .ov-negative-label{left:auto;right:100%}
90
- .app-shell.overview-mode .ov-month-label{font-size:10px;line-height:1;color:#a8b0ba;white-space:nowrap}
90
+ .app-shell.overview-mode .ov-month-label{font-size:10px;line-height:1;color:#7a8491;white-space:nowrap}
91
91
  .app-shell.overview-mode .is-current .ov-month-label{font-weight:600;color:#18212b}
92
- .app-shell.overview-mode .ov-missing{position:absolute;inset:0;display:grid;place-items:center;color:#c3c9d0;font-size:10px}
93
- .app-shell.overview-mode .ov-chart-note{flex:none;line-height:1;font-size:10px;color:#a8b0ba;margin-top:8px}
92
+ .app-shell.overview-mode .ov-missing{position:absolute;inset:0;display:grid;place-items:center;color:#b3bac3;font-size:10px}
93
+ .app-shell.overview-mode .ov-chart-note{flex:none;line-height:1;font-size:10px;color:#7a8491;margin-top:8px}
94
94
  .app-shell.overview-mode .ov-operation{display:flex;flex:1;flex-direction:column;justify-content:center;min-height:0;width:100%;padding:0;border:0;border-top:1px solid #edf0f3;border-radius:0;background:none;color:inherit;text-align:left}
95
95
  .app-shell.overview-mode .ov-operation:first-child{border-top:0}
96
96
  .app-shell.overview-mode .ov-operation-heading{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#3a4552}
97
97
  .app-shell.overview-mode .ov-secondary-value{display:block;font-size:26px;font-weight:300;line-height:1.1;letter-spacing:-.03em;margin:8px 0 0;white-space:nowrap}
98
98
  .app-shell.overview-mode .ov-secondary-value small{font-size:11px}
99
- .app-shell.overview-mode .ov-kv{display:flex;gap:16px;margin-top:8px;font-size:10.5px;color:#a8b0ba;line-height:1.5;white-space:nowrap}
99
+ .app-shell.overview-mode .ov-kv{display:flex;gap:16px;margin-top:8px;font-size:10.5px;color:#7a8491;line-height:1.5;white-space:nowrap}
100
100
  .app-shell.overview-mode .ov-kv b{font-size:11.5px;font-weight:500;margin-left:8px}
101
101
  .app-shell.overview-mode .ov-kv small{font-size:10px;margin-left:3px}
102
- .app-shell.overview-mode .ov-tag{background:none;border:0;padding:0;font-size:10.5px;color:#a8b0ba}
102
+ .app-shell.overview-mode .ov-tag{background:none;border:0;padding:0;font-size:10.5px;color:#7a8491}
103
103
  .app-shell.overview-mode .ov-tag [data-state="available"]{font-size:11.5px;color:#18212b;font-weight:500}
104
104
  .app-shell.overview-mode .ov-kv b[data-state="available"]{color:#18212b}
105
105
  .app-shell.overview-mode .ov-region-header{display:flex;align-items:center;gap:16px;min-height:20px}
106
- .app-shell.overview-mode .ov-region-note{font-size:10.5px;color:#a8b0ba;white-space:nowrap}
106
+ .app-shell.overview-mode .ov-region-note{font-size:10.5px;color:#7a8491;white-space:nowrap}
107
107
  .app-shell.overview-mode .ov-region-tabs{display:flex;gap:8px;margin-left:auto;white-space:nowrap}
108
- .app-shell.overview-mode .ov-region-tabs button{padding:3px 8px;border:0;border-radius:6px;background:none;box-shadow:none;font-size:11px;font-weight:400;color:#8a94a1}
108
+ .app-shell.overview-mode .ov-region-tabs button{padding:3px 8px;border:0;border-radius:6px;background:none;box-shadow:none;font-size:11px;font-weight:400;color:#66717e}
109
109
  .app-shell.overview-mode .ov-region-tabs button[aria-selected="true"]{background:#f1f3f6;color:#18212b;font-weight:500}
110
110
  .app-shell.overview-mode .ov-region-columns,.app-shell.overview-mode .ov-region-row{display:grid;grid-template-columns:24px 136px minmax(0,1fr) 96px 96px 72px;align-items:center;gap:16px;width:100%}
111
- .app-shell.overview-mode .ov-region-columns{flex:none;margin-top:16px;padding:0 0 8px;border-bottom:1px solid #edf0f3;color:#a8b0ba;font-size:10.5px;line-height:1.3}
111
+ .app-shell.overview-mode .ov-region-columns{flex:none;margin-top:16px;padding:0 0 8px;border-bottom:1px solid #edf0f3;color:#7a8491;font-size:10.5px;line-height:1.3}
112
112
  .app-shell.overview-mode .ov-region-columns>span:nth-last-child(-n+3){text-align:right}
113
113
  .app-shell.overview-mode .ov-pair-legend{display:flex;gap:16px}
114
114
  .app-shell.overview-mode .ov-pair-legend>span{display:flex;align-items:center;gap:8px}
115
115
  .app-shell.overview-mode .ov-pair-legend i{width:8px;height:8px;border-radius:2px;display:inline-block}
116
- .app-shell.overview-mode .ov-region-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#c3c9d0 transparent}
116
+ .app-shell.overview-mode .ov-region-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b3bac3 transparent}
117
117
  .app-shell.overview-mode .ov-region-row{height:calc(100% / 3);min-height:calc(100% / 3);padding:0;border:0;border-bottom:1px solid #f4f5f7;border-radius:0;background:none;text-align:left;outline-offset:-2px}
118
118
  .app-shell.overview-mode .ov-region-row:disabled{cursor:default}
119
119
  .app-shell.overview-mode .ov-region-row>*{min-width:0}
120
120
  .app-shell.overview-mode .ov-region-row:last-child{border-bottom:0}
121
- .app-shell.overview-mode .ov-rank{font-size:11px;color:#c3c9d0}
121
+ .app-shell.overview-mode .ov-rank{font-size:11px;color:#b3bac3}
122
122
  .app-shell.overview-mode .ov-region-name{font-size:12.5px;font-weight:500;line-height:1.4}
123
123
  .app-shell.overview-mode .ov-region-name strong{display:block;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
124
- .app-shell.overview-mode .ov-region-name>small{display:block;margin:0;font-size:10px;color:#a8b0ba;font-weight:400;line-height:1.4}
124
+ .app-shell.overview-mode .ov-region-name>small{display:block;margin:0;font-size:10px;color:#7a8491;font-weight:400;line-height:1.4}
125
125
  .app-shell.overview-mode .ov-region-bars{display:flex;flex-direction:column;gap:8px}
126
126
  .app-shell.overview-mode .ov-region-bar-track{display:block;position:relative;height:6px;background:#f4f5f7;border-radius:3px}
127
127
  .app-shell.overview-mode .ov-region-bar-track i{position:absolute;top:0;display:block;height:6px;border-radius:3px;max-width:100%}
128
- .app-shell.overview-mode .ov-region-bar-track s{position:absolute;inset:0 auto 0;border-left:1px solid #c3c9d0}
129
- .app-shell.overview-mode .ov-region-bar-track em{display:block;position:absolute;inset:0;line-height:6px;text-align:center;font-size:10px;color:#c3c9d0;font-style:normal}
128
+ .app-shell.overview-mode .ov-region-bar-track s{position:absolute;inset:0 auto 0;border-left:1px solid #b3bac3}
129
+ .app-shell.overview-mode .ov-region-bar-track em{display:block;position:absolute;inset:0;line-height:6px;text-align:center;font-size:10px;color:#b3bac3;font-style:normal}
130
130
  .app-shell.overview-mode .ov-invoice-bar{background:#d27a80}
131
131
  .app-shell.overview-mode .ov-movement-bar{background:#5aa592}
132
132
  .app-shell.overview-mode .ov-signed-bar{background:#c4ad83}
@@ -135,26 +135,26 @@ body:has(.app-shell.overview-mode)::before,.app-shell.overview-mode::before{disp
135
135
  .app-shell.overview-mode .ov-number>.ov-growth{display:flex;justify-content:flex-end;margin:0;font-size:10.5px}
136
136
  .app-shell.overview-mode .ov-number small{margin-left:3px;font-size:10.5px;font-weight:400}
137
137
  .app-shell.overview-mode .ov-region-opening :is(.ov-region-columns,.ov-region-row){grid-template-columns:24px 1fr 160px 112px}
138
- .app-shell.overview-mode .ov-region-foot{display:flex;flex:none;justify-content:space-between;gap:16px;margin-top:8px;font-size:10.5px;color:#a8b0ba;line-height:1.3}
138
+ .app-shell.overview-mode .ov-region-foot{display:flex;flex:none;justify-content:space-between;gap:16px;margin-top:8px;font-size:10.5px;color:#7a8491;line-height:1.3}
139
139
  .app-shell.overview-mode .ov-opening-value{display:block;margin-top:16px}
140
140
  .app-shell.overview-mode .ov-opening .ov-secondary-value{margin:0}
141
141
  .app-shell.overview-mode .ov-comparison-inline{flex-direction:row;align-items:baseline;gap:8px;border:0;padding:0;margin-top:8px;font-size:10.5px}
142
142
  .app-shell.overview-mode .ov-comparison-inline .ov-growth{font-size:11px}
143
143
  .app-shell.overview-mode .ov-comparison-inline .ov-previous{border-left:1px solid #edf0f3;padding-left:8px}
144
144
  .app-shell.overview-mode .ov-sparkline{display:block;flex:1;width:100%;min-height:0;margin-top:16px;overflow:visible}
145
- .app-shell.overview-mode .ov-day-axis{display:flex;justify-content:space-between;margin-top:8px;color:#a8b0ba;font-size:10px;line-height:1}
146
- .app-shell.overview-mode .ov-opening-legend{display:flex;gap:16px;margin-top:8px;font-size:10.5px;color:#a8b0ba;line-height:1.3;white-space:nowrap}
145
+ .app-shell.overview-mode .ov-day-axis{display:flex;justify-content:space-between;margin-top:8px;color:#7a8491;font-size:10px;line-height:1}
146
+ .app-shell.overview-mode .ov-opening-legend{display:flex;gap:16px;margin-top:8px;font-size:10.5px;color:#7a8491;line-height:1.3;white-space:nowrap}
147
147
  .app-shell.overview-mode .ov-opening-legend i{display:inline-block;width:14px;height:0;border-top:1.6px solid #4a6f94;margin-right:8px}
148
148
  .app-shell.overview-mode .ov-opening-legend i.is-prior{border-top:1.2px dashed #aab3bd}
149
- .app-shell.overview-mode .ov-spark-empty{display:flex;flex:1;align-items:center;color:#c3c9d0;margin-top:16px}
150
- .app-shell.overview-mode .ov-empty{margin:8px 0;color:#a8b0ba;font-size:11px}
149
+ .app-shell.overview-mode .ov-spark-empty{display:flex;flex:1;align-items:center;color:#b3bac3;margin-top:16px}
150
+ .app-shell.overview-mode .ov-empty{margin:8px 0;color:#7a8491;font-size:11px}
151
151
  @media(max-width:1211px){.app-shell.overview-mode{min-width:1212px}.app-shell.overview-mode main{margin:0 16px}}
152
152
  @media(prefers-reduced-motion:reduce){.app-shell.overview-mode *{transition:none!important;scroll-behavior:auto!important}}
153
153
 
154
154
  .app-shell.overview-mode .ov-day-change{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:8px;padding:6px 8px;border-radius:6px;background:#f5f7fa;font-size:10.5px;line-height:1.3;white-space:nowrap;min-width:0}
155
155
  .app-shell.overview-mode .ov-day-change .ov-growth em{font-size:11.5px}
156
156
  .app-shell.overview-mode .ov-day-values{font-family:var(--ov-num),var(--ov-cn);font-variant-numeric:tabular-nums;color:#3a4552;overflow:hidden;text-overflow:ellipsis}
157
- .app-shell.overview-mode .ov-day-values small{font-size:inherit;color:#8a94a1}
157
+ .app-shell.overview-mode .ov-day-values small{font-size:inherit;color:#66717e}
158
158
 
159
159
  /* Filter area (2026-11-23, compact): start and end as two small boxes, one
160
160
  quick-pick group that applies at once (incl. 恢复默认), 应用 and a full reset. */
@@ -262,3 +262,128 @@ body:has(.app-shell.overview-mode)::before,.app-shell.overview-mode::before{disp
262
262
  .app-shell.detail-mode .focus-summary{position:static;display:flex;flex:none;flex-direction:column;gap:12px;width:100%;height:auto;min-height:0;padding:0 0 12px;background:none;overflow:hidden;container-type:inline-size}
263
263
  .app-shell.detail-mode .details-panel{width:auto;max-width:100%;height:auto;margin:0;overflow-x:auto;overflow-y:visible}
264
264
  }
265
+
266
+ /* 总览层次与呼吸感(2026-11-26):提高文字对比,目标达成做主强调;
267
+ 动效只解释状态变化:数字换新时淡入、进度条与达成环平滑过渡到新值。 */
268
+ .app-shell.overview-mode{--ov-ease:cubic-bezier(.22,.61,.36,1)}
269
+ body:has(.app-shell.overview-mode){background:#edf0f4}
270
+ .app-shell.overview-mode .overview-shell{gap:20px}
271
+ .app-shell.overview-mode .overview-card{border-color:#e2e7ed;border-radius:18px;box-shadow:0 1px 2px rgba(17,24,39,.04),0 12px 32px -22px rgba(17,24,39,.22);transition:box-shadow .2s var(--ov-ease),border-color .2s var(--ov-ease)}
272
+ .app-shell.overview-mode :is(.ov-hero,.ov-opening):hover{border-color:#d3dae3;box-shadow:0 1px 2px rgba(17,24,39,.05),0 18px 40px -22px rgba(17,24,39,.3)}
273
+ .app-shell.overview-mode .ov-heading{height:22px;font-size:14px;color:#18212b}
274
+ .app-shell.overview-mode .ov-operation-heading{font-size:13px;color:#18212b}
275
+ .app-shell.overview-mode .ov-dot{width:7px;height:7px}
276
+ .app-shell.overview-mode .ov-action{font-size:11.5px;transition:color .2s var(--ov-ease)}
277
+ .app-shell.overview-mode :is(.ov-hero,.ov-opening,.ov-operation):hover .ov-action{color:#18212b}
278
+ .app-shell.overview-mode .ov-label{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:12px;color:#4d5864}
279
+ .app-shell.overview-mode .ov-scope-chip{padding:1px 8px;border-radius:999px;background:#f1f3f6;color:#4d5864;font-family:var(--ov-num),var(--ov-cn);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
280
+ .app-shell.overview-mode .ov-value{font-size:46px;font-weight:400;letter-spacing:-.03em}
281
+ .app-shell.overview-mode .ov-secondary-value{font-weight:400;color:#18212b}
282
+ .app-shell.overview-mode .ov-hero-values{align-items:center;flex-wrap:wrap;row-gap:12px;margin-top:10px}
283
+ .app-shell.overview-mode .ov-comparison{color:#4d5864}
284
+ /* 季度、财年 */
285
+ .app-shell.overview-mode .ov-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
286
+ .app-shell.overview-mode .ov-period{display:flex;flex-direction:column;gap:7px;min-width:0;padding:12px 14px 11px;border-radius:12px;background:#f5f7f9}
287
+ .app-shell.overview-mode .ov-period-head{display:flex;align-items:baseline;gap:6px;min-width:0;font-size:12px;font-weight:600;color:#18212b;white-space:nowrap}
288
+ .app-shell.overview-mode .ov-period-head small{font-size:11px;font-weight:400;color:#66717e}
289
+ .app-shell.overview-mode .ov-period-target{margin-left:auto;overflow:hidden;text-overflow:ellipsis;font-family:var(--ov-num),var(--ov-cn);font-size:10.5px;font-weight:400;color:#66717e}
290
+ .app-shell.overview-mode .ov-period-value{font-family:var(--ov-num),var(--ov-cn);font-size:21px;font-weight:500;line-height:1.15;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#18212b;white-space:nowrap}
291
+ .app-shell.overview-mode .ov-period-value small{margin-left:4px;font-family:var(--ov-cn);font-size:11px;font-weight:400;letter-spacing:0;color:#66717e}
292
+ .app-shell.overview-mode .ov-progress{position:relative;display:block;height:5px;border-radius:3px;background:#e3e7ec}
293
+ .app-shell.overview-mode .ov-progress i{position:absolute;inset:0 auto 0 0;display:block;border-radius:3px;background:var(--ov-accent);transition:width .45s var(--ov-ease)}
294
+ .app-shell.overview-mode .ov-period-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 8px;min-width:0;font-size:11px;color:#4d5864;white-space:nowrap}
295
+ .app-shell.overview-mode .ov-period-foot b{font-family:var(--ov-num);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:#18212b}
296
+ .app-shell.overview-mode .ov-period-reason{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#66717e}
297
+ /* 辅助指标与月度图 */
298
+ .app-shell.overview-mode .ov-stats{margin-top:18px}
299
+ .app-shell.overview-mode .ov-stats>div>span:first-child{font-size:11px;color:#66717e}
300
+ .app-shell.overview-mode .ov-stats b{margin-top:6px}
301
+ .app-shell.overview-mode .ov-chart{flex:1 0 132px}
302
+ .app-shell.overview-mode .ov-hero{min-height:0}
303
+ /* 区域经营一览:动销/发票视图加两列达成率 */
304
+ .app-shell.overview-mode .ov-region-tabs{gap:0;padding:2px;border-radius:9px;background:#f1f3f6}
305
+ .app-shell.overview-mode .ov-region-tabs button{padding:4px 12px;border-radius:7px;font-size:11.5px;color:#4d5864;transition:background .2s var(--ov-ease),color .2s var(--ov-ease)}
306
+ .app-shell.overview-mode .ov-region-tabs button:hover{color:#18212b}
307
+ .app-shell.overview-mode .ov-region-tabs button[aria-selected="true"]{background:#fff;color:#18212b;box-shadow:0 1px 2px rgba(0,0,0,.08)}
308
+ .app-shell.overview-mode .ov-region-columns{color:#66717e}
309
+ .app-shell.overview-mode .ov-region-name{color:#18212b}
310
+ .app-shell.overview-mode .ov-region-row{transition:background .15s var(--ov-ease)}
311
+ .app-shell.overview-mode .ov-region-row:not(:disabled):hover{background:#f7f9fb}
312
+ /* 数字换新:短淡入,读数不滚动 */
313
+ @keyframes ov-refresh{from{opacity:.3;transform:translateY(2px)}to{opacity:1;transform:none}}
314
+ .app-shell.overview-mode :is(.ov-refresh,.ov-region-list){animation:ov-refresh .26s var(--ov-ease) both}
315
+ @media(max-width:900px){.app-shell.overview-mode .ov-value{font-size:40px}}
316
+ @media(max-width:760px){
317
+ }
318
+ @media(max-width:480px){.app-shell.overview-mode .ov-periods{grid-template-columns:minmax(0,1fr)}}
319
+ @media(prefers-reduced-motion:reduce){.app-shell.overview-mode *{animation:none!important}}
320
+ .app-shell.overview-mode .ov-opening .ov-heading .ov-scope-chip{margin-left:2px;font-weight:400}
321
+ .app-shell.overview-mode .ov-spark-empty{justify-content:center;padding:0 8px;font-size:11.5px;line-height:1.6;text-align:center;color:#7a8491}
322
+ .app-shell.overview-mode .ov-period{padding:12px 12px 11px}
323
+ .app-shell.overview-mode .ov-period-foot b{font-size:12.5px}
324
+ /* 手机窄屏:区域页签与时间区换行,不出现横向滚动 */
325
+ @media(max-width:760px){
326
+ .app-shell.overview-mode .ov-region-header{flex-wrap:wrap;row-gap:8px}
327
+ .app-shell.overview-mode .ov-region-note{white-space:normal}
328
+ .app-shell.overview-mode .ov-region-tabs{width:100%;margin-left:0}
329
+ .app-shell.overview-mode .ov-region-tabs button{flex:1}
330
+ .app-shell.overview-mode .filter-bar .period-range{flex:1 1 100%;min-width:0}
331
+ .app-shell.overview-mode .filter-bar .period-date{flex:1 1 0;min-width:0}
332
+ .app-shell.overview-mode .filter-bar .period-date input{width:100%;min-width:0}
333
+ }
334
+ @media(max-width:480px){.app-shell.overview-mode .filter-bar .period-date>span{display:none}}
335
+ .app-shell.overview-mode main>.filter-bar>.period-bar{height:auto;min-height:52px}
336
+ @media(max-width:480px){
337
+ .app-shell.overview-mode .ov-hero-values .ov-comparison{padding-left:0;border-left:0}
338
+ .app-shell.overview-mode .ov-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px}
339
+ .app-shell.overview-mode .ov-stats>div:nth-child(3){padding-left:0;border-left:0}
340
+ }
341
+
342
+ /* 当月(区间)达成:整行进度条 */
343
+ .app-shell.overview-mode .ov-month-target{display:flex;align-items:center;gap:12px;min-width:0;margin-top:16px;font-size:12px;color:#4d5864;white-space:nowrap}
344
+ .app-shell.overview-mode .ov-mt-label b{margin-left:6px;font-family:var(--ov-num);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:#18212b}
345
+ .app-shell.overview-mode .ov-month-target .ov-progress{flex:1 1 auto;min-width:48px}
346
+ .app-shell.overview-mode .ov-mt-meta{display:flex;align-items:center;gap:8px;min-width:0;font-family:var(--ov-num),var(--ov-cn);font-size:11px;color:#66717e;font-variant-numeric:tabular-nums}
347
+ .app-shell.overview-mode .ov-mt-meta.ov-period-reason{display:block;max-width:55%}
348
+ .app-shell.overview-mode .ov-value{font-size:44px}
349
+ .app-shell.overview-mode .ov-hero-values{gap:20px}
350
+ .app-shell.overview-mode .ov-comparison{padding-left:20px}
351
+ @media(max-width:480px){.app-shell.overview-mode .ov-month-target{flex-wrap:wrap;row-gap:8px}.app-shell.overview-mode .ov-month-target .ov-progress{flex-basis:100%;order:3}}
352
+ @media(max-width:900px){.app-shell.overview-mode .ov-value{font-size:38px}}
353
+
354
+ /* 2026-11-27 季度为主:去掉时间进度对比;区域一览长条 = 季度达成 */
355
+ .app-shell.overview-mode .ov-progress.is-done i{background:var(--ov-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ov-accent) 18%,transparent)}
356
+ .app-shell.overview-mode .ov-period-line{display:flex;align-items:baseline;gap:10px;min-width:0;white-space:nowrap}
357
+ .app-shell.overview-mode .ov-period-line .ov-growth{font-size:11px}
358
+ .app-shell.overview-mode .ov-period-line .ov-growth em{font-size:11.5px}
359
+ .app-shell.overview-mode .ov-period-foot{min-height:16px}
360
+ .app-shell.overview-mode .ov-region-movement :is(.ov-region-columns,.ov-region-row){grid-template-columns:24px minmax(110px,150px) minmax(110px,1fr) minmax(110px,1fr) 104px 104px;gap:18px}
361
+ .app-shell.overview-mode .ov-region-movement .ov-region-columns>span:nth-last-child(-n+2){text-align:right}
362
+ .app-shell.overview-mode .ov-goal-head{display:flex;align-items:center;gap:6px;white-space:nowrap}
363
+ .app-shell.overview-mode .ov-goal-head i{display:inline-block;width:8px;height:8px;border-radius:2px}
364
+ .app-shell.overview-mode .ov-goal{display:flex;align-items:center;gap:10px;min-width:0}
365
+ .app-shell.overview-mode .ov-goal-track{position:relative;flex:1 1 auto;min-width:40px;height:8px;border-radius:4px;background:#eef1f4;overflow:hidden}
366
+ .app-shell.overview-mode .ov-goal-track i{position:absolute;inset:0 auto 0 0;display:block;border-radius:4px;transition:width .45s var(--ov-ease)}
367
+ .app-shell.overview-mode .ov-goal-invoice .ov-goal-track i{background:#d27a80}
368
+ .app-shell.overview-mode .ov-goal-movement .ov-goal-track i{background:#5aa592}
369
+ .app-shell.overview-mode .ov-goal-invoice.is-done .ov-goal-track i{background:#b8343c}
370
+ .app-shell.overview-mode .ov-goal-movement.is-done .ov-goal-track i{background:#1f7a66}
371
+ .app-shell.overview-mode .ov-goal>b{flex:none;width:46px;text-align:right;font-family:var(--ov-num);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;color:#18212b;white-space:nowrap}
372
+ .app-shell.overview-mode .ov-goal.is-amount>b{width:0}
373
+ .app-shell.overview-mode .ov-goal:not(.is-amount):not([data-state="available"])>b{font-weight:400;color:#b3bac3}
374
+ @media(max-width:760px){
375
+ .app-shell.overview-mode .ov-region-movement :is(.ov-region-columns,.ov-region-row){grid-template-columns:minmax(70px,1fr) minmax(0,1.2fr) minmax(0,1.2fr);gap:10px}
376
+ .app-shell.overview-mode .ov-region-movement :is(.ov-region-columns,.ov-region-row)>:is(:nth-child(1),:nth-child(5),:nth-child(6)){display:none}
377
+ .app-shell.overview-mode .ov-goal{gap:6px}
378
+ .app-shell.overview-mode .ov-goal>b{width:40px;font-size:11.5px}
379
+ }
380
+ .v10-details .analysis-content>.v10-method-note:not(:last-child){margin-bottom:20px}
381
+ /* 2026-11-27 开瓶以金额为主:同比、环比两行,瓶数次要 */
382
+ .app-shell.overview-mode .ov-opening-value{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
383
+ .app-shell.overview-mode .ov-opening-bottles{font-family:var(--ov-num),var(--ov-cn);font-size:11.5px;color:#66717e;white-space:nowrap}
384
+ .app-shell.overview-mode .ov-opening-bottles b,.app-shell.overview-mode .ov-opening-bottles>span{color:#18212b;font-weight:500}
385
+ .app-shell.overview-mode .ov-opening-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
386
+ .app-shell.overview-mode .ov-opening-compare>span{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border-radius:10px;background:#f5f7f9;min-width:0}
387
+ .app-shell.overview-mode .ov-opening-compare small{font-family:var(--ov-num),var(--ov-cn);font-size:10.5px;color:#66717e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
388
+ .app-shell.overview-mode .ov-opening-compare .ov-growth em{font-size:12.5px}
389
+ .app-shell.overview-mode .ov-scope-chip.is-soft{background:transparent;border:1px solid #e3e7ec;color:#66717e}