@neetechs/ui 0.2.0 → 0.3.0

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 (269) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE +21 -21
  3. package/README.md +862 -861
  4. package/dist/ai/ai-action-button/ai-action-button.css +271 -271
  5. package/dist/ai/ai-approval-card/ai-approval-card.css +323 -323
  6. package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  7. package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  8. package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  9. package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  10. package/dist/ai/ai-tool-call/ai-tool-call.css +256 -256
  11. package/dist/ai/index.css +7 -7
  12. package/dist/behaviors/index.d.ts +1 -0
  13. package/dist/behaviors/index.d.ts.map +1 -1
  14. package/dist/behaviors/index.js +1 -0
  15. package/dist/behaviors/index.js.map +1 -1
  16. package/dist/behaviors/selection-indicator.d.ts +35 -0
  17. package/dist/behaviors/selection-indicator.d.ts.map +1 -0
  18. package/dist/behaviors/selection-indicator.js +133 -0
  19. package/dist/behaviors/selection-indicator.js.map +1 -0
  20. package/dist/behaviors/sidebar.d.ts +3 -1
  21. package/dist/behaviors/sidebar.d.ts.map +1 -1
  22. package/dist/behaviors/sidebar.js +10 -3
  23. package/dist/behaviors/sidebar.js.map +1 -1
  24. package/dist/components/alert/alert.css +226 -226
  25. package/dist/components/avatar/avatar.css +298 -298
  26. package/dist/components/badge/badge.css +180 -180
  27. package/dist/components/breadcrumb/breadcrumb.css +207 -207
  28. package/dist/components/button/button.css +278 -278
  29. package/dist/components/card/card.css +336 -284
  30. package/dist/components/checkbox/checkbox.css +189 -189
  31. package/dist/components/chip/chip.css +269 -269
  32. package/dist/components/data-grid/data-grid.css +520 -520
  33. package/dist/components/description-list/description-list.css +187 -187
  34. package/dist/components/dialog/dialog.css +348 -339
  35. package/dist/components/dock/dock.css +319 -0
  36. package/dist/components/drawer/drawer.css +493 -484
  37. package/dist/components/dropdown/dropdown.css +325 -316
  38. package/dist/components/fab/fab.css +281 -0
  39. package/dist/components/icon-button/icon-button.css +162 -162
  40. package/dist/components/index.css +2 -0
  41. package/dist/components/input/input.css +163 -163
  42. package/dist/components/menu/menu.css +315 -315
  43. package/dist/components/pagination/pagination.css +250 -250
  44. package/dist/components/panel/panel.css +316 -284
  45. package/dist/components/popover/popover.css +22 -0
  46. package/dist/components/progress/progress.css +268 -268
  47. package/dist/components/radio/radio.css +166 -166
  48. package/dist/components/segmented-control/segmented-control.css +264 -205
  49. package/dist/components/select/select.css +117 -117
  50. package/dist/components/skeleton/skeleton.css +267 -267
  51. package/dist/components/split-button/split-button.css +292 -292
  52. package/dist/components/stat/stat.css +433 -433
  53. package/dist/components/switch/switch.css +195 -195
  54. package/dist/components/table/table.css +220 -220
  55. package/dist/components/tabs/tabs.css +393 -293
  56. package/dist/components/textarea/textarea.css +86 -86
  57. package/dist/components/toast/toast.css +345 -345
  58. package/dist/components/tooltip/tooltip.css +267 -258
  59. package/dist/domain/billing/index.css +629 -629
  60. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
  61. package/dist/domain/calendar/day-slice/day-slice.css +384 -384
  62. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
  63. package/dist/domain/calendar/event-card/event-card.css +338 -338
  64. package/dist/domain/calendar/index.css +5 -5
  65. package/dist/domain/calendar/month-grid/month-grid.css +426 -426
  66. package/dist/domain/calendar/week-grid/week-grid.css +487 -480
  67. package/dist/domain/companies/index.css +526 -526
  68. package/dist/domain/index.css +3 -3
  69. package/dist/index.css +5 -5
  70. package/dist/patterns/command-palette/command-palette.css +488 -447
  71. package/dist/patterns/company-switcher/company-switcher.css +390 -390
  72. package/dist/patterns/content-state/content-state.css +236 -236
  73. package/dist/patterns/empty-state/empty-state.css +260 -260
  74. package/dist/patterns/error-state/error-state.css +272 -272
  75. package/dist/patterns/form-layout/form-layout.css +106 -106
  76. package/dist/patterns/loading-state/loading-state.css +287 -287
  77. package/dist/patterns/master-detail/master-detail.css +103 -103
  78. package/dist/patterns/notification-center/notification-center.css +443 -443
  79. package/dist/patterns/page/page.css +303 -303
  80. package/dist/patterns/profile-menu/profile-menu.css +298 -298
  81. package/dist/patterns/record-list/record-list.css +302 -302
  82. package/dist/patterns/search-bar/search-bar.css +457 -457
  83. package/dist/patterns/settings-layout/settings-layout.css +283 -283
  84. package/dist/patterns/workflow/workflow.css +168 -168
  85. package/dist/shell/app-shell/app-shell.css +429 -211
  86. package/dist/shell/content-frame/content-frame.css +93 -93
  87. package/dist/shell/header/header.css +328 -328
  88. package/dist/shell/index.css +8 -8
  89. package/dist/shell/mobile-nav/mobile-nav.css +254 -254
  90. package/dist/shell/sidebar/sidebar.css +923 -314
  91. package/dist/styles/accessibility.css +150 -150
  92. package/dist/styles/animations/motion.css +162 -162
  93. package/dist/styles/appearance/accent.css +215 -215
  94. package/dist/styles/appearance/density.css +61 -61
  95. package/dist/styles/appearance/motion.css +48 -40
  96. package/dist/styles/base.css +83 -83
  97. package/dist/styles/index.css +29 -28
  98. package/dist/styles/localization.css +56 -56
  99. package/dist/styles/reset.css +51 -51
  100. package/dist/styles/responsive.css +101 -101
  101. package/dist/styles/themes/dark.css +225 -210
  102. package/dist/styles/themes/high-contrast.css +378 -298
  103. package/dist/styles/themes/light.css +224 -209
  104. package/dist/styles/tokens/breakpoints.css +37 -37
  105. package/dist/styles/tokens/color.css +102 -102
  106. package/dist/styles/tokens/compatibility.css +33 -33
  107. package/dist/styles/tokens/elevation.css +33 -26
  108. package/dist/styles/tokens/index.css +9 -9
  109. package/dist/styles/tokens/motion.css +55 -36
  110. package/dist/styles/tokens/radius.css +26 -26
  111. package/dist/styles/tokens/spacing.css +56 -56
  112. package/dist/styles/tokens/typography.css +85 -85
  113. package/dist/styles/tokens/z-index.css +14 -14
  114. package/dist/styles/utilities/glass.css +97 -0
  115. package/dist/styles/utilities/layout.css +153 -153
  116. package/dist/styles/utilities/text.css +152 -152
  117. package/dist/styles/utilities/visibility.css +47 -47
  118. package/dist/version.d.ts +1 -1
  119. package/dist/version.js +1 -1
  120. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -312
  121. package/docs/accessibility.md +218 -218
  122. package/docs/appearance-and-theming.md +150 -150
  123. package/docs/brand-palette.md +36 -36
  124. package/docs/component-architecture.md +137 -137
  125. package/docs/component-guidelines.md +64 -64
  126. package/docs/components.md +326 -321
  127. package/docs/content-and-terminology.md +207 -207
  128. package/docs/design-system-baseline-audit.md +226 -226
  129. package/docs/design-token-contract.md +279 -279
  130. package/docs/glass-and-motion.md +310 -0
  131. package/docs/localization-and-rtl.md +147 -147
  132. package/docs/migration.md +193 -193
  133. package/docs/page-patterns-and-workflows.md +301 -301
  134. package/docs/responsive-and-adaptive-design.md +351 -351
  135. package/docs/semantic-role-migration-audit.md +77 -77
  136. package/docs/site-chrome.md +320 -317
  137. package/docs/states-feedback-and-recovery.md +206 -206
  138. package/docs/theming.md +5 -5
  139. package/package.json +2 -1
  140. package/src/ai/ai-action-button/ai-action-button.css +271 -271
  141. package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
  142. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  143. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  144. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  145. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  146. package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
  147. package/src/ai/index.css +7 -7
  148. package/src/appearance/cache.ts +236 -236
  149. package/src/appearance/cookie.ts +184 -184
  150. package/src/appearance/index.ts +86 -86
  151. package/src/appearance/preference.ts +121 -121
  152. package/src/appearance/theme-controller.ts +384 -384
  153. package/src/appearance/types.ts +61 -61
  154. package/src/behaviors/announcer.ts +222 -222
  155. package/src/behaviors/calendar.ts +92 -92
  156. package/src/behaviors/data-grid.ts +133 -133
  157. package/src/behaviors/dialog.ts +203 -203
  158. package/src/behaviors/direction.ts +34 -34
  159. package/src/behaviors/drawer.ts +210 -210
  160. package/src/behaviors/dropdown.ts +344 -344
  161. package/src/behaviors/focus-trap.ts +304 -304
  162. package/src/behaviors/forms.ts +205 -205
  163. package/src/behaviors/ids.ts +47 -47
  164. package/src/behaviors/index.ts +1 -0
  165. package/src/behaviors/keyboard.ts +305 -305
  166. package/src/behaviors/overlay.ts +344 -344
  167. package/src/behaviors/selection-indicator.ts +162 -0
  168. package/src/behaviors/sidebar.ts +14 -4
  169. package/src/behaviors/state.ts +282 -282
  170. package/src/behaviors/tabs.ts +137 -137
  171. package/src/behaviors/viewport.ts +61 -61
  172. package/src/components/alert/alert.css +226 -226
  173. package/src/components/avatar/avatar.css +298 -298
  174. package/src/components/badge/badge.css +180 -180
  175. package/src/components/breadcrumb/breadcrumb.css +207 -207
  176. package/src/components/button/button.css +278 -278
  177. package/src/components/card/card.css +336 -284
  178. package/src/components/checkbox/checkbox.css +189 -189
  179. package/src/components/chip/chip.css +269 -269
  180. package/src/components/data-grid/data-grid.css +520 -520
  181. package/src/components/description-list/description-list.css +187 -187
  182. package/src/components/dialog/dialog.css +348 -339
  183. package/src/components/dock/dock.css +319 -0
  184. package/src/components/drawer/drawer.css +493 -484
  185. package/src/components/dropdown/dropdown.css +325 -316
  186. package/src/components/fab/fab.css +281 -0
  187. package/src/components/icon-button/icon-button.css +162 -162
  188. package/src/components/index.css +2 -0
  189. package/src/components/input/input.css +163 -163
  190. package/src/components/menu/menu.css +315 -315
  191. package/src/components/pagination/pagination.css +250 -250
  192. package/src/components/panel/panel.css +316 -284
  193. package/src/components/popover/popover.css +22 -0
  194. package/src/components/progress/progress.css +268 -268
  195. package/src/components/radio/radio.css +166 -166
  196. package/src/components/segmented-control/segmented-control.css +264 -205
  197. package/src/components/select/select.css +117 -117
  198. package/src/components/skeleton/skeleton.css +267 -267
  199. package/src/components/split-button/split-button.css +292 -292
  200. package/src/components/stat/stat.css +433 -433
  201. package/src/components/switch/switch.css +195 -195
  202. package/src/components/table/table.css +220 -220
  203. package/src/components/tabs/tabs.css +393 -293
  204. package/src/components/textarea/textarea.css +86 -86
  205. package/src/components/toast/toast.css +345 -345
  206. package/src/components/tooltip/tooltip.css +267 -258
  207. package/src/domain/billing/index.css +629 -629
  208. package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
  209. package/src/domain/calendar/day-slice/day-slice.css +384 -384
  210. package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
  211. package/src/domain/calendar/event-card/event-card.css +338 -338
  212. package/src/domain/calendar/index.css +5 -5
  213. package/src/domain/calendar/month-grid/month-grid.css +426 -426
  214. package/src/domain/calendar/week-grid/week-grid.css +487 -480
  215. package/src/domain/companies/index.css +526 -526
  216. package/src/domain/index.css +3 -3
  217. package/src/index.css +5 -5
  218. package/src/index.ts +7 -7
  219. package/src/localization/index.ts +56 -56
  220. package/src/patterns/command-palette/command-palette.css +488 -447
  221. package/src/patterns/company-switcher/company-switcher.css +390 -390
  222. package/src/patterns/content-state/content-state.css +236 -236
  223. package/src/patterns/empty-state/empty-state.css +260 -260
  224. package/src/patterns/error-state/error-state.css +272 -272
  225. package/src/patterns/form-layout/form-layout.css +106 -106
  226. package/src/patterns/loading-state/loading-state.css +287 -287
  227. package/src/patterns/master-detail/master-detail.css +103 -103
  228. package/src/patterns/notification-center/notification-center.css +443 -443
  229. package/src/patterns/page/page.css +303 -303
  230. package/src/patterns/profile-menu/profile-menu.css +298 -298
  231. package/src/patterns/record-list/record-list.css +302 -302
  232. package/src/patterns/search-bar/search-bar.css +457 -457
  233. package/src/patterns/settings-layout/settings-layout.css +283 -283
  234. package/src/patterns/workflow/workflow.css +168 -168
  235. package/src/shell/app-shell/app-shell.css +429 -211
  236. package/src/shell/content-frame/content-frame.css +93 -93
  237. package/src/shell/header/header.css +328 -328
  238. package/src/shell/index.css +8 -8
  239. package/src/shell/mobile-nav/mobile-nav.css +254 -254
  240. package/src/shell/sidebar/sidebar.css +923 -314
  241. package/src/styles/accessibility.css +150 -150
  242. package/src/styles/animations/motion.css +162 -162
  243. package/src/styles/appearance/accent.css +215 -215
  244. package/src/styles/appearance/density.css +61 -61
  245. package/src/styles/appearance/motion.css +48 -40
  246. package/src/styles/base.css +83 -83
  247. package/src/styles/index.css +29 -28
  248. package/src/styles/localization.css +56 -56
  249. package/src/styles/reset.css +51 -51
  250. package/src/styles/responsive.css +101 -101
  251. package/src/styles/themes/dark.css +225 -210
  252. package/src/styles/themes/high-contrast.css +378 -298
  253. package/src/styles/themes/light.css +224 -209
  254. package/src/styles/tokens/breakpoints.css +37 -37
  255. package/src/styles/tokens/color.css +102 -102
  256. package/src/styles/tokens/compatibility.css +33 -33
  257. package/src/styles/tokens/elevation.css +33 -26
  258. package/src/styles/tokens/index.css +9 -9
  259. package/src/styles/tokens/motion.css +55 -36
  260. package/src/styles/tokens/radius.css +26 -26
  261. package/src/styles/tokens/spacing.css +56 -56
  262. package/src/styles/tokens/typography.css +85 -85
  263. package/src/styles/tokens/z-index.css +14 -14
  264. package/src/styles/utilities/glass.css +97 -0
  265. package/src/styles/utilities/layout.css +153 -153
  266. package/src/styles/utilities/text.css +152 -152
  267. package/src/styles/utilities/visibility.css +47 -47
  268. package/src/types/index.ts +126 -126
  269. package/src/version.ts +1 -1
@@ -1,629 +1,629 @@
1
- .nt-billing-summary {
2
- display: grid;
3
- grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
4
- gap: var(--nt-space-4);
5
- min-width: 0;
6
- }
7
-
8
- .nt-billing-metric {
9
- display: flex;
10
- flex-direction: column;
11
- gap: var(--nt-space-2);
12
- min-width: 0;
13
- padding: var(--nt-space-4);
14
- border: 1px solid var(--nt-border-subtle);
15
- border-radius: var(--nt-radius-card);
16
- background: var(--nt-bg-surface);
17
- color: var(--nt-text-primary);
18
- box-shadow: var(--nt-elevation-card);
19
- }
20
-
21
- .nt-billing-metric__label {
22
- color: var(--nt-text-muted);
23
- font: var(--nt-text-label-xs);
24
- letter-spacing: var(--nt-letter-spacing-label);
25
- text-transform: uppercase;
26
- }
27
-
28
- .nt-billing-metric__value {
29
- color: var(--nt-text-primary);
30
- font: var(--nt-text-title-md);
31
- letter-spacing: var(--nt-letter-spacing-title);
32
- font-variant-numeric: tabular-nums;
33
- }
34
-
35
- .nt-billing-metric__description {
36
- color: var(--nt-text-muted);
37
- font: var(--nt-text-caption);
38
- }
39
-
40
- .nt-billing-metric--success {
41
- border-color: var(--nt-success-border);
42
- background: var(--nt-success-bg);
43
- }
44
-
45
- .nt-billing-metric--warning {
46
- border-color: var(--nt-warning-border);
47
- background: var(--nt-warning-bg);
48
- }
49
-
50
- .nt-billing-metric--danger {
51
- border-color: var(--nt-danger-border);
52
- background: var(--nt-danger-bg);
53
- }
54
-
55
- .nt-billing-metric--info {
56
- border-color: var(--nt-info-border);
57
- background: var(--nt-info-bg);
58
- }
59
-
60
- /* Short tone bar above the label (Billing dashboard). Tone modifiers color
61
- * it; the neutral bar uses the strong border. */
62
- .nt-billing-metric__accent {
63
- display: block;
64
- inline-size: var(--nt-space-8);
65
- block-size: var(--nt-space-1);
66
- border-radius: var(--nt-radius-pill);
67
- background: var(--nt-border-strong);
68
- }
69
-
70
- .nt-billing-metric--success .nt-billing-metric__accent {
71
- background: var(--nt-success);
72
- }
73
-
74
- .nt-billing-metric--warning .nt-billing-metric__accent {
75
- background: var(--nt-warning);
76
- }
77
-
78
- .nt-billing-metric--danger .nt-billing-metric__accent {
79
- background: var(--nt-danger);
80
- }
81
-
82
- .nt-billing-metric--info .nt-billing-metric__accent {
83
- background: var(--nt-info);
84
- }
85
-
86
- /* Prominent: the headline figure of a finance dashboard. */
87
- .nt-billing-metric--prominent .nt-billing-metric__value {
88
- font-size: clamp(var(--nt-font-size-title-lg), calc(var(--nt-font-size-title-sm) + 1vw), var(--nt-font-size-heading-md));
89
- font-weight: var(--nt-font-weight-bold);
90
- line-height: var(--nt-line-height-heading-sm);
91
- }
92
-
93
- .nt-billing-document {
94
- display: flex;
95
- flex-direction: column;
96
- min-width: 0;
97
- overflow: hidden;
98
- border: 1px solid var(--nt-border-subtle);
99
- border-radius: var(--nt-radius-card);
100
- background: var(--nt-bg-surface);
101
- color: var(--nt-text-primary);
102
- box-shadow: var(--nt-elevation-card);
103
- }
104
-
105
- .nt-billing-document__header {
106
- display: flex;
107
- align-items: flex-start;
108
- justify-content: space-between;
109
- gap: var(--nt-space-4);
110
- padding: var(--nt-space-5);
111
- border-bottom: 1px solid var(--nt-border-subtle);
112
- }
113
-
114
- .nt-billing-document__header-main {
115
- display: flex;
116
- flex-direction: column;
117
- gap: var(--nt-space-1);
118
- min-width: 0;
119
- }
120
-
121
- .nt-billing-document__eyebrow {
122
- color: var(--nt-text-muted);
123
- font: var(--nt-text-label-xs);
124
- letter-spacing: var(--nt-letter-spacing-label);
125
- text-transform: uppercase;
126
- }
127
-
128
- .nt-billing-document__title-row {
129
- display: flex;
130
- flex-wrap: wrap;
131
- align-items: center;
132
- gap: var(--nt-space-2) var(--nt-space-3);
133
- min-width: 0;
134
- }
135
-
136
- .nt-billing-document__status {
137
- display: inline-flex;
138
- flex-wrap: wrap;
139
- align-items: center;
140
- gap: var(--nt-space-2);
141
- }
142
-
143
- .nt-billing-document__status:empty {
144
- display: none;
145
- }
146
-
147
- .nt-billing-document__title {
148
- margin: 0;
149
- color: var(--nt-text-primary);
150
- font: var(--nt-text-title-md);
151
- letter-spacing: var(--nt-letter-spacing-title);
152
- }
153
-
154
- .nt-billing-document__description {
155
- margin: 0;
156
- color: var(--nt-text-muted);
157
- font: var(--nt-text-body-sm);
158
- }
159
-
160
- .nt-billing-document__actions {
161
- display: inline-flex;
162
- align-items: center;
163
- justify-content: flex-end;
164
- gap: var(--nt-space-2);
165
- flex: 0 0 auto;
166
- }
167
-
168
- .nt-billing-document__body {
169
- display: flex;
170
- flex-direction: column;
171
- gap: var(--nt-space-5);
172
- min-width: 0;
173
- padding: var(--nt-space-5);
174
- }
175
-
176
- .nt-billing-document__section {
177
- display: flex;
178
- flex-direction: column;
179
- gap: var(--nt-space-3);
180
- min-width: 0;
181
- }
182
-
183
- .nt-billing-document__section-header {
184
- display: flex;
185
- align-items: center;
186
- justify-content: space-between;
187
- gap: var(--nt-space-3);
188
- min-width: 0;
189
- }
190
-
191
- .nt-billing-document__section-title {
192
- margin: 0;
193
- color: var(--nt-text-primary);
194
- font: var(--nt-text-label-md);
195
- letter-spacing: var(--nt-letter-spacing-label);
196
- }
197
-
198
- .nt-billing-document__section-description {
199
- margin: 0;
200
- color: var(--nt-text-muted);
201
- font: var(--nt-text-body-sm);
202
- }
203
-
204
- .nt-billing-document__footer {
205
- display: flex;
206
- align-items: center;
207
- justify-content: space-between;
208
- gap: var(--nt-space-3);
209
- padding: var(--nt-space-5);
210
- border-top: 1px solid var(--nt-border-subtle);
211
- background: var(--nt-bg-surface);
212
- }
213
-
214
- .nt-billing-document__footer-main,
215
- .nt-billing-document__footer-actions {
216
- display: inline-flex;
217
- align-items: center;
218
- gap: var(--nt-space-2);
219
- min-width: 0;
220
- }
221
-
222
- .nt-billing-document__footer-actions {
223
- justify-content: flex-end;
224
- flex: 0 0 auto;
225
- }
226
-
227
- .nt-billing-status {
228
- display: inline-flex;
229
- align-items: center;
230
- justify-content: center;
231
- gap: var(--nt-space-1);
232
- min-height: 1.5rem;
233
- padding: 0 var(--nt-space-2);
234
- border: 1px solid var(--nt-neutral-border);
235
- border-radius: var(--nt-radius-pill);
236
- background: var(--nt-neutral-bg);
237
- color: var(--nt-neutral-text);
238
- font: var(--nt-text-label-xs);
239
- letter-spacing: var(--nt-letter-spacing-label);
240
- white-space: nowrap;
241
- }
242
-
243
- .nt-billing-status__dot {
244
- display: inline-block;
245
- width: 0.375rem;
246
- height: 0.375rem;
247
- border-radius: var(--nt-radius-pill);
248
- background: currentColor;
249
- }
250
-
251
- .nt-billing-status--draft {
252
- border-color: var(--nt-neutral-border);
253
- background: var(--nt-neutral-bg);
254
- color: var(--nt-neutral-text);
255
- }
256
-
257
- .nt-billing-status--sent,
258
- .nt-billing-status--pending {
259
- border-color: var(--nt-warning-border);
260
- background: var(--nt-warning-bg);
261
- color: var(--nt-warning-text);
262
- }
263
-
264
- .nt-billing-status--accepted,
265
- .nt-billing-status--paid,
266
- .nt-billing-status--active {
267
- border-color: var(--nt-success-border);
268
- background: var(--nt-success-bg);
269
- color: var(--nt-success-text);
270
- }
271
-
272
- .nt-billing-status--overdue,
273
- .nt-billing-status--rejected,
274
- .nt-billing-status--cancelled {
275
- border-color: var(--nt-danger-border);
276
- background: var(--nt-danger-bg);
277
- color: var(--nt-danger-text);
278
- }
279
-
280
- /* Generic tones for workflow states outside the named set (partially paid,
281
- * credited, awaiting approval…). The status text carries the meaning. */
282
- .nt-billing-status--neutral {
283
- border-color: var(--nt-neutral-border);
284
- background: var(--nt-neutral-bg);
285
- color: var(--nt-neutral-text);
286
- }
287
-
288
- .nt-billing-status--info {
289
- border-color: var(--nt-info-border);
290
- background: var(--nt-info-bg);
291
- color: var(--nt-info-text);
292
- }
293
-
294
- .nt-billing-status--success {
295
- border-color: var(--nt-success-border);
296
- background: var(--nt-success-bg);
297
- color: var(--nt-success-text);
298
- }
299
-
300
- .nt-billing-status--warning {
301
- border-color: var(--nt-warning-border);
302
- background: var(--nt-warning-bg);
303
- color: var(--nt-warning-text);
304
- }
305
-
306
- .nt-billing-status--danger {
307
- border-color: var(--nt-danger-border);
308
- background: var(--nt-danger-bg);
309
- color: var(--nt-danger-text);
310
- }
311
-
312
- .nt-billing-amount-list {
313
- display: flex;
314
- flex-direction: column;
315
- gap: var(--nt-space-2);
316
- min-width: 0;
317
- }
318
-
319
- .nt-billing-amount-row {
320
- display: flex;
321
- align-items: center;
322
- justify-content: space-between;
323
- gap: var(--nt-space-3);
324
- min-width: 0;
325
- color: var(--nt-text-muted);
326
- font: var(--nt-text-body-sm);
327
- }
328
-
329
- .nt-billing-amount-row__label {
330
- min-width: 0;
331
- overflow: hidden;
332
- text-overflow: ellipsis;
333
- white-space: nowrap;
334
- }
335
-
336
- .nt-billing-amount-row__value {
337
- flex: 0 0 auto;
338
- color: var(--nt-text-primary);
339
- font-variant-numeric: tabular-nums;
340
- white-space: nowrap;
341
- }
342
-
343
- .nt-billing-amount-row--total {
344
- padding-block-start: var(--nt-space-3);
345
- border-top: 1px solid var(--nt-border-subtle);
346
- color: var(--nt-text-primary);
347
- font: var(--nt-text-label-md);
348
- letter-spacing: var(--nt-letter-spacing-label);
349
- }
350
-
351
- .nt-billing-amount-row__value {
352
- unicode-bidi: isolate;
353
- }
354
-
355
- /* Divided list: every row separated (totals card). */
356
- .nt-billing-amount-list--divided {
357
- gap: 0;
358
- }
359
-
360
- .nt-billing-amount-list--divided .nt-billing-amount-row {
361
- padding-block: var(--nt-space-3);
362
- border-block-end: 1px solid var(--nt-border-subtle);
363
- }
364
-
365
- .nt-billing-amount-list--divided .nt-billing-amount-row:first-child {
366
- padding-block-start: 0;
367
- }
368
-
369
- .nt-billing-amount-list--divided .nt-billing-amount-row:last-child {
370
- padding-block-end: 0;
371
- border-block-end: 0;
372
- }
373
-
374
- /* Grand total: the amount due, boxed so it reads first. */
375
- .nt-billing-amount-row--grand,
376
- .nt-billing-amount-list--divided .nt-billing-amount-row--grand,
377
- .nt-billing-amount-list--divided .nt-billing-amount-row--grand:last-child {
378
- margin-block-start: var(--nt-space-2);
379
- padding: var(--nt-space-3) var(--nt-space-4);
380
- border: 1px solid var(--nt-border-interactive);
381
- border-radius: var(--nt-radius-item);
382
- background: var(--nt-bg-surface-muted);
383
- color: var(--nt-text-primary);
384
- font: var(--nt-text-label-lg);
385
- letter-spacing: var(--nt-letter-spacing-label);
386
- }
387
-
388
- .nt-billing-amount-row--grand .nt-billing-amount-row__value {
389
- font: var(--nt-text-title-md);
390
- font-variant-numeric: tabular-nums;
391
- }
392
-
393
- .nt-billing-amount-row--muted .nt-billing-amount-row__value {
394
- color: var(--nt-financial-neutral);
395
- }
396
-
397
- .nt-billing-amount-row--success .nt-billing-amount-row__value {
398
- color: var(--nt-financial-positive);
399
- }
400
-
401
- .nt-billing-amount-row--danger .nt-billing-amount-row__value {
402
- color: var(--nt-financial-negative);
403
- }
404
-
405
- .nt-billing-line-items {
406
- width: 100%;
407
- min-width: 0;
408
- overflow: auto;
409
- border: 1px solid var(--nt-border-subtle);
410
- border-radius: var(--nt-radius-card);
411
- background: var(--nt-bg-surface);
412
- }
413
-
414
- .nt-billing-line-items__table {
415
- width: 100%;
416
- min-width: 42rem;
417
- border-collapse: separate;
418
- border-spacing: 0;
419
- color: var(--nt-text-primary);
420
- font: var(--nt-text-body-sm);
421
- }
422
-
423
- .nt-billing-line-items__table th,
424
- .nt-billing-line-items__table td {
425
- padding: var(--nt-space-3) var(--nt-space-4);
426
- border-bottom: 1px solid var(--nt-border-subtle);
427
- text-align: start;
428
- vertical-align: middle;
429
- }
430
-
431
- .nt-billing-line-items__table th {
432
- background: var(--nt-bg-surface-muted);
433
- color: var(--nt-text-muted);
434
- font: var(--nt-text-label-xs);
435
- letter-spacing: var(--nt-letter-spacing-label);
436
- text-transform: uppercase;
437
- white-space: nowrap;
438
- }
439
-
440
- .nt-billing-line-items__table tbody tr:last-child td {
441
- border-bottom: 0;
442
- }
443
-
444
- .nt-billing-line-items__cell--numeric {
445
- text-align: end;
446
- font-variant-numeric: tabular-nums;
447
- white-space: nowrap;
448
- }
449
-
450
- .nt-billing-line-items__cell--truncate {
451
- max-width: 18rem;
452
- overflow: hidden;
453
- text-overflow: ellipsis;
454
- white-space: nowrap;
455
- }
456
-
457
- .nt-billing-payment-box {
458
- display: grid;
459
- grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
460
- gap: var(--nt-space-3);
461
- min-width: 0;
462
- padding: var(--nt-space-4);
463
- border: 1px solid var(--nt-border-subtle);
464
- border-radius: var(--nt-radius-card);
465
- background: var(--nt-bg-surface-muted);
466
- }
467
-
468
- .nt-billing-payment-box__item {
469
- display: flex;
470
- flex-direction: column;
471
- gap: var(--nt-space-1);
472
- min-width: 0;
473
- }
474
-
475
- .nt-billing-payment-box__label {
476
- color: var(--nt-text-muted);
477
- font: var(--nt-text-label-xs);
478
- letter-spacing: var(--nt-letter-spacing-label);
479
- text-transform: uppercase;
480
- }
481
-
482
- .nt-billing-payment-box__value {
483
- min-width: 0;
484
- overflow: hidden;
485
- color: var(--nt-text-primary);
486
- font: var(--nt-text-label-sm);
487
- letter-spacing: var(--nt-letter-spacing-label);
488
- text-overflow: ellipsis;
489
- white-space: nowrap;
490
- }
491
-
492
- .nt-billing-tax-note {
493
- display: flex;
494
- align-items: flex-start;
495
- gap: var(--nt-space-3);
496
- min-width: 0;
497
- padding: var(--nt-space-3);
498
- border: 1px solid var(--nt-warning-border);
499
- border-radius: var(--nt-radius-item);
500
- background: var(--nt-warning-bg);
501
- color: var(--nt-warning-text);
502
- }
503
-
504
- .nt-billing-tax-note__icon {
505
- display: inline-flex;
506
- align-items: center;
507
- justify-content: center;
508
- flex: 0 0 auto;
509
- width: 1.25rem;
510
- height: 1.25rem;
511
- }
512
-
513
- .nt-billing-tax-note__body {
514
- display: flex;
515
- flex-direction: column;
516
- gap: var(--nt-space-1);
517
- min-width: 0;
518
- }
519
-
520
- .nt-billing-tax-note__title {
521
- margin: 0;
522
- color: inherit;
523
- font: var(--nt-text-label-sm);
524
- letter-spacing: var(--nt-letter-spacing-label);
525
- }
526
-
527
- .nt-billing-tax-note__description {
528
- margin: 0;
529
- color: var(--nt-text-muted);
530
- font: var(--nt-text-body-sm);
531
- }
532
-
533
- .nt-billing-timeline {
534
- display: flex;
535
- flex-direction: column;
536
- gap: var(--nt-space-3);
537
- min-width: 0;
538
- }
539
-
540
- .nt-billing-timeline__item {
541
- display: grid;
542
- grid-template-columns: auto minmax(0, 1fr);
543
- gap: var(--nt-space-3);
544
- min-width: 0;
545
- }
546
-
547
- .nt-billing-timeline__marker {
548
- position: relative;
549
- display: inline-flex;
550
- justify-content: center;
551
- width: 1rem;
552
- }
553
-
554
- .nt-billing-timeline__marker::before {
555
- width: 0.625rem;
556
- height: 0.625rem;
557
- margin-block-start: var(--nt-space-1);
558
- border-radius: var(--nt-radius-pill);
559
- background: var(--nt-text-muted);
560
- content: '';
561
- }
562
-
563
- .nt-billing-timeline__item--success .nt-billing-timeline__marker::before {
564
- background: var(--nt-success);
565
- }
566
-
567
- .nt-billing-timeline__item--warning .nt-billing-timeline__marker::before {
568
- background: var(--nt-warning);
569
- }
570
-
571
- .nt-billing-timeline__item--danger .nt-billing-timeline__marker::before {
572
- background: var(--nt-danger);
573
- }
574
-
575
- .nt-billing-timeline__body {
576
- display: flex;
577
- flex-direction: column;
578
- gap: var(--nt-space-1);
579
- min-width: 0;
580
- }
581
-
582
- .nt-billing-timeline__title {
583
- margin: 0;
584
- color: var(--nt-text-primary);
585
- font: var(--nt-text-label-sm);
586
- letter-spacing: var(--nt-letter-spacing-label);
587
- }
588
-
589
- .nt-billing-timeline__meta {
590
- color: var(--nt-text-muted);
591
- font: var(--nt-text-caption);
592
- font-variant-numeric: tabular-nums;
593
- }
594
-
595
- .nt-billing-document--compact .nt-billing-document__header,
596
- .nt-billing-document--compact .nt-billing-document__body,
597
- .nt-billing-document--compact .nt-billing-document__footer {
598
- padding: var(--nt-space-3);
599
- }
600
-
601
- .nt-billing-document--flat,
602
- .nt-billing-metric--flat {
603
- box-shadow: none;
604
- }
605
-
606
- .nt-billing-document--ghost,
607
- .nt-billing-metric--ghost {
608
- border-color: transparent;
609
- background: transparent;
610
- box-shadow: none;
611
- }
612
-
613
- @media (max-width: 40rem) {
614
- .nt-billing-document__header,
615
- .nt-billing-document__footer,
616
- .nt-billing-document__section-header {
617
- flex-direction: column;
618
- align-items: stretch;
619
- }
620
-
621
- .nt-billing-document__actions,
622
- .nt-billing-document__footer-actions {
623
- justify-content: flex-start;
624
- }
625
-
626
- .nt-billing-payment-box {
627
- grid-template-columns: 1fr;
628
- }
629
- }
1
+ .nt-billing-summary {
2
+ display: grid;
3
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
4
+ gap: var(--nt-space-4);
5
+ min-width: 0;
6
+ }
7
+
8
+ .nt-billing-metric {
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: var(--nt-space-2);
12
+ min-width: 0;
13
+ padding: var(--nt-space-4);
14
+ border: 1px solid var(--nt-border-subtle);
15
+ border-radius: var(--nt-radius-card);
16
+ background: var(--nt-bg-surface);
17
+ color: var(--nt-text-primary);
18
+ box-shadow: var(--nt-elevation-card);
19
+ }
20
+
21
+ .nt-billing-metric__label {
22
+ color: var(--nt-text-muted);
23
+ font: var(--nt-text-label-xs);
24
+ letter-spacing: var(--nt-letter-spacing-label);
25
+ text-transform: uppercase;
26
+ }
27
+
28
+ .nt-billing-metric__value {
29
+ color: var(--nt-text-primary);
30
+ font: var(--nt-text-title-md);
31
+ letter-spacing: var(--nt-letter-spacing-title);
32
+ font-variant-numeric: tabular-nums;
33
+ }
34
+
35
+ .nt-billing-metric__description {
36
+ color: var(--nt-text-muted);
37
+ font: var(--nt-text-caption);
38
+ }
39
+
40
+ .nt-billing-metric--success {
41
+ border-color: var(--nt-success-border);
42
+ background: var(--nt-success-bg);
43
+ }
44
+
45
+ .nt-billing-metric--warning {
46
+ border-color: var(--nt-warning-border);
47
+ background: var(--nt-warning-bg);
48
+ }
49
+
50
+ .nt-billing-metric--danger {
51
+ border-color: var(--nt-danger-border);
52
+ background: var(--nt-danger-bg);
53
+ }
54
+
55
+ .nt-billing-metric--info {
56
+ border-color: var(--nt-info-border);
57
+ background: var(--nt-info-bg);
58
+ }
59
+
60
+ /* Short tone bar above the label (Billing dashboard). Tone modifiers color
61
+ * it; the neutral bar uses the strong border. */
62
+ .nt-billing-metric__accent {
63
+ display: block;
64
+ inline-size: var(--nt-space-8);
65
+ block-size: var(--nt-space-1);
66
+ border-radius: var(--nt-radius-pill);
67
+ background: var(--nt-border-strong);
68
+ }
69
+
70
+ .nt-billing-metric--success .nt-billing-metric__accent {
71
+ background: var(--nt-success);
72
+ }
73
+
74
+ .nt-billing-metric--warning .nt-billing-metric__accent {
75
+ background: var(--nt-warning);
76
+ }
77
+
78
+ .nt-billing-metric--danger .nt-billing-metric__accent {
79
+ background: var(--nt-danger);
80
+ }
81
+
82
+ .nt-billing-metric--info .nt-billing-metric__accent {
83
+ background: var(--nt-info);
84
+ }
85
+
86
+ /* Prominent: the headline figure of a finance dashboard. */
87
+ .nt-billing-metric--prominent .nt-billing-metric__value {
88
+ font-size: clamp(var(--nt-font-size-title-lg), calc(var(--nt-font-size-title-sm) + 1vw), var(--nt-font-size-heading-md));
89
+ font-weight: var(--nt-font-weight-bold);
90
+ line-height: var(--nt-line-height-heading-sm);
91
+ }
92
+
93
+ .nt-billing-document {
94
+ display: flex;
95
+ flex-direction: column;
96
+ min-width: 0;
97
+ overflow: hidden;
98
+ border: 1px solid var(--nt-border-subtle);
99
+ border-radius: var(--nt-radius-card);
100
+ background: var(--nt-bg-surface);
101
+ color: var(--nt-text-primary);
102
+ box-shadow: var(--nt-elevation-card);
103
+ }
104
+
105
+ .nt-billing-document__header {
106
+ display: flex;
107
+ align-items: flex-start;
108
+ justify-content: space-between;
109
+ gap: var(--nt-space-4);
110
+ padding: var(--nt-space-5);
111
+ border-bottom: 1px solid var(--nt-border-subtle);
112
+ }
113
+
114
+ .nt-billing-document__header-main {
115
+ display: flex;
116
+ flex-direction: column;
117
+ gap: var(--nt-space-1);
118
+ min-width: 0;
119
+ }
120
+
121
+ .nt-billing-document__eyebrow {
122
+ color: var(--nt-text-muted);
123
+ font: var(--nt-text-label-xs);
124
+ letter-spacing: var(--nt-letter-spacing-label);
125
+ text-transform: uppercase;
126
+ }
127
+
128
+ .nt-billing-document__title-row {
129
+ display: flex;
130
+ flex-wrap: wrap;
131
+ align-items: center;
132
+ gap: var(--nt-space-2) var(--nt-space-3);
133
+ min-width: 0;
134
+ }
135
+
136
+ .nt-billing-document__status {
137
+ display: inline-flex;
138
+ flex-wrap: wrap;
139
+ align-items: center;
140
+ gap: var(--nt-space-2);
141
+ }
142
+
143
+ .nt-billing-document__status:empty {
144
+ display: none;
145
+ }
146
+
147
+ .nt-billing-document__title {
148
+ margin: 0;
149
+ color: var(--nt-text-primary);
150
+ font: var(--nt-text-title-md);
151
+ letter-spacing: var(--nt-letter-spacing-title);
152
+ }
153
+
154
+ .nt-billing-document__description {
155
+ margin: 0;
156
+ color: var(--nt-text-muted);
157
+ font: var(--nt-text-body-sm);
158
+ }
159
+
160
+ .nt-billing-document__actions {
161
+ display: inline-flex;
162
+ align-items: center;
163
+ justify-content: flex-end;
164
+ gap: var(--nt-space-2);
165
+ flex: 0 0 auto;
166
+ }
167
+
168
+ .nt-billing-document__body {
169
+ display: flex;
170
+ flex-direction: column;
171
+ gap: var(--nt-space-5);
172
+ min-width: 0;
173
+ padding: var(--nt-space-5);
174
+ }
175
+
176
+ .nt-billing-document__section {
177
+ display: flex;
178
+ flex-direction: column;
179
+ gap: var(--nt-space-3);
180
+ min-width: 0;
181
+ }
182
+
183
+ .nt-billing-document__section-header {
184
+ display: flex;
185
+ align-items: center;
186
+ justify-content: space-between;
187
+ gap: var(--nt-space-3);
188
+ min-width: 0;
189
+ }
190
+
191
+ .nt-billing-document__section-title {
192
+ margin: 0;
193
+ color: var(--nt-text-primary);
194
+ font: var(--nt-text-label-md);
195
+ letter-spacing: var(--nt-letter-spacing-label);
196
+ }
197
+
198
+ .nt-billing-document__section-description {
199
+ margin: 0;
200
+ color: var(--nt-text-muted);
201
+ font: var(--nt-text-body-sm);
202
+ }
203
+
204
+ .nt-billing-document__footer {
205
+ display: flex;
206
+ align-items: center;
207
+ justify-content: space-between;
208
+ gap: var(--nt-space-3);
209
+ padding: var(--nt-space-5);
210
+ border-top: 1px solid var(--nt-border-subtle);
211
+ background: var(--nt-bg-surface);
212
+ }
213
+
214
+ .nt-billing-document__footer-main,
215
+ .nt-billing-document__footer-actions {
216
+ display: inline-flex;
217
+ align-items: center;
218
+ gap: var(--nt-space-2);
219
+ min-width: 0;
220
+ }
221
+
222
+ .nt-billing-document__footer-actions {
223
+ justify-content: flex-end;
224
+ flex: 0 0 auto;
225
+ }
226
+
227
+ .nt-billing-status {
228
+ display: inline-flex;
229
+ align-items: center;
230
+ justify-content: center;
231
+ gap: var(--nt-space-1);
232
+ min-height: 1.5rem;
233
+ padding: 0 var(--nt-space-2);
234
+ border: 1px solid var(--nt-neutral-border);
235
+ border-radius: var(--nt-radius-pill);
236
+ background: var(--nt-neutral-bg);
237
+ color: var(--nt-neutral-text);
238
+ font: var(--nt-text-label-xs);
239
+ letter-spacing: var(--nt-letter-spacing-label);
240
+ white-space: nowrap;
241
+ }
242
+
243
+ .nt-billing-status__dot {
244
+ display: inline-block;
245
+ width: 0.375rem;
246
+ height: 0.375rem;
247
+ border-radius: var(--nt-radius-pill);
248
+ background: currentColor;
249
+ }
250
+
251
+ .nt-billing-status--draft {
252
+ border-color: var(--nt-neutral-border);
253
+ background: var(--nt-neutral-bg);
254
+ color: var(--nt-neutral-text);
255
+ }
256
+
257
+ .nt-billing-status--sent,
258
+ .nt-billing-status--pending {
259
+ border-color: var(--nt-warning-border);
260
+ background: var(--nt-warning-bg);
261
+ color: var(--nt-warning-text);
262
+ }
263
+
264
+ .nt-billing-status--accepted,
265
+ .nt-billing-status--paid,
266
+ .nt-billing-status--active {
267
+ border-color: var(--nt-success-border);
268
+ background: var(--nt-success-bg);
269
+ color: var(--nt-success-text);
270
+ }
271
+
272
+ .nt-billing-status--overdue,
273
+ .nt-billing-status--rejected,
274
+ .nt-billing-status--cancelled {
275
+ border-color: var(--nt-danger-border);
276
+ background: var(--nt-danger-bg);
277
+ color: var(--nt-danger-text);
278
+ }
279
+
280
+ /* Generic tones for workflow states outside the named set (partially paid,
281
+ * credited, awaiting approval…). The status text carries the meaning. */
282
+ .nt-billing-status--neutral {
283
+ border-color: var(--nt-neutral-border);
284
+ background: var(--nt-neutral-bg);
285
+ color: var(--nt-neutral-text);
286
+ }
287
+
288
+ .nt-billing-status--info {
289
+ border-color: var(--nt-info-border);
290
+ background: var(--nt-info-bg);
291
+ color: var(--nt-info-text);
292
+ }
293
+
294
+ .nt-billing-status--success {
295
+ border-color: var(--nt-success-border);
296
+ background: var(--nt-success-bg);
297
+ color: var(--nt-success-text);
298
+ }
299
+
300
+ .nt-billing-status--warning {
301
+ border-color: var(--nt-warning-border);
302
+ background: var(--nt-warning-bg);
303
+ color: var(--nt-warning-text);
304
+ }
305
+
306
+ .nt-billing-status--danger {
307
+ border-color: var(--nt-danger-border);
308
+ background: var(--nt-danger-bg);
309
+ color: var(--nt-danger-text);
310
+ }
311
+
312
+ .nt-billing-amount-list {
313
+ display: flex;
314
+ flex-direction: column;
315
+ gap: var(--nt-space-2);
316
+ min-width: 0;
317
+ }
318
+
319
+ .nt-billing-amount-row {
320
+ display: flex;
321
+ align-items: center;
322
+ justify-content: space-between;
323
+ gap: var(--nt-space-3);
324
+ min-width: 0;
325
+ color: var(--nt-text-muted);
326
+ font: var(--nt-text-body-sm);
327
+ }
328
+
329
+ .nt-billing-amount-row__label {
330
+ min-width: 0;
331
+ overflow: hidden;
332
+ text-overflow: ellipsis;
333
+ white-space: nowrap;
334
+ }
335
+
336
+ .nt-billing-amount-row__value {
337
+ flex: 0 0 auto;
338
+ color: var(--nt-text-primary);
339
+ font-variant-numeric: tabular-nums;
340
+ white-space: nowrap;
341
+ }
342
+
343
+ .nt-billing-amount-row--total {
344
+ padding-block-start: var(--nt-space-3);
345
+ border-top: 1px solid var(--nt-border-subtle);
346
+ color: var(--nt-text-primary);
347
+ font: var(--nt-text-label-md);
348
+ letter-spacing: var(--nt-letter-spacing-label);
349
+ }
350
+
351
+ .nt-billing-amount-row__value {
352
+ unicode-bidi: isolate;
353
+ }
354
+
355
+ /* Divided list: every row separated (totals card). */
356
+ .nt-billing-amount-list--divided {
357
+ gap: 0;
358
+ }
359
+
360
+ .nt-billing-amount-list--divided .nt-billing-amount-row {
361
+ padding-block: var(--nt-space-3);
362
+ border-block-end: 1px solid var(--nt-border-subtle);
363
+ }
364
+
365
+ .nt-billing-amount-list--divided .nt-billing-amount-row:first-child {
366
+ padding-block-start: 0;
367
+ }
368
+
369
+ .nt-billing-amount-list--divided .nt-billing-amount-row:last-child {
370
+ padding-block-end: 0;
371
+ border-block-end: 0;
372
+ }
373
+
374
+ /* Grand total: the amount due, boxed so it reads first. */
375
+ .nt-billing-amount-row--grand,
376
+ .nt-billing-amount-list--divided .nt-billing-amount-row--grand,
377
+ .nt-billing-amount-list--divided .nt-billing-amount-row--grand:last-child {
378
+ margin-block-start: var(--nt-space-2);
379
+ padding: var(--nt-space-3) var(--nt-space-4);
380
+ border: 1px solid var(--nt-border-interactive);
381
+ border-radius: var(--nt-radius-item);
382
+ background: var(--nt-bg-surface-muted);
383
+ color: var(--nt-text-primary);
384
+ font: var(--nt-text-label-lg);
385
+ letter-spacing: var(--nt-letter-spacing-label);
386
+ }
387
+
388
+ .nt-billing-amount-row--grand .nt-billing-amount-row__value {
389
+ font: var(--nt-text-title-md);
390
+ font-variant-numeric: tabular-nums;
391
+ }
392
+
393
+ .nt-billing-amount-row--muted .nt-billing-amount-row__value {
394
+ color: var(--nt-financial-neutral);
395
+ }
396
+
397
+ .nt-billing-amount-row--success .nt-billing-amount-row__value {
398
+ color: var(--nt-financial-positive);
399
+ }
400
+
401
+ .nt-billing-amount-row--danger .nt-billing-amount-row__value {
402
+ color: var(--nt-financial-negative);
403
+ }
404
+
405
+ .nt-billing-line-items {
406
+ width: 100%;
407
+ min-width: 0;
408
+ overflow: auto;
409
+ border: 1px solid var(--nt-border-subtle);
410
+ border-radius: var(--nt-radius-card);
411
+ background: var(--nt-bg-surface);
412
+ }
413
+
414
+ .nt-billing-line-items__table {
415
+ width: 100%;
416
+ min-width: 42rem;
417
+ border-collapse: separate;
418
+ border-spacing: 0;
419
+ color: var(--nt-text-primary);
420
+ font: var(--nt-text-body-sm);
421
+ }
422
+
423
+ .nt-billing-line-items__table th,
424
+ .nt-billing-line-items__table td {
425
+ padding: var(--nt-space-3) var(--nt-space-4);
426
+ border-bottom: 1px solid var(--nt-border-subtle);
427
+ text-align: start;
428
+ vertical-align: middle;
429
+ }
430
+
431
+ .nt-billing-line-items__table th {
432
+ background: var(--nt-bg-surface-muted);
433
+ color: var(--nt-text-muted);
434
+ font: var(--nt-text-label-xs);
435
+ letter-spacing: var(--nt-letter-spacing-label);
436
+ text-transform: uppercase;
437
+ white-space: nowrap;
438
+ }
439
+
440
+ .nt-billing-line-items__table tbody tr:last-child td {
441
+ border-bottom: 0;
442
+ }
443
+
444
+ .nt-billing-line-items__cell--numeric {
445
+ text-align: end;
446
+ font-variant-numeric: tabular-nums;
447
+ white-space: nowrap;
448
+ }
449
+
450
+ .nt-billing-line-items__cell--truncate {
451
+ max-width: 18rem;
452
+ overflow: hidden;
453
+ text-overflow: ellipsis;
454
+ white-space: nowrap;
455
+ }
456
+
457
+ .nt-billing-payment-box {
458
+ display: grid;
459
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
460
+ gap: var(--nt-space-3);
461
+ min-width: 0;
462
+ padding: var(--nt-space-4);
463
+ border: 1px solid var(--nt-border-subtle);
464
+ border-radius: var(--nt-radius-card);
465
+ background: var(--nt-bg-surface-muted);
466
+ }
467
+
468
+ .nt-billing-payment-box__item {
469
+ display: flex;
470
+ flex-direction: column;
471
+ gap: var(--nt-space-1);
472
+ min-width: 0;
473
+ }
474
+
475
+ .nt-billing-payment-box__label {
476
+ color: var(--nt-text-muted);
477
+ font: var(--nt-text-label-xs);
478
+ letter-spacing: var(--nt-letter-spacing-label);
479
+ text-transform: uppercase;
480
+ }
481
+
482
+ .nt-billing-payment-box__value {
483
+ min-width: 0;
484
+ overflow: hidden;
485
+ color: var(--nt-text-primary);
486
+ font: var(--nt-text-label-sm);
487
+ letter-spacing: var(--nt-letter-spacing-label);
488
+ text-overflow: ellipsis;
489
+ white-space: nowrap;
490
+ }
491
+
492
+ .nt-billing-tax-note {
493
+ display: flex;
494
+ align-items: flex-start;
495
+ gap: var(--nt-space-3);
496
+ min-width: 0;
497
+ padding: var(--nt-space-3);
498
+ border: 1px solid var(--nt-warning-border);
499
+ border-radius: var(--nt-radius-item);
500
+ background: var(--nt-warning-bg);
501
+ color: var(--nt-warning-text);
502
+ }
503
+
504
+ .nt-billing-tax-note__icon {
505
+ display: inline-flex;
506
+ align-items: center;
507
+ justify-content: center;
508
+ flex: 0 0 auto;
509
+ width: 1.25rem;
510
+ height: 1.25rem;
511
+ }
512
+
513
+ .nt-billing-tax-note__body {
514
+ display: flex;
515
+ flex-direction: column;
516
+ gap: var(--nt-space-1);
517
+ min-width: 0;
518
+ }
519
+
520
+ .nt-billing-tax-note__title {
521
+ margin: 0;
522
+ color: inherit;
523
+ font: var(--nt-text-label-sm);
524
+ letter-spacing: var(--nt-letter-spacing-label);
525
+ }
526
+
527
+ .nt-billing-tax-note__description {
528
+ margin: 0;
529
+ color: var(--nt-text-muted);
530
+ font: var(--nt-text-body-sm);
531
+ }
532
+
533
+ .nt-billing-timeline {
534
+ display: flex;
535
+ flex-direction: column;
536
+ gap: var(--nt-space-3);
537
+ min-width: 0;
538
+ }
539
+
540
+ .nt-billing-timeline__item {
541
+ display: grid;
542
+ grid-template-columns: auto minmax(0, 1fr);
543
+ gap: var(--nt-space-3);
544
+ min-width: 0;
545
+ }
546
+
547
+ .nt-billing-timeline__marker {
548
+ position: relative;
549
+ display: inline-flex;
550
+ justify-content: center;
551
+ width: 1rem;
552
+ }
553
+
554
+ .nt-billing-timeline__marker::before {
555
+ width: 0.625rem;
556
+ height: 0.625rem;
557
+ margin-block-start: var(--nt-space-1);
558
+ border-radius: var(--nt-radius-pill);
559
+ background: var(--nt-text-muted);
560
+ content: '';
561
+ }
562
+
563
+ .nt-billing-timeline__item--success .nt-billing-timeline__marker::before {
564
+ background: var(--nt-success);
565
+ }
566
+
567
+ .nt-billing-timeline__item--warning .nt-billing-timeline__marker::before {
568
+ background: var(--nt-warning);
569
+ }
570
+
571
+ .nt-billing-timeline__item--danger .nt-billing-timeline__marker::before {
572
+ background: var(--nt-danger);
573
+ }
574
+
575
+ .nt-billing-timeline__body {
576
+ display: flex;
577
+ flex-direction: column;
578
+ gap: var(--nt-space-1);
579
+ min-width: 0;
580
+ }
581
+
582
+ .nt-billing-timeline__title {
583
+ margin: 0;
584
+ color: var(--nt-text-primary);
585
+ font: var(--nt-text-label-sm);
586
+ letter-spacing: var(--nt-letter-spacing-label);
587
+ }
588
+
589
+ .nt-billing-timeline__meta {
590
+ color: var(--nt-text-muted);
591
+ font: var(--nt-text-caption);
592
+ font-variant-numeric: tabular-nums;
593
+ }
594
+
595
+ .nt-billing-document--compact .nt-billing-document__header,
596
+ .nt-billing-document--compact .nt-billing-document__body,
597
+ .nt-billing-document--compact .nt-billing-document__footer {
598
+ padding: var(--nt-space-3);
599
+ }
600
+
601
+ .nt-billing-document--flat,
602
+ .nt-billing-metric--flat {
603
+ box-shadow: none;
604
+ }
605
+
606
+ .nt-billing-document--ghost,
607
+ .nt-billing-metric--ghost {
608
+ border-color: transparent;
609
+ background: transparent;
610
+ box-shadow: none;
611
+ }
612
+
613
+ @media (max-width: 40rem) {
614
+ .nt-billing-document__header,
615
+ .nt-billing-document__footer,
616
+ .nt-billing-document__section-header {
617
+ flex-direction: column;
618
+ align-items: stretch;
619
+ }
620
+
621
+ .nt-billing-document__actions,
622
+ .nt-billing-document__footer-actions {
623
+ justify-content: flex-start;
624
+ }
625
+
626
+ .nt-billing-payment-box {
627
+ grid-template-columns: 1fr;
628
+ }
629
+ }