@booki-aui/styles 0.0.0-stage → 0.2.1

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