@chenchaolong/plugin-trade-compliance-workbench 1.0.219 → 1.0.220
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.
- package/dist/lib/remote-components/trade-compliance-workbench/app.css +1 -1
- package/dist/lib/remote-components/trade-compliance-workbench/app.js +5 -5
- package/dist/lib/remote-ui/app-source.d.ts +1 -0
- package/dist/lib/remote-ui/app-source.d.ts.map +1 -1
- package/dist/lib/remote-ui/app-source.js +13 -5
- package/dist/lib/remote-ui/app-source.js.map +1 -1
- package/dist/lib/remote-ui/components/action-menu.d.ts +8 -0
- package/dist/lib/remote-ui/components/action-menu.d.ts.map +1 -0
- package/dist/lib/remote-ui/components/action-menu.js +44 -0
- package/dist/lib/remote-ui/components/action-menu.js.map +1 -0
- package/dist/lib/remote-ui/components/data-grid.d.ts +4 -2
- package/dist/lib/remote-ui/components/data-grid.d.ts.map +1 -1
- package/dist/lib/remote-ui/components/data-grid.js +29 -8
- package/dist/lib/remote-ui/components/data-grid.js.map +1 -1
- package/dist/lib/remote-ui/components/decimal-input.d.ts +10 -0
- package/dist/lib/remote-ui/components/decimal-input.d.ts.map +1 -0
- package/dist/lib/remote-ui/components/decimal-input.js +10 -0
- package/dist/lib/remote-ui/components/decimal-input.js.map +1 -0
- package/dist/lib/remote-ui/components/generation-progress.d.ts +1 -1
- package/dist/lib/remote-ui/components/generation-progress.d.ts.map +1 -1
- package/dist/lib/remote-ui/components/generation-progress.js +9 -2
- package/dist/lib/remote-ui/components/generation-progress.js.map +1 -1
- package/dist/lib/remote-ui/components/layout.d.ts +5 -2
- package/dist/lib/remote-ui/components/layout.d.ts.map +1 -1
- package/dist/lib/remote-ui/components/layout.js +28 -4
- package/dist/lib/remote-ui/components/layout.js.map +1 -1
- package/dist/lib/remote-ui/components/task-status.d.ts +1 -0
- package/dist/lib/remote-ui/components/task-status.d.ts.map +1 -1
- package/dist/lib/remote-ui/components/task-status.js +4 -3
- package/dist/lib/remote-ui/components/task-status.js.map +1 -1
- package/dist/lib/remote-ui/display-number.d.ts +5 -0
- package/dist/lib/remote-ui/display-number.d.ts.map +1 -0
- package/dist/lib/remote-ui/display-number.js +31 -0
- package/dist/lib/remote-ui/display-number.js.map +1 -0
- package/dist/lib/remote-ui/pages/analytics-dashboard.js +1 -1
- package/dist/lib/remote-ui/pages/analytics-dashboard.js.map +1 -1
- package/dist/lib/remote-ui/pages/catalogs.css +8 -8
- package/dist/lib/remote-ui/pages/catalogs.js +2 -2
- package/dist/lib/remote-ui/pages/catalogs.js.map +1 -1
- package/dist/lib/remote-ui/pages/contracts.css +1 -1
- package/dist/lib/remote-ui/pages/contracts.js +8 -8
- package/dist/lib/remote-ui/pages/contracts.js.map +1 -1
- package/dist/lib/remote-ui/pages/files.js +9 -9
- package/dist/lib/remote-ui/pages/files.js.map +1 -1
- package/dist/lib/remote-ui/pages/home.d.ts.map +1 -1
- package/dist/lib/remote-ui/pages/home.js +11 -13
- package/dist/lib/remote-ui/pages/home.js.map +1 -1
- package/dist/lib/remote-ui/pages/procurement-contracts.css +10 -10
- package/dist/lib/remote-ui/pages/procurement.d.ts.map +1 -1
- package/dist/lib/remote-ui/pages/procurement.js +9 -5
- package/dist/lib/remote-ui/pages/procurement.js.map +1 -1
- package/dist/lib/remote-ui/pages/sales-files.css +3 -3
- package/dist/lib/remote-ui/pages/sales.d.ts.map +1 -1
- package/dist/lib/remote-ui/pages/sales.js +7 -5
- package/dist/lib/remote-ui/pages/sales.js.map +1 -1
- package/dist/lib/remote-ui/pages/settings.d.ts.map +1 -1
- package/dist/lib/remote-ui/pages/settings.js +20 -18
- package/dist/lib/remote-ui/pages/settings.js.map +1 -1
- package/dist/lib/remote-ui/ui-consistency.css +327 -0
- package/package.json +1 -1
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/* Shared visual language: neutral surfaces, restrained status colours, 8px spacing. */
|
|
2
|
+
:root { --tcw-control-height: 34px; --tcw-radius: 8px; }
|
|
3
|
+
.tcw-content { padding: 20px; scroll-behavior: auto; }
|
|
4
|
+
.tcw-page-heading { margin-bottom: 16px; gap: 16px; }
|
|
5
|
+
.tcw-page-heading h1, .tcw-list-heading { font-size: 20px; line-height: 1.4; }
|
|
6
|
+
.tcw-page-heading p { max-width: 80ch; line-height: 1.6; }
|
|
7
|
+
.tcw-brand { font-size: 14px; }
|
|
8
|
+
.tcw-brand-mark { font-size: 20px; }
|
|
9
|
+
.tcw-nav-item > i { font-size: 19px; }
|
|
10
|
+
.tcw-button > i { font-size: 16px; }
|
|
11
|
+
.tcw-filter-panel { padding: 14px 16px; margin-bottom: 16px; border-radius: var(--tcw-radius); box-shadow: none; }
|
|
12
|
+
.tcw-filter-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
|
|
13
|
+
.tcw-filter-control { flex: 1 1 170px; max-width: 320px; }
|
|
14
|
+
.tcw-filter-control--range { flex-basis: 280px; max-width: 380px; }
|
|
15
|
+
.tcw-filter-actions { margin-left: auto; align-self: flex-end; padding-top: 20px; flex-shrink: 0; }
|
|
16
|
+
.tcw-notice { padding: 10px 12px; margin-bottom: 16px; border-radius: 6px; font-size: 13px; }
|
|
17
|
+
.tcw-notice--help { min-height: 0; padding: 0; border: 0; color: var(--tcw-muted); background: transparent; }
|
|
18
|
+
.tcw-notice--help > i { display: none; }
|
|
19
|
+
.tcw-notice > span { min-width: 0; overflow-wrap: anywhere; }
|
|
20
|
+
.tcw-grid-section { position: relative; border-radius: var(--tcw-radius); }
|
|
21
|
+
.tcw-grid-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--tcw-border-soft); }
|
|
22
|
+
.tcw-grid-toolbar > span { color: var(--tcw-muted); font-size: 12px; }
|
|
23
|
+
.tcw-column-picker { position: relative; font-size: 12px; }
|
|
24
|
+
.tcw-column-picker > summary { cursor: pointer; color: #43546a; list-style: none; display: flex; gap: 6px; align-items: center; }
|
|
25
|
+
.tcw-column-picker > div { position: absolute; top: calc(100% + 8px); left: 0; z-index: 12; display: grid; gap: 10px; min-width: 200px; max-height: 320px; overflow-y: auto; padding: 14px; border: 1px solid var(--tcw-border); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #17203320; }
|
|
26
|
+
.tcw-column-picker label { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
|
|
27
|
+
.tcw-table-scroll { overflow: auto; scrollbar-gutter: stable; }
|
|
28
|
+
.tcw-data-table { table-layout: fixed; }
|
|
29
|
+
.tcw-data-table th, .tcw-data-table td { padding: 11px 12px; vertical-align: middle; }
|
|
30
|
+
.tcw-data-table td:not(.tcw-ellipsis) { overflow-wrap: anywhere; }
|
|
31
|
+
.tcw-data-table .action-column { position: sticky; right: 0; z-index: 2; background: #fff; box-shadow: -1px 0 0 var(--tcw-border-soft); }
|
|
32
|
+
.tcw-data-table thead .action-column { z-index: 3; background: #f8fafc; }
|
|
33
|
+
.tcw-row-actions { flex-wrap: wrap; gap: 6px 12px; }
|
|
34
|
+
.tcw-row-actions > button > i, .tcw-row-actions .tcw-link-button > i, .tcw-data-table .tcw-link-button > i { display: none; }
|
|
35
|
+
.tcw-row-actions button { font-size: 13px; }
|
|
36
|
+
.tcw-tag-list { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; }
|
|
37
|
+
.tcw-tag-list > * { max-width: 100%; white-space: normal; line-height: 1.5; }
|
|
38
|
+
.tcw-data-table tr.is-pending-review td, .tcw-data-table tr.is-pending td { background: #fffaf0; }
|
|
39
|
+
.tcw-data-table tr.is-selected td { box-shadow: inset 0 1px 0 #c4dbfa, inset 0 -1px 0 #c4dbfa; }
|
|
40
|
+
.tcw-align-right { font-variant-numeric: tabular-nums; }
|
|
41
|
+
.tcw-context-bar { margin: 0 0 16px; padding: 12px 16px; min-height: 0; gap: 12px; flex-wrap: wrap; }
|
|
42
|
+
.tcw-modal-backdrop { padding: 24px; background: #17203366; backdrop-filter: none; }
|
|
43
|
+
.tcw-modal { width: min(720px, calc(100vw - 48px)); height: auto; max-height: calc(100dvh - 48px); border: 1px solid var(--tcw-border); border-radius: 10px; }
|
|
44
|
+
.tcw-modal--wide { width: min(1180px, calc(100vw - 48px)); }
|
|
45
|
+
.tcw-modal > header { padding: 16px 20px; }
|
|
46
|
+
.tcw-modal > header h2 { font-size: 18px; }
|
|
47
|
+
.tcw-modal-body { padding: 20px; min-height: 0; }
|
|
48
|
+
.tcw-modal > footer { gap: 10px; padding: 12px 20px; }
|
|
49
|
+
.tcw-field-grid { gap: 16px; }
|
|
50
|
+
.tcw-form-field { gap: 6px; }
|
|
51
|
+
.tcw-form-field > span { font-size: 13px; }
|
|
52
|
+
.tcw-modal:has(.tcw-procurement-line-form) { height: auto; max-width: 900px; }
|
|
53
|
+
.tcw-modal:has(.tcw-procurement-line-form) .tcw-modal-body, .tcw-procurement-line-form { min-height: 0; height: auto; }
|
|
54
|
+
.tcw-procurement-line-form .tcw-field-grid { padding: 0; }
|
|
55
|
+
.tcw-percent-input { display: flex; align-items: center; gap: 8px; }
|
|
56
|
+
.tcw-percent-input > span { flex-shrink: 0; color: var(--tcw-muted); }
|
|
57
|
+
.tcw-procurement-prototype-surface[data-procurement-level="orders"] .tcw-procurement-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
|
|
58
|
+
.tcw-procurement-prototype-surface[data-procurement-level="orders"] .tcw-procurement-metrics > .tcw-procurement-metric { min-height: 90px; display: block; padding: 14px 16px; }
|
|
59
|
+
.tcw-procurement-metric-icon { display: none; }
|
|
60
|
+
.tcw-procurement-metric-copy > strong { margin-top: 6px; font-size: 22px; }
|
|
61
|
+
.tcw-procurement-metrics .tcw-procurement-top { display: none; }
|
|
62
|
+
.tcw-sales-page--orders .tcw-metric-grid { gap: 12px; margin-bottom: 16px; }
|
|
63
|
+
.tcw-sales-page--orders .tcw-metric-grid article { min-height: 90px; padding: 14px 16px; }
|
|
64
|
+
.tcw-sales-page--orders .tcw-metric-grid article::before { display: none; }
|
|
65
|
+
.tcw-sales-page--orders .tcw-metric-grid article strong { font-size: 22px; }
|
|
66
|
+
.tcw-sales-page--orders .tcw-metric-grid article small { position: static; }
|
|
67
|
+
.tcw-row-more { position: relative; }
|
|
68
|
+
.tcw-row-more > summary { cursor: pointer; color: var(--tcw-primary); list-style: none; white-space: nowrap; }
|
|
69
|
+
.tcw-row-more > div { display: grid; gap: 6px; min-width: 120px; padding: 10px 0 2px; }
|
|
70
|
+
.tcw-row-more[open] { flex-basis: 100%; }
|
|
71
|
+
.tcw-row-more > div > button { text-align: left; }
|
|
72
|
+
/* Home is always expanded; the guidance reads as a compact reference. */
|
|
73
|
+
.tcw-page-home .tcw-content { padding: 20px; }
|
|
74
|
+
.tcw-home-page { gap: 20px; }
|
|
75
|
+
.tcw-home-section { padding: 20px; box-shadow: none; }
|
|
76
|
+
.tcw-home-section-title { margin: 0 0 16px; font-size: 18px; }
|
|
77
|
+
.tcw-home-risk-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; gap: 0 24px; border: 0; border-radius: 0; }
|
|
78
|
+
.tcw-home-risk-matrix .tcw-home-risk-item { min-height: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--tcw-border-soft); }
|
|
79
|
+
.tcw-home-risk-heading { color: var(--tcw-text); }
|
|
80
|
+
.tcw-home-risk-heading h3 { font-size: 14px; font-weight: 650; }
|
|
81
|
+
.tcw-home-risk-item > p { margin-top: 6px; color: #566176; font-size: 13px; line-height: 1.65; }
|
|
82
|
+
.tcw-home-workflow-heading { margin-bottom: 20px; }
|
|
83
|
+
.tcw-home-workflow { gap: 16px; padding-bottom: 0; }
|
|
84
|
+
.tcw-home-workflow .tcw-home-workflow-step { min-height: 114px; padding: 20px 8px 12px; color: var(--tcw-text); border-color: var(--tcw-border); --tcw-home-tone: #0875f7; }
|
|
85
|
+
.tcw-home-workflow-step h3 { font-size: 13px; }
|
|
86
|
+
.tcw-home-step-title-line { white-space: normal; }
|
|
87
|
+
.tcw-home-workflow-step p { margin-top: 8px; line-height: 1.5; color: var(--tcw-muted); }
|
|
88
|
+
.tcw-home-workflow-connector { color: #a2afc0; font-size: 16px; }
|
|
89
|
+
.tcw-home-footer-notice { margin-top: 16px; padding: 0; border: 0; background: transparent; }
|
|
90
|
+
/* Compact contract header and a single scrollable body per section. */
|
|
91
|
+
.tcw-modal:has(.tcw-contract-review-summary) { height: auto; }
|
|
92
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { padding: 14px 16px; gap: 12px 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
|
|
93
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-summary-customer { grid-row: auto; border: 0; padding: 0; }
|
|
94
|
+
.tcw-contract-summary-cell { min-width: 0; }
|
|
95
|
+
.tcw-contract-summary-cell strong { overflow-wrap: anywhere; }
|
|
96
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-layout { height: auto; min-height: 380px; grid-template-columns: 150px minmax(0, 1fr); }
|
|
97
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-clause-editor,
|
|
98
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-basic-info,
|
|
99
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-source-preview { max-height: none; height: auto; overflow: visible; }
|
|
100
|
+
.tcw-contract-number-candidates { grid-column: 1 / -1; }
|
|
101
|
+
/* Task states: only in-progress tasks need a progress meter. */
|
|
102
|
+
.tcw-task-popover { width: min(640px, calc(100vw - 32px)); }
|
|
103
|
+
.tcw-task-summary { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
104
|
+
.tcw-task-summary button { border: 1px solid transparent; border-radius: 5px; background: #f4f6fa; color: #516078; padding: 6px 10px; font-size: 12px; }
|
|
105
|
+
.tcw-task-summary button[aria-pressed="true"] { border-color: #b9d2f7; background: var(--tcw-primary-soft); color: var(--tcw-primary); }
|
|
106
|
+
.tcw-task-row { grid-template-columns: 30px minmax(0, 1fr) 56px; row-gap: 8px; }
|
|
107
|
+
.tcw-task-row.has-selection { grid-template-columns: 20px 30px minmax(0, 1fr) 56px; }
|
|
108
|
+
.tcw-task-row-actions { grid-column: 2 / -1; justify-content: flex-end; }
|
|
109
|
+
.tcw-task-row.has-selection .tcw-task-row-actions { grid-column: 3 / -1; }
|
|
110
|
+
.tcw-task-row-title strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
|
|
111
|
+
.tcw-task-row-more { flex-basis: auto; }
|
|
112
|
+
.tcw-task-row-more > div { display: flex; justify-content: flex-end; }
|
|
113
|
+
.tcw-task-row-delete { border-color: var(--tcw-border); background: #fff; color: #69758a; }
|
|
114
|
+
.tcw-task-row-delete:hover { color: var(--tcw-danger); }
|
|
115
|
+
/* Analytics: amounts have room and never ellipsize. */
|
|
116
|
+
.tcw-analytics-metric-group { min-width: 0; margin-bottom: 16px; }
|
|
117
|
+
.tcw-analytics-metric-group > h2 { font-size: 14px; margin: 0 0 8px; font-weight: 650; }
|
|
118
|
+
.tcw-analytics-metric-group .tcw-analytics-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
|
|
119
|
+
.tcw-analytics-kpi-grid article { border-left: 1px solid var(--tcw-border); min-height: 96px; padding: 14px 16px; }
|
|
120
|
+
.tcw-analytics-kpi-grid article > i, .tcw-analytics-panel > header > strong > i { display: none; }
|
|
121
|
+
.tcw-analytics-kpi-grid article strong { font-size: 22px; }
|
|
122
|
+
.tcw-analytics-kpi-grid article small { margin-top: 6px; }
|
|
123
|
+
.tcw-analytics-layout-row--top5 { grid-template-columns: 1fr; }
|
|
124
|
+
.tcw-analytics-layout-row--top5 .tcw-analytics-panel, .tcw-analytics-layout-row--bottom .tcw-analytics-panel { height: auto; min-height: 0; }
|
|
125
|
+
.tcw-analytics-panel { overflow-x: auto; }
|
|
126
|
+
.tcw-analytics-dashboard-table { table-layout: auto; width: 100%; }
|
|
127
|
+
.tcw-analytics-dashboard-table th, .tcw-analytics-dashboard-table td { max-width: none; width: auto; overflow: visible; text-overflow: clip; padding: 10px 12px; }
|
|
128
|
+
.tcw-analytics-dashboard-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
129
|
+
.tcw-analytics-dashboard-table td[title]:nth-child(2) { max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
|
|
130
|
+
.tcw-analytics-empty { min-height: 72px; }
|
|
131
|
+
.tcw-generation-progress { padding: 12px 16px; margin-bottom: 16px; }
|
|
132
|
+
.tcw-generation-progress.is-complete { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
|
|
133
|
+
.tcw-generation-progress.is-complete h3 { margin: 0; font-size: 14px; }
|
|
134
|
+
.tcw-generation-progress.is-complete .tcw-generation-task { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0; border: 0; }
|
|
135
|
+
.tcw-generation-progress.is-complete .tcw-generation-task p { margin: 0; }
|
|
136
|
+
/* Loading feedback does not cover the business workspace. Mutation guards remain in code. */
|
|
137
|
+
.tcw-loading-blocker { inset: auto 20px 20px auto; padding: 12px 16px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid var(--tcw-border); border-radius: 8px; box-shadow: 0 4px 20px #17203320; pointer-events: none; font-size: 13px; }
|
|
138
|
+
@media (max-width: 900px) {
|
|
139
|
+
.tcw-content, .tcw-page-home .tcw-content { padding: 16px; }
|
|
140
|
+
.tcw-home-workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "step-1 step-2 step-3 step-4" "step-5 step-6 step-7 step-8"; gap: 24px 16px; }
|
|
141
|
+
.tcw-home-workflow-connector { display: none; }
|
|
142
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
143
|
+
.tcw-analytics-metric-group .tcw-analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
144
|
+
.tcw-procurement-prototype-surface[data-procurement-level="orders"] .tcw-procurement-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
145
|
+
}
|
|
146
|
+
@media (max-width: 600px) {
|
|
147
|
+
.tcw-content, .tcw-page-home .tcw-content { padding: 12px; }
|
|
148
|
+
.tcw-home-section { padding: 16px; }
|
|
149
|
+
.tcw-home-risk-matrix { grid-template-columns: 1fr; }
|
|
150
|
+
.tcw-home-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "step-1 step-2" "step-3 step-4" "step-5 step-6" "step-7 step-8"; }
|
|
151
|
+
.tcw-home-workflow-heading { align-items: flex-start; gap: 8px; flex-direction: column; }
|
|
152
|
+
.tcw-modal-backdrop { padding: 8px; }
|
|
153
|
+
.tcw-modal, .tcw-modal--wide { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
|
|
154
|
+
.tcw-modal-body, .tcw-modal > header { padding: 16px; }
|
|
155
|
+
.tcw-filter-control { max-width: none; flex-basis: 160px; }
|
|
156
|
+
.tcw-filter-control--range { flex-basis: 100%; }
|
|
157
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-layout { grid-template-columns: minmax(0, 1fr); }
|
|
158
|
+
.tcw-task-popover { width: calc(100vw - 24px); }
|
|
159
|
+
}
|
|
160
|
+
.tcw-settings-page[data-settings-page="typed"] .tcw-settings-company-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; max-width: 1100px; padding: 20px; }
|
|
161
|
+
.tcw-settings-company-card > .tcw-settings-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; align-content: start; }
|
|
162
|
+
.tcw-settings-company-card > .tcw-settings-row:first-child { grid-column: 1 / -1; }
|
|
163
|
+
.tcw-settings-version { grid-column: 1 / -1; color: var(--tcw-muted); font-size: 12px; }
|
|
164
|
+
.tcw-settings-upload { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; border: 1px dashed #b8c6d8; padding: 12px 16px; cursor: pointer; }
|
|
165
|
+
.tcw-settings-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
|
|
166
|
+
.tcw-settings-upload:focus-within { outline: 2px solid var(--tcw-primary); outline-offset: 2px; }
|
|
167
|
+
.tcw-settings-bank-card { padding: 0; }
|
|
168
|
+
.tcw-settings-bank-card > summary { cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 16px; color: var(--tcw-text); }
|
|
169
|
+
.tcw-settings-bank-card > summary::before { content: '›'; font-size: 20px; color: var(--tcw-muted); }
|
|
170
|
+
.tcw-settings-bank-card[open] > summary::before { transform: rotate(90deg); }
|
|
171
|
+
.tcw-settings-bank-card > summary > span { margin-left: auto; color: var(--tcw-muted); font-size: 13px; }
|
|
172
|
+
.tcw-settings-bank-card > header, .tcw-settings-bank-grid { margin: 0 20px 16px; }
|
|
173
|
+
.tcw-settings-bank-card > header h2 { font-size: 14px; }
|
|
174
|
+
.tcw-settings-profit-snapshot > header h2 { font-size: 16px; }
|
|
175
|
+
.tcw-settings-profit-snapshot > div { gap: 16px; }
|
|
176
|
+
.tcw-settings-profit-snapshot > div > div:last-child { font-size: 12px; color: var(--tcw-muted); }
|
|
177
|
+
.tcw-modal-backdrop:has(.tcw-contract-review-summary), .tcw-modal-backdrop:has(.tcw-contract-delete-summary) { background: #17203366; }
|
|
178
|
+
.tcw-modal-backdrop:has(.tcw-contract-review-summary) .tcw-modal { height: auto; max-height: calc(100dvh - 48px); }
|
|
179
|
+
.tcw-modal:has(.tcw-contract-review-summary) > .tcw-modal-body { padding: 16px 20px; overflow-y: auto; }
|
|
180
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { grid-template-columns: minmax(140px, 1fr) minmax(360px, 2fr) minmax(100px, 1fr) minmax(100px, 1fr); }
|
|
181
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-layout { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); overflow: visible; grid-template-rows: auto minmax(0, 1fr); }
|
|
182
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-clause-tabs { overflow: visible; }
|
|
183
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-basic-info { grid-column: 2 / 4; }
|
|
184
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary .tcw-field-grid { gap: 12px; }
|
|
185
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary .tcw-form-field input { border: 1px solid var(--tcw-border); padding: 0 8px; height: 34px; background: #fff; }
|
|
186
|
+
@media (max-width: 1000px) {
|
|
187
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { grid-template-columns: 1fr 1fr; }
|
|
188
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary > .tcw-field-grid { grid-column: 1 / -1; grid-row: 2; }
|
|
189
|
+
}
|
|
190
|
+
@media (max-width: 600px) {
|
|
191
|
+
.tcw-settings-page[data-settings-page="typed"] .tcw-settings-company-card { grid-template-columns: 1fr; padding: 16px; }
|
|
192
|
+
.tcw-modal-backdrop:has(.tcw-contract-review-summary) .tcw-modal { max-height: calc(100dvh - 16px); }
|
|
193
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-layout { display: flex; flex-direction: column; gap: 12px; }
|
|
194
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-clause-tabs { display: flex; flex-wrap: wrap; position: static; }
|
|
195
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-clause-tabs button { width: auto; }
|
|
196
|
+
}
|
|
197
|
+
.tcw-route-content[hidden] { display: none; }
|
|
198
|
+
.tcw-page-skeleton { display: grid; gap: 16px; padding: 16px 0; color: var(--tcw-muted); }
|
|
199
|
+
.tcw-page-skeleton span { display: block; min-height: 48px; border-radius: 8px; background: #eef2f7; }
|
|
200
|
+
.tcw-page-skeleton span:first-child { width: 40%; min-height: 24px; }
|
|
201
|
+
.tcw-page-skeleton span:nth-child(3) { min-height: 180px; }
|
|
202
|
+
.tcw-content:has(.tcw-route-content) { min-width: 0; }
|
|
203
|
+
.tcw-route-content { min-width: 0; }
|
|
204
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
|
|
205
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary > .tcw-field-grid { display: contents; }
|
|
206
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-layout { flex: 0 0 auto; }
|
|
207
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-clause-editor,
|
|
208
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-source-preview { overflow: visible; }
|
|
209
|
+
@media (max-width: 600px) {
|
|
210
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
211
|
+
}
|
|
212
|
+
.tcw-more-filters { flex: 0 0 auto; align-self: flex-end; padding: 8px 0; }
|
|
213
|
+
.tcw-more-filters > summary { cursor: pointer; font-size: 13px; color: var(--tcw-muted); }
|
|
214
|
+
.tcw-more-filters > div { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
|
|
215
|
+
.tcw-more-filters[open] { flex: 1 1 100%; order: 3; }
|
|
216
|
+
.tcw-more-filters[open] .tcw-filter-control { max-width: 320px; }
|
|
217
|
+
.tcw-procurement-prototype-surface .tcw-data-table .tcw-procurement-row--pending > td { background: #fffaf0; }
|
|
218
|
+
.tcw-procurement-prototype-surface .tcw-data-table .tcw-procurement-row--pending:hover > td { background: #fff5dd; }
|
|
219
|
+
.tcw-data-table .tcw-procurement-link > i, .tcw-data-table .tcw-catalog-link > i { display: none; }
|
|
220
|
+
.tcw-task-row p.tcw-task-error { overflow: visible; white-space: normal; color: var(--tcw-danger); overflow-wrap: anywhere; line-height: 1.5; }
|
|
221
|
+
.tcw-task-row-status { width: auto; white-space: normal; overflow: visible; line-height: 1.4; }
|
|
222
|
+
.tcw-analytics-dashboard-table { font-size: 13px; }
|
|
223
|
+
.tcw-analytics-dashboard-table td:first-child { max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
|
|
224
|
+
.tcw-analytics-dashboard-table td:has(.tcw-analytics-risk-tags) { white-space: normal; text-align: left; }
|
|
225
|
+
.tcw-analytics-todo-row { min-height: 36px; height: auto; }
|
|
226
|
+
.tcw-analytics-todo-row > span { white-space: normal; }
|
|
227
|
+
.tcw-analytics-todo-row em, .tcw-analytics-money-structure b { overflow: visible; text-overflow: clip; }
|
|
228
|
+
.tcw-analytics-money-row { grid-template-columns: 70px minmax(40px, 1fr) max-content 48px; }
|
|
229
|
+
.tcw-analytics-panel--queue { overflow-x: auto; }
|
|
230
|
+
.tcw-analytics-todo-board { min-width: 320px; }
|
|
231
|
+
.tcw-data-table .tcw-tag { max-width: 100%; white-space: normal; line-height: 1.5; }
|
|
232
|
+
.tcw-settings-page-notice-slot { min-height: 0; margin-top: 12px; }
|
|
233
|
+
.tcw-settings-page-notice-slot > .tcw-notice--help { min-height: 0; padding: 0; }
|
|
234
|
+
.tcw-procurement-prototype-surface .tcw-modal:has(.tcw-procurement-line-form) { height: auto; max-height: calc(100dvh - 48px); width: min(900px, calc(100vw - 48px)); transform: none; }
|
|
235
|
+
.tcw-procurement-prototype-surface .tcw-modal:has(.tcw-procurement-line-form) .tcw-field-grid { gap: 12px 16px; }
|
|
236
|
+
.tcw-procurement-prototype-surface .tcw-modal > header,
|
|
237
|
+
.tcw-contract-prototype-surface .tcw-modal > header { padding: 16px 20px; border-bottom: 1px solid var(--tcw-border-soft); }
|
|
238
|
+
.tcw-procurement-prototype-surface .tcw-modal > footer,
|
|
239
|
+
.tcw-contract-prototype-surface .tcw-modal > footer { padding: 12px 20px; border-top: 1px solid var(--tcw-border-soft); }
|
|
240
|
+
.tcw-modal-backdrop:has(.tcw-procurement-line-form), .tcw-modal-backdrop:has(.tcw-procurement-supplier-review) { background: #17203366; }
|
|
241
|
+
.tcw-form-group-title { grid-column: 1 / -1; margin: 4px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--tcw-border-soft); font-size: 13px; color: #526176; }
|
|
242
|
+
@media (max-width: 600px) {
|
|
243
|
+
.tcw-procurement-prototype-surface .tcw-modal:has(.tcw-procurement-line-form) { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
|
|
244
|
+
}
|
|
245
|
+
.tcw-analytics-metric-group[data-metric-group="经营概况"] .tcw-analytics-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
246
|
+
.tcw-analytics-metric-group[data-metric-group="资金情况"] .tcw-analytics-kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
247
|
+
.tcw-analytics-metric-group[data-metric-group="合规风险"] .tcw-analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
248
|
+
.tcw-analytics-metric-group { margin-bottom: 12px; }
|
|
249
|
+
.tcw-analytics-metric-group:not([data-metric-group="经营概况"]) .tcw-analytics-kpi-grid article { min-height: 74px; padding: 10px 14px; }
|
|
250
|
+
.tcw-analytics-metric-group:not([data-metric-group="经营概况"]) .tcw-analytics-kpi-grid article strong { font-size: 19px; }
|
|
251
|
+
.tcw-analytics-kpi-grid article.is-money, .tcw-analytics-kpi-grid article.is-success, .tcw-analytics-kpi-grid article.is-warn, .tcw-analytics-kpi-grid article.is-risk { border-left-color: var(--tcw-border); }
|
|
252
|
+
@media (max-width: 1000px) {
|
|
253
|
+
.tcw-analytics-metric-group[data-metric-group] .tcw-analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
254
|
+
}
|
|
255
|
+
@media (max-width: 600px) {
|
|
256
|
+
.tcw-analytics-metric-group[data-metric-group="经营概况"] .tcw-analytics-kpi-grid { grid-template-columns: 1fr; }
|
|
257
|
+
}
|
|
258
|
+
.tcw-analytics-table--customer { min-width: 980px; }
|
|
259
|
+
.tcw-analytics-table--customer th:nth-child(7), .tcw-analytics-table--customer td:nth-child(7) { width: 108px; min-width: 108px; }
|
|
260
|
+
.tcw-analytics-table--supplier { min-width: 900px; }
|
|
261
|
+
.tcw-analytics-table--supplier th:nth-child(3), .tcw-analytics-table--supplier td:nth-child(3) { width: 144px; min-width: 144px; }
|
|
262
|
+
.tcw-analytics-table--receivable { min-width: 640px; }
|
|
263
|
+
.tcw-analytics-risk-tags .tcw-analytics-status { white-space: nowrap; border-radius: 4px; padding: 2px 6px; font-size: 11px; }
|
|
264
|
+
.tcw-settings-profit-snapshot > div > div:last-child strong { font-size: 13px; color: var(--tcw-muted); font-weight: 500; }
|
|
265
|
+
.tcw-settings-company-card .tcw-settings-row textarea { min-height: 64px; resize: vertical; }
|
|
266
|
+
.tcw-procurement-prototype-surface .tcw-notice--help,
|
|
267
|
+
.tcw-contract-prototype-surface .tcw-notice--help,
|
|
268
|
+
.tcw-catalog-page > .tcw-notice--help,
|
|
269
|
+
.tcw-sales-files-page .tcw-notice--help { min-height: 0; padding: 0; margin: 0 0 12px; border: 0; color: var(--tcw-muted); background: transparent; }
|
|
270
|
+
.tcw-procurement-prototype-surface .tcw-notice--risk,
|
|
271
|
+
.tcw-contract-prototype-surface .tcw-notice--risk { border-color: #f0b7b7; color: var(--tcw-danger); background: var(--tcw-danger-soft); }
|
|
272
|
+
@media (min-width: 401px) and (max-width: 600px) {
|
|
273
|
+
.tcw-analytics-metric-group[data-metric-group="经营概况"] .tcw-analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
274
|
+
.tcw-analytics-metric-group[data-metric-group="经营概况"] .tcw-analytics-kpi-grid article:last-child { grid-column: 1 / -1; }
|
|
275
|
+
}
|
|
276
|
+
/* Override prototype-specific offsets so every dialog shares the same frame. */
|
|
277
|
+
:root .tcw-modal-backdrop { padding: 24px; align-items: center; justify-content: center; background: #17203366; backdrop-filter: none; }
|
|
278
|
+
:root .tcw-modal-backdrop .tcw-modal { height: auto; min-height: 0; max-height: calc(100dvh - 48px); transform: none; border: 1px solid var(--tcw-border); border-radius: 10px; }
|
|
279
|
+
:root .tcw-modal-backdrop .tcw-modal--normal { width: min(720px, calc(100vw - 48px)); }
|
|
280
|
+
:root .tcw-modal-backdrop .tcw-modal--wide { width: min(1180px, calc(100vw - 48px)); }
|
|
281
|
+
:root .tcw-modal-backdrop .tcw-modal--full { width: calc(100vw - 48px); height: calc(100dvh - 48px); }
|
|
282
|
+
:root .tcw-modal-backdrop .tcw-modal > header { min-height: 56px; padding: 16px 20px; border-bottom: 1px solid var(--tcw-border-soft); }
|
|
283
|
+
:root .tcw-modal-backdrop .tcw-modal > footer { min-height: 56px; padding: 12px 20px; border-top: 1px solid var(--tcw-border-soft); }
|
|
284
|
+
:root .tcw-modal-backdrop .tcw-modal:has(.tcw-procurement-line-form) { width: min(900px, calc(100vw - 48px)); }
|
|
285
|
+
:root .tcw-modal-backdrop .tcw-modal:has(.tcw-generation-workspace) { width: min(1080px, calc(100vw - 48px)); }
|
|
286
|
+
@media (max-width: 600px) {
|
|
287
|
+
:root .tcw-modal-backdrop { padding: 8px; }
|
|
288
|
+
:root .tcw-modal-backdrop .tcw-modal { max-height: calc(100dvh - 16px); width: calc(100vw - 16px); }
|
|
289
|
+
:root .tcw-modal-backdrop .tcw-modal--full { height: calc(100dvh - 16px); }
|
|
290
|
+
:root .tcw-modal-backdrop .tcw-modal:has(.tcw-procurement-line-form),
|
|
291
|
+
:root .tcw-modal-backdrop .tcw-modal:has(.tcw-generation-workspace) { width: calc(100vw - 16px); }
|
|
292
|
+
}
|
|
293
|
+
.tcw-grid-section { overflow: visible; }
|
|
294
|
+
.tcw-grid-toolbar { border-radius: 8px 8px 0 0; }
|
|
295
|
+
.tcw-grid-section > .tcw-table-scroll { border-radius: 8px; }
|
|
296
|
+
.tcw-grid-toolbar + .tcw-table-scroll { border-radius: 0; }
|
|
297
|
+
.tcw-completed-generation { font-size: 13px; }
|
|
298
|
+
.tcw-completed-generation > summary { cursor: pointer; color: var(--tcw-muted); }
|
|
299
|
+
.tcw-completed-generation[open] { flex-basis: 100%; }
|
|
300
|
+
.tcw-completed-generation .tcw-generation-task { margin-top: 12px; }
|
|
301
|
+
.tcw-generation-progress.is-complete .tcw-generation-task { padding-top: 8px; border-top: 1px solid var(--tcw-border-soft); }
|
|
302
|
+
:root .tcw-modal-backdrop .tcw-modal > header::before { content: none; }
|
|
303
|
+
:root .tcw-modal-backdrop .tcw-modal > .tcw-modal-body { padding: 20px; }
|
|
304
|
+
:root .tcw-modal-backdrop .tcw-modal:has(.tcw-generation-workspace) > .tcw-modal-body { padding: 20px; }
|
|
305
|
+
@media (max-width: 1000px) {
|
|
306
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
307
|
+
}
|
|
308
|
+
@media (max-width: 600px) {
|
|
309
|
+
:root .tcw-modal-backdrop .tcw-modal > .tcw-modal-body { padding: 16px; }
|
|
310
|
+
:root .tcw-modal-backdrop .tcw-modal:has(.tcw-generation-workspace) > .tcw-modal-body { padding: 16px; }
|
|
311
|
+
}
|
|
312
|
+
.tcw-action-menu { display: inline-flex; align-items: center; }
|
|
313
|
+
.tcw-action-menu > button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--tcw-primary); background: transparent; white-space: nowrap; }
|
|
314
|
+
.tcw-row-actions .tcw-action-menu > button > i { display: none; }
|
|
315
|
+
.tcw-action-menu-panel { position: fixed; z-index: 1600; width: 240px; max-width: calc(100vw - 16px); max-height: min(320px, calc(100dvh - 32px)); overflow: auto; padding: 8px; border: 1px solid var(--tcw-border); border-radius: 8px; background: #fff; box-shadow: 0 6px 24px #17203326; }
|
|
316
|
+
.tcw-action-menu-panel[hidden] { display: none; }
|
|
317
|
+
.tcw-action-menu-panel > button { display: flex; align-items: center; width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 4px; color: #364359; background: #fff; text-align: left; }
|
|
318
|
+
.tcw-action-menu-panel > button:hover, .tcw-action-menu-panel > button:focus-visible { color: var(--tcw-primary); background: var(--tcw-primary-soft); }
|
|
319
|
+
.tcw-action-menu-panel > button > i { display: none; }
|
|
320
|
+
.tcw-action-menu-panel .tcw-order-money-details { margin: 6px 10px; font-size: 13px; }
|
|
321
|
+
.tcw-action-menu-panel .tcw-order-money-details dl { position: static; width: auto; padding: 8px 0 0; margin: 0; border: 0; box-shadow: none; }
|
|
322
|
+
|
|
323
|
+
.tcw-generation-context > div:first-child { flex: 1 1 340px; min-width: 0; }
|
|
324
|
+
.tcw-generation-context > div:first-child > strong { overflow-wrap: anywhere; }
|
|
325
|
+
.tcw-generation-context-meta { flex-shrink: 0; }
|
|
326
|
+
:root .tcw-procurement-prototype-surface .tcw-table-scroll { max-height: none; }
|
|
327
|
+
.tcw-modal:has(.tcw-contract-review-summary) .tcw-contract-review-summary { display: grid; }
|