@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.
- package/CHANGELOG.md +73 -0
- package/LICENSE +21 -0
- package/README.md +14 -2
- package/dist/base.css +1 -0
- package/dist/booki.css +1 -0
- package/dist/controls/activity-timeline.css +1 -0
- package/dist/controls/aged-balances.css +1 -0
- package/dist/controls/aging-chart.css +1 -0
- package/dist/controls/audit-findings.css +1 -0
- package/dist/controls/audit-workpaper.css +1 -0
- package/dist/controls/bar-chart.css +1 -0
- package/dist/controls/cashflow-waterfall.css +1 -0
- package/dist/controls/client-requests.css +1 -0
- package/dist/controls/data-table.css +1 -0
- package/dist/controls/deal-pipeline.css +1 -0
- package/dist/controls/dialog-toast.css +1 -0
- package/dist/controls/document-signoff.css +1 -0
- package/dist/controls/evidence-list.css +1 -0
- package/dist/controls/expense-claim.css +1 -0
- package/dist/controls/fixed-asset-register.css +1 -0
- package/dist/controls/forecast-chart.css +1 -0
- package/dist/controls/funnel-chart.css +1 -0
- package/dist/controls/kpi-stat.css +1 -0
- package/dist/controls/ledger-table.css +1 -0
- package/dist/controls/payment-batch.css +1 -0
- package/dist/controls/picker.css +1 -0
- package/dist/controls/recurring-revenue.css +1 -0
- package/dist/controls/sheet-stack.css +1 -0
- package/dist/controls/stage-duration.css +1 -0
- package/dist/controls/supplier-invoice-inbox.css +1 -0
- package/dist/controls/trend-chart.css +1 -0
- package/dist/controls/vat-return.css +1 -0
- package/dist/css.d.ts +1 -0
- package/dist/layered.css +4 -0
- package/dist/shadcn.css +53 -0
- package/package.json +68 -3
- package/src/agent.css +324 -0
- package/src/booki.css +1563 -0
- package/src/controls/activity-timeline.css +142 -0
- package/src/controls/aged-balances.css +260 -0
- package/src/controls/aging-chart.css +249 -0
- package/src/controls/audit-findings.css +177 -0
- package/src/controls/audit-workpaper.css +274 -0
- package/src/controls/bar-chart.css +218 -0
- package/src/controls/cashflow-waterfall.css +228 -0
- package/src/controls/client-requests.css +172 -0
- package/src/controls/data-table.css +250 -0
- package/src/controls/deal-pipeline.css +201 -0
- package/src/controls/dialog-toast.css +200 -0
- package/src/controls/document-signoff.css +82 -0
- package/src/controls/evidence-list.css +93 -0
- package/src/controls/expense-claim.css +204 -0
- package/src/controls/fixed-asset-register.css +291 -0
- package/src/controls/forecast-chart.css +203 -0
- package/src/controls/funnel-chart.css +144 -0
- package/src/controls/kpi-stat.css +92 -0
- package/src/controls/ledger-table.css +413 -0
- package/src/controls/payment-batch.css +122 -0
- package/src/controls/picker.css +327 -0
- package/src/controls/recurring-revenue.css +192 -0
- package/src/controls/sheet-stack.css +151 -0
- package/src/controls/stage-duration.css +163 -0
- package/src/controls/supplier-invoice-inbox.css +316 -0
- package/src/controls/trend-chart.css +292 -0
- package/src/controls/vat-return.css +177 -0
- package/src/shadcn.css +53 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* ── funnel-chart ─────────────────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
[data-slot="funnel-chart"] {
|
|
4
|
+
display: grid;
|
|
5
|
+
gap: var(--bk-gap-lg);
|
|
6
|
+
min-width: 0;
|
|
7
|
+
font-family: var(--bk-font);
|
|
8
|
+
color: var(--bk-fg);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="funnel-chart-title"] {
|
|
12
|
+
margin: 0;
|
|
13
|
+
font-size: 0.875rem;
|
|
14
|
+
font-weight: var(--bk-font-weight-medium);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:is([data-slot="funnel-chart-empty"], [data-slot="funnel-chart-meta"], [data-slot="funnel-chart-between"]) {
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-size: 0.75rem;
|
|
20
|
+
color: var(--bk-muted-fg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:is([data-slot="funnel-chart-summary"], [data-slot="funnel-chart-check"]) {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0.55rem 0.75rem;
|
|
26
|
+
border-radius: var(--bk-radius-sm);
|
|
27
|
+
background: var(--bk-muted);
|
|
28
|
+
font-size: 0.8125rem;
|
|
29
|
+
font-variant-numeric: tabular-nums;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot="funnel-chart-issues"],
|
|
33
|
+
[data-slot="funnel-chart-notes"] {
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0.375rem 0.5rem 0.375rem 1.5rem;
|
|
36
|
+
border-radius: var(--bk-radius-sm);
|
|
37
|
+
background: var(--bk-muted);
|
|
38
|
+
font-size: 0.75rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[data-slot="funnel-chart-error"] {
|
|
42
|
+
margin: 0;
|
|
43
|
+
font-size: 0.8125rem;
|
|
44
|
+
color: var(--bk-danger);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-slot="funnel-chart-table"] > summary {
|
|
48
|
+
width: fit-content;
|
|
49
|
+
font-size: 0.75rem;
|
|
50
|
+
color: var(--bk-muted-fg);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-slot="funnel-chart-table"] table {
|
|
55
|
+
width: 100%;
|
|
56
|
+
margin-top: 0.5rem;
|
|
57
|
+
border-collapse: collapse;
|
|
58
|
+
font-size: 0.8125rem;
|
|
59
|
+
font-variant-numeric: tabular-nums;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot="funnel-chart-table"] :is(th, td) {
|
|
63
|
+
padding: 0.375rem 0.5rem;
|
|
64
|
+
border-bottom: 1px solid var(--bk-border);
|
|
65
|
+
text-align: left;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot="funnel-chart-table"] [data-align="end"] {
|
|
69
|
+
text-align: right;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot="funnel-chart-steps"] {
|
|
73
|
+
display: grid;
|
|
74
|
+
gap: 0.25rem;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
list-style: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot="funnel-chart-row"] > button {
|
|
81
|
+
display: grid;
|
|
82
|
+
grid-template-columns: minmax(6rem, 10rem) 1fr auto 3.5rem;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: var(--bk-gap);
|
|
85
|
+
width: 100%;
|
|
86
|
+
min-height: var(--bk-control-h);
|
|
87
|
+
padding: 0.25rem 0.375rem;
|
|
88
|
+
border: 0;
|
|
89
|
+
border-radius: var(--bk-radius-sm);
|
|
90
|
+
background: transparent;
|
|
91
|
+
color: inherit;
|
|
92
|
+
font: inherit;
|
|
93
|
+
font-size: 0.8125rem;
|
|
94
|
+
text-align: left;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot="funnel-chart-row"] > button:hover,
|
|
99
|
+
[data-slot="funnel-chart-row"] > button[aria-pressed="true"] {
|
|
100
|
+
background: var(--bk-muted);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-slot="funnel-chart-row"] > button:focus-visible {
|
|
104
|
+
outline: 2px solid var(--bk-ring);
|
|
105
|
+
outline-offset: 1px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-slot="funnel-chart-label"] {
|
|
109
|
+
min-width: 0;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[data-slot="funnel-chart-track"] {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
min-width: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-slot="funnel-chart-bar"] {
|
|
122
|
+
display: block;
|
|
123
|
+
height: 1.25rem;
|
|
124
|
+
border-radius: var(--bk-radius-sm);
|
|
125
|
+
background: var(--bk-series-1);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-slot="funnel-chart-row"][data-biggest] [data-slot="funnel-chart-bar"] {
|
|
129
|
+
box-shadow: inset 0 -3px 0 var(--bk-warning);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:is([data-slot="funnel-chart-count"], [data-slot="funnel-chart-rate"]) {
|
|
133
|
+
font-family: var(--bk-mono);
|
|
134
|
+
font-variant-numeric: tabular-nums;
|
|
135
|
+
text-align: right;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-slot="funnel-chart-rate"] {
|
|
139
|
+
color: var(--bk-muted-fg);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-slot="funnel-chart-between"] {
|
|
143
|
+
padding-left: 0.375rem;
|
|
144
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* ── KPI stat: one figure against a previous period ──────────────────── */
|
|
2
|
+
|
|
3
|
+
[data-slot="kpi-stat"] {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
6
|
+
grid-template-areas:
|
|
7
|
+
"label spark"
|
|
8
|
+
"value spark"
|
|
9
|
+
"delta delta";
|
|
10
|
+
align-items: end;
|
|
11
|
+
gap: 0.2rem var(--bk-gap-lg);
|
|
12
|
+
min-width: 0;
|
|
13
|
+
font-family: var(--bk-font);
|
|
14
|
+
color: var(--bk-fg);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([data-slot="kpi-stat"]) [data-slot="kpi-stat-label"] {
|
|
18
|
+
grid-area: label;
|
|
19
|
+
margin: 0;
|
|
20
|
+
font-size: 0.8125rem;
|
|
21
|
+
color: var(--bk-muted-fg);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* A big standalone figure keeps proportional digits. */
|
|
25
|
+
:where([data-slot="kpi-stat"]) {
|
|
26
|
+
container-type: inline-size;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where([data-slot="kpi-stat"]) [data-slot="kpi-stat-value"] {
|
|
30
|
+
grid-area: value;
|
|
31
|
+
margin: 0;
|
|
32
|
+
/* Sized by the card, not the window, so a figure fits a narrow column on one line. */
|
|
33
|
+
font-size: clamp(1.25rem, 9cqi, 2rem);
|
|
34
|
+
font-weight: var(--bk-font-weight-semibold);
|
|
35
|
+
font-variant-numeric: tabular-nums;
|
|
36
|
+
letter-spacing: -0.02em;
|
|
37
|
+
line-height: 1.1;
|
|
38
|
+
color: var(--bk-fg);
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where([data-slot="kpi-stat"]) [data-slot="kpi-stat-delta"] {
|
|
43
|
+
grid-area: delta;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
align-items: baseline;
|
|
47
|
+
gap: 0 0.3rem;
|
|
48
|
+
margin: 0;
|
|
49
|
+
font-size: 0.8125rem;
|
|
50
|
+
color: var(--bk-muted-fg);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-slot="kpi-stat-change"] {
|
|
54
|
+
font-family: var(--bk-mono);
|
|
55
|
+
font-variant-numeric: tabular-nums;
|
|
56
|
+
color: var(--bk-fg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="kpi-stat-arrow"] {
|
|
60
|
+
font-size: 0.625rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Colour follows whether the move is good news, and the arrow carries the direction. */
|
|
64
|
+
[data-slot="kpi-stat-delta"][data-favourable="true"] :is([data-slot="kpi-stat-arrow"], [data-slot="kpi-stat-change"]) {
|
|
65
|
+
color: var(--bk-success);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot="kpi-stat-delta"][data-favourable="false"] :is([data-slot="kpi-stat-arrow"], [data-slot="kpi-stat-change"]) {
|
|
69
|
+
color: var(--bk-danger);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot="kpi-stat-spark"] {
|
|
73
|
+
grid-area: spark;
|
|
74
|
+
display: block;
|
|
75
|
+
max-width: 30vw;
|
|
76
|
+
height: auto;
|
|
77
|
+
overflow: visible;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot="kpi-stat-spark-line"] {
|
|
81
|
+
fill: none;
|
|
82
|
+
stroke: var(--bk-border-strong);
|
|
83
|
+
stroke-width: 2;
|
|
84
|
+
stroke-linecap: round;
|
|
85
|
+
stroke-linejoin: round;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-slot="kpi-stat-spark-end"] {
|
|
89
|
+
fill: var(--bk-series-1);
|
|
90
|
+
stroke: var(--bk-bg);
|
|
91
|
+
stroke-width: 2;
|
|
92
|
+
}
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
/* ── Ledger table: trial balance and account entries ─────────────────── */
|
|
2
|
+
|
|
3
|
+
[data-slot="ledger-table"] {
|
|
4
|
+
display: grid;
|
|
5
|
+
gap: var(--bk-gap-lg);
|
|
6
|
+
min-width: 0;
|
|
7
|
+
font-family: var(--bk-font);
|
|
8
|
+
color: var(--bk-fg);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Range and balance status on one line; wraps on a narrow screen. */
|
|
12
|
+
[data-slot="ledger-table-bar"] {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
align-items: end;
|
|
16
|
+
gap: var(--bk-gap) var(--bk-gap-lg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="ledger-table-field"] {
|
|
20
|
+
display: grid;
|
|
21
|
+
gap: 0.3rem;
|
|
22
|
+
flex: 0 1 11rem;
|
|
23
|
+
font-size: 0.875rem;
|
|
24
|
+
color: var(--bk-muted-fg);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:is([data-slot="ledger-table-from"], [data-slot="ledger-table-to"]) {
|
|
28
|
+
font-family: var(--bk-mono);
|
|
29
|
+
font-variant-numeric: tabular-nums;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot="ledger-table-status"] {
|
|
33
|
+
flex: 1 1 14rem;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0.55rem 0.75rem;
|
|
36
|
+
border-radius: var(--bk-radius-sm);
|
|
37
|
+
background: color-mix(in srgb, var(--bk-success) 10%, var(--bk-muted));
|
|
38
|
+
color: var(--bk-success);
|
|
39
|
+
font-family: var(--bk-mono);
|
|
40
|
+
font-size: 0.75rem;
|
|
41
|
+
font-weight: var(--bk-font-weight-medium);
|
|
42
|
+
font-variant-numeric: tabular-nums;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-slot="ledger-table"][data-balanced="false"] [data-slot="ledger-table-status"] {
|
|
46
|
+
background: color-mix(in srgb, var(--bk-danger) 10%, var(--bk-muted));
|
|
47
|
+
color: var(--bk-danger);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Both views scroll inside this box, never the page. */
|
|
51
|
+
[data-slot="ledger-table-scroll"] {
|
|
52
|
+
min-width: 0;
|
|
53
|
+
overflow-x: auto;
|
|
54
|
+
border-radius: var(--bk-radius);
|
|
55
|
+
background: var(--bk-card);
|
|
56
|
+
box-shadow: var(--bk-shadow-sm);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* The trial balance is a list of rows on one shared set of columns. */
|
|
60
|
+
[data-slot="ledger-table-grid"] {
|
|
61
|
+
min-width: 38rem;
|
|
62
|
+
font-size: 0.8125rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:is([data-slot="ledger-table-head"], [data-slot="ledger-table-row"], [data-slot="ledger-table-total"]) {
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-columns: minmax(12rem, 1fr) repeat(4, minmax(6.5rem, 9rem));
|
|
68
|
+
align-items: center;
|
|
69
|
+
column-gap: var(--bk-gap-lg);
|
|
70
|
+
padding: 0 0.75rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-slot="ledger-table-head"] {
|
|
74
|
+
padding-block: 0.45rem;
|
|
75
|
+
background: var(--bk-wood);
|
|
76
|
+
font-family: var(--bk-mono);
|
|
77
|
+
font-size: 0.6875rem;
|
|
78
|
+
font-weight: var(--bk-font-weight-medium);
|
|
79
|
+
letter-spacing: 0.06em;
|
|
80
|
+
text-transform: uppercase;
|
|
81
|
+
color: var(--bk-muted-fg);
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-slot="ledger-table-head"] [data-align="end"] {
|
|
86
|
+
text-align: end;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-slot="ledger-table-row"] {
|
|
90
|
+
min-height: 2rem;
|
|
91
|
+
border-top: 1px solid var(--bk-border);
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
outline: none;
|
|
94
|
+
transition: background-color var(--bk-duration) var(--bk-ease-out);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-slot="ledger-table-row"][aria-selected="true"] {
|
|
98
|
+
background: var(--bk-accent);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-slot="ledger-table-row"]:focus-visible {
|
|
102
|
+
outline: 2px solid var(--bk-ring);
|
|
103
|
+
outline-offset: -2px;
|
|
104
|
+
border-radius: var(--bk-radius-sm);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (hover: hover) and (pointer: fine) {
|
|
108
|
+
[data-slot="ledger-table-row"]:hover {
|
|
109
|
+
background: var(--bk-accent);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-slot="ledger-table-total"] {
|
|
114
|
+
min-height: 2.25rem;
|
|
115
|
+
border-top: 1px solid var(--bk-border-strong);
|
|
116
|
+
font-weight: var(--bk-font-weight-semibold);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-slot="ledger-table-account"] {
|
|
120
|
+
min-width: 0;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:is([data-slot="ledger-table-number"], [data-slot="ledger-table-date"]) {
|
|
127
|
+
font-family: var(--bk-mono);
|
|
128
|
+
font-variant-numeric: tabular-nums;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[data-slot="ledger-table-number"] {
|
|
133
|
+
color: var(--bk-muted-fg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[data-slot="ledger-table-amount"] {
|
|
137
|
+
text-align: end;
|
|
138
|
+
font-family: var(--bk-mono);
|
|
139
|
+
font-variant-numeric: tabular-nums;
|
|
140
|
+
white-space: nowrap;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* One account: back, its name, and its entries. */
|
|
144
|
+
[data-slot="ledger-table-heading"] {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-wrap: wrap;
|
|
147
|
+
align-items: center;
|
|
148
|
+
gap: var(--bk-gap) var(--bk-gap-lg);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[data-slot="ledger-table-heading"] h3 {
|
|
152
|
+
margin: 0;
|
|
153
|
+
font-size: 1rem;
|
|
154
|
+
font-weight: var(--bk-font-weight-semibold);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[data-slot="ledger-table-entries"] {
|
|
158
|
+
width: 100%;
|
|
159
|
+
min-width: 40rem;
|
|
160
|
+
border-collapse: collapse;
|
|
161
|
+
font-size: 0.8125rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-slot="ledger-table-entries"] thead th {
|
|
165
|
+
padding: 0.45rem 0.75rem;
|
|
166
|
+
text-align: start;
|
|
167
|
+
background: var(--bk-wood);
|
|
168
|
+
font-family: var(--bk-mono);
|
|
169
|
+
font-size: 0.6875rem;
|
|
170
|
+
font-weight: var(--bk-font-weight-medium);
|
|
171
|
+
letter-spacing: 0.06em;
|
|
172
|
+
text-transform: uppercase;
|
|
173
|
+
color: var(--bk-muted-fg);
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
[data-slot="ledger-table-entries"] thead th[data-align="end"] {
|
|
178
|
+
text-align: end;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[data-slot="ledger-table-entries"] :is(td, tbody th, tfoot th) {
|
|
182
|
+
padding: 0.3rem 0.75rem;
|
|
183
|
+
border-top: 1px solid var(--bk-border);
|
|
184
|
+
vertical-align: middle;
|
|
185
|
+
text-align: start;
|
|
186
|
+
font-weight: inherit;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[data-slot="ledger-table-entries"] td[data-slot="ledger-table-amount"] {
|
|
190
|
+
text-align: end;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
[data-slot="ledger-table-opening"] :is(th, td) {
|
|
194
|
+
color: var(--bk-muted-fg);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
[data-slot="ledger-table-entries"] tfoot :is(th, td) {
|
|
198
|
+
border-top-color: var(--bk-border-strong);
|
|
199
|
+
font-weight: var(--bk-font-weight-semibold);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* The voucher number opens the voucher: it reads as a link, not a button. */
|
|
203
|
+
[data-slot="ledger-table-voucher"] {
|
|
204
|
+
min-height: 2rem;
|
|
205
|
+
padding: 0 0.25rem;
|
|
206
|
+
margin-inline: -0.25rem;
|
|
207
|
+
background: transparent;
|
|
208
|
+
color: var(--bk-brand);
|
|
209
|
+
font-family: var(--bk-mono);
|
|
210
|
+
font-variant-numeric: tabular-nums;
|
|
211
|
+
text-decoration: underline;
|
|
212
|
+
text-decoration-color: color-mix(in srgb, var(--bk-brand) 35%, transparent);
|
|
213
|
+
text-underline-offset: 0.2em;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@media (hover: hover) and (pointer: fine) {
|
|
217
|
+
[data-slot="ledger-table-voucher"]:hover:not(:disabled) {
|
|
218
|
+
background: var(--bk-accent);
|
|
219
|
+
text-decoration-color: currentColor;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
[data-slot="ledger-table-pages"] {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-wrap: wrap;
|
|
226
|
+
align-items: center;
|
|
227
|
+
gap: var(--bk-gap) var(--bk-gap-lg);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
[data-slot="ledger-table-range"] {
|
|
231
|
+
margin: 0;
|
|
232
|
+
font-family: var(--bk-mono);
|
|
233
|
+
font-size: 0.75rem;
|
|
234
|
+
font-variant-numeric: tabular-nums;
|
|
235
|
+
color: var(--bk-muted-fg);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[data-slot="ledger-table-empty"] {
|
|
239
|
+
margin: 0;
|
|
240
|
+
padding: 0.75rem;
|
|
241
|
+
border-top: 1px solid var(--bk-border);
|
|
242
|
+
font-size: 0.8125rem;
|
|
243
|
+
color: var(--bk-muted-fg);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
[data-slot="ledger-table-error"] {
|
|
247
|
+
margin: 0;
|
|
248
|
+
font-size: 0.8125rem;
|
|
249
|
+
color: var(--bk-danger);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* A finger needs 44px to press a row or a voucher. */
|
|
253
|
+
@media (pointer: coarse) {
|
|
254
|
+
:is([data-slot="ledger-table-row"], [data-slot="ledger-table-voucher"]) {
|
|
255
|
+
min-height: var(--bk-control-h);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@media (prefers-reduced-motion: reduce) {
|
|
260
|
+
[data-slot="ledger-table-row"] {
|
|
261
|
+
transition: none;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* ── Drill-down: breadcrumbs, the voucher view and the document ───────── */
|
|
266
|
+
|
|
267
|
+
[data-slot="ledger-table-crumbs"] {
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-wrap: wrap;
|
|
270
|
+
align-items: center;
|
|
271
|
+
gap: 0.25rem 0.5rem;
|
|
272
|
+
font-size: 0.8125rem;
|
|
273
|
+
color: var(--bk-muted-fg);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
[data-slot="ledger-table-crumb"] {
|
|
277
|
+
all: unset;
|
|
278
|
+
cursor: pointer;
|
|
279
|
+
color: var(--bk-brand);
|
|
280
|
+
text-decoration: underline;
|
|
281
|
+
text-underline-offset: 0.2em;
|
|
282
|
+
text-decoration-color: color-mix(in srgb, var(--bk-brand) 35%, transparent);
|
|
283
|
+
min-height: 2.75rem;
|
|
284
|
+
display: inline-flex;
|
|
285
|
+
align-items: center;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
[data-slot="ledger-table-crumb"]:focus-visible {
|
|
289
|
+
outline: 2px solid var(--bk-ring);
|
|
290
|
+
outline-offset: 2px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
[data-slot="ledger-table-crumbs"] [aria-current="page"] {
|
|
294
|
+
color: var(--bk-fg);
|
|
295
|
+
font-weight: var(--bk-font-weight-medium);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
[data-slot="ledger-table-voucher-meta"] {
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-wrap: wrap;
|
|
301
|
+
align-items: center;
|
|
302
|
+
gap: var(--bk-gap) var(--bk-gap-lg);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
[data-slot="ledger-table-voucher-meta"] [data-slot="ledger-table-status"][data-balanced="false"] {
|
|
306
|
+
background: color-mix(in srgb, var(--bk-danger) 10%, var(--bk-muted));
|
|
307
|
+
color: var(--bk-danger);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
[data-slot="ledger-table-document-row"] {
|
|
311
|
+
display: flex;
|
|
312
|
+
flex-wrap: wrap;
|
|
313
|
+
align-items: center;
|
|
314
|
+
gap: 0.25rem 0.5rem;
|
|
315
|
+
margin: 0;
|
|
316
|
+
font-size: 0.875rem;
|
|
317
|
+
color: var(--bk-muted-fg);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[data-slot="ledger-table-document-name"] {
|
|
321
|
+
font-family: var(--bk-mono);
|
|
322
|
+
color: var(--bk-fg);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
[data-slot="ledger-table-lineaccount"] {
|
|
326
|
+
all: unset;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
color: var(--bk-brand);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
[data-slot="ledger-table-lineaccount"]:focus-visible {
|
|
332
|
+
outline: 2px solid var(--bk-ring);
|
|
333
|
+
outline-offset: 2px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@media (hover: hover) and (pointer: fine) {
|
|
337
|
+
[data-slot="ledger-table-lineaccount"]:hover,
|
|
338
|
+
[data-slot="ledger-table-crumb"]:hover {
|
|
339
|
+
text-decoration-color: var(--bk-brand);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
[data-slot="ledger-table-lineaccount"]:hover {
|
|
343
|
+
text-decoration: underline;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* ── Table behaviour, as in data-table.css: search, sortable headers, pages, CSV ── */
|
|
348
|
+
|
|
349
|
+
[data-slot="ledger-table-search"] {
|
|
350
|
+
width: 100%;
|
|
351
|
+
min-height: var(--bk-control-h);
|
|
352
|
+
padding: 0 var(--bk-control-px);
|
|
353
|
+
border: 1px solid var(--bk-border-strong);
|
|
354
|
+
border-radius: var(--bk-radius-sm);
|
|
355
|
+
background: var(--bk-card);
|
|
356
|
+
color: var(--bk-fg);
|
|
357
|
+
font: inherit;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* The sort button fills the header cell, so the whole header is the target. */
|
|
361
|
+
[data-slot="ledger-table-sort"] {
|
|
362
|
+
all: unset;
|
|
363
|
+
display: inline-flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
gap: 0.375rem;
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
[data-slot="ledger-table-sort"]:focus-visible {
|
|
370
|
+
outline: 2px solid var(--bk-ring);
|
|
371
|
+
outline-offset: 2px;
|
|
372
|
+
border-radius: 2px;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
[data-slot="ledger-table-sort-mark"] {
|
|
376
|
+
opacity: 0.35;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
[data-slot="ledger-table-sort"][data-sorted] {
|
|
380
|
+
color: var(--bk-fg);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
[data-slot="ledger-table-sort"][data-sorted] [data-slot="ledger-table-sort-mark"] {
|
|
384
|
+
opacity: 1;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
[data-slot="ledger-table-export"] {
|
|
388
|
+
display: inline-flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
min-height: var(--bk-control-h);
|
|
391
|
+
padding: 0 0.875rem;
|
|
392
|
+
border: 0;
|
|
393
|
+
border-radius: var(--bk-radius-sm);
|
|
394
|
+
background: var(--bk-card);
|
|
395
|
+
box-shadow: var(--bk-shadow-sm);
|
|
396
|
+
color: var(--bk-fg);
|
|
397
|
+
font: inherit;
|
|
398
|
+
font-size: 0.875rem;
|
|
399
|
+
cursor: pointer;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* In the trial balance the headers are grid cells; end-aligned ones keep their figures' edge. */
|
|
403
|
+
[data-slot="ledger-table-head"] [role="columnheader"][data-align="end"] {
|
|
404
|
+
justify-self: end;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
[data-slot="ledger-table-entries"] th[data-align="end"] [data-slot="ledger-table-sort"] {
|
|
408
|
+
justify-content: flex-end;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
[data-slot="ledger-table-export"] {
|
|
412
|
+
margin-left: auto;
|
|
413
|
+
}
|