@booki-aui/styles 0.0.0-stage → 0.2.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 (66) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/LICENSE +21 -0
  3. package/README.md +14 -2
  4. package/dist/base.css +1 -0
  5. package/dist/booki.css +1 -0
  6. package/dist/controls/activity-timeline.css +1 -0
  7. package/dist/controls/aged-balances.css +1 -0
  8. package/dist/controls/aging-chart.css +1 -0
  9. package/dist/controls/audit-findings.css +1 -0
  10. package/dist/controls/audit-workpaper.css +1 -0
  11. package/dist/controls/bar-chart.css +1 -0
  12. package/dist/controls/cashflow-waterfall.css +1 -0
  13. package/dist/controls/client-requests.css +1 -0
  14. package/dist/controls/data-table.css +1 -0
  15. package/dist/controls/deal-pipeline.css +1 -0
  16. package/dist/controls/dialog-toast.css +1 -0
  17. package/dist/controls/document-signoff.css +1 -0
  18. package/dist/controls/evidence-list.css +1 -0
  19. package/dist/controls/expense-claim.css +1 -0
  20. package/dist/controls/fixed-asset-register.css +1 -0
  21. package/dist/controls/forecast-chart.css +1 -0
  22. package/dist/controls/funnel-chart.css +1 -0
  23. package/dist/controls/kpi-stat.css +1 -0
  24. package/dist/controls/ledger-table.css +1 -0
  25. package/dist/controls/payment-batch.css +1 -0
  26. package/dist/controls/picker.css +1 -0
  27. package/dist/controls/recurring-revenue.css +1 -0
  28. package/dist/controls/sheet-stack.css +1 -0
  29. package/dist/controls/stage-duration.css +1 -0
  30. package/dist/controls/supplier-invoice-inbox.css +1 -0
  31. package/dist/controls/trend-chart.css +1 -0
  32. package/dist/controls/vat-return.css +1 -0
  33. package/dist/css.d.ts +1 -0
  34. package/dist/layered.css +4 -0
  35. package/dist/shadcn.css +53 -0
  36. package/package.json +68 -3
  37. package/src/agent.css +324 -0
  38. package/src/booki.css +1567 -0
  39. package/src/controls/activity-timeline.css +142 -0
  40. package/src/controls/aged-balances.css +260 -0
  41. package/src/controls/aging-chart.css +249 -0
  42. package/src/controls/audit-findings.css +177 -0
  43. package/src/controls/audit-workpaper.css +274 -0
  44. package/src/controls/bar-chart.css +218 -0
  45. package/src/controls/cashflow-waterfall.css +228 -0
  46. package/src/controls/client-requests.css +172 -0
  47. package/src/controls/data-table.css +250 -0
  48. package/src/controls/deal-pipeline.css +201 -0
  49. package/src/controls/dialog-toast.css +200 -0
  50. package/src/controls/document-signoff.css +82 -0
  51. package/src/controls/evidence-list.css +93 -0
  52. package/src/controls/expense-claim.css +204 -0
  53. package/src/controls/fixed-asset-register.css +291 -0
  54. package/src/controls/forecast-chart.css +203 -0
  55. package/src/controls/funnel-chart.css +144 -0
  56. package/src/controls/kpi-stat.css +92 -0
  57. package/src/controls/ledger-table.css +413 -0
  58. package/src/controls/payment-batch.css +122 -0
  59. package/src/controls/picker.css +327 -0
  60. package/src/controls/recurring-revenue.css +192 -0
  61. package/src/controls/sheet-stack.css +151 -0
  62. package/src/controls/stage-duration.css +163 -0
  63. package/src/controls/supplier-invoice-inbox.css +316 -0
  64. package/src/controls/trend-chart.css +292 -0
  65. package/src/controls/vat-return.css +177 -0
  66. package/src/shadcn.css +53 -0
package/src/booki.css ADDED
@@ -0,0 +1,1567 @@
1
+ /*
2
+ * Booki default look — Paper and Ink.
3
+ *
4
+ * Two readers use every screen: a person and an agent. People work on
5
+ * paper: near-white, ink-black type, hairlines, sharp small radii. What the
6
+ * machine reads (code, snapshots, tool calls, the agent's log) sits on ink.
7
+ * One signal colour, lime, means "an agent did this" and nothing else.
8
+ * Every colour is a token in OKLCH. Components never use a literal colour.
9
+ */
10
+
11
+ :root,
12
+ [data-bk-theme="light"] {
13
+ color-scheme: light;
14
+
15
+ /* Paper */
16
+ --bk-bg: oklch(0.973 0.003 100);
17
+ --bk-card: oklch(0.996 0.001 100);
18
+ --bk-muted: oklch(0.948 0.004 100);
19
+ --bk-wood: oklch(0.93 0.006 110); /* structure: table headers, captions, tags */
20
+ --bk-accent: oklch(0.948 0.008 262); /* selected row, hover, current step */
21
+
22
+ /* Type */
23
+ --bk-fg: oklch(0.19 0.012 262);
24
+ --bk-muted-fg: oklch(0.47 0.01 262);
25
+
26
+ /* Lines */
27
+ --bk-border: oklch(0.895 0.004 262);
28
+ --bk-border-strong: oklch(0.78 0.006 262);
29
+
30
+ /* Actions */
31
+ --bk-primary: oklch(0.19 0.012 262);
32
+ --bk-primary-fg: oklch(0.985 0.002 100);
33
+ --bk-brand: oklch(0.44 0.1 262); /* links and data marks */
34
+
35
+ /* The agent's colour. Fill only on paper; text on paper uses --bk-signal-ink. */
36
+ --bk-signal: oklch(0.9 0.19 118);
37
+ --bk-signal-fg: oklch(0.22 0.04 125);
38
+ --bk-signal-ink: oklch(0.45 0.13 128);
39
+ --bk-signal-tint: oklch(0.965 0.05 118); /* background of an agent proposal on paper */
40
+
41
+ /* Ink: what the machine reads */
42
+ --bk-ink: oklch(0.175 0.014 262);
43
+ --bk-ink-raised: oklch(0.215 0.016 262);
44
+ --bk-ink-fg: oklch(0.935 0.006 262);
45
+ --bk-ink-muted: oklch(0.69 0.012 262);
46
+ --bk-ink-border: oklch(0.3 0.014 262);
47
+ --bk-ink-danger: oklch(0.75 0.15 25);
48
+
49
+ /* Series on ink. Validated as a set against --bk-ink: lightness band,
50
+ chroma floor, colour-blind separation for every pair, contrast. */
51
+ --bk-chart-1: #4c82c6;
52
+ --bk-chart-2: #c95a8b;
53
+ --bk-chart-3: #8c9f13;
54
+
55
+ /* Series on paper, for the chart controls: blue, ochre, violet, rose,
56
+ rust, teal. Validated as a set (all pairs) against paper #f6f6f4 and
57
+ card #fefefd: lightness band, chroma floor, colour-blind and normal
58
+ separation for every pair, 3:1 contrast. Lime is the agent's and never
59
+ a series; gains and losses use --bk-success and --bk-danger. */
60
+ --bk-series-1: #4d83f8;
61
+ --bk-series-2: #a8881c;
62
+ --bk-series-3: #7240ae;
63
+ --bk-series-4: #c570a0;
64
+ --bk-series-5: #bd4213;
65
+ --bk-series-6: #12916b;
66
+ /* Past six series: one neutral "Other", never a repeated hue. */
67
+ --bk-series-other: var(--bk-muted-fg);
68
+
69
+ /* Meaning (kept apart from brand and signal) */
70
+ --bk-success: oklch(0.47 0.1 162);
71
+ --bk-danger: oklch(0.52 0.17 25);
72
+ --bk-danger-fg: oklch(0.97 0.012 25);
73
+ --bk-warning: oklch(0.64 0.14 65);
74
+
75
+ --bk-ring: var(--bk-fg);
76
+ --bk-selection: oklch(0.9 0.19 118 / 0.45);
77
+
78
+ /* Sharp and small. Nested radii: outer minus padding. */
79
+ --bk-radius-sm: 0.25rem;
80
+ --bk-radius: 0.375rem;
81
+ --bk-radius-lg: 0.5rem;
82
+
83
+ /* 40px with a mouse, 44px on touch (set below). */
84
+ --bk-control-h: 2.5rem;
85
+ --bk-control-px: 0.75rem;
86
+ --bk-gap: 0.5rem;
87
+ --bk-gap-lg: 0.875rem;
88
+
89
+ /* Depth: a ring and a breath of shadow. */
90
+ --bk-shadow-xs: 0 1px 1px oklch(0.19 0.012 262 / 0.03);
91
+ /* A field is a recess in the paper: a breath of shade along its top edge. */
92
+ --bk-shadow-recess: inset 0 1px 1.5px oklch(0.19 0.012 262 / 0.05);
93
+ /* Lift for small things that float over any content: the agent's pointer and label. */
94
+ --bk-shadow-float: 0 1px 2px oklch(0 0 0 / 0.2);
95
+ --bk-shadow-pointer: 0 1px 1.5px oklch(0 0 0 / 0.35);
96
+ --bk-shadow-sm: 0 0 0 1px oklch(0.19 0.012 262 / 0.08), 0 1px 2px oklch(0.19 0.012 262 / 0.04);
97
+ --bk-shadow-md:
98
+ 0 0 0 1px oklch(0.19 0.012 262 / 0.08), 0 2px 4px oklch(0.19 0.012 262 / 0.04),
99
+ 0 16px 32px -16px oklch(0.19 0.012 262 / 0.18);
100
+
101
+ --bk-ease-out: cubic-bezier(0.32, 0.72, 0, 1);
102
+ --bk-duration: 150ms;
103
+
104
+ --bk-font: "Albert Sans Variable", "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
105
+ --bk-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
106
+ --bk-font-weight-medium: 500;
107
+ --bk-font-weight-semibold: 600;
108
+ }
109
+
110
+ /*
111
+ * Night theme, a person's dark mode. Opt in on any element:
112
+ * <div data-bk-theme="dark">. Built from the ink palette; the signal stays
113
+ * the agent's colour.
114
+ */
115
+ [data-bk-theme="dark"] {
116
+ color-scheme: dark;
117
+
118
+ --bk-bg: oklch(0.175 0.014 262);
119
+ --bk-card: oklch(0.215 0.016 262);
120
+ --bk-muted: oklch(0.245 0.016 262);
121
+ --bk-wood: oklch(0.27 0.016 262);
122
+ --bk-accent: oklch(0.27 0.018 262);
123
+ --bk-signal-tint: oklch(0.28 0.05 125);
124
+
125
+ --bk-fg: oklch(0.935 0.006 262);
126
+ --bk-muted-fg: oklch(0.71 0.012 262);
127
+
128
+ --bk-border: oklch(0.3 0.014 262);
129
+ --bk-border-strong: oklch(0.4 0.014 262);
130
+
131
+ --bk-primary: oklch(0.935 0.006 262);
132
+ --bk-primary-fg: oklch(0.175 0.014 262);
133
+ --bk-brand: oklch(0.76 0.09 262);
134
+ --bk-signal-ink: oklch(0.88 0.18 118);
135
+
136
+ /* Machine panels sit deeper than a Night page, so they still read as ink. */
137
+ --bk-ink: oklch(0.135 0.014 262);
138
+ --bk-ink-raised: oklch(0.185 0.016 262);
139
+
140
+ /* The same six series stepped for Night, validated as a set (all pairs)
141
+ against #0d1117 and the Night card #151a21. */
142
+ --bk-series-1: #6190f5;
143
+ --bk-series-2: #af9133;
144
+ --bk-series-3: #8a51d0;
145
+ --bk-series-4: #cf6fa6;
146
+ --bk-series-5: #c34d23;
147
+ --bk-series-6: #26926e;
148
+
149
+ --bk-success: oklch(0.74 0.12 162);
150
+ --bk-danger: oklch(0.72 0.15 25);
151
+ --bk-danger-fg: oklch(0.28 0.05 25);
152
+ --bk-warning: oklch(0.8 0.13 70);
153
+
154
+ --bk-selection: oklch(0.9 0.19 118 / 0.3);
155
+
156
+ /* Shadows cannot be seen on ink: collapse to a ring. */
157
+ --bk-shadow-xs: 0 0 0 0 transparent;
158
+ --bk-shadow-recess: inset 0 1px 1.5px oklch(0 0 0 / 0.3);
159
+ --bk-shadow-sm: 0 0 0 1px oklch(1 0 0 / 0.09);
160
+ --bk-shadow-md: 0 0 0 1px oklch(1 0 0 / 0.13);
161
+ }
162
+
163
+ /* ── Base text inside FIN surfaces ───────────────────────────────────── */
164
+
165
+ :where(
166
+ [data-slot^="amount"],
167
+ [data-slot^="bank"],
168
+ [data-slot^="payment"],
169
+ [data-slot^="voucher"],
170
+ [data-slot^="tax"],
171
+ [data-slot^="account"],
172
+ [data-slot^="currency"],
173
+ [data-slot^="organization"],
174
+ [data-slot^="iban"],
175
+ [data-slot^="financial"],
176
+ [data-slot^="invoice"],
177
+ [data-slot^="accounting"],
178
+ [data-slot^="attestation"],
179
+ [data-slot^="exception"],
180
+ [data-slot^="sca"],
181
+ [data-slot^="audit"],
182
+ [data-slot^="approval"],
183
+ [data-slot^="country"],
184
+ [data-slot^="money"]
185
+ ) {
186
+ font-family: var(--bk-font);
187
+ color: var(--bk-fg);
188
+ -webkit-font-smoothing: antialiased;
189
+ -moz-osx-font-smoothing: grayscale;
190
+ }
191
+
192
+ /* ── Shared form chrome ──────────────────────────────────────────────── */
193
+
194
+ :where([data-slot]) {
195
+ & :is(label) {
196
+ display: grid;
197
+ gap: 0.35rem;
198
+ font-size: 0.8125rem;
199
+ font-weight: var(--bk-font-weight-medium);
200
+ letter-spacing: -0.01em;
201
+ color: var(--bk-fg);
202
+ }
203
+
204
+ & :is(label) > :is(input, select, textarea, button) {
205
+ font-weight: 400;
206
+ }
207
+
208
+ /* :where keeps this rule at zero specificity. With :is, the long input:not()
209
+ chain outranked the select rule below and wiped its chevron and padding. */
210
+ &
211
+ :where(
212
+ input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not(
213
+ [type="submit"]
214
+ ):not([type="reset"]),
215
+ select,
216
+ textarea
217
+ ) {
218
+ box-sizing: border-box;
219
+ width: 100%;
220
+ min-height: var(--bk-control-h);
221
+ margin: 0;
222
+ padding: 0.4rem var(--bk-control-px);
223
+ border: 1px solid var(--bk-border);
224
+ border-radius: var(--bk-radius);
225
+ background: var(--bk-card);
226
+ color: var(--bk-fg);
227
+ font: inherit;
228
+ /* 16px so iOS does not zoom the page on focus; smaller only with a mouse. */
229
+ font-size: 1rem;
230
+ line-height: 1.25;
231
+ /* A field is a recess in the paper: a breath of shade along its top edge. */
232
+ box-shadow: var(--bk-shadow-recess), var(--bk-shadow-xs);
233
+ outline: none;
234
+ transition:
235
+ border-color var(--bk-duration) var(--bk-ease-out),
236
+ box-shadow var(--bk-duration) var(--bk-ease-out),
237
+ background-color var(--bk-duration) var(--bk-ease-out);
238
+ }
239
+
240
+ @media (pointer: fine) {
241
+ &
242
+ :where(
243
+ input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not(
244
+ [type="submit"]
245
+ ):not([type="reset"]),
246
+ select,
247
+ textarea
248
+ ) {
249
+ font-size: 0.875rem;
250
+ }
251
+ }
252
+ }
253
+
254
+ @media (pointer: coarse) {
255
+ :root {
256
+ --bk-control-h: 2.75rem;
257
+ }
258
+ }
259
+
260
+ :where([data-slot]) {
261
+ & select {
262
+ appearance: none;
263
+ padding-right: 2rem;
264
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
265
+ background-repeat: no-repeat;
266
+ background-position: right 0.6rem center;
267
+ background-size: 1rem;
268
+ }
269
+
270
+ & :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea)::placeholder {
271
+ color: color-mix(in srgb, var(--bk-muted-fg) 75%, transparent);
272
+ }
273
+
274
+ @media (hover: hover) and (pointer: fine) {
275
+ & :is(input, select, textarea):hover:not(:disabled):not(:focus-visible) {
276
+ border-color: var(--bk-border-strong);
277
+ }
278
+ }
279
+
280
+ & :is(input, select, textarea):focus-visible {
281
+ border-color: var(--bk-fg);
282
+ box-shadow:
283
+ var(--bk-shadow-recess),
284
+ 0 0 0 3px color-mix(in srgb, var(--bk-ring) 10%, transparent);
285
+ }
286
+
287
+ /* The native date picker's icon: quiet until wanted. */
288
+ & input[type="date"]::-webkit-calendar-picker-indicator {
289
+ opacity: 0.45;
290
+ cursor: pointer;
291
+ transition: opacity var(--bk-duration) var(--bk-ease-out);
292
+ }
293
+
294
+ @media (hover: hover) and (pointer: fine) {
295
+ & input[type="date"]:hover::-webkit-calendar-picker-indicator {
296
+ opacity: 0.9;
297
+ }
298
+ }
299
+
300
+ & :is(input, select, textarea)[aria-invalid="true"] {
301
+ border-color: color-mix(in srgb, var(--bk-danger) 55%, var(--bk-border));
302
+ }
303
+
304
+ & :is(input, select, textarea)[aria-invalid="true"]:focus-visible {
305
+ box-shadow:
306
+ var(--bk-shadow-xs),
307
+ 0 0 0 3px color-mix(in srgb, var(--bk-danger) 16%, transparent);
308
+ }
309
+
310
+ & :is(input, select, textarea, button):disabled {
311
+ opacity: 0.55;
312
+ cursor: not-allowed;
313
+ }
314
+ }
315
+
316
+ :where([data-slot]) button,
317
+ :where([data-slot="payment-confirm-actions"]) button,
318
+ :where([data-slot="sca-prompt-actions"]) button,
319
+ :where([data-slot="exception-banner-actions"]) button,
320
+ :where([data-slot="approval-gate-actions"]) button,
321
+ :where([data-slot="attestation-status-actions"]) button,
322
+ :where([data-slot="attestation-status-approve"]),
323
+ :where([data-slot="attestation-status-reject"]),
324
+ :where([data-slot="attestation-status-escalate"]),
325
+ :where([data-slot="country-toggle"]) button {
326
+ appearance: none;
327
+ box-sizing: border-box;
328
+ display: inline-flex;
329
+ align-items: center;
330
+ justify-content: center;
331
+ gap: 0.4rem;
332
+ min-height: var(--bk-control-h);
333
+ padding: 0.4rem 0.9rem;
334
+ border: 1px solid transparent;
335
+ border-radius: var(--bk-radius-sm);
336
+ background: var(--bk-primary);
337
+ color: var(--bk-primary-fg);
338
+ font: inherit;
339
+ font-size: 0.8125rem;
340
+ font-weight: var(--bk-font-weight-medium);
341
+ letter-spacing: -0.01em;
342
+ line-height: 1.2;
343
+ cursor: pointer;
344
+ transition:
345
+ background-color var(--bk-duration) var(--bk-ease-out),
346
+ border-color var(--bk-duration) var(--bk-ease-out),
347
+ color var(--bk-duration) var(--bk-ease-out),
348
+ box-shadow var(--bk-duration) var(--bk-ease-out),
349
+ transform var(--bk-duration) ease-out;
350
+ }
351
+
352
+ :where([data-slot]) button:focus-visible,
353
+ :where([data-slot="attestation-status-approve"]):focus-visible,
354
+ :where([data-slot="attestation-status-reject"]):focus-visible,
355
+ :where([data-slot="attestation-status-escalate"]):focus-visible {
356
+ outline: 2px solid var(--bk-ring);
357
+ outline-offset: 2px;
358
+ }
359
+
360
+ /* Zero specificity, like the base rule: a button that carries its own class
361
+ (a ui-sdk part, the host's own) keeps its look on hover. With plain
362
+ :where([data-slot]) button:hover this outranked every class and turned such
363
+ buttons into dark primaries with dark text. */
364
+ @media (hover: hover) and (pointer: fine) {
365
+ :where([data-slot] button:hover:not(:disabled)),
366
+ :where([data-slot="attestation-status-approve"]:hover:not(:disabled)) {
367
+ background: color-mix(in srgb, var(--bk-primary) 88%, var(--bk-primary-fg));
368
+ }
369
+ }
370
+
371
+ :where([data-slot] button:active:not(:disabled)),
372
+ :where([data-slot="attestation-status-approve"]:active:not(:disabled)),
373
+ :where([data-slot="attestation-status-reject"]:active:not(:disabled)),
374
+ :where([data-slot="attestation-status-escalate"]:active:not(:disabled)) {
375
+ transform: scale(0.97);
376
+ }
377
+
378
+ :where([data-slot]) button[data-variant="secondary"],
379
+ :where([data-slot="attestation-status-reject"]),
380
+ :where([data-slot="attestation-status-escalate"]) {
381
+ background: var(--bk-card);
382
+ border-color: var(--bk-border);
383
+ color: var(--bk-fg);
384
+ box-shadow: var(--bk-shadow-xs);
385
+ }
386
+
387
+ @media (hover: hover) and (pointer: fine) {
388
+ :where([data-slot]) button[data-variant="secondary"]:hover:not(:disabled),
389
+ :where([data-slot="attestation-status-reject"]):hover:not(:disabled),
390
+ :where([data-slot="attestation-status-escalate"]):hover:not(:disabled) {
391
+ background: var(--bk-muted);
392
+ border-color: var(--bk-border-strong);
393
+ }
394
+ }
395
+
396
+ /* A field: label, then the control, then its help line and error. The help
397
+ sits under the control, so fields side by side line up on label and box
398
+ whether or not they have help text. */
399
+ :where([data-slot="field"]) {
400
+ display: grid;
401
+ gap: 0.35rem;
402
+ align-content: start;
403
+ }
404
+
405
+ :where([data-slot="field"]) > [data-slot="field-description"] {
406
+ order: 2;
407
+ }
408
+
409
+ :where([data-slot="field"]) > [data-slot="field-error"] {
410
+ order: 3;
411
+ }
412
+
413
+ :where([data-slot]) {
414
+ /* Field description / error (ui-sdk Field children) */
415
+ & p {
416
+ margin: 0;
417
+ font-size: 0.75rem;
418
+ line-height: 1.4;
419
+ font-weight: 400;
420
+ color: var(--bk-muted-fg);
421
+ }
422
+
423
+ & [data-slot$="-error"],
424
+ & [role="alert"]:not([data-slot="exception-banner"]) {
425
+ margin: 0;
426
+ font-size: 0.8125rem;
427
+ color: var(--bk-danger);
428
+ }
429
+ }
430
+
431
+ /* ── Text link ───────────────────────────────────────────────────────── */
432
+
433
+ [data-slot="text-link"] {
434
+ display: inline-flex;
435
+ align-items: center;
436
+ gap: 0.375rem;
437
+ color: var(--bk-fg);
438
+ font-family: var(--bk-font);
439
+ font-weight: var(--bk-font-weight-medium);
440
+ text-decoration: underline;
441
+ text-decoration-thickness: 1px;
442
+ text-underline-offset: 0.25em;
443
+ text-decoration-color: var(--bk-border-strong);
444
+ transition:
445
+ text-decoration-color var(--bk-duration) var(--bk-ease-out),
446
+ color var(--bk-duration) var(--bk-ease-out);
447
+ }
448
+
449
+ /* With an icon the underline sits under the words only. */
450
+ [data-slot="text-link"][data-variant="icon"] {
451
+ text-decoration: none;
452
+ }
453
+
454
+ [data-slot="text-link"][data-variant="icon"] [data-slot="text-link-label"] {
455
+ text-decoration: underline;
456
+ text-decoration-thickness: 1px;
457
+ text-underline-offset: 0.25em;
458
+ text-decoration-color: var(--bk-border-strong);
459
+ transition: text-decoration-color var(--bk-duration) var(--bk-ease-out);
460
+ }
461
+
462
+ [data-slot="text-link-icon"] {
463
+ flex: none;
464
+ color: var(--bk-muted-fg);
465
+ transition: color var(--bk-duration) var(--bk-ease-out);
466
+ }
467
+
468
+ @media (hover: hover) and (pointer: fine) {
469
+ [data-slot="text-link"]:hover,
470
+ [data-slot="text-link"]:hover [data-slot="text-link-label"] {
471
+ text-decoration-color: var(--bk-fg);
472
+ }
473
+
474
+ [data-slot="text-link"]:hover [data-slot="text-link-icon"] {
475
+ color: var(--bk-fg);
476
+ }
477
+ }
478
+
479
+ [data-slot="text-link"]:focus-visible {
480
+ outline: 2px solid var(--bk-ring);
481
+ outline-offset: 3px;
482
+ border-radius: var(--bk-radius-sm);
483
+ }
484
+
485
+ /* ── Money / amounts ─────────────────────────────────────────────────── */
486
+
487
+ [data-slot="money-amount"] {
488
+ font-family: var(--bk-mono);
489
+ font-weight: var(--bk-font-weight-semibold);
490
+ font-variant-numeric: tabular-nums;
491
+ letter-spacing: -0.02em;
492
+ }
493
+
494
+ [data-slot="money-amount"][data-size="lg"] {
495
+ font-size: 1.75rem;
496
+ letter-spacing: -0.03em;
497
+ }
498
+
499
+ [data-slot="amount-input"],
500
+ [data-slot="amount-field"] {
501
+ display: grid;
502
+ gap: 0.35rem;
503
+ grid-template-columns: auto 1fr;
504
+ align-items: center;
505
+ padding: 0 0.15rem;
506
+ border: 1px solid var(--bk-border);
507
+ border-radius: var(--bk-radius);
508
+ background: var(--bk-card);
509
+ box-shadow: var(--bk-shadow-xs);
510
+ }
511
+
512
+ [data-slot="amount-input-currency"],
513
+ [data-slot="amount-field-currency"] {
514
+ margin-left: 0.55rem;
515
+ color: var(--bk-muted-fg);
516
+ font-family: var(--bk-mono);
517
+ font-size: 0.75rem;
518
+ font-weight: var(--bk-font-weight-medium);
519
+ letter-spacing: 0.04em;
520
+ text-transform: uppercase;
521
+ font-variant-numeric: tabular-nums;
522
+ }
523
+
524
+ [data-slot="amount-input"] input,
525
+ [data-slot="amount-field-input"],
526
+ [data-slot="amount-field"] input {
527
+ border: 0 !important;
528
+ box-shadow: none !important;
529
+ background: transparent !important;
530
+ /* Inside the root's 1px border: together they are one control high. */
531
+ min-height: calc(var(--bk-control-h) - 2px);
532
+ padding-block: 0;
533
+ font-family: var(--bk-mono);
534
+ font-size: 1.0625rem;
535
+ font-weight: var(--bk-font-weight-medium);
536
+ font-variant-numeric: tabular-nums;
537
+ letter-spacing: -0.02em;
538
+ }
539
+
540
+ [data-slot="amount-input"] input:focus-visible,
541
+ [data-slot="amount-field-input"]:focus-visible,
542
+ [data-slot="amount-field"] input:focus-visible {
543
+ box-shadow: none !important;
544
+ }
545
+
546
+ [data-slot="amount-input"]:focus-within,
547
+ [data-slot="amount-field"]:focus-within {
548
+ border-color: var(--bk-fg);
549
+ box-shadow:
550
+ var(--bk-shadow-xs),
551
+ 0 0 0 3px color-mix(in srgb, var(--bk-ring) 12%, transparent);
552
+ }
553
+
554
+ [data-slot="amount-input-error"] {
555
+ grid-column: 1 / -1;
556
+ margin: 0;
557
+ padding: 0 0.55rem 0.45rem;
558
+ color: var(--bk-danger);
559
+ font-size: 0.8125rem;
560
+ }
561
+
562
+ /* Closed pickers: see controls/picker.css. */
563
+
564
+ /* ── Bank / refs / ids ───────────────────────────────────────────────── */
565
+
566
+ [data-slot="bank-account-input"] {
567
+ display: grid;
568
+ gap: var(--bk-gap-lg);
569
+ }
570
+
571
+ @media (min-width: 640px) {
572
+ /* Two columns only for routing + account; one kontonummer takes the row. */
573
+ [data-slot="bank-account-input"][data-kind="routing-account"] {
574
+ grid-template-columns: 1fr 1fr;
575
+ }
576
+ }
577
+
578
+ [data-slot="organization-number-input"],
579
+ [data-slot="iban-input"],
580
+ [data-slot="financial-date-field"],
581
+ [data-slot="invoice-number-input"],
582
+ [data-slot="payment-reference-input"] {
583
+ display: grid;
584
+ gap: 0.35rem;
585
+ }
586
+
587
+ [data-slot="organization-number-field"],
588
+ [data-slot="iban-field"],
589
+ [data-slot="invoice-number-field"],
590
+ [data-slot="payment-reference-field"],
591
+ [data-slot="bank-account-kontonummer"],
592
+ [data-slot="bank-account-routing"],
593
+ [data-slot="bank-account-account"],
594
+ [data-slot="financial-date-control"],
595
+ [data-slot="accounting-period-control"] {
596
+ font-family: var(--bk-mono);
597
+ font-variant-numeric: tabular-nums;
598
+ letter-spacing: -0.01em;
599
+ }
600
+
601
+ /* ── Voucher ─────────────────────────────────────────────────────────── */
602
+
603
+ [data-slot="voucher-composer"] {
604
+ display: grid;
605
+ gap: var(--bk-gap-lg);
606
+ }
607
+
608
+ [data-slot="voucher-composer-status"] {
609
+ margin: 0;
610
+ padding: 0.55rem 0.75rem;
611
+ border-radius: var(--bk-radius-sm);
612
+ background: var(--bk-muted);
613
+ font-family: var(--bk-mono);
614
+ font-size: 0.75rem;
615
+ font-weight: var(--bk-font-weight-medium);
616
+ color: var(--bk-muted-fg);
617
+ font-variant-numeric: tabular-nums;
618
+ }
619
+
620
+ [data-slot="voucher-composer-issues"] {
621
+ margin: 0;
622
+ padding: 0.55rem 0.75rem 0.55rem 1.75rem;
623
+ border-radius: var(--bk-radius-sm);
624
+ background: color-mix(in srgb, var(--bk-warning) 10%, var(--bk-muted));
625
+ color: var(--bk-fg);
626
+ font-size: 0.8125rem;
627
+ line-height: 1.5;
628
+ }
629
+
630
+ [data-slot="voucher-composer"][data-balanced="true"] [data-slot="voucher-composer-status"] {
631
+ background: color-mix(in srgb, var(--bk-success) 10%, var(--bk-muted));
632
+ color: var(--bk-success);
633
+ }
634
+
635
+ [data-slot="voucher-composer"][data-balanced="false"] [data-slot="voucher-composer-status"] {
636
+ background: color-mix(in srgb, var(--bk-danger) 10%, var(--bk-muted));
637
+ color: var(--bk-danger);
638
+ }
639
+
640
+ [data-slot="voucher-lines"] {
641
+ overflow: hidden;
642
+ border: 1px solid var(--bk-border);
643
+ border-radius: var(--bk-radius-lg);
644
+ background: var(--bk-card);
645
+ box-shadow: var(--bk-shadow-sm);
646
+ }
647
+
648
+ [data-slot="voucher-lines-table"] {
649
+ width: 100%;
650
+ border-collapse: collapse;
651
+ font-size: 0.875rem;
652
+ }
653
+
654
+ [data-slot="voucher-lines-table"] th {
655
+ text-align: left;
656
+ padding: 0.65rem 0.9rem;
657
+ background: var(--bk-wood);
658
+ color: var(--bk-fg);
659
+ font-family: var(--bk-mono);
660
+ font-size: 0.6875rem;
661
+ font-weight: var(--bk-font-weight-medium);
662
+ letter-spacing: 0.06em;
663
+ text-transform: uppercase;
664
+ }
665
+
666
+ [data-slot="voucher-lines-table"] td {
667
+ padding: 0.8rem 0.9rem;
668
+ border-top: 1px solid var(--bk-border);
669
+ vertical-align: middle;
670
+ }
671
+
672
+ [data-slot="voucher-lines-table"] tbody tr {
673
+ transition: background-color var(--bk-duration) ease-out;
674
+ }
675
+
676
+ @media (hover: hover) and (pointer: fine) {
677
+ [data-slot="voucher-lines-table"] tbody tr:hover {
678
+ background: color-mix(in srgb, var(--bk-muted) 55%, transparent);
679
+ }
680
+ }
681
+
682
+ [data-slot="voucher-lines-table"] [data-align="end"] {
683
+ text-align: right;
684
+ font-family: var(--bk-mono);
685
+ font-variant-numeric: tabular-nums;
686
+ letter-spacing: -0.01em;
687
+ }
688
+
689
+ [data-slot="voucher-account"] {
690
+ font-family: var(--bk-mono);
691
+ font-weight: var(--bk-font-weight-medium);
692
+ font-variant-numeric: tabular-nums;
693
+ }
694
+
695
+ [data-slot="voucher-dims"] {
696
+ font-size: 0.75rem;
697
+ color: var(--bk-muted-fg);
698
+ }
699
+
700
+ [data-slot="voucher-lines"][data-editable="true"] tfoot td[data-align="end"] {
701
+ padding-right: calc(0.375rem + var(--bk-control-px) + 1px);
702
+ }
703
+
704
+ [data-slot="voucher-lines-table"] tfoot td {
705
+ background: color-mix(in srgb, var(--bk-muted) 70%, transparent);
706
+ font-weight: var(--bk-font-weight-semibold);
707
+ font-variant-numeric: tabular-nums;
708
+ }
709
+
710
+ /* ── Panels: payment / SCA / exception / approval ────────────────────── */
711
+
712
+ [data-slot="payment-confirm"],
713
+ [data-slot="sca-prompt"],
714
+ [data-slot="exception-banner"],
715
+ [data-slot="approval-gate-dialog"] {
716
+ display: grid;
717
+ gap: var(--bk-gap-lg);
718
+ padding: 1.25rem;
719
+ border: 1px solid var(--bk-border);
720
+ border-radius: var(--bk-radius-lg);
721
+ background: var(--bk-card);
722
+ box-shadow: var(--bk-shadow-md);
723
+ }
724
+
725
+ [data-slot="approval-gate"] {
726
+ display: inline-flex;
727
+ }
728
+
729
+ [data-slot="payment-confirm-label"] {
730
+ margin: 0 0 0.15rem;
731
+ font-size: 0.75rem;
732
+ font-weight: var(--bk-font-weight-medium);
733
+ letter-spacing: 0.04em;
734
+ text-transform: uppercase;
735
+ color: var(--bk-muted-fg);
736
+ }
737
+
738
+ [data-slot="payment-confirm-details"] {
739
+ display: grid;
740
+ gap: 0.55rem;
741
+ margin: 0;
742
+ padding: 0.85rem 1rem;
743
+ border-radius: var(--bk-radius);
744
+ background: var(--bk-muted);
745
+ font-size: 0.875rem;
746
+ }
747
+
748
+ [data-slot="payment-confirm-details"] div {
749
+ display: flex;
750
+ justify-content: space-between;
751
+ gap: 1rem;
752
+ }
753
+
754
+ [data-slot="payment-confirm-details"] dt {
755
+ color: var(--bk-muted-fg);
756
+ }
757
+
758
+ [data-slot="payment-confirm-details"] dd {
759
+ margin: 0;
760
+ font-family: var(--bk-mono);
761
+ font-weight: var(--bk-font-weight-semibold);
762
+ font-variant-numeric: tabular-nums;
763
+ }
764
+
765
+ [data-slot="payment-confirm-type"],
766
+ [data-slot="approval-gate-type"] {
767
+ display: grid;
768
+ gap: 0.4rem;
769
+ font-size: 0.875rem;
770
+ }
771
+
772
+ [data-slot="payment-confirm-actions"],
773
+ [data-slot="sca-prompt-actions"],
774
+ [data-slot="exception-banner-actions"],
775
+ [data-slot="approval-gate-actions"] {
776
+ display: flex;
777
+ justify-content: flex-end;
778
+ flex-wrap: wrap;
779
+ gap: 0.5rem;
780
+ margin-top: 0.25rem;
781
+ }
782
+
783
+ [data-slot="sca-prompt"] {
784
+ text-align: center;
785
+ background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--bk-muted) 80%, transparent), var(--bk-card));
786
+ }
787
+
788
+ [data-slot="sca-prompt-brand"] {
789
+ justify-self: center;
790
+ padding: 0.3rem 0.7rem;
791
+ border-radius: 999px;
792
+ background: var(--bk-fg);
793
+ color: var(--bk-primary-fg);
794
+ font-size: 0.6875rem;
795
+ font-weight: var(--bk-font-weight-semibold);
796
+ letter-spacing: 0.08em;
797
+ text-transform: uppercase;
798
+ font-family: var(--bk-mono);
799
+ }
800
+
801
+ [data-slot="sca-prompt-title"] {
802
+ margin: 0;
803
+ font-size: 1.125rem;
804
+ font-weight: var(--bk-font-weight-semibold);
805
+ letter-spacing: -0.02em;
806
+ }
807
+
808
+ [data-slot="sca-prompt-description"] {
809
+ margin: 0;
810
+ font-size: 0.875rem;
811
+ color: var(--bk-muted-fg);
812
+ line-height: 1.45;
813
+ }
814
+
815
+ [data-slot="sca-prompt-done"] {
816
+ margin: 0;
817
+ font-weight: var(--bk-font-weight-semibold);
818
+ color: var(--bk-success);
819
+ }
820
+
821
+ [data-slot="exception-banner"] {
822
+ border-color: color-mix(in srgb, var(--bk-danger) 28%, var(--bk-border));
823
+ background: linear-gradient(180deg, color-mix(in srgb, var(--bk-danger) 7%, var(--bk-card)), var(--bk-card));
824
+ }
825
+
826
+ [data-slot="exception-banner-title"] {
827
+ font-size: 0.9375rem;
828
+ font-weight: var(--bk-font-weight-semibold);
829
+ letter-spacing: -0.01em;
830
+ color: var(--bk-danger);
831
+ }
832
+
833
+ [data-slot="exception-banner-reason"] {
834
+ margin: 0;
835
+ font-size: 0.875rem;
836
+ line-height: 1.45;
837
+ color: var(--bk-fg);
838
+ }
839
+
840
+ [data-slot="approval-gate-summary"] {
841
+ padding: 0.85rem 1rem;
842
+ border-radius: var(--bk-radius);
843
+ background: var(--bk-muted);
844
+ font-size: 0.875rem;
845
+ line-height: 1.45;
846
+ }
847
+
848
+ /* ── Audit trail ─────────────────────────────────────────────────────── */
849
+
850
+ [data-slot="audit-trail"] {
851
+ list-style: none;
852
+ margin: 0;
853
+ padding: 0;
854
+ display: grid;
855
+ gap: 0.65rem;
856
+ }
857
+
858
+ [data-slot="audit-event"] {
859
+ padding: 0.85rem 1rem;
860
+ border: 1px solid var(--bk-border);
861
+ border-radius: var(--bk-radius);
862
+ background: var(--bk-card);
863
+ box-shadow: var(--bk-shadow-xs);
864
+ }
865
+
866
+ [data-slot="audit-event-header"] {
867
+ display: flex;
868
+ flex-wrap: wrap;
869
+ justify-content: space-between;
870
+ gap: 0.5rem;
871
+ font-weight: var(--bk-font-weight-semibold);
872
+ letter-spacing: -0.01em;
873
+ }
874
+
875
+ [data-slot="audit-event-header"] time {
876
+ font-family: var(--bk-mono);
877
+ font-size: 0.75rem;
878
+ font-weight: 400;
879
+ color: var(--bk-muted-fg);
880
+ font-variant-numeric: tabular-nums;
881
+ }
882
+
883
+ [data-slot="audit-event-body"] {
884
+ margin-top: 0.3rem;
885
+ font-size: 0.875rem;
886
+ line-height: 1.45;
887
+ color: var(--bk-muted-fg);
888
+ }
889
+
890
+ /* ── Country toggle ──────────────────────────────────────────────────── */
891
+
892
+ [data-slot="country-toggle"] {
893
+ display: inline-flex;
894
+ gap: 0.15rem;
895
+ padding: 0.2rem;
896
+ border: 1px solid var(--bk-border);
897
+ border-radius: var(--bk-radius);
898
+ background: var(--bk-muted);
899
+ box-shadow: var(--bk-shadow-xs);
900
+ }
901
+
902
+ [data-slot="country-toggle"] button {
903
+ min-height: 2rem;
904
+ padding: 0.35rem 0.7rem;
905
+ background: transparent;
906
+ color: var(--bk-muted-fg);
907
+ box-shadow: none;
908
+ transform: none;
909
+ }
910
+
911
+ [data-slot="country-toggle"] button:active:not(:disabled) {
912
+ transform: none;
913
+ }
914
+
915
+ [data-slot="country-toggle"] button[data-selected="true"] {
916
+ background: var(--bk-card);
917
+ color: var(--bk-fg);
918
+ box-shadow: var(--bk-shadow-xs);
919
+ }
920
+
921
+ [data-slot="country-toggle-code"] {
922
+ margin-right: 0.35rem;
923
+ font-family: var(--bk-mono);
924
+ font-size: 0.6875rem;
925
+ opacity: 0.7;
926
+ font-variant-numeric: tabular-nums;
927
+ }
928
+
929
+ /* ── Attestation ─────────────────────────────────────────────────────── */
930
+
931
+ [data-slot="attestation-status"] {
932
+ display: flex;
933
+ flex-wrap: wrap;
934
+ align-items: center;
935
+ gap: 0.75rem;
936
+ }
937
+
938
+ [data-slot="attestation-status-badge"] {
939
+ display: inline-flex;
940
+ align-items: center;
941
+ min-height: 1.75rem;
942
+ padding: 0.25rem 0.65rem;
943
+ border: 1px solid transparent;
944
+ border-radius: 999px;
945
+ background: var(--bk-muted);
946
+ color: var(--bk-muted-fg);
947
+ font-size: 0.75rem;
948
+ font-weight: var(--bk-font-weight-semibold);
949
+ letter-spacing: 0.01em;
950
+ }
951
+
952
+ [data-slot="attestation-status-badge"][data-status="pending"] {
953
+ border-color: var(--bk-border);
954
+ }
955
+
956
+ [data-slot="attestation-status-badge"][data-status="approved"] {
957
+ background: color-mix(in srgb, var(--bk-success) 12%, var(--bk-card));
958
+ color: var(--bk-success);
959
+ border-color: color-mix(in srgb, var(--bk-success) 22%, var(--bk-card));
960
+ }
961
+
962
+ [data-slot="attestation-status-badge"][data-status="rejected"],
963
+ [data-slot="attestation-status-badge"][data-status="escalated"] {
964
+ background: color-mix(in srgb, var(--bk-danger) 10%, var(--bk-card));
965
+ color: var(--bk-danger);
966
+ border-color: color-mix(in srgb, var(--bk-danger) 20%, var(--bk-card));
967
+ }
968
+
969
+ [data-slot="attestation-status-actions"] {
970
+ display: flex;
971
+ flex-wrap: wrap;
972
+ gap: 0.5rem;
973
+ }
974
+
975
+ [data-slot="attestation-status-approve"] {
976
+ background: var(--bk-primary);
977
+ border-color: var(--bk-primary);
978
+ color: var(--bk-primary-fg);
979
+ }
980
+
981
+ /* ── Bank reconciliation ─────────────────────────────────────────────── */
982
+
983
+ [data-slot="bank-reconciliation"] {
984
+ display: grid;
985
+ gap: var(--bk-gap-lg);
986
+ }
987
+
988
+ [data-slot="bank-reconciliation-status"] {
989
+ margin: 0;
990
+ padding: 0.55rem 0.75rem;
991
+ border-radius: var(--bk-radius-sm);
992
+ background: color-mix(in srgb, var(--bk-warning) 10%, var(--bk-muted));
993
+ font-family: var(--bk-mono);
994
+ font-size: 0.75rem;
995
+ font-weight: var(--bk-font-weight-medium);
996
+ font-variant-numeric: tabular-nums;
997
+ color: var(--bk-fg);
998
+ }
999
+
1000
+ [data-slot="bank-reconciliation"][data-reconciled="true"] [data-slot="bank-reconciliation-status"] {
1001
+ background: color-mix(in srgb, var(--bk-success) 10%, var(--bk-muted));
1002
+ color: var(--bk-success);
1003
+ }
1004
+
1005
+ [data-slot="bank-reconciliation-tables"] {
1006
+ display: grid;
1007
+ gap: var(--bk-gap-lg);
1008
+ }
1009
+
1010
+ @media (min-width: 768px) {
1011
+ [data-slot="bank-reconciliation-tables"] {
1012
+ grid-template-columns: 1fr 1fr;
1013
+ align-items: start;
1014
+ }
1015
+ }
1016
+
1017
+ [data-slot="bank-reconciliation-bank"],
1018
+ [data-slot="bank-reconciliation-ledger"] {
1019
+ min-width: 0;
1020
+ overflow-x: auto;
1021
+ border-radius: var(--bk-radius);
1022
+ background: var(--bk-card);
1023
+ box-shadow: var(--bk-shadow-sm);
1024
+ }
1025
+
1026
+ [data-slot="bank-reconciliation-table"] {
1027
+ width: 100%;
1028
+ border-collapse: collapse;
1029
+ font-size: 0.8125rem;
1030
+ }
1031
+
1032
+ [data-slot="bank-reconciliation-table"] caption {
1033
+ padding: 0.6rem 0.75rem;
1034
+ text-align: start;
1035
+ font-weight: var(--bk-font-weight-semibold);
1036
+ background: var(--bk-wood);
1037
+ }
1038
+
1039
+ [data-slot="bank-reconciliation-table"] th {
1040
+ padding: 0.45rem 0.75rem;
1041
+ text-align: start;
1042
+ font-family: var(--bk-mono);
1043
+ font-size: 0.6875rem;
1044
+ font-weight: var(--bk-font-weight-medium);
1045
+ letter-spacing: 0.06em;
1046
+ text-transform: uppercase;
1047
+ color: var(--bk-muted-fg);
1048
+ white-space: nowrap;
1049
+ }
1050
+
1051
+ [data-slot="bank-reconciliation-table"] td {
1052
+ padding: 0.3rem 0.75rem;
1053
+ border-top: 1px solid var(--bk-border);
1054
+ vertical-align: middle;
1055
+ }
1056
+
1057
+ [data-slot="bank-reconciliation-table"] [data-align="end"] {
1058
+ text-align: end;
1059
+ }
1060
+
1061
+ [data-slot="bank-reconciliation-table"] tr[data-selected="true"] {
1062
+ background: var(--bk-accent);
1063
+ }
1064
+
1065
+ /* The checkbox is small; its cell is the 44px target. */
1066
+ [data-slot="bank-reconciliation-table"] td:first-child {
1067
+ width: 2.75rem;
1068
+ padding: 0;
1069
+ }
1070
+
1071
+ [data-slot="bank-reconciliation-check"] {
1072
+ display: flex;
1073
+ align-items: center;
1074
+ justify-content: center;
1075
+ width: 2.75rem;
1076
+ height: 2.75rem;
1077
+ cursor: pointer;
1078
+ }
1079
+
1080
+ [data-slot="bank-reconciliation-check"] input {
1081
+ width: 1rem;
1082
+ height: 1rem;
1083
+ margin: 0;
1084
+ accent-color: var(--bk-primary);
1085
+ cursor: pointer;
1086
+ }
1087
+
1088
+ [data-slot="bank-reconciliation-date"],
1089
+ [data-slot="bank-reconciliation-amount"] {
1090
+ font-family: var(--bk-mono);
1091
+ font-variant-numeric: tabular-nums;
1092
+ white-space: nowrap;
1093
+ }
1094
+
1095
+ [data-slot="bank-reconciliation-empty"] {
1096
+ margin: 0;
1097
+ padding: 0.75rem;
1098
+ font-size: 0.8125rem;
1099
+ color: var(--bk-muted-fg);
1100
+ }
1101
+
1102
+ [data-slot="bank-reconciliation-bar"] {
1103
+ display: flex;
1104
+ flex-wrap: wrap;
1105
+ align-items: center;
1106
+ gap: var(--bk-gap-lg);
1107
+ }
1108
+
1109
+ [data-slot="bank-reconciliation-difference"] {
1110
+ margin: 0;
1111
+ font-size: 0.8125rem;
1112
+ font-variant-numeric: tabular-nums;
1113
+ color: var(--bk-muted-fg);
1114
+ }
1115
+
1116
+ [data-slot="bank-reconciliation-suggestions"] {
1117
+ display: grid;
1118
+ gap: var(--bk-gap);
1119
+ }
1120
+
1121
+ [data-slot="bank-reconciliation-suggestions"] h3 {
1122
+ margin: 0;
1123
+ font-size: 0.875rem;
1124
+ font-weight: var(--bk-font-weight-semibold);
1125
+ }
1126
+
1127
+ [data-slot="bank-reconciliation-suggestions"] ul {
1128
+ margin: 0;
1129
+ padding: 0;
1130
+ list-style: none;
1131
+ border-radius: var(--bk-radius);
1132
+ background: var(--bk-card);
1133
+ box-shadow: var(--bk-shadow-sm);
1134
+ }
1135
+
1136
+ [data-slot="bank-reconciliation-suggestions"] li {
1137
+ display: flex;
1138
+ flex-wrap: wrap;
1139
+ align-items: center;
1140
+ justify-content: space-between;
1141
+ gap: var(--bk-gap) var(--bk-gap-lg);
1142
+ padding: 0.6rem 0.75rem;
1143
+ font-size: 0.8125rem;
1144
+ }
1145
+
1146
+ [data-slot="bank-reconciliation-suggestions"] li + li {
1147
+ border-top: 1px solid var(--bk-border);
1148
+ }
1149
+
1150
+ [data-slot="bank-reconciliation-pair"] {
1151
+ display: flex;
1152
+ flex: 1 1 14rem;
1153
+ flex-wrap: wrap;
1154
+ gap: 0.4rem;
1155
+ min-width: 0;
1156
+ overflow-wrap: anywhere;
1157
+ }
1158
+
1159
+ [data-slot="bank-reconciliation-actions"] {
1160
+ display: flex;
1161
+ gap: var(--bk-gap);
1162
+ }
1163
+
1164
+ /* Pinned to the corner of its containing block: left at its static place, it
1165
+ sat wherever a wide table scrolled it, often outside every scroll box, and
1166
+ widened the whole page on a phone. */
1167
+ [data-slot="visually-hidden"] {
1168
+ position: absolute;
1169
+ top: 0;
1170
+ left: 0;
1171
+ width: 1px;
1172
+ height: 1px;
1173
+ overflow: hidden;
1174
+ clip-path: inset(50%);
1175
+ white-space: nowrap;
1176
+ }
1177
+
1178
+ /* ── Editable voucher and form states ── */
1179
+
1180
+ /* A wide table scrolls inside its frame instead of pushing the page. */
1181
+ [data-slot="voucher-lines"][data-editable="true"] {
1182
+ overflow-x: auto;
1183
+ }
1184
+
1185
+ [data-slot="voucher-lines"][data-editable="true"] td {
1186
+ padding: 0.4rem 0.375rem;
1187
+ }
1188
+
1189
+ [data-slot="voucher-lines"][data-editable="true"] :is(th, td):first-child {
1190
+ padding-left: 0.9rem;
1191
+ }
1192
+
1193
+ [data-slot="voucher-lines"][data-editable="true"] :is(th, td):last-child {
1194
+ padding-right: 0.9rem;
1195
+ }
1196
+
1197
+ /* Cells keep a usable width; the table scrolls before they collapse. */
1198
+ [data-slot="voucher-lines"][data-editable="true"] td > select {
1199
+ min-width: 7rem;
1200
+ }
1201
+
1202
+ [data-slot="voucher-lines"][data-editable="true"] td > select[data-slot="voucher-line-account"] {
1203
+ min-width: 10rem;
1204
+ }
1205
+
1206
+ [data-slot="voucher-lines"][data-editable="true"] td > input {
1207
+ min-width: 5.5rem;
1208
+ }
1209
+
1210
+ /* A ledger, not a form: cells read as the grid's text until a row is
1211
+ pointed at or a cell is focused; then the field shows its edge. */
1212
+ [data-slot="voucher-lines"][data-editable="true"] td > :is(input, select) {
1213
+ min-height: 2.25rem;
1214
+ border-color: transparent;
1215
+ background-color: transparent;
1216
+ box-shadow: none;
1217
+ }
1218
+
1219
+ @media (hover: hover) and (pointer: fine) {
1220
+ [data-slot="voucher-lines"][data-editable="true"] tr:hover td > :is(input, select):not(:focus-visible) {
1221
+ border-color: var(--bk-border);
1222
+ background-color: var(--bk-card);
1223
+ }
1224
+ }
1225
+
1226
+ [data-slot="voucher-lines"][data-editable="true"] td > :is(input, select):focus-visible {
1227
+ border-color: var(--bk-fg);
1228
+ background-color: var(--bk-card);
1229
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--bk-ring) 10%, transparent);
1230
+ }
1231
+
1232
+ /* On touch there is no hover: keep a hairline so a cell still reads as editable. */
1233
+ @media (hover: none) {
1234
+ [data-slot="voucher-lines"][data-editable="true"] td > :is(input, select) {
1235
+ border-color: var(--bk-border);
1236
+ }
1237
+ }
1238
+
1239
+ [data-slot="voucher-line-debit"],
1240
+ [data-slot="voucher-line-credit"] {
1241
+ text-align: right;
1242
+ font-family: var(--bk-mono);
1243
+ font-variant-numeric: tabular-nums;
1244
+ letter-spacing: -0.01em;
1245
+ }
1246
+
1247
+ /* The refusal belongs to the row above it: no rule between them. */
1248
+ [data-slot="voucher-lines-table"] tr[data-slot="voucher-line-error"] td {
1249
+ padding: 0 0.9rem 0.6rem;
1250
+ border-top: 0;
1251
+ line-height: 1.4;
1252
+ }
1253
+
1254
+ @media (hover: hover) and (pointer: fine) {
1255
+ [data-slot="voucher-lines-table"] tbody tr[data-slot="voucher-line-error"]:hover {
1256
+ background: transparent;
1257
+ }
1258
+ }
1259
+
1260
+ [data-slot="voucher-composer-add"] {
1261
+ display: flex;
1262
+ flex-wrap: wrap;
1263
+ align-items: center;
1264
+ gap: var(--bk-gap);
1265
+ padding: 0.6rem 0.9rem;
1266
+ border-top: 1px solid var(--bk-border);
1267
+ }
1268
+
1269
+ [data-slot="voucher-composer-add"] :is(select, input) {
1270
+ flex: 1 1 12rem;
1271
+ width: auto;
1272
+ max-width: 22rem;
1273
+ }
1274
+
1275
+ [data-slot="voucher-composer-add"] [data-slot="voucher-line-error"] {
1276
+ flex-basis: 100%;
1277
+ }
1278
+
1279
+ :where([data-slot]) {
1280
+ /* Quiet until wanted: a row of solid buttons would outweigh the figures. */
1281
+ & button[data-slot="voucher-line-remove"] {
1282
+ padding-inline: 0.6rem;
1283
+ background: transparent;
1284
+ border-color: transparent;
1285
+ color: var(--bk-muted-fg);
1286
+ /* The cell is right-aligned figures; the button is a word. */
1287
+ font-family: var(--bk-font);
1288
+ white-space: nowrap;
1289
+ }
1290
+
1291
+ @media (hover: hover) and (pointer: fine) {
1292
+ & button[data-slot="voucher-line-remove"]:hover:not(:disabled) {
1293
+ background: var(--bk-muted);
1294
+ color: var(--bk-fg);
1295
+ }
1296
+ }
1297
+
1298
+ /* Read-only: recessed, still legible, still focusable. */
1299
+ & :is(input, textarea)[readonly],
1300
+ & select[data-readonly] {
1301
+ background-color: var(--bk-muted);
1302
+ border-color: var(--bk-border);
1303
+ cursor: default;
1304
+ }
1305
+
1306
+ & select[data-readonly] {
1307
+ background-image: none;
1308
+ }
1309
+ }
1310
+
1311
+ /* AmountField draws its own frame, so the frame carries the state. */
1312
+ [data-slot="amount-field"][data-readonly] {
1313
+ background: var(--bk-muted);
1314
+ }
1315
+
1316
+ [data-slot="amount-field"][data-disabled] {
1317
+ opacity: 0.55;
1318
+ cursor: not-allowed;
1319
+ }
1320
+
1321
+ [data-slot="amount-field"][data-disabled] input:disabled {
1322
+ opacity: 1;
1323
+ }
1324
+
1325
+ /* ── Workflow controls: approval, periods, close, invoice, payments ──── */
1326
+
1327
+ :is(
1328
+ [data-slot="approval-chain"],
1329
+ [data-slot="period-lock"],
1330
+ [data-slot="close-checklist"],
1331
+ [data-slot="invoice-editor"],
1332
+ [data-slot="payment-batch"]
1333
+ ) {
1334
+ display: grid;
1335
+ gap: var(--bk-gap-lg);
1336
+ font-family: var(--bk-font);
1337
+ color: var(--bk-fg);
1338
+ }
1339
+
1340
+ :is(
1341
+ [data-slot="approval-chain-status"],
1342
+ [data-slot="close-checklist-status"],
1343
+ [data-slot="invoice-editor-status"],
1344
+ [data-slot="payment-batch-approvals"]
1345
+ ) {
1346
+ margin: 0;
1347
+ padding: 0.55rem 0.75rem;
1348
+ border-radius: var(--bk-radius-sm);
1349
+ background: var(--bk-muted);
1350
+ font-family: var(--bk-mono);
1351
+ font-size: 0.75rem;
1352
+ font-weight: var(--bk-font-weight-medium);
1353
+ font-variant-numeric: tabular-nums;
1354
+ }
1355
+
1356
+ [data-slot="approval-chain"][data-status="approved"] [data-slot="approval-chain-status"],
1357
+ [data-slot="close-checklist"][data-ready] [data-slot="close-checklist-status"],
1358
+ [data-slot="payment-batch"][data-status="released"] [data-slot="payment-batch-approvals"] {
1359
+ background: color-mix(in srgb, var(--bk-success) 10%, var(--bk-muted));
1360
+ color: var(--bk-success);
1361
+ }
1362
+
1363
+ [data-slot="approval-chain"][data-status="rejected"] [data-slot="approval-chain-status"] {
1364
+ background: color-mix(in srgb, var(--bk-danger) 10%, var(--bk-muted));
1365
+ color: var(--bk-danger);
1366
+ }
1367
+
1368
+ /* Lists of rows: levels and tasks. */
1369
+ :is([data-slot="approval-chain-levels"], [data-slot="close-checklist-tasks"]) {
1370
+ margin: 0;
1371
+ padding: 0;
1372
+ list-style: none;
1373
+ border-radius: var(--bk-radius);
1374
+ background: var(--bk-card);
1375
+ box-shadow: var(--bk-shadow-sm);
1376
+ }
1377
+
1378
+ :is([data-slot="approval-chain-levels"], [data-slot="close-checklist-tasks"]) > li {
1379
+ display: flex;
1380
+ flex-wrap: wrap;
1381
+ align-items: center;
1382
+ gap: var(--bk-gap) var(--bk-gap-lg);
1383
+ min-height: var(--bk-control-h);
1384
+ padding: 0.5rem 0.75rem;
1385
+ font-size: 0.8125rem;
1386
+ }
1387
+
1388
+ :is([data-slot="approval-chain-levels"], [data-slot="close-checklist-tasks"]) > li + li {
1389
+ border-top: 1px solid var(--bk-border);
1390
+ }
1391
+
1392
+ :is([data-slot="approval-chain-level"], [data-slot="close-checklist-title"]) {
1393
+ flex: 0 1 14rem;
1394
+ font-weight: var(--bk-font-weight-medium);
1395
+ }
1396
+
1397
+ :is([data-slot="approval-chain-detail"], [data-slot="close-checklist-detail"]) {
1398
+ flex: 1 1 12rem;
1399
+ color: var(--bk-muted-fg);
1400
+ }
1401
+
1402
+ [data-slot="approval-chain-levels"] > li[data-stage="approved"] [data-slot="approval-chain-detail"],
1403
+ [data-slot="close-checklist-tasks"] > li[data-status="signed"] [data-slot="close-checklist-detail"] {
1404
+ color: var(--bk-success);
1405
+ }
1406
+
1407
+ [data-slot="approval-chain-levels"] > li[data-stage="rejected"] [data-slot="approval-chain-detail"] {
1408
+ color: var(--bk-danger);
1409
+ }
1410
+
1411
+ [data-slot="approval-chain-levels"] > li[aria-current="step"] {
1412
+ background: var(--bk-accent);
1413
+ }
1414
+
1415
+ [data-slot="close-checklist-tasks"] > li[data-blocked] [data-slot="close-checklist-title"] {
1416
+ color: var(--bk-muted-fg);
1417
+ }
1418
+
1419
+ :is(
1420
+ [data-slot="approval-chain-actions"],
1421
+ [data-slot="close-checklist-actions"],
1422
+ [data-slot="period-lock-actions"],
1423
+ [data-slot="invoice-editor-actions"],
1424
+ [data-slot="payment-batch-actions"]
1425
+ ) {
1426
+ display: flex;
1427
+ flex-wrap: wrap;
1428
+ gap: var(--bk-gap);
1429
+ }
1430
+
1431
+ /* Tables. */
1432
+ :is([data-slot="period-lock-table"], [data-slot="invoice-editor-table"], [data-slot="payment-batch-table"]) {
1433
+ width: 100%;
1434
+ border-collapse: collapse;
1435
+ border-radius: var(--bk-radius);
1436
+ background: var(--bk-card);
1437
+ box-shadow: var(--bk-shadow-sm);
1438
+ font-size: 0.8125rem;
1439
+ }
1440
+
1441
+ :is([data-slot="period-lock-table"], [data-slot="invoice-editor-table"], [data-slot="payment-batch-table"]) thead th {
1442
+ padding: 0.45rem 0.75rem;
1443
+ text-align: start;
1444
+ background: var(--bk-wood);
1445
+ font-family: var(--bk-mono);
1446
+ font-size: 0.6875rem;
1447
+ font-weight: var(--bk-font-weight-medium);
1448
+ letter-spacing: 0.06em;
1449
+ text-transform: uppercase;
1450
+ color: var(--bk-muted-fg);
1451
+ white-space: nowrap;
1452
+ }
1453
+
1454
+ :is([data-slot="period-lock-table"], [data-slot="invoice-editor-table"], [data-slot="payment-batch-table"])
1455
+ :is(td, tfoot th) {
1456
+ padding: 0.3rem 0.75rem;
1457
+ border-top: 1px solid var(--bk-border);
1458
+ vertical-align: middle;
1459
+ text-align: start;
1460
+ font-weight: inherit;
1461
+ }
1462
+
1463
+ :is([data-slot="period-lock-table"], [data-slot="invoice-editor-table"], [data-slot="payment-batch-table"])
1464
+ [data-align="end"] {
1465
+ text-align: end;
1466
+ }
1467
+
1468
+ :is(
1469
+ [data-slot="invoice-editor-amount"],
1470
+ [data-slot="payment-batch-amount"],
1471
+ [data-slot="payment-batch-account"],
1472
+ [data-slot="payment-batch-reference"]
1473
+ ) {
1474
+ font-family: var(--bk-mono);
1475
+ font-variant-numeric: tabular-nums;
1476
+ white-space: nowrap;
1477
+ }
1478
+
1479
+ [data-slot="invoice-editor-total"] :is(th, td) {
1480
+ font-weight: var(--bk-font-weight-semibold);
1481
+ }
1482
+
1483
+ [data-slot="period-lock-table"] tr[data-status="hard-closed"] [data-slot="period-lock-status"] {
1484
+ color: var(--bk-muted-fg);
1485
+ }
1486
+
1487
+ [data-slot="period-lock-table"] tr[data-status="soft-closed"] [data-slot="period-lock-status"] {
1488
+ color: var(--bk-warning);
1489
+ }
1490
+
1491
+ /* Cells a person types in sit flush in the table. */
1492
+ [data-slot="invoice-editor-table"] td:has(> :is(input, select)) {
1493
+ padding: 0.2rem 0.3rem;
1494
+ }
1495
+
1496
+ [data-slot="invoice-editor-table"] :is(input, select) {
1497
+ width: 100%;
1498
+ min-width: 4.5rem;
1499
+ }
1500
+
1501
+ [data-slot="invoice-editor-table"] td:first-child input {
1502
+ min-width: 10rem;
1503
+ }
1504
+
1505
+ [data-slot="invoice-editor-table"] td:nth-child(3) input {
1506
+ min-width: 7rem;
1507
+ }
1508
+
1509
+ [data-slot="invoice-editor-table"] input[data-align="end"] {
1510
+ text-align: end;
1511
+ font-family: var(--bk-mono);
1512
+ font-variant-numeric: tabular-nums;
1513
+ }
1514
+
1515
+ [data-slot="invoice-editor-tax-id"] {
1516
+ display: grid;
1517
+ gap: 0.3rem;
1518
+ max-width: 20rem;
1519
+ font-size: 0.875rem;
1520
+ color: var(--bk-muted-fg);
1521
+ }
1522
+
1523
+ :is([data-slot="invoice-editor"], [data-slot="payment-batch"], [data-slot="period-lock"]) {
1524
+ min-width: 0;
1525
+ overflow-x: auto;
1526
+ }
1527
+
1528
+ /* What must be fixed, and why a person was refused. */
1529
+ :is([data-slot="invoice-editor-issues"], [data-slot="payment-batch-issues"]) {
1530
+ margin: 0;
1531
+ padding: 0.6rem 0.75rem 0.6rem 1.75rem;
1532
+ border-radius: var(--bk-radius-sm);
1533
+ background: color-mix(in srgb, var(--bk-warning) 10%, var(--bk-muted));
1534
+ font-size: 0.8125rem;
1535
+ }
1536
+
1537
+ :is(
1538
+ [data-slot="approval-chain-error"],
1539
+ [data-slot="period-lock-error"],
1540
+ [data-slot="close-checklist-error"],
1541
+ [data-slot="invoice-editor-error"],
1542
+ [data-slot="payment-batch-error"]
1543
+ ) {
1544
+ margin: 0;
1545
+ font-size: 0.8125rem;
1546
+ color: var(--bk-danger);
1547
+ }
1548
+
1549
+ /* ── Reduced motion ──────────────────────────────────────────────────── */
1550
+
1551
+ @media (prefers-reduced-motion: reduce) {
1552
+ :where([data-slot]) :is(input, select, textarea, button),
1553
+ :where([data-slot="attestation-status-approve"]),
1554
+ :where([data-slot="attestation-status-reject"]),
1555
+ :where([data-slot="attestation-status-escalate"]),
1556
+ :where([data-slot="country-toggle"]) button,
1557
+ [data-slot="voucher-lines-table"] tbody tr {
1558
+ transition: none;
1559
+ }
1560
+
1561
+ :where([data-slot]) button:active:not(:disabled),
1562
+ :where([data-slot="attestation-status-approve"]):active:not(:disabled),
1563
+ :where([data-slot="attestation-status-reject"]):active:not(:disabled),
1564
+ :where([data-slot="attestation-status-escalate"]):active:not(:disabled) {
1565
+ transform: none;
1566
+ }
1567
+ }