dsh-data-dashboard 0.0.0-stage → 0.1.5

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.
Files changed (71) hide show
  1. package/README.md +35 -2
  2. package/assets/theater-board.svg +1 -0
  3. package/backend/incremental/flow.mjs +492 -0
  4. package/backend/incremental/jobs.mjs +58 -0
  5. package/backend/incremental/xlsx-rows.mjs +145 -0
  6. package/backend/job-worker.mjs +22 -0
  7. package/backend/modules/banquet/index.mjs +46 -0
  8. package/backend/modules/inventory/index.mjs +45 -0
  9. package/backend/modules/inventory/legacy-fields.mjs +83 -0
  10. package/backend/modules/invoice/index.mjs +72 -0
  11. package/backend/modules/movement/index.mjs +68 -0
  12. package/backend/modules/opening/index.mjs +48 -0
  13. package/backend/modules/target/index.mjs +45 -0
  14. package/backend/modules/terminal/index.mjs +114 -0
  15. package/backend/modules.mjs +12 -0
  16. package/backend/public/admin.css +220 -0
  17. package/backend/public/admin.js +772 -0
  18. package/backend/public/board.css +70 -0
  19. package/backend/public/board.html +50 -0
  20. package/backend/public/board.js +153 -0
  21. package/backend/public/index.html +113 -0
  22. package/backend/public/org-mapping.js +49 -0
  23. package/backend/public/review.css +5 -0
  24. package/backend/public/review.js +452 -0
  25. package/backend/real-data/generate-dashboard.mjs +137 -0
  26. package/backend/real-data/inventory-history.mjs +316 -0
  27. package/backend/real-data/organization-mapping.mjs +166 -0
  28. package/backend/real-data/source-payload.mjs +459 -0
  29. package/backend/real-data/terminal-components.mjs +280 -0
  30. package/backend/real-data/terminal-structure.css +105 -0
  31. package/backend/real-data/terminal-structure.mjs +276 -0
  32. package/backend/real-data/v10-components.mjs +112 -0
  33. package/backend/real-data/v10-details.css +18 -0
  34. package/backend/real-data/v10-details.mjs +251 -0
  35. package/backend/real-data/v10-layout.css +27 -0
  36. package/backend/real-data/v10-model.mjs +568 -0
  37. package/backend/real-data/v10-overview-data.mjs +253 -0
  38. package/backend/real-data/v10-overview.css +370 -0
  39. package/backend/real-data/v10-overview.mjs +340 -0
  40. package/backend/real-data/v10-presentation.mjs +354 -0
  41. package/backend/real-data/v10-shell.html +1097 -0
  42. package/backend/real-data/v10-template.mjs +353 -0
  43. package/backend/recognition/fingerprint.mjs +32 -0
  44. package/backend/recognition/headers.mjs +2 -0
  45. package/backend/recognition/module-definition.mjs +4 -0
  46. package/backend/recognition/result.mjs +29 -0
  47. package/backend/recognition/upload-limits.mjs +14 -0
  48. package/backend/review-engine.mjs +364 -0
  49. package/backend/review-service.mjs +182 -0
  50. package/backend/server.mjs +569 -0
  51. package/backend/store.mjs +68 -0
  52. package/backend/target-template.mjs +47 -0
  53. package/backend/validate-workbook.mjs +251 -0
  54. package/backend/web-sync/README.md +37 -0
  55. package/backend/web-sync/client.mjs +63 -0
  56. package/backend/web-sync/exporter.mjs +260 -0
  57. package/backend/web-sync/local.html +34 -0
  58. package/backend/web-sync/server.mjs +147 -0
  59. package/build-manifest.json +80 -0
  60. package/client.js +54 -0
  61. package/cordis.patch.yml +3 -0
  62. package/index.js +117 -0
  63. package/lib/dist-manifest.mjs +19 -0
  64. package/lib/market-index.mjs +56 -0
  65. package/lib/package-audit.mjs +34 -0
  66. package/lib/settings.mjs +71 -0
  67. package/lib/tool-definitions.mjs +56 -0
  68. package/lib/tools.mjs +255 -0
  69. package/locale/en.json +6 -0
  70. package/locale/zh.json +6 -0
  71. package/package.json +71 -4
@@ -0,0 +1,114 @@
1
+ import { defineModule } from '../../recognition/module-definition.mjs';
2
+
3
+ // Source-backed column locations only; content observations do not define valid agreements.
4
+ export default defineModule({
5
+ "id": "terminal",
6
+ "title": "终端签约",
7
+ "description": "终端协议签约明细",
8
+ "sheetNames": [
9
+ "联盟体协议签约明细表"
10
+ ],
11
+ "sourceColumnLimit": 36,
12
+ "notes": [
13
+ "用户已确认本表记录均为签约生效;终端数在统计范围内按网点编号去重。本接口仍只做结构校验,尚未执行业务计数。",
14
+ "按每份协议记录的完整六级组织路径和签约经销商分别统计;同网点跨组织或经销商的记录保留各自归属。",
15
+ "历史已确认的两条重复沿用原复核结论;不因只读取 A–AJ 就扩大重复合并范围,不将同网点的不同协议全部合并。",
16
+ "仅使用 A–AJ(前 36 列),原表 AJ 为星级;按前 36 列中的精确表头识别,AJ 后的目标、收货、金额及达成字段全部忽略。",
17
+ "签约经销商编码保留文本、前导零及分隔符。业务生成按已确认规则用网点编号关联动销售点编码;结构校验不执行跨表关联。",
18
+ "有效终端按 2026-07-01 至所选月末、该终端已签约品系的净扫码件数判定:任一品系达到 1 件即有效。品系按协议名称识别;本接口不执行业务判定。"
19
+ ],
20
+ "fields": [
21
+ {
22
+ "key": "agreementCode",
23
+ "header": "协议编号"
24
+ },
25
+ {
26
+ "key": "siteCode",
27
+ "header": "网点编号"
28
+ },
29
+ {
30
+ "key": "siteName",
31
+ "header": "网点名称"
32
+ },
33
+ {
34
+ "key": "siteType",
35
+ "header": "网点类型"
36
+ },
37
+ {
38
+ "key": "siteLevel",
39
+ "header": "网点等级"
40
+ },
41
+ {
42
+ "key": "siteClassification",
43
+ "header": "售点分类"
44
+ },
45
+ {
46
+ "key": "marketingCompany",
47
+ "header": "营销公司名称"
48
+ },
49
+ {
50
+ "key": "businessUnit",
51
+ "header": "事业部"
52
+ },
53
+ {
54
+ "key": "theater",
55
+ "header": "战区名称"
56
+ },
57
+ {
58
+ "key": "region",
59
+ "header": "大区"
60
+ },
61
+ {
62
+ "key": "office",
63
+ "header": "办事处"
64
+ },
65
+ {
66
+ "key": "directorUnit",
67
+ "header": "主任单元"
68
+ },
69
+ {
70
+ "key": "agreementName",
71
+ "header": "协议名称"
72
+ },
73
+ {
74
+ "key": "signedDealerCode",
75
+ "header": "签约经销商编码"
76
+ },
77
+ {
78
+ "key": "signedDate",
79
+ "header": "签约日期"
80
+ },
81
+ {
82
+ "key": "agreementStartDate",
83
+ "header": "协议开始日期"
84
+ },
85
+ {
86
+ "key": "agreementEndDate",
87
+ "header": "协议结束日期"
88
+ },
89
+ {
90
+ "key": "signedTier",
91
+ "header": "签约等级"
92
+ },
93
+ {
94
+ "key": "approvalStatus",
95
+ "header": "审批状态"
96
+ },
97
+ {
98
+ "key": "signedVariety",
99
+ "header": "签约品种"
100
+ },
101
+ {
102
+ "key": "signingStatus",
103
+ "header": "签约状态"
104
+ },
105
+ {
106
+ "key": "manuallyClosed",
107
+ "header": "是否手工关闭"
108
+ },
109
+ {
110
+ "key": "star",
111
+ "header": "星级"
112
+ }
113
+ ]
114
+ });
@@ -0,0 +1,12 @@
1
+ import invoice from './modules/invoice/index.mjs';
2
+ import movement from './modules/movement/index.mjs';
3
+ import opening from './modules/opening/index.mjs';
4
+ import terminal from './modules/terminal/index.mjs';
5
+ import inventory from './modules/inventory/index.mjs';
6
+ import banquet from './modules/banquet/index.mjs';
7
+ import target from './modules/target/index.mjs';
8
+
9
+ // Shared registration only. Module branches edit their own directory.
10
+ export const moduleDefinitions = [invoice, movement, opening, terminal, inventory, banquet, target];
11
+ export const moduleById = new Map(moduleDefinitions.map(module => [module.id, module]));
12
+ export { normalizeHeader } from './recognition/headers.mjs';
@@ -0,0 +1,220 @@
1
+ @charset "UTF-8";
2
+ :root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#283640;background:#edf2f7;font-synthesis:none;--wine:#aa343e;--wine-dark:#8f2933;--muted:#7b8a98;--line:#e7edf2;--green:#258475;--radius:22px}
3
+ *{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #6d92b8;outline-offset:4px}[hidden]{display:none!important}.skip-link{position:fixed;left:120px;top:-60px;z-index:100;background:white;padding:14px 20px;border-radius:12px}.skip-link:focus{top:12px}
4
+ .rail{position:fixed;top:28px;bottom:28px;left:24px;width:76px;background:white;border:1px solid #e3e9ef;border-radius:28px;display:flex;flex-direction:column;align-items:center;gap:14px;padding:16px 10px;box-shadow:0 20px 40px -32px #2d44523d;z-index:5}.brand{width:52px;height:52px;border-radius:18px;background:var(--wine);color:white;display:grid;place-items:center;box-shadow:0 7px 14px #aa343e18}.brand svg{width:31px;height:31px}.rail-line{width:32px;height:1px;background:#e1e8ef;margin:6px 0}.rail-item{width:48px;height:48px;display:grid;place-items:center;color:#8a9aaa;border-radius:15px;transition:background .2s,color .2s}.rail-item:hover,.rail-item.active{background:#faecef;color:var(--wine)}.rail-bottom{margin-top:auto}.rail-version{font-size:9px;letter-spacing:1.4px;color:#a0acb7;padding:5px 0}
5
+ main{max-width:1500px;margin:0 auto;padding:45px 52px 24px 148px}.page-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8a99a5;font-weight:600}.page-header h1{font-size:29px;letter-spacing:.8px;font-weight:600;margin-top:9px}.page-intro{font-size:13px;color:var(--muted);margin-top:10px}.header-actions{display:flex;align-items:center;gap:20px}.connection{font-size:12px;color:#71828d;white-space:nowrap;display:inline-flex;gap:8px;align-items:center}.connection i{width:6px;height:6px;background:#9bacb9;border-radius:50%}.connection.online i{background:var(--green)}.connection.offline i{background:#b64d51}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:10px 16px;border:1px solid transparent;border-radius:11px;font-size:12px;font-weight:500;transition:background .15s,box-shadow .15s}.button svg{width:16px;height:16px}.button-quiet{background:#fff9;border-color:#dde5ed;color:#657887}.button-quiet:hover:not(:disabled){background:#fff}.button-primary{background:var(--wine);color:white;box-shadow:0 8px 20px #aa343e13}.button-primary:hover:not(:disabled){background:var(--wine-dark);box-shadow:0 8px 20px #aa343e26}.button-secondary{background:#f6f8fa;color:#617382;border-color:#e5ebf0}.button-secondary:hover:not(:disabled){background:#eef3f7}.button-upload{background:#f9edf0;color:var(--wine)}.button-upload:hover:not(:disabled){background:#f6e3e8}
6
+ .mode-notice{display:flex;align-items:center;gap:16px;border:1px solid #dedfe4;border-radius:17px;padding:19px 22px;background:linear-gradient(115deg,#fff8f8,#fafbfd 70%);margin-bottom:22px}.mode-icon{width:39px;height:39px;background:#f7e8eb;color:var(--wine);border-radius:12px;display:grid;place-items:center;flex-shrink:0}.mode-notice strong{font-size:13px;font-weight:600}.mode-notice p{font-size:12px;color:#7c8994;line-height:1.7;margin-top:5px}.mode-tag{margin-left:auto;font-size:10px;padding:6px 9px;border-radius:6px;background:#f3e6e9;color:#a24d55;white-space:nowrap}.notice{border:1px solid #cce1dc;border-radius:12px;background:#f1faf6;color:#267b6a;padding:14px 18px;font-size:13px;line-height:1.7;margin-bottom:18px;white-space:pre-line}.notice.error{color:#a33e48;background:#fff3f4;border-color:#edd5d9}
7
+ .workspace-summary{display:grid;grid-template-columns:1fr 1fr 1.6fr auto;gap:28px;padding:6px 9px 28px;border-bottom:1px solid #dce4eb;margin-bottom:32px}.workspace-summary>div{display:flex;flex-direction:column;gap:11px}.workspace-summary>div>span{font-size:11px;color:#8898a6}.workspace-summary strong{font-size:27px;font-weight:500;line-height:1.2;font-variant-numeric:tabular-nums}.workspace-summary b{font-weight:500}.workspace-summary small{font-size:12px;color:#92a0ad;font-weight:400}.workspace-summary .summary-status{font-size:15px;line-height:1.7;letter-spacing:.3px;padding-top:3px}.workspace-summary>p{font-size:11px;color:#96a3af;line-height:1.9;align-self:end;text-align:right}
8
+ .section{margin-bottom:30px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:19px}.section-heading{display:flex;gap:14px;align-items:center}.step-number{display:grid;place-items:center;width:32px;height:32px;border:1px solid #d5dee7;border-radius:10px;font-size:11px;color:#96a4b2;font-variant-numeric:tabular-nums}.section-heading h2{font-size:17px;font-weight:600;letter-spacing:.4px}.section-heading p{font-size:11px;color:#8594a1;margin-top:7px;line-height:1.6}.section-hint{font-size:10px;color:#96a4af;white-space:nowrap}.module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.module-card{position:relative;background:white;border:1px solid #e4eaf0;border-radius:var(--radius);padding:21px 20px;min-width:0;box-shadow:0 8px 30px -28px #374e67}.module-card.primary{grid-column:span 2;padding:24px 26px}.module-card.working{border-color:#c99b9f}.module-heading{display:flex;gap:10px;align-items:center;margin-bottom:20px}.module-heading h3{font-size:14px;font-weight:600;letter-spacing:.3px}.module-icon{width:32px;height:32px;background:#f6f8fa;border-radius:10px;display:grid;place-items:center;color:#7c8d9b;flex-shrink:0}.module-icon svg{width:19px;height:19px}.primary .module-icon{background:#faeef0;color:var(--wine)}.primary[data-module="movement"] .module-icon{background:#ebf5f1;color:var(--green)}.module-heading>.status{margin-left:auto}.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#9aa7b2;white-space:nowrap}.status::before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}.status.ready{color:var(--green)}.status.error{color:var(--wine)}.status.running{color:#a67746}.module-description{font-size:11px;color:#92a0ad;line-height:1.8;min-height:39px;margin-top:-10px;margin-bottom:17px}.primary .module-description{min-height:auto}.file-state{min-height:69px;padding-bottom:16px}.file-name{font-size:12px;line-height:1.65;color:#687c8c;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.file-name.empty{color:#acb7c0;padding-top:3px}.file-meta{color:#8a9caa;font-size:10px;line-height:1.7;margin-top:6px}.upload-controls{display:flex;gap:8px;padding-top:15px;border-top:1px solid #edf1f4;flex-wrap:wrap}.upload-controls .button{flex:1;min-height:35px;padding:8px 10px;font-size:11px;white-space:nowrap}.primary .upload-controls .button{flex:none;min-width:112px}.pending-file{color:#657c8e;font-size:10px;line-height:1.6;margin-top:12px;overflow-wrap:anywhere}.module-feedback{font-size:11px;line-height:1.7;color:var(--wine);white-space:pre-line;margin-top:11px}.module-feedback.success{color:var(--green)}.validation-details{border-top:1px solid #eff2f5;padding-top:11px;margin-top:14px;color:#8c9ba7;font-size:10px}.validation-details summary{cursor:pointer;line-height:1.8;width:fit-content}.detail-inner{padding:8px 0 0;line-height:1.8}.detail-inner p{margin:5px 0;overflow-wrap:anywhere}.header-tags{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0}.header-tags span{padding:2px 5px;border-radius:4px;background:#f2f5f7;color:#8394a3}.version-list{margin:5px 0;padding:0;list-style:none}.version-list li{padding:7px 0;border-top:1px solid #eef2f5;overflow-wrap:anywhere}.version-list span{display:block;color:#a4afb8}.loading-card{grid-column:1/-1;padding:50px;text-align:center;color:#8b9aa6;background:#fff8;border-radius:var(--radius);font-size:13px}
9
+ .generate-panel{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:32px 36px;background:linear-gradient(125deg,#fff 0%,#fff 52%,#f7f4f4 100%);border:1px solid #dfe5eb;border-radius:25px;margin:34px 0 38px;box-shadow:0 14px 38px -32px #45505e35}.generation-copy{max-width:620px}.generation-copy .eyebrow{font-size:9px;color:#aa7479}.generation-copy h2{font-size:24px;font-weight:500;letter-spacing:.5px;margin:10px 0 13px}.generation-copy>p{font-size:12px;color:#8493a0;line-height:1.9}.generation-footnote{display:flex;align-items:flex-start;gap:7px;font-size:10px;color:#a0aab2;line-height:1.7;margin-top:17px}.generation-footnote svg{width:14px;height:14px;margin-top:1px}.generation-action{display:flex;align-items:center;flex-direction:column;gap:13px;min-width:216px}.generation-action .button{width:100%;font-size:13px;padding:16px 19px;gap:20px;border-radius:13px;min-height:50px}.generation-action>span{font-size:10px;color:#9a8e92;line-height:1.7;text-align:center}.text-link{color:var(--wine);font-size:11px;border-bottom:1px solid #e7bfc4;padding-bottom:3px;line-height:1.6}.text-link:hover{color:var(--wine-dark)}
10
+ .history-panel{border:1px solid #e2e8ee;background:white;border-radius:var(--radius);overflow:hidden}.empty-state{text-align:center;padding:40px 24px}.empty-state strong{font-size:13px;font-weight:500;color:#8899a7}.empty-state p{font-size:11px;color:#a4afb8;margin-top:10px}.history-table-wrap{overflow-x:auto}.history-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;min-width:650px}.history-table th{font-weight:500;color:#93a1ac;background:#f9fafb;font-size:10px;letter-spacing:.4px;padding:15px 21px}.history-table td{padding:17px 21px;border-top:1px solid #edf1f4;color:#718390;vertical-align:middle}.history-name{color:#465e6e;font-weight:500;font-size:12px;overflow-wrap:anywhere}.history-sub{font-size:10px;color:#a3afb8;display:block;margin-top:5px;line-height:1.7}.history-table td:last-child{white-space:nowrap}.history-links{display:flex;gap:16px}.history-links a{color:#9c3f49;font-size:11px}.history-links a:hover{text-decoration:underline}.history-error{max-width:350px;white-space:normal;color:#b6666f}.about-panel{display:grid;grid-template-columns:1.25fr 1fr;gap:50px;border-top:1px solid #dce4eb;padding:27px 7px 28px;margin-top:36px}.about-panel h2{font-size:12px;color:#748895;font-weight:600;margin-bottom:12px}.about-panel p{font-size:10px;color:#91a0ad;line-height:1.9;margin-top:5px}.storage-label{font-size:10px;color:#8d9ba7;display:block;margin-bottom:8px}.about-panel code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:#7e929f;overflow-wrap:anywhere;line-height:1.8;display:block}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #dce4eb;padding:18px 7px 0;color:#a4b0ba;font-size:9px;letter-spacing:.8px}footer i{display:inline-block;width:3px;height:3px;border-radius:50%;background:#b0bcc6;vertical-align:middle;margin:0 10px}
11
+ @media(min-width:1600px){main{padding-left:100px}.rail{left:max(24px,calc((100vw - 1500px)/2 - 20px))}}
12
+ @media(max-width:1200px){main{padding:35px 32px 24px 124px}.rail{left:20px;width:68px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-card.primary{grid-column:span 1}.module-card{padding:22px}.module-description{min-height:0}.header-actions{gap:10px;flex-direction:column;align-items:flex-end}.mode-tag{display:none}.generate-panel{padding:28px}.primary .upload-controls .button{flex:1;min-width:0}}
13
+ @media(max-width:760px){main{padding:28px 20px 20px 94px}.rail{left:12px;top:20px;bottom:20px;width:60px;border-radius:23px;padding:12px 6px}.brand{width:44px;height:44px;border-radius:15px}.rail-item{width:42px;height:42px}.page-header{align-items:flex-start}.page-header h1{font-size:24px}.eyebrow{font-size:8px;letter-spacing:1px}.page-intro{font-size:11px;line-height:1.8;max-width:240px}.header-actions .button{font-size:0;padding:9px;min-height:34px}.header-actions .button svg{width:16px}.connection{font-size:10px}.mode-notice{padding:16px;gap:11px;align-items:flex-start}.mode-notice p{font-size:11px}.mode-icon{width:31px;height:31px}.mode-icon svg{width:19px}.workspace-summary{gap:16px;grid-template-columns:1fr 1fr 1.1fr;padding:0 4px 22px}.workspace-summary>p{display:none}.workspace-summary strong{font-size:23px}.workspace-summary .summary-status{font-size:12px}.workspace-summary small{font-size:10px}.section-hint{display:none}.section-heading{gap:10px}.section-heading p{font-size:10px}.module-card,.module-card.primary{padding:20px}.module-heading{flex-wrap:wrap;gap:8px}.module-heading>.status{font-size:9px}.module-description{font-size:10px}.generate-panel{display:block;padding:24px}.generation-copy h2{font-size:22px}.generation-action{margin-top:24px;align-items:flex-start}.generation-action .button{max-width:280px}.generation-action>span{text-align:left}.about-panel{grid-template-columns:1fr;gap:24px}footer{font-size:8px;line-height:1.8}footer>span:last-child{display:none}}
14
+ @media(max-width:560px){main{padding-left:85px;padding-right:14px}.page-header{gap:10px}.header-actions{gap:12px}.connection{font-size:0;gap:0}.connection i{width:8px;height:8px}.module-grid{grid-template-columns:1fr}.module-heading{flex-wrap:nowrap}.module-card,.module-card.primary{padding:22px}.module-description{font-size:11px}.module-heading>.status{font-size:10px}.mode-notice{padding:14px}.mode-icon{display:none}.workspace-summary{gap:9px}.workspace-summary>div>span{font-size:10px}.workspace-summary .summary-status{font-size:11px}.section-heading h2{font-size:15px}.step-number{width:27px;height:27px;flex-shrink:0}.page-header h1{font-size:22px}.header-actions .button{border-radius:9px}.generate-panel{padding:24px 20px}.generation-copy>p{font-size:11px}}
15
+ @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
16
+
17
+ .upload-controls .target-template{align-self:center;margin-left:auto;font-size:11px;color:var(--wine);white-space:nowrap}.upload-controls .target-template:hover{color:var(--wine-dark)}
18
+ /* 2026-11-19 layout: batch update panel + one row per board. Overrides the
19
+ older card grid while keeping every per-board control and record. */
20
+ .workspace-summary{grid-template-columns:1fr 1fr 1fr 1.4fr auto}
21
+ .batch-panel{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;background:#fff;border:1px solid #e4eaf0;border-radius:var(--radius);padding:22px;box-shadow:0 8px 30px -28px #374e67}
22
+ .batch-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px;border:1.5px dashed #d3aeb2;border-radius:16px;background:#fdf8f8;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
23
+ .batch-drop:hover,.batch-drop.is-dragging{background:#faeef0;border-color:var(--wine)}
24
+ .batch-drop svg{width:30px;height:30px;color:var(--wine)}
25
+ .batch-drop strong{font-size:13px;font-weight:600}
26
+ .batch-drop small{font-size:10px;color:#8a99a6}
27
+ .batch-pick{pointer-events:none}
28
+ .batch-body{display:flex;flex-direction:column;gap:12px;min-width:0}
29
+ .batch-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#6b7a88}
30
+ .text-button{border:0;background:none;padding:2px 4px;color:var(--wine);font-size:11px}
31
+ .text-button:disabled{color:#b8c1c9}
32
+ .batch-list{border:1px solid #e7edf2;border-radius:14px;overflow:hidden;min-height:96px}
33
+ .batch-empty{padding:30px 18px;text-align:center;font-size:11px;color:#9aa7b2}
34
+ .batch-row{display:grid;grid-template-columns:minmax(0,1.4fr) 150px 70px minmax(0,1.6fr) 44px;gap:12px;align-items:center;padding:10px 14px;border-top:1px solid #eef2f5;font-size:12px}
35
+ .batch-row:first-child{border-top:0}
36
+ .batch-row.is-unknown{background:#fffaf2}
37
+ .batch-row.is-failed{background:#fff6f6}
38
+ .batch-row.is-done,.batch-row.is-duplicate{background:#f5fbf9}
39
+ .batch-file{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3d4d5a}
40
+ .batch-module,.source-cycle{height:32px;min-width:0;padding:0 8px;border:1px solid #e1e8ee;border-radius:9px;background:#fff;color:#3d4d5a;font:inherit;font-size:12px}
41
+ .batch-size{text-align:right;color:#8a99a6;font-variant-numeric:tabular-nums}
42
+ .batch-note{color:#6b7a88;line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:pre-line}
43
+ .batch-note.is-warn{color:#9a6a24}.batch-note.is-error{color:var(--wine)}.batch-note.is-ok{color:var(--green)}
44
+ .batch-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
45
+ .batch-actions .button{flex:none;min-width:200px;min-height:42px;font-size:13px}
46
+ .batch-actions span{font-size:11px;color:#8a99a6}
47
+ .source-table{background:#fff;border:1px solid #e4eaf0;border-radius:var(--radius);padding:8px 22px 10px;box-shadow:0 8px 30px -28px #374e67}
48
+ .source-table .module-grid{display:block}
49
+ .source-row{display:grid;grid-template-columns:150px minmax(0,1fr) 120px 92px 96px 168px;column-gap:14px;align-items:center}
50
+ .source-head{padding:12px 0 10px;border-bottom:1px solid #edf1f4;font-size:11px;color:#8594a1}
51
+ .source-head span:last-child{text-align:right}
52
+ .module-card.source-row{background:none;border:0;border-bottom:1px solid #f0f3f6;border-radius:0;box-shadow:none;padding:14px 0;min-width:0}
53
+ .module-card.source-row:last-child{border-bottom:0}
54
+ .module-card.source-row.is-today{background:linear-gradient(90deg,#f3faf7,#fff 70%)}
55
+ .module-card.source-row.working{border-color:#f0f3f6;background:#fdf6f6}
56
+ .source-row .module-heading{margin:0;gap:9px;min-width:0}
57
+ .source-row .module-heading h3{font-size:13px;white-space:nowrap}
58
+ .source-row .module-icon{width:28px;height:28px;border-radius:9px}
59
+ .source-row .module-icon svg{width:16px;height:16px}
60
+ .source-row .file-state{min-height:0;padding:0;min-width:0}
61
+ .source-row .file-name{font-size:12px;-webkit-line-clamp:1;color:#4d5e6c}
62
+ .source-row .file-name.empty{padding:0}
63
+ .source-row .file-meta{margin-top:2px}
64
+ .source-age{font-size:11.5px;color:#6b7a88;font-variant-numeric:tabular-nums}
65
+ .source-age.is-today{color:var(--green);font-weight:500}
66
+ .source-age.is-overdue{color:#a67746}
67
+ .source-age.is-overdue::after{content:"待更新";display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;background:#fbf2e4;font-size:10px;line-height:17px}
68
+ .source-status .status{font-size:11px}
69
+ .source-row .upload-controls{display:flex;justify-content:flex-end;flex-wrap:nowrap;gap:6px;padding:0;border:0}
70
+ .source-row .upload-controls .button{flex:none;min-width:0;min-height:30px;padding:5px 12px;font-size:11px;border-radius:9px}
71
+ .source-row .upload-controls .target-template{margin-left:4px;font-size:11px}
72
+ .source-row .pending-file,.source-row .module-feedback,.source-row .validation-details{grid-column:2/-1;margin-top:8px}
73
+ .source-row .validation-details{border-top:0;padding-top:0}
74
+ .generate-sources{font-size:12px;color:#4d5e6c;line-height:1.8;margin-bottom:6px}
75
+ @media(max-width:1200px){.workspace-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-panel{grid-template-columns:1fr}.source-row{grid-template-columns:130px minmax(0,1fr) 110px 86px 88px 150px}}
76
+ @media(max-width:760px){.source-head{display:none}.module-card.source-row{grid-template-columns:1fr 1fr;row-gap:8px}.source-row .file-state,.source-row .upload-controls{grid-column:1/-1}.source-row .upload-controls{justify-content:flex-start}.batch-row{grid-template-columns:1fr 1fr;row-gap:6px}.batch-file,.batch-note{grid-column:1/-1}}
77
+
78
+ /* 2026-11-24 incremental / range / full updates for daily boards. */
79
+ .batch-tip{max-width:240px;line-height:1.6;color:#8a6a6e!important}
80
+ .batch-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
81
+ .batch-flow{border-top:1px dashed #eef2f5;padding:10px 14px 14px;background:#fcfdfe;font-size:12px}
82
+ .flow-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
83
+ .flow-dates{color:#5d6d7a;min-width:200px}
84
+ .flow-mode{width:118px}
85
+ .flow-tag{font-size:10px;color:var(--green);background:#eef8f5;border-radius:6px;padding:2px 7px;cursor:help}
86
+ .flow-tag.manual{color:#a16207;background:#fffbeb}
87
+ .flow-range{display:flex;align-items:center;gap:6px;color:#8a99a6}
88
+ .flow-range input{height:30px;border:1px solid #e1e8ee;border-radius:8px;padding:0 6px;font:inherit;font-size:12px;color:#3d4d5a}
89
+ .flow-range-note{font-size:11px}
90
+ .flow-receipt{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:16px;align-items:start}
91
+ .flow-figures{display:grid;grid-template-columns:auto 1fr 1fr;gap:5px 12px;border:1px solid #e7edf2;border-radius:12px;padding:10px 12px;background:#fff}
92
+ .flow-figures span{font-variant-numeric:tabular-nums;color:#3d4d5a}
93
+ .flow-figures .flow-label{color:#8a99a6}
94
+ .flow-figures .flow-col{color:#9aa7b2;font-size:10px}
95
+ .flow-notes{display:flex;flex-direction:column;gap:6px}
96
+ .flow-notes p{margin:0;line-height:1.6}
97
+ .flow-info{color:#5d6d7a}
98
+ .flow-warn{color:#8a5a12;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:6px 9px}
99
+ .flow-error{color:#b42318}
100
+ .flow-confirm{background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:8px 10px;color:#78350f}
101
+ .flow-confirm.is-required{border-color:#f87171;background:#fff5f5}
102
+ .flow-confirm label{display:flex;gap:6px;align-items:center;margin-top:6px;cursor:pointer}
103
+ .flow-base{margin:8px 0 0;color:#9aa7b2;font-size:11px}
104
+ .batch-row.is-analyzing{background:#f7fafc}
105
+ @media(max-width:900px){.flow-receipt{grid-template-columns:1fr}}
106
+ /* Merged page: the update view is embedded without the rail and page header. */
107
+ html.embedded .rail,html.embedded .page-header,html.embedded .skip-link{display:none}
108
+ html.embedded main{padding:20px 28px 24px;max-width:1240px}
109
+
110
+ /* 2026-11-24 unified update entry (design ⑨) and receipt / status table (design ⑩). */
111
+ .update-panel{background:#fff;border:1px solid #e4eaf0;border-radius:18px;padding:20px 24px;display:flex;flex-direction:column;gap:14px;box-shadow:0 8px 30px -28px #374e67}
112
+ .update-panel.is-dragging{border-color:var(--wine);background:#fffdfd}
113
+ .update-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
114
+ .update-head h2{font-size:17px;font-weight:600}
115
+ .update-head p{margin-top:5px;font-size:12px;color:#7f8e9b;line-height:1.6}
116
+ .update-add{flex:none;display:inline-flex;align-items:center;min-height:38px;padding:6px 16px;border:1px dashed #c9d3dc;border-radius:10px;background:#fafbfc;font-size:12px;color:#4d5e6c;cursor:pointer}
117
+ .update-add:hover{border-color:var(--wine);color:var(--wine)}
118
+ .update-tip{padding:8px 12px;border-radius:10px;background:#f5f8fb;font-size:12px;color:#5b6b78;line-height:1.6}
119
+ .update-panel .batch-drop{padding:26px}
120
+ .update-capacity{font-size:10px;color:#a0acb7}
121
+ .check-list{display:flex;flex-direction:column;gap:12px}
122
+ .check-list:empty{display:none}
123
+ .check-card{border:1px solid #e3e9ee;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;font-size:12px;background:#fff}
124
+ .check-card.is-scope,.check-card.is-failed,.check-card.is-conflict{border-color:#f0c9cc;background:#fffafa}
125
+ .check-card.is-analyzing,.check-card.is-identifying{background:#f9fbfc}
126
+ .check-head{display:flex;align-items:center;gap:12px;font-size:13px;min-width:0}
127
+ .check-board{width:72px;flex:none;font-weight:600}
128
+ .check-board-select{height:30px;border:1px solid #e1a3a9;border-radius:8px;padding:0 6px;font:inherit;font-size:12px;background:#fff}
129
+ .check-file{color:#4d5e6c;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
130
+ .check-mode{font-size:12px;color:#6b7a88;white-space:nowrap}
131
+ .check-mode select{font:inherit;font-size:12px;padding:4px 6px;border:1px solid #d5dee7;border-radius:7px;background:#fff;color:#283640}
132
+ .check-only{font-size:12px;color:#6b7a88;white-space:nowrap}
133
+ .check-tag{font-size:11px;padding:2px 8px;border-radius:999px;background:#ecfdf5;color:#047857;white-space:nowrap;cursor:help}
134
+ .check-tag.manual{background:#fffbeb;color:#a16207}
135
+ .check-status{font-size:12px;white-space:nowrap;color:#6b7a88}
136
+ .check-status.is-ok{color:var(--green)}
137
+ .check-status.is-warn{color:#a16207}
138
+ .check-status.is-bad{color:var(--wine);font-weight:600}
139
+ .check-range{display:flex;align-items:center;gap:6px;color:#6b7a88}
140
+ .check-range input{height:30px;border:1px solid #e1e8ee;border-radius:8px;padding:0 6px;font:inherit;font-size:12px;color:#3d4d5a}
141
+ .check-table{display:grid;grid-template-columns:150px repeat(3,minmax(0,1fr));border-top:1px solid #f0f3f6}
142
+ .check-table span{padding:5px 0;text-align:right;font-variant-numeric:tabular-nums;color:#283640}
143
+ .check-table .check-col{padding:7px 0;color:#7b8a98}
144
+ .check-table .check-col:first-child,.check-table .check-label{text-align:left}
145
+ .check-table .check-label{color:#283640}
146
+ .check-delta.pos{color:var(--green)}
147
+ .check-delta.neg{color:#a16207}
148
+ .check-notes{display:flex;flex-direction:column;gap:6px}
149
+ .check-notes:empty{display:none}
150
+ .check-note{color:#6b7a88;line-height:1.6}
151
+ .check-warn{color:#8a5a12;background:#fffbeb;border-radius:9px;padding:6px 10px;line-height:1.6}
152
+ .check-error{color:#b42318;line-height:1.6;white-space:pre-line}
153
+ .check-confirm{display:flex;gap:8px;align-items:flex-start;padding:8px 12px;border-radius:10px;background:#fffbeb;font-size:12px;color:#7a5a20;line-height:1.6;cursor:pointer}
154
+ .check-confirm input{margin-top:3px}
155
+ .check-confirm.is-required{outline:1.5px solid #f87171;background:#fff5f5}
156
+ .check-scope{padding:10px 12px;border-radius:10px;background:#fff;border:1px solid #f3d6d8;font-size:12px;line-height:1.8;color:#7c2a31}
157
+ .check-scope p{margin:0}
158
+ .update-panel .batch-actions{padding-top:4px}
159
+ .update-panel .batch-actions .button{min-width:0;padding:8px 18px}
160
+ .update-panel #batch-generate{padding:8px 22px;font-weight:600}
161
+ .update-panel .batch-actions span{font-size:12px;color:#7f8e9b}
162
+ .receipt-panel,.status-panel{background:#fff;border:1px solid #e4eaf0;border-radius:18px;padding:20px 24px;display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 30px -28px #374e67}
163
+ .receipt-head{display:flex;justify-content:space-between;align-items:center}
164
+ .receipt-panel h2,.status-panel h2{font-size:17px;font-weight:600}
165
+ .status-panel p{margin-top:4px;font-size:12px;color:#7f8e9b}
166
+ .receipt-grid{display:grid;grid-template-columns:110px minmax(0,1fr) 200px;font-size:12px}
167
+ .receipt-grid span{padding:9px 0;line-height:1.6}
168
+ .receipt-grid .receipt-col{padding:8px 0;color:#7b8a98;border-bottom:1px solid #eef2f5}
169
+ .receipt-board{font-weight:600}
170
+ .receipt-grid .is-bad{color:var(--wine)}
171
+ .receipt-now.is-ok{color:var(--green)}
172
+ .receipt-now.is-warn{color:#a16207}
173
+ .receipt-foot{font-size:12px;color:#5b6b78}
174
+ .status-table{font-size:12px}
175
+ .status-row{display:grid;grid-template-columns:150px minmax(0,1fr) 140px 190px 100px 84px;gap:12px;padding:12px 4px;border-bottom:1px solid #f1f4f7;align-items:center}
176
+ .status-row:last-child{border-bottom:0}
177
+ .status-row.status-head{padding:8px 4px;color:#7b8a98;font-size:11px;border-bottom:1px solid #edf1f4}
178
+ .status-row.is-today{background:linear-gradient(90deg,#f3faf7,#fff 70%)}
179
+ .status-name{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
180
+ .status-name .module-icon{width:26px;height:26px;border-radius:8px}
181
+ .status-name .module-icon svg{width:15px;height:15px}
182
+ .status-name b{font-weight:600}
183
+ .status-name .target-template{font-size:10px;padding-bottom:1px}
184
+ .status-cell{color:#6b7a88;overflow-wrap:anywhere}
185
+ .status-row>span:nth-child(2){color:#4d5e6c}
186
+ .status-cell .source-cycle{height:30px}
187
+ .status-state.is-ok{color:var(--green)}
188
+ .status-state.is-warn{color:#a16207}
189
+ .status-state.is-bad{color:var(--wine)}
190
+ .status-state.is-muted{color:#9aa7b2}
191
+ @media(max-width:1100px){.status-row{grid-template-columns:130px minmax(0,1fr) 120px 150px 90px 70px}.check-head{flex-wrap:wrap}.check-file{flex-basis:100%;order:5}}
192
+ @media(max-width:760px){.status-head{display:none}.status-row{grid-template-columns:1fr 1fr}.status-name,.status-row>span:nth-child(2){grid-column:1/-1}.check-table{grid-template-columns:110px repeat(3,minmax(0,1fr))}.receipt-grid{grid-template-columns:80px minmax(0,1fr)}.receipt-grid .receipt-now{grid-column:2}.update-head{flex-direction:column}}
193
+
194
+ /* Organization mapping status (设计预览画布 ⑪). */
195
+ .org-map{margin:-18px 0 34px;border-radius:12px;font-size:12px;line-height:1.6}
196
+ .org-map-line{display:flex;align-items:center;gap:10px;padding:11px 16px;flex-wrap:wrap}
197
+ .org-map-dot{width:8px;height:8px;border-radius:50%;flex:none}
198
+ .org-map b{font-weight:600;white-space:nowrap}
199
+ .org-map-text{min-width:0;flex:1 1 320px}
200
+ .org-map-time{margin-left:auto;font-size:11px;opacity:.8;white-space:nowrap}
201
+ .org-map-toggle{margin-left:auto;border:0;background:none;color:var(--wine);font:inherit;font-weight:600;cursor:pointer;padding:2px 0;white-space:nowrap}
202
+ .org-map-applied{background:#ecfdf5;color:#065f46}.org-map-applied .org-map-dot{background:#047857}
203
+ .org-map-partial{background:#fffbeb;color:#92400e;border:1px solid #fcd34d}.org-map-partial .org-map-dot{background:#d97706}
204
+ .org-map-invalid{background:#fff1f2;color:#9f1239;border:1px solid #fecdd3}.org-map-invalid .org-map-dot{background:#e11d48}
205
+ .org-map-list{padding:0 16px 12px;overflow-x:auto}
206
+ .org-map-list table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;font-size:12px;min-width:560px}
207
+ .org-map-list th{font-weight:500;font-size:11px;color:#8a7a5a;background:#fff8e1;text-align:left;padding:8px 10px}
208
+ .org-map-list td{padding:8px 10px;border-top:1px solid #fef3c7;color:#4d5e6c}
209
+ .org-map-module{font-weight:600;color:#283640}
210
+ .org-map-pending{color:#a16207}.org-map-rejected{color:#b42318}
211
+ .org-map-note,.org-map-more{margin:8px 0 0;color:#7c6a46;font-size:11.5px}
212
+ .org-chip{font:inherit;font-size:11px;border-radius:999px;padding:3px 9px;white-space:nowrap;border:1px solid transparent;background:#f1f5f9;color:#64748b}
213
+ button.org-chip{cursor:pointer}
214
+ .org-chip-applied{background:#ecfdf5;color:#047857}
215
+ .org-chip-partial{background:#fffbeb;color:#a16207;border-color:#fcd34d;font-weight:600}
216
+ .org-chip-invalid{background:#fff1f2;color:#b42318;font-weight:600}
217
+ .org-map-row td{background:#fffdf5;padding:6px 21px 14px}
218
+ .org-map-row .org-map-list{padding:0}
219
+ .org-map-detail-line{margin:4px 0 8px;font-size:11.5px;color:#92400e}
220
+ @media(max-width:760px){.org-map{margin-top:-10px}.org-map-time,.org-map-toggle{margin-left:0}}