basecoat-css 1.0.2 → 1.1.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 (63) hide show
  1. package/dist/base/base.css +10 -1
  2. package/dist/basecoat-base.bundle.css +1884 -0
  3. package/dist/basecoat-base.cdn.css +30 -10
  4. package/dist/basecoat-base.cdn.min.css +1 -2
  5. package/dist/basecoat-compat.cdn.css +1 -1
  6. package/dist/basecoat-compat.cdn.min.css +1 -2
  7. package/dist/basecoat-luma.bundle.css +3319 -0
  8. package/dist/basecoat-luma.cdn.css +167 -165
  9. package/dist/basecoat-luma.cdn.min.css +1 -2
  10. package/dist/basecoat-lyra.bundle.css +3302 -0
  11. package/dist/basecoat-lyra.cdn.css +98 -106
  12. package/dist/basecoat-lyra.cdn.min.css +1 -2
  13. package/dist/basecoat-maia.bundle.css +3287 -0
  14. package/dist/basecoat-maia.cdn.css +134 -114
  15. package/dist/basecoat-maia.cdn.min.css +1 -2
  16. package/dist/basecoat-mira.bundle.css +3296 -0
  17. package/dist/basecoat-mira.cdn.css +104 -108
  18. package/dist/basecoat-mira.cdn.min.css +1 -2
  19. package/dist/basecoat-nova.bundle.css +3314 -0
  20. package/dist/basecoat-nova.cdn.css +136 -116
  21. package/dist/basecoat-nova.cdn.min.css +1 -2
  22. package/dist/basecoat-rhea.bundle.css +3324 -0
  23. package/dist/basecoat-rhea.cdn.css +167 -165
  24. package/dist/basecoat-rhea.cdn.min.css +1 -2
  25. package/dist/basecoat-sera.bundle.css +3312 -0
  26. package/dist/basecoat-sera.cdn.css +143 -141
  27. package/dist/basecoat-sera.cdn.min.css +1 -2
  28. package/dist/basecoat-vega.bundle.css +3301 -0
  29. package/dist/basecoat-vega.cdn.css +126 -106
  30. package/dist/basecoat-vega.cdn.min.css +1 -2
  31. package/dist/basecoat.bundle.css +3301 -0
  32. package/dist/basecoat.cdn.css +126 -106
  33. package/dist/basecoat.cdn.min.css +1 -2
  34. package/dist/components/dialog.css +14 -0
  35. package/dist/components/sidebar.css +10 -7
  36. package/dist/components/tooltip.css +1 -1
  37. package/dist/js/all.js +28 -13
  38. package/dist/js/all.min.js +1 -1
  39. package/dist/js/combobox.js +6 -2
  40. package/dist/js/combobox.min.js +1 -1
  41. package/dist/js/dropdown-menu.js +1 -1
  42. package/dist/js/dropdown-menu.min.js +1 -1
  43. package/dist/js/popover.js +1 -1
  44. package/dist/js/popover.min.js +1 -1
  45. package/dist/js/select.js +1 -1
  46. package/dist/js/select.min.js +1 -1
  47. package/dist/js/sidebar.js +1 -1
  48. package/dist/js/sidebar.min.js +1 -1
  49. package/dist/js/toast.js +18 -7
  50. package/dist/js/toast.min.js +1 -1
  51. package/dist/styles/luma.css +103 -44
  52. package/dist/styles/lyra.css +75 -36
  53. package/dist/styles/maia.css +81 -42
  54. package/dist/styles/mira.css +76 -37
  55. package/dist/styles/nova.css +84 -41
  56. package/dist/styles/rhea.css +103 -44
  57. package/dist/styles/sera.css +72 -41
  58. package/dist/styles/vega.css +72 -41
  59. package/package.json +4 -1
  60. package/templates/jinja/command.html.jinja +1 -1
  61. package/templates/jinja/dialog.html.jinja +1 -1
  62. package/templates/nunjucks/command.njk +1 -1
  63. package/templates/nunjucks/dialog.njk +1 -1
@@ -0,0 +1,3319 @@
1
+ /* Basecoat v1.1.0, luma, single-file source. Import after tailwindcss. */
2
+ @custom-variant dark (&:is(html.dark *));
3
+
4
+ :root {
5
+ --radius: 0.625rem;
6
+ --background: oklch(1 0 0);
7
+ --foreground: oklch(0.145 0 0);
8
+ --card: oklch(1 0 0);
9
+ --card-foreground: oklch(0.145 0 0);
10
+ --popover: oklch(1 0 0);
11
+ --popover-foreground: oklch(0.145 0 0);
12
+ --primary: oklch(0.205 0 0);
13
+ --primary-foreground: oklch(0.985 0 0);
14
+ --secondary: oklch(0.97 0 0);
15
+ --secondary-foreground: oklch(0.205 0 0);
16
+ --muted: oklch(0.97 0 0);
17
+ --muted-foreground: oklch(0.556 0 0);
18
+ --accent: oklch(0.97 0 0);
19
+ --accent-foreground: oklch(0.205 0 0);
20
+ --destructive: oklch(0.577 0.245 27.325);
21
+ --border: oklch(0.922 0 0);
22
+ --input: oklch(0.922 0 0);
23
+ --ring: oklch(0.708 0 0);
24
+ --chart-1: #93c5fd;
25
+ --chart-2: #3b82f6;
26
+ --chart-3: #2563eb;
27
+ --chart-4: #1d4ed8;
28
+ --chart-5: #1e40af;
29
+ --sidebar: oklch(0.985 0 0);
30
+ --sidebar-foreground: oklch(0.145 0 0);
31
+ --sidebar-primary: oklch(0.205 0 0);
32
+ --sidebar-primary-foreground: oklch(0.985 0 0);
33
+ --sidebar-accent: oklch(0.97 0 0);
34
+ --sidebar-accent-foreground: oklch(0.205 0 0);
35
+ --sidebar-border: oklch(0.922 0 0);
36
+ --sidebar-ring: oklch(0.708 0 0);
37
+ --sidebar-width: 16rem;
38
+ --sidebar-mobile-width: 18rem;
39
+ --scrollbar-track: transparent;
40
+ --scrollbar-thumb: var(--border);
41
+ --scrollbar-width: 0.625rem;
42
+ --scrollbar-sm-width: 0.375rem;
43
+ --scrollbar-radius: 9999px;
44
+ --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
45
+ --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
46
+ --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
47
+ }
48
+
49
+ .dark {
50
+ --background: oklch(0.145 0 0);
51
+ --foreground: oklch(0.985 0 0);
52
+ --card: oklch(0.205 0 0);
53
+ --card-foreground: oklch(0.985 0 0);
54
+ --popover: oklch(0.205 0 0);
55
+ --popover-foreground: oklch(0.985 0 0);
56
+ --primary: oklch(0.922 0 0);
57
+ --primary-foreground: oklch(0.205 0 0);
58
+ --secondary: oklch(0.269 0 0);
59
+ --secondary-foreground: oklch(0.985 0 0);
60
+ --muted: oklch(0.269 0 0);
61
+ --muted-foreground: oklch(0.708 0 0);
62
+ --accent: oklch(0.371 0 0);
63
+ --accent-foreground: oklch(0.985 0 0);
64
+ --destructive: oklch(0.704 0.191 22.216);
65
+ --border: oklch(1 0 0 / 10%);
66
+ --input: oklch(1 0 0 / 15%);
67
+ --ring: oklch(0.556 0 0);
68
+ --chart-1: #93c5fd;
69
+ --chart-2: #3b82f6;
70
+ --chart-3: #2563eb;
71
+ --chart-4: #1d4ed8;
72
+ --chart-5: #1e40af;
73
+ --sidebar: oklch(0.205 0 0);
74
+ --sidebar-foreground: oklch(0.985 0 0);
75
+ --sidebar-primary: oklch(0.488 0.243 264.376);
76
+ --sidebar-primary-foreground: oklch(0.985 0 0);
77
+ --sidebar-accent: oklch(0.269 0 0);
78
+ --sidebar-accent-foreground: oklch(0.985 0 0);
79
+ --sidebar-border: oklch(1 0 0 / 10%);
80
+ --sidebar-ring: oklch(0.439 0 0);
81
+ --chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
82
+ --chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
83
+ --check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>');/* --muted-foreground */
84
+ color-scheme: dark;
85
+ }
86
+
87
+ @theme {
88
+ --font-sans: "Geist", "Geist Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
89
+ --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
90
+ --radius-sm: calc(var(--radius) - 4px);
91
+ --radius-md: calc(var(--radius) - 2px);
92
+ --radius-lg: var(--radius);
93
+ --radius-xl: calc(var(--radius) + 4px);
94
+ --color-background: var(--background);
95
+ --color-foreground: var(--foreground);
96
+ --color-card: var(--card);
97
+ --color-card-foreground: var(--card-foreground);
98
+ --color-popover: var(--popover);
99
+ --color-popover-foreground: var(--popover-foreground);
100
+ --color-primary: var(--primary);
101
+ --color-primary-foreground: var(--primary-foreground);
102
+ --color-secondary: var(--secondary);
103
+ --color-secondary-foreground: var(--secondary-foreground);
104
+ --color-muted: var(--muted);
105
+ --color-muted-foreground: var(--muted-foreground);
106
+ --color-accent: var(--accent);
107
+ --color-accent-foreground: var(--accent-foreground);
108
+ --color-destructive: var(--destructive);
109
+ --color-border: var(--border);
110
+ --color-input: var(--input);
111
+ --color-ring: var(--ring);
112
+ --color-chart-1: var(--chart-1);
113
+ --color-chart-2: var(--chart-2);
114
+ --color-chart-3: var(--chart-3);
115
+ --color-chart-4: var(--chart-4);
116
+ --color-chart-5: var(--chart-5);
117
+ --color-sidebar: var(--sidebar);
118
+ --color-sidebar-foreground: var(--sidebar-foreground);
119
+ --color-sidebar-primary: var(--sidebar-primary);
120
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
121
+ --color-sidebar-accent: var(--sidebar-accent);
122
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
123
+ --color-sidebar-border: var(--sidebar-border);
124
+ --color-sidebar-ring: var(--sidebar-ring);
125
+ }
126
+
127
+ @layer base {
128
+ * {
129
+ @apply border-border outline-ring/50;
130
+ }
131
+ html {
132
+ @apply scroll-smooth;
133
+ }
134
+ body {
135
+ @apply bg-background text-foreground overscroll-none;
136
+ }
137
+ hr:where([aria-orientation='vertical']) {
138
+ flex-shrink: 0;
139
+ align-self: stretch;
140
+ inline-size: 1px;
141
+ block-size: auto;
142
+ margin: 0;
143
+ border-block-start-width: 0;
144
+ border-inline-start-width: 1px;
145
+ }
146
+ }
147
+ /* Components */
148
+ /* Accordion */
149
+ @layer components {
150
+ .accordion {
151
+ @apply flex w-full flex-col;
152
+ }
153
+
154
+ .accordion > details > summary {
155
+ @apply relative flex w-full flex-1 cursor-pointer list-none items-start justify-between border border-transparent transition-all outline-none;
156
+ }
157
+
158
+ .accordion > details > summary > svg:last-child {
159
+ @apply pointer-events-none shrink-0 transition-transform;
160
+ }
161
+
162
+ .accordion > details[open] > summary > svg:last-child {
163
+ @apply rotate-180;
164
+ }
165
+
166
+ .accordion > details[aria-disabled='true'] > summary,
167
+ .accordion > details > summary[aria-disabled='true'] {
168
+ @apply pointer-events-none opacity-50;
169
+ }
170
+
171
+ .accordion > details > :not(summary) {
172
+ @apply overflow-hidden;
173
+ }
174
+ }
175
+ /* Alert */
176
+ @layer components {
177
+ .alert {
178
+ @apply relative w-full;
179
+ }
180
+
181
+ .alert:has(> footer) {
182
+ @apply pe-[4.5rem];
183
+ }
184
+
185
+ .alert > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
186
+ @apply min-h-4;
187
+ }
188
+
189
+ .alert > section {
190
+ @apply grid justify-items-start gap-1;
191
+
192
+ :where(p, ul, ol) {
193
+ @apply m-0;
194
+ }
195
+
196
+ :where(p, ul, ol):not(:last-child) {
197
+ @apply mb-4;
198
+ }
199
+
200
+ ul {
201
+ @apply list-inside list-disc;
202
+ }
203
+
204
+ ol {
205
+ @apply list-inside list-decimal;
206
+ }
207
+ }
208
+
209
+ .alert > footer {
210
+ @apply absolute;
211
+ }
212
+ }
213
+ /* Avatar */
214
+ @layer components {
215
+ .avatar {
216
+ @apply relative inline-flex shrink-0 select-none appearance-none border-0 bg-transparent p-0 align-middle outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten;
217
+ }
218
+
219
+ .avatar > img {
220
+ @apply absolute inset-0 aspect-square size-full rounded-[inherit] object-cover;
221
+ }
222
+
223
+ .avatar > span:not(.avatar-badge) {
224
+ @apply flex size-full items-center justify-center rounded-[inherit] text-sm;
225
+ }
226
+
227
+ .avatar[data-size='sm'] > span:not(.avatar-badge) {
228
+ @apply text-xs;
229
+ }
230
+
231
+ .avatar > .avatar-badge {
232
+ @apply absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none;
233
+ }
234
+
235
+ .avatar[data-size='sm'] > .avatar-badge {
236
+ @apply size-2 [&>svg]:hidden;
237
+ }
238
+
239
+ .avatar > .avatar-badge {
240
+ @apply size-2.5 [&>svg]:size-2;
241
+ }
242
+
243
+ .avatar[data-size='lg'] > .avatar-badge {
244
+ @apply size-3 [&>svg]:size-2;
245
+ }
246
+
247
+ .avatar-group {
248
+ @apply flex -space-x-2;
249
+ }
250
+
251
+ .avatar-group > .avatar,
252
+ .avatar-group > [data-count] {
253
+ @apply ring-2 ring-background;
254
+ }
255
+
256
+ .avatar-group > [data-count] {
257
+ @apply relative flex shrink-0 items-center justify-center;
258
+ }
259
+ }
260
+ /* Badge */
261
+ @layer components {
262
+ .badge {
263
+ @apply inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none;
264
+ }
265
+ }
266
+ /* Breadcrumb */
267
+ @layer components {
268
+ .breadcrumb > ol {
269
+ @apply m-0 flex list-none flex-wrap items-center p-0 break-words;
270
+ }
271
+
272
+ .breadcrumb li {
273
+ @apply inline-flex items-center;
274
+ }
275
+
276
+ .breadcrumb a {
277
+ @apply rounded-sm outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50;
278
+ }
279
+
280
+ .breadcrumb [aria-current='page'] {
281
+ @apply cursor-default;
282
+ }
283
+
284
+ .breadcrumb li[aria-hidden='true'] {
285
+ @apply select-none;
286
+ }
287
+
288
+ .breadcrumb li > span[aria-hidden='true'] {
289
+ @apply flex items-center justify-center;
290
+ }
291
+
292
+ .breadcrumb [data-rtl-flip] {
293
+ @apply rtl:rotate-180;
294
+ }
295
+ }
296
+ /* Button */
297
+ @layer components {
298
+ .btn {
299
+ @apply inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
300
+ }
301
+ }
302
+ /* Button Group */
303
+ @layer components {
304
+ .button-group {
305
+ @apply isolate inline-flex w-fit items-stretch;
306
+
307
+ &:has(> :is(.dropdown-menu, .popover, .select) > [data-popover][aria-hidden='false']) {
308
+ @apply relative z-50;
309
+ }
310
+
311
+ > .input {
312
+ @apply flex-1;
313
+ }
314
+
315
+ > *:focus-visible,
316
+ > :is(.dropdown-menu, .popover, .select) > button:focus-visible {
317
+ @apply relative z-10;
318
+ }
319
+
320
+ > hr[role='separator'] {
321
+ @apply relative w-px h-auto self-stretch shrink-0 border-0 my-px mx-0;
322
+ }
323
+
324
+ &:not([data-orientation='vertical']) {
325
+ > *:not(:first-child),
326
+ > :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
327
+ @apply rounded-s-none border-s-0;
328
+ }
329
+ > *:not(:last-child),
330
+ > :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
331
+ @apply rounded-e-none;
332
+ }
333
+ }
334
+ &[data-orientation='vertical'] {
335
+ @apply flex-col;
336
+
337
+ > hr[role='separator'] {
338
+ @apply w-auto h-px mx-px my-0;
339
+ }
340
+
341
+ > *:not(:first-child),
342
+ > :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
343
+ @apply rounded-t-none border-t-0;
344
+ }
345
+ > *:not(:last-child),
346
+ > :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
347
+ @apply rounded-b-none;
348
+ }
349
+ }
350
+ }
351
+
352
+ .button-group > :is(span, label, output) {
353
+ @apply flex items-center [&_svg]:pointer-events-none;
354
+ }
355
+ }
356
+ /* Card */
357
+ @layer components {
358
+ .card {
359
+ @apply flex flex-col;
360
+
361
+ > header {
362
+ @apply @container/card-header grid auto-rows-min items-start has-[>[data-slot=card-action],>.card-action]:grid-cols-[1fr_auto] has-[>p]:grid-rows-[auto_auto];
363
+ }
364
+
365
+ > header > :is(h2, h3, [data-title], .card-title) {
366
+ @apply leading-none;
367
+ }
368
+
369
+ > header > :is([data-slot='card-action'], .card-action) {
370
+ @apply col-start-2 row-span-2 row-start-1 self-start justify-self-end;
371
+ }
372
+
373
+ > header > menu.card-action {
374
+ @apply m-0 list-none p-0;
375
+ }
376
+
377
+ > footer {
378
+ @apply flex items-center;
379
+ }
380
+ }
381
+ }
382
+ /* Chart */
383
+ @layer components {
384
+ .chart {
385
+ @apply relative flex aspect-video w-full justify-center text-xs;
386
+ }
387
+
388
+ .chart > canvas {
389
+ @apply block size-full;
390
+ }
391
+
392
+ .chart-tooltip {
393
+ @apply pointer-events-none fixed z-50 grid min-w-32 -translate-x-1/2 translate-y-2 items-start transition-[left,top,opacity] duration-150 ease-out;
394
+ }
395
+
396
+ .chart-tooltip[hidden] {
397
+ @apply opacity-0;
398
+ }
399
+
400
+ .chart-tooltip-items {
401
+ @apply grid gap-1.5;
402
+ }
403
+
404
+ .chart-tooltip-item {
405
+ @apply flex w-full flex-wrap items-center gap-2;
406
+ }
407
+
408
+ .chart-tooltip-indicator {
409
+ @apply size-2.5 shrink-0 rounded-[2px];
410
+ background-color: var(--chart-indicator-color);
411
+ }
412
+
413
+ .chart-legend-indicator {
414
+ @apply size-2 shrink-0 rounded-[2px];
415
+ background-color: var(--chart-indicator-color);
416
+ }
417
+
418
+ .chart-tooltip-label {
419
+ @apply text-muted-foreground leading-none;
420
+ }
421
+
422
+ .chart-tooltip-value {
423
+ @apply ms-auto font-mono font-medium leading-none tabular-nums;
424
+ }
425
+
426
+ .chart-legend {
427
+ @apply flex flex-wrap items-center justify-center gap-4 pt-3;
428
+ }
429
+
430
+ .chart-legend-item {
431
+ @apply flex items-center gap-1.5 text-xs;
432
+ }
433
+
434
+ .chart-legend-item[aria-pressed='false'] {
435
+ @apply opacity-70;
436
+ }
437
+ }
438
+ /* Collapsible */
439
+ @layer components {
440
+ details {
441
+ &::details-content {
442
+ block-size: 0;
443
+ @apply block opacity-0 transition-discrete transition-all;
444
+ }
445
+ &[open]::details-content {
446
+ block-size: auto;
447
+ block-size: calc-size(auto, size);
448
+ @apply opacity-100;
449
+ }
450
+ summary {
451
+ @apply inline-flex items-center cursor-pointer;
452
+ }
453
+ }
454
+ details > summary::-webkit-details-marker {
455
+ display: none;
456
+ }
457
+ }
458
+ /* Command */
459
+ @layer components {
460
+ .command-dialog {
461
+ @apply inset-y-0 bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete;
462
+ max-width: none;
463
+ max-height: none;
464
+
465
+ &:is([open], :popover-open) {
466
+ @apply opacity-100;
467
+
468
+ &::backdrop {
469
+ @apply opacity-100;
470
+ }
471
+
472
+ > .command {
473
+ @apply scale-100;
474
+ }
475
+
476
+ @starting-style {
477
+ @apply opacity-0;
478
+
479
+ &::backdrop {
480
+ @apply opacity-0;
481
+ }
482
+
483
+ > .command {
484
+ @apply scale-95;
485
+ }
486
+ }
487
+ }
488
+
489
+ &::backdrop {
490
+ @apply opacity-0 transition-all transition-discrete;
491
+ }
492
+
493
+ > .command {
494
+ @apply fixed top-1/3 left-1/2 z-50 flex max-h-[min(640px,calc(100%_-_2rem))] w-full max-w-[calc(100%_-_2rem)] -translate-x-1/2 translate-y-0 scale-95 flex-col overflow-hidden transition-all sm:max-w-sm;
495
+ }
496
+
497
+ > .command > :is(button, form[method='dialog']) {
498
+ @apply absolute;
499
+ }
500
+
501
+ > .command > :is(button, form[method='dialog'] > button) {
502
+ @apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
503
+ }
504
+
505
+ > .command > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
506
+ @apply size-4;
507
+ }
508
+ }
509
+
510
+ .command {
511
+ @apply flex w-full flex-col overflow-hidden;
512
+ }
513
+
514
+ .command > header {
515
+ @apply flex items-center;
516
+ }
517
+
518
+ .command > header svg {
519
+ @apply shrink-0;
520
+ }
521
+
522
+ .command > header input {
523
+ @apply w-full bg-transparent outline-hidden disabled:cursor-not-allowed disabled:opacity-50;
524
+ }
525
+
526
+ .command [role='menu'] {
527
+ @apply overflow-x-hidden overflow-y-auto outline-hidden;
528
+ scrollbar-width: none;
529
+
530
+ &::-webkit-scrollbar {
531
+ display: none;
532
+ }
533
+ }
534
+
535
+ .command [role='menuitem'] {
536
+ @apply aria-hidden:hidden relative flex w-full cursor-default items-center outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
537
+ }
538
+
539
+ .command [role='menuitem'].active,
540
+ .command [role='menuitem'][data-selected='true'] {
541
+ @apply bg-muted text-foreground;
542
+ }
543
+
544
+ .command [role='group'] {
545
+ @apply overflow-hidden;
546
+ }
547
+
548
+ .command [role='group']:not(:has([role='menuitem']:not([aria-hidden='true']))) {
549
+ @apply hidden;
550
+ }
551
+
552
+ .command [role='heading'] {
553
+ @apply flex;
554
+ }
555
+
556
+ .command [role='separator'] {
557
+ @apply border-0;
558
+ }
559
+
560
+ .command [data-shortcut] {
561
+ @apply ms-auto;
562
+ }
563
+
564
+ .command [data-indicator] {
565
+ @apply ms-auto opacity-0;
566
+ }
567
+
568
+ .command [role='menuitem'][data-checked='true'] [data-indicator],
569
+ .command [role='menuitem'][aria-selected='true'] [data-indicator],
570
+ .command [role='menuitem'][data-selected='true'] [data-indicator] {
571
+ @apply opacity-100;
572
+ }
573
+
574
+ .command [role='menuitem']:has([data-shortcut]) [data-indicator] {
575
+ @apply hidden;
576
+ }
577
+
578
+ .command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
579
+ @apply flex items-center justify-center truncate;
580
+ }
581
+
582
+ .command [role='menu'][data-empty]:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
583
+ @apply content-[attr(data-empty)];
584
+ }
585
+
586
+ .command [role='menu']:not([data-empty]):not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
587
+ @apply content-['No_results_found'];
588
+ }
589
+
590
+ .command:not([data-command-initialized]) [role='menuitem']:not([aria-disabled='true']):not(:disabled):hover {
591
+ @apply bg-muted text-foreground;
592
+ }
593
+
594
+ .command:has(> header input:not(:placeholder-shown)) [role='separator'] {
595
+ @apply hidden;
596
+ }
597
+ }
598
+ /* Combobox */
599
+ @layer components {
600
+ .combobox {
601
+ @apply relative inline-flex w-fit flex-col;
602
+ }
603
+
604
+ .combobox > input[role='combobox'] {
605
+ @apply w-full min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
606
+ }
607
+
608
+ .combobox .input-group input[role='combobox'],
609
+ .combobox [data-popover] input[role='combobox'] {
610
+ @apply min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
611
+ }
612
+
613
+ .combobox > svg,
614
+ .combobox-trigger-icon {
615
+ @apply pointer-events-none absolute shrink-0;
616
+ }
617
+
618
+ .combobox:has(> .combobox-chips) > .combobox-trigger-icon {
619
+ @apply hidden;
620
+ }
621
+
622
+ .combobox [data-clear] {
623
+ @apply inline-flex size-6 shrink-0 cursor-default appearance-none items-center justify-center border-0 bg-transparent p-0 text-current disabled:pointer-events-none disabled:opacity-50;
624
+ }
625
+
626
+ .combobox [data-clear][hidden] {
627
+ @apply hidden;
628
+ }
629
+
630
+ .combobox .input-group:has([data-clear]:not([hidden])) button[aria-haspopup='listbox'] {
631
+ @apply hidden;
632
+ }
633
+
634
+ .combobox [data-popover] {
635
+ @apply isolate overflow-hidden;
636
+ min-width: max(100%, 9rem);
637
+ }
638
+
639
+ .combobox [role='listbox'] {
640
+ @apply outline-hidden overflow-x-hidden overflow-y-auto;
641
+ }
642
+
643
+ .combobox [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
644
+ @apply hidden;
645
+ }
646
+
647
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
648
+ @apply flex items-center justify-center truncate;
649
+ }
650
+
651
+ .combobox [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
652
+ @apply content-[attr(data-empty)];
653
+ }
654
+
655
+ .combobox [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
656
+ @apply content-['No_results_found'];
657
+ }
658
+
659
+ .combobox [role='option'] {
660
+ @apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
661
+ }
662
+
663
+ .combobox [role='option'][aria-selected='true'] {
664
+ @apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
665
+ }
666
+
667
+ .combobox [role='option'][aria-selected='true']:dir(rtl) {
668
+ @apply bg-position-[center_left_0.5rem];
669
+ }
670
+
671
+ .combobox [role='separator'] {
672
+ @apply border-0;
673
+ }
674
+
675
+ .combobox [role='option'].active,
676
+ .combobox [role='option']:focus-visible,
677
+ .combobox:not([data-combobox-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover {
678
+ @apply bg-accent text-accent-foreground;
679
+ }
680
+
681
+ .combobox-chips {
682
+ @apply flex w-full min-w-0 flex-wrap items-center;
683
+ }
684
+
685
+ .combobox-chips > input[role='combobox'] {
686
+ @apply min-w-16 flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
687
+ }
688
+
689
+ .combobox-chip {
690
+ @apply inline-flex w-fit shrink-0 items-center whitespace-nowrap;
691
+ }
692
+
693
+ .combobox-chip-remove {
694
+ @apply inline-flex shrink-0 items-center justify-center;
695
+ }
696
+ }
697
+ /* Dialog */
698
+ @keyframes dialog-scroll-lock {
699
+ from, to {
700
+ scrollbar-gutter: stable;
701
+ }
702
+ }
703
+
704
+ @layer components {
705
+ /* Lock page scroll while a modal dialog is open. The scroll timeline only
706
+ reserves the scrollbar gutter if the page can scroll, so nothing shifts. */
707
+ html:has(:is(.dialog, .alert-dialog, .command-dialog, .drawer):modal) {
708
+ overflow: hidden;
709
+ animation: dialog-scroll-lock linear both;
710
+ animation-timeline: scroll(self);
711
+ }
712
+
713
+ .dialog,
714
+ .alert-dialog {
715
+ @apply bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete;
716
+ max-width: none;
717
+ max-height: none;
718
+
719
+ &:is([open], :popover-open) {
720
+ @apply opacity-100 backdrop:opacity-100;
721
+
722
+ > * {
723
+ @apply scale-100;
724
+ }
725
+
726
+ @starting-style {
727
+ @apply opacity-0 backdrop:opacity-0;
728
+
729
+ > * {
730
+ @apply scale-95;
731
+ }
732
+ }
733
+ }
734
+
735
+ > * {
736
+ @apply fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100%_-_2rem)] w-full -translate-x-1/2 -translate-y-1/2 scale-95 flex-col transition-all outline-hidden;
737
+ }
738
+ }
739
+
740
+ .dialog {
741
+ > * > header {
742
+ @apply flex flex-col;
743
+ }
744
+
745
+ > * > section {
746
+ @apply flex-1;
747
+ }
748
+
749
+ > * > footer {
750
+ @apply flex flex-col-reverse sm:flex-row sm:justify-end;
751
+ }
752
+
753
+ > * > :is(button, form[method='dialog']) {
754
+ @apply absolute;
755
+ }
756
+
757
+ > * > :is(button, form[method='dialog'] > button) {
758
+ @apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
759
+ }
760
+
761
+ > * > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
762
+ @apply size-4;
763
+ }
764
+ }
765
+
766
+ .alert-dialog {
767
+ > * > header {
768
+ @apply grid grid-rows-[auto_1fr] place-items-center text-center sm:place-items-start sm:text-start;
769
+ }
770
+
771
+ > * > header:has(> figure) {
772
+ @apply grid-rows-[auto_auto_1fr] sm:grid-rows-[auto_1fr];
773
+ }
774
+
775
+ > * > header > figure {
776
+ @apply m-0 shrink-0 sm:row-span-2 [&_svg]:pointer-events-none [&_svg]:shrink-0;
777
+ }
778
+
779
+ > * > header > figure:has(img) {
780
+ @apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
781
+ }
782
+
783
+ > * > header:has(> figure) > :is(h2, p) {
784
+ @apply sm:col-start-2;
785
+ }
786
+
787
+ > * > footer {
788
+ @apply flex flex-col-reverse sm:flex-row sm:justify-end;
789
+ }
790
+
791
+ &:is([data-size='sm']) > * > header,
792
+ > [data-size='sm'] > header {
793
+ @apply sm:place-items-center sm:text-center;
794
+ }
795
+
796
+ &:is([data-size='sm']) > * > header:has(> figure),
797
+ > [data-size='sm'] > header:has(> figure) {
798
+ @apply sm:grid-rows-[auto_auto_1fr];
799
+ }
800
+
801
+ &:is([data-size='sm']) > * > header:has(> figure) > :is(h2, p),
802
+ > [data-size='sm'] > header:has(> figure) > :is(h2, p) {
803
+ @apply sm:col-start-auto;
804
+ }
805
+
806
+ &:is([data-size='sm']) > * > footer,
807
+ > [data-size='sm'] > footer {
808
+ @apply grid grid-cols-2 sm:grid sm:grid-cols-2;
809
+ }
810
+ }
811
+ }
812
+ /* Drawer */
813
+ @layer components {
814
+ .drawer {
815
+ @apply fixed inset-0 m-0 size-auto max-h-none max-w-none overflow-visible bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete backdrop:duration-500 backdrop:ease-[cubic-bezier(0.32,0.72,0,1)];
816
+
817
+ > * {
818
+ @apply fixed z-50 flex h-auto flex-col transition-transform duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] will-change-transform outline-hidden;
819
+ }
820
+
821
+ &:not([data-side]) > *,
822
+ &[data-side='bottom'] > * {
823
+ @apply inset-x-0 bottom-0 mt-24 max-h-[80vh] translate-y-full;
824
+ }
825
+
826
+ &[data-side='top'] > * {
827
+ @apply inset-x-0 top-0 mb-24 max-h-[80vh] -translate-y-full;
828
+ }
829
+
830
+ &[data-side='left'] > * {
831
+ @apply inset-y-0 left-0 w-3/4 max-w-sm -translate-x-full;
832
+ }
833
+
834
+ &[data-side='right'] > * {
835
+ @apply inset-y-0 right-0 w-3/4 max-w-sm translate-x-full;
836
+ }
837
+
838
+ &[data-closing] {
839
+ @apply opacity-0 backdrop:opacity-0;
840
+ }
841
+
842
+ &[data-closing]:not([data-side]) > *,
843
+ &[data-closing][data-side='bottom'] > * {
844
+ @apply translate-y-full;
845
+ }
846
+
847
+ &[data-closing][data-side='top'] > * {
848
+ @apply -translate-y-full;
849
+ }
850
+
851
+ &[data-closing][data-side='left'] > * {
852
+ @apply -translate-x-full;
853
+ }
854
+
855
+ &[data-closing][data-side='right'] > * {
856
+ @apply translate-x-full;
857
+ }
858
+
859
+ &:is([open], :popover-open):not([data-closing]) {
860
+ @apply opacity-100 backdrop:opacity-100;
861
+
862
+ > * {
863
+ @apply translate-x-0 translate-y-0;
864
+ }
865
+
866
+ @starting-style {
867
+ @apply opacity-0 backdrop:opacity-0;
868
+
869
+ &:not([data-side]) > *,
870
+ &[data-side='bottom'] > * {
871
+ @apply translate-y-full;
872
+ }
873
+
874
+ &[data-side='top'] > * {
875
+ @apply -translate-y-full;
876
+ }
877
+
878
+ &[data-side='left'] > * {
879
+ @apply -translate-x-full;
880
+ }
881
+
882
+ &[data-side='right'] > * {
883
+ @apply translate-x-full;
884
+ }
885
+ }
886
+ }
887
+
888
+ > * > header {
889
+ @apply flex flex-col;
890
+ }
891
+
892
+ > * > section {
893
+ @apply min-h-0 flex-1 overflow-y-auto;
894
+ }
895
+
896
+ > * > footer {
897
+ @apply mt-auto flex flex-col;
898
+ }
899
+ }
900
+ }
901
+ /* Dropdown Menu */
902
+ @layer components {
903
+ .dropdown-menu {
904
+ @apply relative inline-flex;
905
+ }
906
+
907
+ .dropdown-menu > [data-popover] {
908
+ min-width: anchor-size(width);
909
+ }
910
+
911
+ .dropdown-menu [role='menu'] {
912
+ @apply outline-hidden;
913
+ }
914
+
915
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
916
+ @apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
917
+ }
918
+
919
+ .dropdown-menu [role='menu'] [role='heading'] {
920
+ @apply flex;
921
+ }
922
+
923
+ .dropdown-menu [role='separator'] {
924
+ @apply border-0;
925
+ }
926
+
927
+ .dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
928
+ @apply ms-auto shrink-0 text-end;
929
+ }
930
+
931
+ .dropdown-menu [data-shortcut] {
932
+ @apply ps-8;
933
+ }
934
+
935
+ .dropdown-menu :is(kbd:last-child, .kbd:last-child):not([data-shortcut]) {
936
+ @apply ps-8;
937
+ }
938
+
939
+ .dropdown-menu [data-indicator] {
940
+ @apply pointer-events-none invisible;
941
+ }
942
+
943
+ .dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true'] [data-indicator] {
944
+ @apply visible;
945
+ }
946
+
947
+ .dropdown-menu [data-rtl-flip] {
948
+ @apply rtl:rotate-180;
949
+ }
950
+
951
+ .dropdown-menu:not([data-dropdown-menu-initialized]) :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
952
+ &:not([aria-disabled='true']):not(:disabled):hover {
953
+ @apply bg-accent text-accent-foreground;
954
+ }
955
+ }
956
+ }
957
+ /* Empty */
958
+ @layer components {
959
+ .empty {
960
+ @apply flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance;
961
+ }
962
+
963
+ .empty > header {
964
+ @apply flex max-w-sm flex-col items-center;
965
+ }
966
+
967
+ .empty figure {
968
+ @apply flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0;
969
+ }
970
+
971
+ .empty figure:has(img) {
972
+ @apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
973
+ }
974
+
975
+ .empty > :is(section, footer) {
976
+ @apply flex w-full max-w-sm min-w-0 flex-col items-center text-balance;
977
+ }
978
+
979
+ .empty > header > p {
980
+ @apply [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
981
+ }
982
+ }
983
+ /* Field */
984
+ @layer components {
985
+ .fieldset {
986
+ @apply flex flex-col;
987
+ }
988
+
989
+ .fieldset > :is([role='group'], [role='radiogroup']):not(.field),
990
+ .field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
991
+ @apply @container/field-group flex w-full flex-col;
992
+ }
993
+
994
+ .field {
995
+ @apply flex w-full flex-col data-invalid:text-destructive data-[invalid=true]:text-destructive [&>*]:w-full [&>.sr-only]:w-auto;
996
+
997
+ &[data-orientation='horizontal'] {
998
+ @apply flex-row items-center [&>*]:w-auto [&>label]:flex-auto has-[>section]:items-start has-[>section]:[&>section]:flex-1 has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px [&_p]:text-balance;
999
+ }
1000
+
1001
+ &[data-orientation='responsive'] {
1002
+ @apply flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:has-[>section]:items-start @md/field-group:[&>label]:flex-auto @md/field-group:has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px;
1003
+ }
1004
+
1005
+ section {
1006
+ @apply flex flex-1 flex-col leading-snug;
1007
+ }
1008
+
1009
+ h2,
1010
+ h3 {
1011
+ @apply flex w-fit items-center;
1012
+ }
1013
+
1014
+ [role='alert'] {
1015
+ @apply font-normal;
1016
+
1017
+ ul {
1018
+ @apply ms-4 flex list-disc flex-col gap-1;
1019
+ }
1020
+ }
1021
+ }
1022
+
1023
+ .field > label,
1024
+ .field > section > label,
1025
+ label:has(> .field) {
1026
+ @apply w-fit;
1027
+ }
1028
+
1029
+ .field > label:has(> .field),
1030
+ .field > label:has(input[type='radio']),
1031
+ .field > label:has(input[type='checkbox']),
1032
+ .field > label:has(input[role='switch']),
1033
+ label:has(> .field) {
1034
+ @apply w-full;
1035
+ }
1036
+
1037
+ .field > label:has(> .field),
1038
+ label:has(> .field) {
1039
+ @apply flex-col;
1040
+ }
1041
+
1042
+ .fieldset legend + p,
1043
+ .field > p,
1044
+ .field section > p {
1045
+ @apply leading-normal font-normal [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4;
1046
+ }
1047
+
1048
+ .field > p,
1049
+ .field section > p {
1050
+ @apply last:mt-0 nth-last-2:-mt-1;
1051
+ }
1052
+
1053
+ .field-separator {
1054
+ @apply relative;
1055
+ }
1056
+
1057
+ .field-separator > hr[role='separator'] {
1058
+ @apply absolute inset-x-0 top-1/2;
1059
+ }
1060
+
1061
+ .field-separator > span {
1062
+ @apply relative mx-auto block w-fit bg-background;
1063
+ }
1064
+ }
1065
+ /* Checkbox */
1066
+ @layer components {
1067
+ .field > input[type='checkbox']:not([role='switch']),
1068
+ .input[type='checkbox']:not([role='switch']) {
1069
+ @apply relative shrink-0 appearance-none outline-none disabled:cursor-not-allowed disabled:opacity-50;
1070
+
1071
+ &:checked:after {
1072
+ @apply content-[''] block bg-current;
1073
+ @apply mask-[image:var(--check-icon)] mask-size-[0.875rem] mask-no-repeat mask-center;
1074
+ }
1075
+ }
1076
+ }
1077
+ /* Input */
1078
+ @layer components {
1079
+ .field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
1080
+ .field > input[type='email'],
1081
+ .field > input[type='password'],
1082
+ .field > input[type='number'],
1083
+ .field > input[type='file'],
1084
+ .field > input[type='tel'],
1085
+ .field > input[type='url'],
1086
+ .field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
1087
+ .field > input[type='date'],
1088
+ .field > input[type='datetime-local'],
1089
+ .field > input[type='month'],
1090
+ .field > input[type='week'],
1091
+ .field > input[type='time'],
1092
+ .input[type='text'],
1093
+ .input[type='email'],
1094
+ .input[type='password'],
1095
+ .input[type='number'],
1096
+ .input[type='file'],
1097
+ .input[type='tel'],
1098
+ .input[type='url'],
1099
+ .input[type='search'],
1100
+ .input[type='date'],
1101
+ .input[type='datetime-local'],
1102
+ .input[type='month'],
1103
+ .input[type='week'],
1104
+ .input[type='time'],
1105
+ .input:not([type]) {
1106
+ @apply w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
1107
+ }
1108
+ }
1109
+ /* Item */
1110
+ @layer components {
1111
+ .item-group {
1112
+ @apply flex w-full flex-col;
1113
+ }
1114
+
1115
+ .item-group > hr {
1116
+ @apply w-full shrink-0 border-0 border-t;
1117
+ }
1118
+
1119
+ .item {
1120
+ @apply flex w-full flex-wrap items-center border transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50;
1121
+ }
1122
+
1123
+ a.item {
1124
+ @apply hover:bg-muted;
1125
+ }
1126
+
1127
+ .item > figure {
1128
+ @apply flex shrink-0 items-center justify-center [&_svg]:pointer-events-none;
1129
+ }
1130
+
1131
+ .item > figure:has(> img) {
1132
+ @apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
1133
+ }
1134
+
1135
+ .item > section {
1136
+ @apply flex flex-1 flex-col;
1137
+ }
1138
+
1139
+ .item > section + section {
1140
+ @apply flex-none;
1141
+ }
1142
+
1143
+ .item > aside {
1144
+ @apply flex items-center;
1145
+ }
1146
+
1147
+ .item > :is(header, footer) {
1148
+ @apply flex basis-full items-center justify-between;
1149
+ }
1150
+
1151
+ .item :is(h2, h3, h4) {
1152
+ @apply line-clamp-1 flex w-fit items-center;
1153
+ }
1154
+
1155
+ .item p {
1156
+ @apply text-muted-foreground line-clamp-2 text-start font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
1157
+ }
1158
+ }
1159
+ /* Kbd */
1160
+ @layer components {
1161
+ .kbd {
1162
+ @apply pointer-events-none inline-flex items-center justify-center select-none;
1163
+ }
1164
+ }
1165
+ /* Label */
1166
+ @layer components {
1167
+ .field > label,
1168
+ .field > section > label,
1169
+ .label {
1170
+ @apply flex items-center select-none peer-disabled:pointer-events-none;
1171
+
1172
+ &:has(>*:disabled),
1173
+ &:has(+*:disabled) {
1174
+ @apply pointer-events-none;
1175
+ }
1176
+ }
1177
+ }
1178
+ /* Native Select */
1179
+ @layer components {
1180
+ .field > select,
1181
+ select.select {
1182
+ @apply min-w-0 appearance-none outline-none select-none disabled:cursor-not-allowed disabled:opacity-50;
1183
+
1184
+ option,
1185
+ optgroup {
1186
+ @apply bg-[Canvas] text-[CanvasText];
1187
+ }
1188
+ }
1189
+ }
1190
+ /* Popover */
1191
+ @layer components {
1192
+ [data-popover] {
1193
+ @apply absolute z-50 min-w-full w-max overflow-x-hidden overflow-y-auto visible opacity-100 scale-100 transition-all outline-hidden;
1194
+
1195
+ &[aria-hidden='true'] {
1196
+ @apply invisible opacity-0 scale-95;
1197
+
1198
+ &:not([data-side]),
1199
+ &[data-side='bottom'] {
1200
+ @apply -translate-y-2;
1201
+ }
1202
+
1203
+ &[data-side='top'] {
1204
+ @apply translate-y-2;
1205
+ }
1206
+
1207
+ &[data-side='left'] {
1208
+ @apply translate-x-2;
1209
+ }
1210
+
1211
+ &[data-side='right'] {
1212
+ @apply -translate-x-2;
1213
+ }
1214
+
1215
+ &[data-side='inline-start'] {
1216
+ @apply translate-x-2;
1217
+ }
1218
+
1219
+ &[data-side='inline-start']:dir(rtl) {
1220
+ @apply -translate-x-2;
1221
+ }
1222
+
1223
+ &[data-side='inline-end'] {
1224
+ @apply -translate-x-2;
1225
+ }
1226
+
1227
+ &[data-side='inline-end']:dir(rtl) {
1228
+ @apply translate-x-2;
1229
+ }
1230
+ }
1231
+
1232
+ &:not([data-side]),
1233
+ &[data-side='bottom'] {
1234
+ @apply mt-1 top-full;
1235
+ }
1236
+
1237
+ &[data-side='top'] {
1238
+ @apply mb-1 bottom-full;
1239
+ }
1240
+
1241
+ &[data-side='left'] {
1242
+ @apply me-1 end-full;
1243
+ }
1244
+
1245
+ &[data-side='right'] {
1246
+ @apply ms-1 start-full;
1247
+ }
1248
+
1249
+ &[data-side='inline-start'] {
1250
+ @apply me-1 end-full;
1251
+ }
1252
+
1253
+ &[data-side='inline-end'] {
1254
+ @apply ms-1 start-full;
1255
+ }
1256
+
1257
+ &:not([data-side]),
1258
+ &[data-side='bottom'],
1259
+ &[data-side='top'] {
1260
+ &:not([data-align]),
1261
+ &[data-align='start'] {
1262
+ @apply start-0;
1263
+ }
1264
+
1265
+ &[data-align='end'] {
1266
+ @apply end-0;
1267
+ }
1268
+
1269
+ &[data-align='center'] {
1270
+ @apply start-1/2 -translate-x-1/2;
1271
+ }
1272
+ }
1273
+
1274
+ &[data-side='left'],
1275
+ &[data-side='right'],
1276
+ &[data-side='inline-start'],
1277
+ &[data-side='inline-end'] {
1278
+ &:not([data-align]),
1279
+ &[data-align='start'] {
1280
+ @apply top-0;
1281
+ }
1282
+
1283
+ &[data-align='end'] {
1284
+ @apply bottom-0;
1285
+ }
1286
+
1287
+ &[data-align='center'] {
1288
+ @apply top-1/2 -translate-y-1/2;
1289
+ }
1290
+ }
1291
+ }
1292
+
1293
+ .popover {
1294
+ @apply relative inline-flex;
1295
+ }
1296
+ }
1297
+ /* Progress */
1298
+ @layer components {
1299
+ .progress {
1300
+ @apply flex w-full items-center overflow-hidden;
1301
+ }
1302
+
1303
+ .progress:dir(rtl) {
1304
+ @apply flex-row-reverse;
1305
+ }
1306
+
1307
+ .progress > span {
1308
+ @apply h-full transition-all;
1309
+ }
1310
+ }
1311
+ /* Radio */
1312
+ @layer components {
1313
+ .field > input[type='radio'],
1314
+ .input[type='radio'] {
1315
+ @apply relative shrink-0 appearance-none border outline-none disabled:cursor-not-allowed disabled:opacity-50;
1316
+
1317
+ &:checked:before {
1318
+ @apply absolute top-1/2 left-1/2 content-[''] -translate-x-1/2 -translate-y-1/2 rounded-full;
1319
+ }
1320
+ }
1321
+ }
1322
+ /* Range */
1323
+ @layer components {
1324
+ .field > input[type='range'],
1325
+ .input[type='range'] {
1326
+ @apply flex appearance-none items-center p-0 outline-none disabled:pointer-events-none disabled:opacity-50;
1327
+ --slider-value: 20%;
1328
+
1329
+ &::-webkit-slider-thumb {
1330
+ @apply block shrink-0 appearance-none;
1331
+ }
1332
+
1333
+ &::-webkit-slider-runnable-track {
1334
+ @apply w-full appearance-none;
1335
+ background: linear-gradient(to right, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
1336
+ }
1337
+
1338
+ &:dir(rtl)::-webkit-slider-runnable-track {
1339
+ background: linear-gradient(to left, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
1340
+ }
1341
+
1342
+ &::-moz-range-thumb {
1343
+ @apply block shrink-0 appearance-none;
1344
+ }
1345
+
1346
+ &::-moz-range-track {
1347
+ @apply w-full appearance-none;
1348
+ background: linear-gradient(to right, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
1349
+ }
1350
+
1351
+ &:dir(rtl)::-moz-range-track {
1352
+ background: linear-gradient(to left, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
1353
+ }
1354
+
1355
+ &::-ms-thumb {
1356
+ @apply block shrink-0 appearance-none;
1357
+ }
1358
+
1359
+ &::-ms-track {
1360
+ @apply w-full appearance-none;
1361
+ }
1362
+
1363
+ &::-ms-fill-lower {
1364
+ @apply bg-primary;
1365
+ }
1366
+
1367
+ &::-ms-fill-upper {
1368
+ @apply bg-muted;
1369
+ }
1370
+ }
1371
+ }
1372
+ /* Select */
1373
+ @layer components {
1374
+ .select:not(select) {
1375
+ @apply relative inline-flex;
1376
+ }
1377
+
1378
+ .select:not(select) > button {
1379
+ @apply flex w-fit items-center justify-between whitespace-nowrap font-normal outline-hidden disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
1380
+ }
1381
+
1382
+ .select:not(select) > button > span {
1383
+ @apply flex flex-1 truncate text-start;
1384
+ }
1385
+
1386
+ .select:not(select) > button > svg {
1387
+ @apply shrink-0;
1388
+ }
1389
+
1390
+ .select:not(select) [data-popover] {
1391
+ @apply isolate overflow-x-hidden;
1392
+ min-width: max(100%, 9rem);
1393
+ }
1394
+
1395
+ .select:not(select) [role='listbox'] {
1396
+ @apply outline-hidden;
1397
+ }
1398
+
1399
+ .select:not(select) [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
1400
+ @apply hidden;
1401
+ }
1402
+
1403
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
1404
+ @apply flex items-center justify-center truncate;
1405
+ }
1406
+
1407
+ .select:not(select) [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
1408
+ @apply content-[attr(data-empty)];
1409
+ }
1410
+
1411
+ .select:not(select) [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
1412
+ @apply content-['No_results_found'];
1413
+ }
1414
+
1415
+ .select:not(select) [role='option'] {
1416
+ @apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
1417
+ }
1418
+
1419
+ .select:not(select) [role='option'][aria-selected='true'] {
1420
+ @apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
1421
+ }
1422
+
1423
+ .select:not(select) [role='option'][aria-selected='true']:dir(rtl) {
1424
+ @apply bg-position-[center_left_0.5rem];
1425
+ }
1426
+
1427
+ .select:not(select) [role='separator'] {
1428
+ @apply border-0;
1429
+ }
1430
+
1431
+ .select:not(select):not([data-select-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover,
1432
+ .select:not(select) [role='option'].active {
1433
+ @apply bg-accent text-accent-foreground;
1434
+ }
1435
+ }
1436
+ /* Sidebar */
1437
+ @layer components {
1438
+ .sidebar {
1439
+ &:not([data-sidebar-initialized]) {
1440
+ @apply max-md:hidden;
1441
+ }
1442
+ &:not([aria-hidden]),
1443
+ &[aria-hidden=false] {
1444
+ @apply max-md:bg-black/50 max-md:fixed max-md:inset-0 max-md:z-40;
1445
+ }
1446
+ > nav {
1447
+ @apply fixed inset-y-0 z-50 flex w-(--sidebar-mobile-width) flex-col transition-transform duration-300 ease-in-out md:w-(--sidebar-width);
1448
+ }
1449
+ & + * {
1450
+ @apply transition-[margin] ease-in-out duration-300;
1451
+ }
1452
+ &:not([data-side]),
1453
+ &[data-side=left] {
1454
+ > nav {
1455
+ @apply left-0 border-r;
1456
+ }
1457
+ & + * {
1458
+ @apply relative md:ml-(--sidebar-width);
1459
+ }
1460
+ &[aria-hidden=true] {
1461
+ > nav {
1462
+ @apply -translate-x-full;
1463
+ }
1464
+ & + * {
1465
+ @apply md:ml-0;
1466
+ }
1467
+ }
1468
+ }
1469
+ &[data-side=right] {
1470
+ > nav {
1471
+ @apply right-0 border-l;
1472
+ }
1473
+ & + * {
1474
+ @apply relative md:mr-(--sidebar-width);
1475
+ }
1476
+ &[aria-hidden=true] {
1477
+ > nav {
1478
+ @apply translate-x-full;
1479
+ }
1480
+ & + * {
1481
+ @apply md:mr-0;
1482
+ }
1483
+ }
1484
+ }
1485
+ > nav {
1486
+ > header,
1487
+ > footer {
1488
+ @apply flex flex-col;
1489
+ }
1490
+ [role=separator] {
1491
+ @apply w-auto;
1492
+ }
1493
+ > section {
1494
+ @apply flex min-h-0 flex-1 flex-col overflow-y-auto;
1495
+
1496
+ > [role=group] {
1497
+ @apply relative flex w-full min-w-0 flex-col;
1498
+ }
1499
+ h3 {
1500
+ @apply flex shrink-0 items-center outline-hidden transition-[margin,opacity] duration-200 ease-linear [&>svg]:shrink-0;
1501
+ }
1502
+ ul {
1503
+ @apply flex w-full min-w-0 flex-col;
1504
+
1505
+ li {
1506
+ @apply relative;
1507
+
1508
+ > a,
1509
+ > button,
1510
+ > details > summary {
1511
+ @apply flex w-full items-center overflow-hidden text-left outline-hidden transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0;
1512
+ }
1513
+ > details {
1514
+ &:not([open]) {
1515
+ > summary {
1516
+ &::after {
1517
+ @apply -rotate-90;
1518
+ }
1519
+ &:where(:dir(rtl), [dir='rtl'], [dir='rtl'] *)::after {
1520
+ @apply rotate-90;
1521
+ }
1522
+ }
1523
+ }
1524
+ > summary {
1525
+ &::after {
1526
+ @apply ms-auto block size-3.5 bg-current content-[''] transition-transform ease-linear;
1527
+ @apply mask-[image:var(--chevron-down-icon)] mask-size-[1rem] mask-no-repeat mask-center;
1528
+ }
1529
+ }
1530
+ }
1531
+ }
1532
+ ul {
1533
+ @apply flex min-w-0 flex-col;
1534
+ }
1535
+ }
1536
+ }
1537
+ }
1538
+ }
1539
+ }
1540
+ /* Scrollbar */
1541
+ @layer components {
1542
+ .scrollbar {
1543
+ scrollbar-width: auto;
1544
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
1545
+
1546
+ &::-webkit-scrollbar {
1547
+ width: var(--scrollbar-width);
1548
+ height: var(--scrollbar-width);
1549
+ }
1550
+ &::-webkit-scrollbar-track {
1551
+ background: var(--scrollbar-track);
1552
+ }
1553
+ &::-webkit-scrollbar-thumb {
1554
+ background: var(--scrollbar-thumb);
1555
+ border-radius: var(--scrollbar-radius);
1556
+ border: 1px solid transparent;
1557
+ background-clip: padding-box;
1558
+ }
1559
+ &::-webkit-scrollbar-corner {
1560
+ background: var(--scrollbar-track);
1561
+ }
1562
+ }
1563
+
1564
+ .scrollbar-sm {
1565
+ scrollbar-width: thin;
1566
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
1567
+
1568
+ &::-webkit-scrollbar {
1569
+ width: var(--scrollbar-sm-width);
1570
+ height: var(--scrollbar-sm-width);
1571
+ }
1572
+ &::-webkit-scrollbar-track {
1573
+ background: var(--scrollbar-track);
1574
+ }
1575
+ &::-webkit-scrollbar-thumb {
1576
+ background: var(--scrollbar-thumb);
1577
+ border-radius: var(--scrollbar-radius);
1578
+ border: 1px solid transparent;
1579
+ background-clip: padding-box;
1580
+ }
1581
+ &::-webkit-scrollbar-corner {
1582
+ background: var(--scrollbar-track);
1583
+ }
1584
+ }
1585
+ }
1586
+ /* Skeleton */
1587
+ @layer components {
1588
+ .skeleton {
1589
+ @apply animate-pulse;
1590
+ }
1591
+ }
1592
+ /* Switch */
1593
+ @layer components {
1594
+ .field > input[type='checkbox'][role='switch'],
1595
+ .input[type='checkbox'][role='switch'] {
1596
+ @apply inline-flex shrink-0 appearance-none items-center transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50;
1597
+ @apply before:pointer-events-none before:block before:content-[''] before:ring-0 before:transition-transform;
1598
+ }
1599
+ }
1600
+ /* Tables */
1601
+ @layer components {
1602
+ .table-container {
1603
+ @apply relative w-full overflow-x-auto;
1604
+ }
1605
+
1606
+ .table {
1607
+ @apply w-full caption-bottom;
1608
+
1609
+ thead {
1610
+ @apply [&_tr]:border-b;
1611
+ }
1612
+
1613
+ tbody {
1614
+ @apply [&_tr:last-child]:border-0;
1615
+ }
1616
+
1617
+ tfoot {
1618
+ @apply border-t font-medium [&>tr]:last:border-b-0;
1619
+ }
1620
+
1621
+ tr {
1622
+ @apply border-b transition-colors data-[state=selected]:bg-muted;
1623
+ }
1624
+
1625
+ th {
1626
+ @apply align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px];
1627
+ }
1628
+
1629
+ td {
1630
+ @apply align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px];
1631
+ }
1632
+ }
1633
+ }
1634
+ /* Tabs */
1635
+ @layer components {
1636
+ .tabs {
1637
+ @apply flex;
1638
+
1639
+ &:has(> [role='tablist'][aria-orientation='horizontal']),
1640
+ &:not(:has(> [role='tablist'][aria-orientation='vertical'])) {
1641
+ @apply flex-col;
1642
+ }
1643
+
1644
+ &:has(> [role='tablist'][aria-orientation='vertical']) {
1645
+ @apply flex-row;
1646
+ }
1647
+
1648
+ > [role='tablist'] {
1649
+ @apply text-muted-foreground inline-flex w-fit items-center justify-center;
1650
+
1651
+ &[aria-orientation='vertical'] {
1652
+ @apply h-fit flex-col;
1653
+ }
1654
+
1655
+ > [role='tab'] {
1656
+ @apply relative inline-flex flex-1 items-center justify-center whitespace-nowrap transition-all outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
1657
+ }
1658
+ }
1659
+
1660
+ > [role='tabpanel'] {
1661
+ @apply flex-1 outline-none;
1662
+ }
1663
+ }
1664
+ }
1665
+ /* Textarea */
1666
+ @layer components {
1667
+ .field > textarea,
1668
+ .textarea {
1669
+ @apply flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50;
1670
+ }
1671
+ }
1672
+ /* Input Group */
1673
+ @layer components {
1674
+ .input-group {
1675
+ @apply relative flex w-full min-w-0 items-center outline-none;
1676
+
1677
+ &[data-orientation='vertical'],
1678
+ &:has(> [data-align='block-start']),
1679
+ &:has(> [data-align='block-end']) {
1680
+ @apply h-auto flex-col items-stretch;
1681
+ }
1682
+ }
1683
+
1684
+ .input-group > :is(input, textarea, select, [data-control]) {
1685
+ @apply text-foreground placeholder:text-muted-foreground block min-w-0 flex-1 appearance-none rounded-none border-0 bg-transparent shadow-none outline-none ring-0 focus-visible:ring-0 aria-invalid:ring-0;
1686
+ }
1687
+
1688
+ .input-group > :is(input, select, [data-control]) {
1689
+ @apply h-full;
1690
+ }
1691
+
1692
+ .input-group > [data-control] {
1693
+ @apply w-full;
1694
+ }
1695
+
1696
+ .input-group:is([data-orientation='vertical'], :has(> [data-align='block-start']), :has(> [data-align='block-end'])) > :is(input, select, [data-control]) {
1697
+ @apply h-auto flex-none;
1698
+ }
1699
+
1700
+ .input-group[data-orientation='vertical']:has(> footer[data-align='end']) > :is(input, select, [data-control]),
1701
+ .input-group:has(> [data-align='block-end']) > :is(input, select, [data-control]) {
1702
+ @apply pt-3;
1703
+ }
1704
+
1705
+ .input-group[data-orientation='vertical']:has(> header[data-align='start']) > :is(input, select, [data-control]),
1706
+ .input-group:has(> [data-align='block-start']) > :is(input, select, [data-control]) {
1707
+ @apply pb-3;
1708
+ }
1709
+
1710
+ .input-group > textarea {
1711
+ @apply field-sizing-content min-h-20 w-full resize-none;
1712
+ }
1713
+
1714
+ .input-group > :is(span, kbd, svg, [role='group'], .popover, .dropdown-menu, button, footer, header, hr[role='separator']) {
1715
+ @apply shrink-0;
1716
+ }
1717
+
1718
+ .input-group > :is(span, [role='group'], footer, header) {
1719
+ @apply inline-flex items-center;
1720
+ }
1721
+
1722
+ .input-group > svg {
1723
+ @apply pointer-events-none;
1724
+ }
1725
+
1726
+ .input-group > :is([data-align='start'], [data-align='inline-start'], [data-align='block-start']) {
1727
+ @apply order-first;
1728
+ }
1729
+
1730
+ .input-group > :is([data-align='end'], [data-align='inline-end'], [data-align='block-end']) {
1731
+ @apply order-last;
1732
+ }
1733
+
1734
+ .input-group > :is([data-align='block-start'], [data-align='block-end']) {
1735
+ @apply w-full justify-start;
1736
+ }
1737
+
1738
+ .input-group > button:is([data-align='start'], [data-align='inline-start']) {
1739
+ @apply ms-1;
1740
+ }
1741
+
1742
+ .input-group > button:is([data-align='end'], [data-align='inline-end']) {
1743
+ @apply me-1;
1744
+ }
1745
+ }
1746
+ /* Toasts */
1747
+ @layer components {
1748
+ .toaster {
1749
+ @apply pointer-events-none fixed bottom-0 z-50 flex w-full flex-col-reverse gap-4 p-4 sm:max-w-90;
1750
+
1751
+ &:not([data-align]),
1752
+ &[data-align='end'] {
1753
+ @apply right-0;
1754
+ }
1755
+ &[data-align='start'] {
1756
+ @apply left-0;
1757
+ }
1758
+ &[data-align='center'] {
1759
+ @apply left-1/2 -translate-x-1/2;
1760
+ }
1761
+ .toast {
1762
+ @apply pointer-events-auto grid w-full grid-rows-[1fr] animate-[toast-up_0.3s_ease-in-out] transition-[grid-template-rows,opacity] duration-300 ease-in-out;
1763
+
1764
+ .toast-content {
1765
+ @apply flex items-center gap-2.5 overflow-hidden p-3 text-[13px];
1766
+
1767
+ svg {
1768
+ @apply size-4 shrink-0;
1769
+ }
1770
+ section {
1771
+ h2 {
1772
+ @apply font-medium tracking-tight;
1773
+ }
1774
+ p {
1775
+ @apply text-muted-foreground break-all;
1776
+ }
1777
+ }
1778
+ footer {
1779
+ @apply ms-auto flex flex-col gap-2;
1780
+
1781
+ [data-toast-action],
1782
+ [data-toast-cancel] {
1783
+ @apply h-6 px-2.5 text-xs;
1784
+ }
1785
+ }
1786
+ }
1787
+ &[aria-hidden='true'] {
1788
+ @apply grid-rows-[0fr] overflow-hidden border-0 p-0 opacity-0;
1789
+
1790
+ .toast-content {
1791
+ @apply border-0;
1792
+ }
1793
+ }
1794
+ }
1795
+ }
1796
+ }
1797
+ @keyframes toast-up {
1798
+ from {
1799
+ opacity: 0;
1800
+ transform: translateY(100%);
1801
+ }
1802
+ }
1803
+ /* Tooltip */
1804
+ @layer components {
1805
+ [data-tooltip] {
1806
+ @apply relative;
1807
+
1808
+ &:before {
1809
+ @apply absolute block z-[60] w-fit max-w-xs origin-(--transform-origin) scale-95 truncate invisible opacity-0 transition-all pointer-events-none content-[attr(data-tooltip)];
1810
+ }
1811
+
1812
+ &:hover:before {
1813
+ @apply visible opacity-100 scale-100;
1814
+ }
1815
+
1816
+ &:focus-visible:not(:hover):before {
1817
+ @apply hidden;
1818
+ }
1819
+
1820
+ &:not([data-side]),
1821
+ &[data-side='top'] {
1822
+ @apply before:bottom-full before:mb-1.5 before:translate-y-2 hover:before:translate-y-0;
1823
+ }
1824
+
1825
+ &[data-side='bottom'] {
1826
+ @apply before:top-full before:mt-1.5 before:-translate-y-2 hover:before:translate-y-0;
1827
+ }
1828
+
1829
+ &:not([data-side]),
1830
+ &[data-side='top'],
1831
+ &[data-side='bottom'] {
1832
+ &[data-align='start'] {
1833
+ @apply before:left-0;
1834
+ }
1835
+ &[data-align='end'] {
1836
+ @apply before:right-0;
1837
+ }
1838
+ &:not([data-align]),
1839
+ &[data-align='center'] {
1840
+ @apply before:left-1/2 before:-translate-x-1/2;
1841
+ }
1842
+ }
1843
+
1844
+ &[data-side='left'] {
1845
+ @apply before:right-full before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
1846
+ }
1847
+
1848
+ &[data-side='right'] {
1849
+ @apply before:left-full before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
1850
+ }
1851
+
1852
+ &[data-side='inline-start'] {
1853
+ @apply before:right-full before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
1854
+ }
1855
+
1856
+ &[data-side='inline-start']:dir(rtl) {
1857
+ @apply before:right-auto before:left-full before:mr-0 before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
1858
+ }
1859
+
1860
+ &[data-side='inline-end'] {
1861
+ @apply before:left-full before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
1862
+ }
1863
+
1864
+ &[data-side='inline-end']:dir(rtl) {
1865
+ @apply before:left-auto before:right-full before:ml-0 before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
1866
+ }
1867
+
1868
+ &[data-side='left'],
1869
+ &[data-side='right'],
1870
+ &[data-side='inline-start'],
1871
+ &[data-side='inline-end'] {
1872
+ &[data-align='start'] {
1873
+ @apply before:top-0;
1874
+ }
1875
+ &[data-align='end'] {
1876
+ @apply before:bottom-0;
1877
+ }
1878
+ &:not([data-align]),
1879
+ &[data-align='center'] {
1880
+ @apply before:top-1/2 before:-translate-y-1/2;
1881
+ }
1882
+ }
1883
+ }
1884
+ }
1885
+ /* Accordion */
1886
+ @layer components {
1887
+ .accordion {
1888
+ @apply overflow-hidden rounded-2xl border;
1889
+ }
1890
+
1891
+ .accordion > details {
1892
+ @apply open:bg-muted/50 not-last:border-b;
1893
+ }
1894
+
1895
+ .accordion > details > summary {
1896
+ @apply gap-6 p-4 text-left text-sm font-medium hover:underline;
1897
+ }
1898
+
1899
+ .accordion > details > summary > svg:last-child {
1900
+ @apply text-muted-foreground ms-auto size-4;
1901
+ }
1902
+
1903
+ .accordion > details > :not(summary) {
1904
+ @apply px-4 pt-0 pb-4 text-sm;
1905
+ }
1906
+
1907
+ /* Button */
1908
+ .btn {
1909
+ @apply rounded-4xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
1910
+ }
1911
+
1912
+ .btn:not([data-size]),
1913
+ .btn[data-size='default'] {
1914
+ @apply h-9 gap-1.5 px-3 has-[[data-icon='inline-end']]:pr-2.5 has-[[data-icon='inline-start']]:pl-2.5;
1915
+ }
1916
+
1917
+ .btn[data-size='xs'] {
1918
+ @apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
1919
+ }
1920
+
1921
+ .btn[data-size='sm'] {
1922
+ @apply h-8 gap-1 px-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
1923
+ }
1924
+
1925
+ .btn[data-size='lg'] {
1926
+ @apply h-10 gap-1.5 px-4 has-[[data-icon='inline-end']]:pr-3 has-[[data-icon='inline-start']]:pl-3;
1927
+ }
1928
+
1929
+ .btn[data-size='icon'] {
1930
+ @apply size-9;
1931
+ }
1932
+
1933
+ .btn[data-size='icon-xs'] {
1934
+ @apply size-6 [&_svg:not([class*='size-'])]:size-3;
1935
+ }
1936
+
1937
+ .btn[data-size='icon-sm'] {
1938
+ @apply size-8;
1939
+ }
1940
+
1941
+ .btn[data-size='icon-lg'] {
1942
+ @apply size-10;
1943
+ }
1944
+
1945
+ .btn:not([data-variant]),
1946
+ .btn[data-variant='primary'] {
1947
+ @apply bg-primary text-primary-foreground hover:bg-primary/80;
1948
+ }
1949
+
1950
+ .btn[data-variant='secondary'] {
1951
+ @apply bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
1952
+ }
1953
+
1954
+ .btn[data-variant='outline'] {
1955
+ @apply border-border bg-background hover:bg-muted hover:text-foreground dark:bg-transparent dark:hover:bg-input/30 aria-expanded:bg-muted aria-expanded:text-foreground;
1956
+ }
1957
+
1958
+ .btn[data-variant='ghost'] {
1959
+ @apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
1960
+ }
1961
+
1962
+ .btn[data-variant='link'] {
1963
+ @apply text-primary underline-offset-4 hover:underline;
1964
+ }
1965
+
1966
+ .btn[data-variant='destructive'] {
1967
+ @apply bg-destructive/10 text-destructive hover:bg-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
1968
+ }
1969
+
1970
+ /* Button Group */
1971
+ .button-group {
1972
+ @apply has-[>.button-group]:gap-2;
1973
+ }
1974
+
1975
+ .button-group:has(> .btn[data-variant='outline']),
1976
+ .button-group:has(> .select > button.btn[data-variant='outline']) {
1977
+ > .input,
1978
+ > .select > button {
1979
+ @apply border-border focus-visible:border-ring;
1980
+ }
1981
+ }
1982
+
1983
+ .button-group:not([data-orientation='vertical']) {
1984
+ > :last-child,
1985
+ > :is(.dropdown-menu, .popover, .select):last-child > button {
1986
+ @apply rounded-e-4xl!;
1987
+ }
1988
+ }
1989
+
1990
+ .button-group[data-orientation='vertical'] {
1991
+ > :last-child,
1992
+ > :is(.dropdown-menu, .popover, .select):last-child > button {
1993
+ @apply rounded-b-4xl!;
1994
+ }
1995
+ }
1996
+
1997
+ .button-group > :is(span, label, output) {
1998
+ @apply bg-muted gap-2 rounded-4xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
1999
+ }
2000
+
2001
+ .button-group > hr[role='separator'] {
2002
+ @apply bg-input;
2003
+ }
2004
+
2005
+
2006
+ /* Tabs */
2007
+ .tabs {
2008
+ @apply gap-2;
2009
+ }
2010
+
2011
+ .tabs > [role='tablist'] {
2012
+ @apply rounded-full p-1 h-9;
2013
+ }
2014
+
2015
+ .tabs > [role='tablist']:not([data-variant='line']) {
2016
+ @apply bg-muted;
2017
+ }
2018
+
2019
+ .tabs > [role='tablist'][data-variant='line'] {
2020
+ @apply gap-1 rounded-none bg-transparent;
2021
+ }
2022
+
2023
+ .tabs > [role='tablist'][aria-orientation='vertical'] {
2024
+ @apply h-fit rounded-2xl;
2025
+ }
2026
+
2027
+ .tabs > [role='tablist'] > [role='tab'] {
2028
+ @apply text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground gap-2 rounded-full border border-transparent! px-3 py-1 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 focus-visible:ring-[3px] focus-visible:outline-1;
2029
+ @apply after:absolute after:bg-foreground after:opacity-0 after:transition-opacity;
2030
+ }
2031
+
2032
+ .tabs > [role='tablist'][aria-orientation='vertical'] > [role='tab'] {
2033
+ @apply w-full justify-start px-3 py-1.5 rounded-2xl;
2034
+ }
2035
+
2036
+ .tabs > [role='tablist'][data-variant='line'][aria-orientation='horizontal'] > [role='tab'] {
2037
+ @apply bg-transparent shadow-none after:inset-x-0 after:bottom-[-5px] after:h-0.5;
2038
+ }
2039
+
2040
+ .tabs > [role='tablist'][data-variant='line'][aria-orientation='vertical'] > [role='tab'] {
2041
+ @apply bg-transparent shadow-none after:inset-y-0 after:end-[-4px] after:w-0.5;
2042
+ }
2043
+
2044
+ .tabs > [role='tablist']:not([data-variant='line']) > [role='tab'][aria-selected='true'] {
2045
+ @apply bg-background text-foreground dark:border-input dark:bg-input/30 dark:text-foreground shadow-sm;
2046
+ }
2047
+
2048
+ .tabs > [role='tablist'][data-variant='line'] > [role='tab'][aria-selected='true'] {
2049
+ @apply bg-transparent text-foreground shadow-none dark:border-transparent dark:bg-transparent dark:text-foreground after:opacity-100;
2050
+ }
2051
+
2052
+ .tabs > [role='tablist'] > [role='tab']:has(> svg:first-child) {
2053
+ @apply ps-2;
2054
+ }
2055
+
2056
+ .tabs > [role='tablist'] > [role='tab']:has(> svg:last-child) {
2057
+ @apply pe-2;
2058
+ }
2059
+
2060
+ .tabs > [role='tabpanel'] {
2061
+ @apply text-sm;
2062
+ }
2063
+
2064
+ /* Textarea */
2065
+ .field > textarea,
2066
+ .textarea {
2067
+ @apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-2xl border px-3 py-3 text-base transition-[color,box-shadow,background-color] focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
2068
+ }
2069
+ /* Input */
2070
+ .field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
2071
+ .field > input[type='email'],
2072
+ .field > input[type='password'],
2073
+ .field > input[type='number'],
2074
+ .field > input[type='file'],
2075
+ .field > input[type='tel'],
2076
+ .field > input[type='url'],
2077
+ .field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
2078
+ .field > input[type='date'],
2079
+ .field > input[type='datetime-local'],
2080
+ .field > input[type='month'],
2081
+ .field > input[type='week'],
2082
+ .field > input[type='time'],
2083
+ .field > input:not([type]),
2084
+ .input[type='text'],
2085
+ .input[type='email'],
2086
+ .input[type='password'],
2087
+ .input[type='number'],
2088
+ .input[type='file'],
2089
+ .input[type='tel'],
2090
+ .input[type='url'],
2091
+ .input[type='search'],
2092
+ .input[type='date'],
2093
+ .input[type='datetime-local'],
2094
+ .input[type='month'],
2095
+ .input[type='week'],
2096
+ .input[type='time'],
2097
+ .input:not([type]) {
2098
+ @apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-3xl border px-3 py-1 text-base transition-[color,box-shadow,background-color] file:h-7 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
2099
+ }
2100
+
2101
+ /* Native Select */
2102
+ .field > select,
2103
+ select.select {
2104
+ @apply bg-input/50 border-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-fit rounded-3xl border py-1 ps-3 pe-8 text-base md:text-sm transition-[color,box-shadow,background-color] focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8;
2105
+ @apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.625rem] bg-size-[1rem];
2106
+ }
2107
+
2108
+ :is(.field > select, select.select):dir(rtl) {
2109
+ @apply bg-position-[center_left_0.625rem];
2110
+ }
2111
+
2112
+ /* Alert */
2113
+ .alert {
2114
+ @apply grid gap-0.5 rounded-2xl border px-4 py-3 text-start text-sm has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 [&>svg]:row-span-2 [&>svg]:translate-y-0.5 [&>svg]:text-current [&>svg:not([class*='size-'])]:size-4;
2115
+ }
2116
+
2117
+ .alert {
2118
+ @apply bg-card text-card-foreground;
2119
+ }
2120
+
2121
+ .alert[data-variant='destructive'] {
2122
+ @apply text-destructive bg-card [&>svg]:text-current;
2123
+ }
2124
+
2125
+ .alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
2126
+ .alert[data-variant='destructive'] > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
2127
+ @apply font-medium;
2128
+ }
2129
+
2130
+
2131
+ .alert:has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
2132
+ @apply col-start-2;
2133
+ }
2134
+ .alert > section {
2135
+ @apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
2136
+ }
2137
+
2138
+ .alert[data-variant='destructive'] > section {
2139
+ @apply text-destructive/90 text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
2140
+ }
2141
+
2142
+ .alert > footer,
2143
+ .alert[data-variant='destructive'] > footer {
2144
+ @apply top-2.5 end-3;
2145
+ }
2146
+ /* Avatar */
2147
+ .avatar {
2148
+ @apply rounded-full after:rounded-[inherit];
2149
+ }
2150
+
2151
+ .avatar {
2152
+ @apply size-8;
2153
+ }
2154
+
2155
+ .avatar[data-size='sm'] {
2156
+ @apply size-6;
2157
+ }
2158
+
2159
+ .avatar[data-size='lg'] {
2160
+ @apply size-10;
2161
+ }
2162
+
2163
+ .avatar > span:not(.avatar-badge) {
2164
+ @apply bg-muted text-muted-foreground rounded-[inherit];
2165
+ }
2166
+
2167
+ .avatar > img {
2168
+ @apply rounded-[inherit];
2169
+ }
2170
+
2171
+ .avatar > .avatar-badge {
2172
+ @apply bg-primary text-primary-foreground ring-background;
2173
+ }
2174
+
2175
+ .avatar-group > [data-count] {
2176
+ @apply bg-muted text-muted-foreground size-8 rounded-full text-sm [&>svg]:size-4;
2177
+ }
2178
+
2179
+ .avatar-group:has(> .avatar[data-size='sm']) > [data-count] {
2180
+ @apply size-6 [&>svg]:size-3;
2181
+ }
2182
+
2183
+ .avatar-group:has(> .avatar[data-size='lg']) > [data-count] {
2184
+ @apply size-10 [&>svg]:size-5;
2185
+ }
2186
+
2187
+ /* Badge */
2188
+ .badge {
2189
+ @apply h-5 gap-1 rounded-3xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all [&>svg]:size-3!;
2190
+ }
2191
+
2192
+ .badge:not([data-variant]),
2193
+ .badge[data-variant='primary'] {
2194
+ @apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
2195
+ }
2196
+
2197
+ .badge[data-variant='secondary'] {
2198
+ @apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
2199
+ }
2200
+
2201
+ .badge[data-variant='outline'] {
2202
+ @apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
2203
+ }
2204
+
2205
+ .badge[data-variant='destructive'] {
2206
+ @apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
2207
+ }
2208
+
2209
+ .badge[data-variant='ghost'] {
2210
+ @apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
2211
+ }
2212
+
2213
+ .badge[data-variant='link'] {
2214
+ @apply text-primary underline-offset-4 hover:underline;
2215
+ }
2216
+
2217
+ /* Breadcrumb */
2218
+ .breadcrumb > ol {
2219
+ @apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
2220
+ }
2221
+
2222
+ .breadcrumb li {
2223
+ @apply gap-1.5;
2224
+ }
2225
+
2226
+ .breadcrumb a {
2227
+ @apply transition-colors hover:text-foreground;
2228
+ }
2229
+
2230
+ .breadcrumb [aria-current='page'] {
2231
+ @apply font-normal text-foreground;
2232
+ }
2233
+
2234
+ .breadcrumb li[aria-hidden='true'] > svg {
2235
+ @apply size-3.5;
2236
+ }
2237
+
2238
+ .breadcrumb li > span[aria-hidden='true'] {
2239
+ @apply size-5 [&>svg]:size-4;
2240
+ }
2241
+
2242
+ /* Command */
2243
+ .command {
2244
+ @apply bg-popover text-popover-foreground rounded-4xl! p-1;
2245
+ }
2246
+
2247
+ .command-dialog > .command {
2248
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 rounded-4xl! shadow-xl ring-1 duration-100;
2249
+ }
2250
+
2251
+ .command > header {
2252
+ @apply m-1 mb-0 h-9 gap-0 rounded-3xl bg-input/50 px-3;
2253
+ }
2254
+
2255
+ .command > header svg {
2256
+ @apply size-4 opacity-50;
2257
+ }
2258
+
2259
+ .command > header input {
2260
+ @apply ps-1.5 text-base md:text-sm placeholder:text-muted-foreground;
2261
+ }
2262
+
2263
+ .command [role='menu'] {
2264
+ @apply max-h-72 scroll-py-1;
2265
+ }
2266
+
2267
+ .command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
2268
+ @apply py-6 text-center text-sm;
2269
+ }
2270
+
2271
+ .command [role='group'] {
2272
+ @apply p-1.5 text-foreground;
2273
+ }
2274
+
2275
+ .command [role='heading'] {
2276
+ @apply text-muted-foreground px-3 py-2 text-xs font-medium;
2277
+ }
2278
+
2279
+ .command [role='separator'] {
2280
+ @apply bg-border/50 my-1.5 h-px;
2281
+ }
2282
+
2283
+ .command [role='menuitem'] {
2284
+ @apply gap-2 rounded-2xl px-3 py-2 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 in-[.command-dialog]:rounded-3xl;
2285
+ }
2286
+
2287
+ .command [role='menuitem'].active {
2288
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
2289
+ }
2290
+
2291
+ .command [data-shortcut] {
2292
+ @apply text-muted-foreground text-xs tracking-widest;
2293
+ }
2294
+
2295
+ .command [role='menuitem'].active [data-shortcut] {
2296
+ @apply text-foreground;
2297
+ }
2298
+
2299
+
2300
+ /* Combobox */
2301
+ .combobox > input[role='combobox'] {
2302
+ @apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-3xl border py-2 ps-3 pe-8 text-base md:text-sm transition-[color,box-shadow,background-color] focus-visible:ring-3 aria-invalid:ring-3;
2303
+ }
2304
+
2305
+ .combobox > svg,
2306
+ .combobox-trigger-icon {
2307
+ @apply text-muted-foreground end-3 top-1/2 size-4 -translate-y-1/2;
2308
+ }
2309
+
2310
+ .combobox [data-popover] {
2311
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-h-72 gap-0 rounded-3xl p-0 shadow-lg ring-1 duration-100;
2312
+ }
2313
+
2314
+ .combobox [role='listbox'] {
2315
+ @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1.5 overflow-y-auto p-1.5;
2316
+ }
2317
+
2318
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
2319
+ @apply p-0;
2320
+ }
2321
+
2322
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
2323
+ @apply px-3 py-2 text-center text-sm text-muted-foreground;
2324
+ }
2325
+
2326
+ .combobox [role='heading'] {
2327
+ @apply text-muted-foreground px-3 py-2.5 text-xs;
2328
+ }
2329
+
2330
+ .combobox [role='option'] {
2331
+ @apply gap-2.5 rounded-2xl py-2 ps-3 pe-8 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
2332
+ }
2333
+
2334
+ .combobox [role='option'].active,
2335
+ .combobox [role='option']:focus-visible {
2336
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
2337
+ }
2338
+
2339
+ .combobox [role='group'] {
2340
+ @apply scroll-my-1.5 p-1.5;
2341
+ }
2342
+
2343
+ .combobox [role='separator'] {
2344
+ @apply bg-border -mx-1.5 my-1.5 h-px;
2345
+ }
2346
+
2347
+ .combobox-chips {
2348
+ @apply bg-input/50 border-transparent focus-within:border-ring focus-within:ring-ring/30 has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40 has-[[aria-invalid=true]]:border-destructive dark:has-[[aria-invalid=true]]:border-destructive/50 min-h-9 gap-1.5 rounded-3xl border bg-clip-padding px-1.5 py-1.5 text-sm transition-[color,box-shadow,background-color] focus-within:ring-3 has-[[aria-invalid=true]]:ring-3;
2349
+ }
2350
+
2351
+ .combobox-chips > input[role='combobox'] {
2352
+ @apply text-base md:text-sm;
2353
+ }
2354
+
2355
+ .combobox-chip {
2356
+ @apply bg-input text-foreground dark:bg-input/60 h-5.5 gap-1 rounded-3xl px-2 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
2357
+ }
2358
+
2359
+ .combobox-chip-remove {
2360
+ @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
2361
+ }
2362
+
2363
+ .combobox [data-popover] > .input-group {
2364
+ @apply m-1.5 mb-0 h-8 w-auto border-input/30 bg-input/50 shadow-none focus-within:border-inherit focus-within:ring-0;
2365
+ }
2366
+
2367
+ .combobox [data-popover] > input[role='combobox'] {
2368
+ @apply mb-1 w-full;
2369
+ }
2370
+ /* Select */
2371
+ .select:not(select) > button {
2372
+ @apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 data-[size=sm]:h-8 gap-1.5 rounded-3xl border px-3 py-2 text-sm transition-[color,box-shadow,background-color] focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
2373
+ }
2374
+
2375
+ .select:not(select) > button > span {
2376
+ @apply gap-1.5;
2377
+ }
2378
+
2379
+ .select:not(select) > button > svg {
2380
+ @apply text-muted-foreground size-4;
2381
+ }
2382
+
2383
+ .select:not(select) [data-popover] {
2384
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
2385
+ }
2386
+
2387
+
2388
+
2389
+
2390
+ .select:not(select) [role='listbox'] {
2391
+ @apply scroll-py-1.5;
2392
+ }
2393
+
2394
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
2395
+ @apply py-6 text-center text-sm;
2396
+ }
2397
+
2398
+ .select:not(select) [role='heading'] {
2399
+ @apply text-muted-foreground px-3 py-2.5 text-xs;
2400
+ }
2401
+
2402
+ .select:not(select) [role='option'] {
2403
+ @apply gap-2.5 rounded-2xl py-2 ps-3 pe-8 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
2404
+ }
2405
+
2406
+ .select:not(select) [role='option'].active,
2407
+ .select:not(select) [role='option']:focus-visible {
2408
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
2409
+ }
2410
+
2411
+ .select:not(select) [role='group'] {
2412
+ @apply scroll-my-1.5 p-1.5;
2413
+ }
2414
+
2415
+ .select:not(select) [role='separator'] {
2416
+ @apply bg-border -mx-1.5 my-1.5 h-px;
2417
+ }
2418
+
2419
+
2420
+ /* Dialog */
2421
+ .dialog::backdrop,
2422
+ .alert-dialog::backdrop,
2423
+ .command-dialog::backdrop {
2424
+ @apply bg-black/30 backdrop-blur-sm duration-100;
2425
+ }
2426
+
2427
+ .alert-dialog > * {
2428
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-xs gap-6 rounded-4xl p-6 shadow-xl ring-1 duration-100 sm:max-w-md;
2429
+ }
2430
+
2431
+ .alert-dialog:is([data-size='sm']) > *,
2432
+ .alert-dialog > [data-size='sm'] {
2433
+ @apply sm:max-w-xs;
2434
+ }
2435
+
2436
+ .dialog > * {
2437
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-4xl p-6 text-sm shadow-xl ring-1 duration-100 sm:max-w-md;
2438
+ }
2439
+
2440
+ .dialog > * > :is(button, form[method='dialog']) {
2441
+ @apply top-4 end-4;
2442
+ }
2443
+
2444
+ .dialog > * > :is(button, form[method='dialog'] > button) {
2445
+ @apply bg-secondary;
2446
+ }
2447
+
2448
+ .dialog > * > header {
2449
+ @apply gap-1.5;
2450
+ }
2451
+
2452
+ .alert-dialog > * > header {
2453
+ @apply gap-x-6 gap-y-1.5;
2454
+ }
2455
+
2456
+ .alert-dialog > * > header > figure {
2457
+ @apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full [&>svg:not([class*='size-'])]:size-8;
2458
+ }
2459
+
2460
+ .alert-dialog > * > footer,
2461
+ .dialog > * > footer {
2462
+ @apply gap-2;
2463
+ }
2464
+
2465
+ .dialog > * > header > h2,
2466
+ .dialog > * > [data-title] {
2467
+ @apply text-base leading-none font-medium;
2468
+ }
2469
+
2470
+ .alert-dialog > * > header > h2,
2471
+ .alert-dialog > * > [data-title] {
2472
+ @apply text-lg font-medium;
2473
+ }
2474
+
2475
+ .dialog > * > header > p,
2476
+ .dialog > * > [data-description] {
2477
+ @apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
2478
+ }
2479
+
2480
+ .alert-dialog > * > header > p,
2481
+ .alert-dialog > * > [data-description] {
2482
+ @apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
2483
+ }
2484
+
2485
+ /* Drawer */
2486
+ .drawer::backdrop {
2487
+ @apply bg-black/30 backdrop-blur-sm;
2488
+ }
2489
+
2490
+ .drawer > * {
2491
+ @apply before:bg-popover before:border-border bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border before:shadow-xl;
2492
+ }
2493
+
2494
+ .drawer > * > header {
2495
+ @apply gap-0.5 p-4 text-start md:gap-1.5;
2496
+ }
2497
+
2498
+ .drawer:not([data-side]) > * > header,
2499
+ .drawer[data-side='bottom'] > * > header,
2500
+ .drawer[data-side='top'] > * > header {
2501
+ @apply text-center;
2502
+ }
2503
+
2504
+ .drawer > * > footer {
2505
+ @apply gap-2 p-4;
2506
+ }
2507
+
2508
+ .drawer > * > header > h2,
2509
+ .drawer > * > [data-title] {
2510
+ @apply text-lg font-semibold leading-none tracking-tight;
2511
+ }
2512
+
2513
+ .drawer > * > header > p,
2514
+ .drawer > * > [data-description] {
2515
+ @apply text-muted-foreground text-sm;
2516
+ }
2517
+
2518
+ /* Dropdown Menu */
2519
+ .dropdown-menu > [data-popover] {
2520
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
2521
+ }
2522
+
2523
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
2524
+ @apply gap-2.5 rounded-2xl px-3 py-2 text-sm font-medium focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg:not([class*='size-'])]:size-4;
2525
+ }
2526
+
2527
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
2528
+ @apply bg-muted text-foreground;
2529
+ }
2530
+
2531
+ .dropdown-menu [data-variant='destructive'] {
2532
+ @apply text-destructive;
2533
+ }
2534
+
2535
+ .dropdown-menu [data-variant='destructive']:is(:focus-visible, .active) {
2536
+ @apply bg-destructive/10 text-destructive dark:bg-destructive/20;
2537
+ }
2538
+
2539
+ .dropdown-menu [data-variant='destructive'] svg {
2540
+ @apply text-destructive;
2541
+ }
2542
+
2543
+ .dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio']) {
2544
+ @apply py-2 pe-8 ps-3;
2545
+ }
2546
+
2547
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-inset],
2548
+ .dropdown-menu [role='heading'][data-inset] {
2549
+ @apply ps-9.5;
2550
+ }
2551
+
2552
+ .dropdown-menu [data-indicator] {
2553
+ @apply absolute end-2 flex items-center justify-center;
2554
+ }
2555
+
2556
+ .dropdown-menu [role='heading'] {
2557
+ @apply text-muted-foreground px-3 py-2.5 text-xs;
2558
+ }
2559
+
2560
+ .dropdown-menu [role='separator'] {
2561
+ @apply bg-border/50 -mx-1.5 my-1.5 h-px;
2562
+ }
2563
+
2564
+ .dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
2565
+ @apply text-muted-foreground font-sans text-xs tracking-widest;
2566
+ }
2567
+
2568
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
2569
+ @apply text-accent-foreground;
2570
+ }
2571
+
2572
+ /* Popover */
2573
+ [data-popover] {
2574
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 flex flex-col gap-4 rounded-3xl p-4 text-sm shadow-lg ring-1 duration-100;
2575
+ }
2576
+ .popover > [data-popover] > header,
2577
+ .popover > [data-popover] > [data-header] {
2578
+ @apply flex flex-col gap-1 text-sm;
2579
+ }
2580
+
2581
+ .popover > [data-popover] > header > :is(h1, h2, h3, h4, h5, h6),
2582
+ .popover > [data-popover] > :is(h1, h2, h3, h4, h5, h6, [data-title]) {
2583
+ @apply text-base font-medium;
2584
+ }
2585
+
2586
+ .popover > [data-popover] > header > p,
2587
+ .popover > [data-popover] > [data-description] {
2588
+ @apply text-muted-foreground;
2589
+ }
2590
+
2591
+ /* Card */
2592
+ .card {
2593
+ @apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 overflow-hidden rounded-4xl text-sm shadow-md ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-4xl [&>img:last-child]:rounded-b-4xl;
2594
+ }
2595
+
2596
+ .card {
2597
+ @apply gap-6 py-6;
2598
+ }
2599
+
2600
+ .card[data-size='sm'] {
2601
+ @apply gap-4 py-4;
2602
+ }
2603
+
2604
+ .card > header {
2605
+ @apply gap-1.5 rounded-t-4xl px-6 [.border-b]:pb-6;
2606
+ }
2607
+
2608
+ .card[data-size='sm'] > header {
2609
+ @apply px-4 [.border-b]:pb-4;
2610
+ }
2611
+
2612
+ .card > header > :is(h2, h3, [data-title], .card-title) {
2613
+ @apply text-base font-medium;
2614
+ }
2615
+
2616
+ .card > header > :is(p, [data-description], .card-description) {
2617
+ @apply text-muted-foreground text-sm;
2618
+ }
2619
+
2620
+ .card > section {
2621
+ @apply px-6;
2622
+ }
2623
+
2624
+ .card[data-size='sm'] > section {
2625
+ @apply px-4;
2626
+ }
2627
+
2628
+ .card > footer {
2629
+ @apply rounded-b-4xl px-6 [.border-t]:pt-6;
2630
+ }
2631
+
2632
+ .card[data-size='sm'] > footer {
2633
+ @apply px-4 [.border-t]:pt-4;
2634
+ }
2635
+
2636
+ /* Chart */
2637
+ .chart {
2638
+ --chart-bar-radius: 6px;
2639
+ }
2640
+
2641
+ .chart-tooltip {
2642
+ @apply border-border/50 bg-background text-foreground gap-1.5 rounded-2xl border px-2.5 py-1.5 text-xs shadow-xl;
2643
+ }
2644
+
2645
+ .chart-tooltip-title {
2646
+ @apply font-medium;
2647
+ }
2648
+
2649
+ .chart-legend-item {
2650
+ @apply text-foreground;
2651
+ }
2652
+
2653
+ .chart-legend-item[aria-pressed='false'] {
2654
+ @apply text-muted-foreground;
2655
+ }
2656
+
2657
+ /* Checkbox */
2658
+ .field > input[type='checkbox']:not([role='switch']),
2659
+ .input[type='checkbox']:not([role='switch']) {
2660
+ @apply bg-input/90 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary border-transparent aria-invalid:checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[5px] border transition-shadow in-data-[disabled=true]:opacity-50 focus-visible:ring-3 aria-invalid:ring-3;
2661
+ }
2662
+
2663
+ :is(.field > input[type='checkbox']:not([role='switch']), .input[type='checkbox']:not([role='switch'])):checked:after {
2664
+ @apply size-3.5;
2665
+ }
2666
+
2667
+ /* Radio */
2668
+ [role='radiogroup'] {
2669
+ @apply grid gap-3;
2670
+ }
2671
+
2672
+ .field > input[type='radio'],
2673
+ .input[type='radio'] {
2674
+ @apply bg-input/90 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary border-transparent aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4 rounded-full border focus-visible:ring-3 aria-invalid:ring-3;
2675
+ }
2676
+
2677
+ :is(.field > input[type='radio'], .input[type='radio']):checked:before {
2678
+ @apply bg-primary-foreground size-2;
2679
+ }
2680
+
2681
+ html.dark :is(.field > input[type='radio'], .input[type='radio']):checked:before {
2682
+ @apply size-2.5;
2683
+ }
2684
+
2685
+ /* Switch */
2686
+ .field > input[type='checkbox'][role='switch'],
2687
+ .input[type='checkbox'][role='switch'] {
2688
+ @apply checked:bg-primary not-checked:bg-input/90 checked:border-primary border-2 not-checked:border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-full focus-visible:ring-3 aria-invalid:ring-3;
2689
+ }
2690
+
2691
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']) {
2692
+ @apply h-5 w-11;
2693
+ }
2694
+
2695
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm'] {
2696
+ @apply h-4 w-7;
2697
+ }
2698
+
2699
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
2700
+ @apply bg-background rounded-full shadow-sm;
2701
+ }
2702
+
2703
+ html:not(.dark) :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
2704
+ @apply bg-clip-padding;
2705
+ }
2706
+
2707
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
2708
+ @apply bg-foreground;
2709
+ }
2710
+
2711
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
2712
+ @apply bg-primary-foreground;
2713
+ }
2714
+
2715
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
2716
+ @apply h-4 w-6;
2717
+ }
2718
+
2719
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm']:before {
2720
+ @apply h-3 w-4;
2721
+ }
2722
+
2723
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:not([data-size='sm']):before {
2724
+ @apply translate-x-[calc(100%-8px)];
2725
+ }
2726
+
2727
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked[data-size='sm']:before {
2728
+ @apply translate-x-[calc(100%-8px)];
2729
+ }
2730
+
2731
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked:not([data-size='sm']):before {
2732
+ @apply -translate-x-[calc(100%-8px)];
2733
+ }
2734
+
2735
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked[data-size='sm']:before {
2736
+ @apply -translate-x-[calc(100%-8px)];
2737
+ }
2738
+
2739
+ :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
2740
+ @apply translate-x-0;
2741
+ }
2742
+
2743
+
2744
+ /* Field */
2745
+ .fieldset {
2746
+ @apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
2747
+ }
2748
+
2749
+ .fieldset > legend {
2750
+ @apply mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base;
2751
+ }
2752
+
2753
+ .fieldset > :is([role='group'], [role='radiogroup']):not(.field),
2754
+ .field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
2755
+ @apply gap-7;
2756
+
2757
+ &[role='radiogroup'],
2758
+ &:has(> .field > input[type='checkbox']:not([role='switch'])),
2759
+ &:has(> .field > input[type='radio']),
2760
+ &[data-slot='checkbox-group'],
2761
+ &[data-slot='radio-group'] {
2762
+ @apply gap-3;
2763
+ }
2764
+ }
2765
+
2766
+ :is(.fieldset, .field) > :is([role='group'], [role='radiogroup']):not(.field) > :is([role='group'], [role='radiogroup']):not(.field),
2767
+ .field > fieldset:not(.field) > :is([role='group'], [role='radiogroup']):not(.field) {
2768
+ @apply gap-4;
2769
+ }
2770
+
2771
+ .field {
2772
+ @apply data-invalid:text-destructive data-[invalid=true]:text-destructive gap-3;
2773
+ }
2774
+
2775
+ .field > section {
2776
+ @apply gap-1;
2777
+ }
2778
+
2779
+ .field > label,
2780
+ .field > section > label,
2781
+ label:has(> .field) {
2782
+ @apply has-[:checked]:bg-input/30 gap-2 leading-snug in-data-[disabled=true]:opacity-50;
2783
+ }
2784
+
2785
+ .field > label:has(input[type='radio']),
2786
+ .field > label:has(input[type='checkbox']),
2787
+ .field > label:has(input[role='switch']),
2788
+ .field > label:has(> .field),
2789
+ label:has(> .field) {
2790
+ @apply rounded-2xl border;
2791
+ }
2792
+
2793
+ .field > label:has(input[type='radio']),
2794
+ .field > label:has(input[type='checkbox']),
2795
+ .field > label:has(input[role='switch']) {
2796
+ @apply p-4;
2797
+ }
2798
+
2799
+ :is(.field > label, label:has(> .field)) > .field {
2800
+ @apply p-4;
2801
+ }
2802
+ .field h2,
2803
+ .field h3 {
2804
+ @apply gap-2 leading-snug text-sm font-medium in-data-[disabled=true]:opacity-50;
2805
+ }
2806
+
2807
+ .fieldset legend + p,
2808
+ .field > p,
2809
+ .field section > p {
2810
+ @apply text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5;
2811
+ }
2812
+
2813
+ .fieldset > legend[data-variant='label'] {
2814
+ @apply mb-0;
2815
+ }
2816
+
2817
+ .fieldset > legend:not([data-variant]) + p,
2818
+ .fieldset > legend[data-variant='legend'] + p {
2819
+ @apply -mt-1.5;
2820
+ }
2821
+
2822
+ .field-separator {
2823
+ @apply -my-2 h-5 text-sm in-data-[variant=outline]:-mb-2;
2824
+ }
2825
+
2826
+ .field-separator > span {
2827
+ @apply text-muted-foreground px-2;
2828
+ }
2829
+
2830
+ .field [role="alert"] {
2831
+ @apply text-destructive text-sm;
2832
+ }
2833
+
2834
+ /* Input Group */
2835
+ .input-group {
2836
+ @apply h-9 has-[>textarea]:h-auto rounded-4xl border border-transparent bg-input/50 transition-[color,box-shadow,background-color] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/30 has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-3 has-[[aria-invalid=true]]:ring-destructive/20 has-[>textarea]:rounded-2xl dark:has-[[aria-invalid=true]]:ring-destructive/40;
2837
+ }
2838
+
2839
+
2840
+ .input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
2841
+ @apply opacity-50;
2842
+ }
2843
+ .input-group[data-orientation='vertical'] {
2844
+ @apply rounded-3xl;
2845
+ }
2846
+ .input-group > :is(input, select, [data-control]) {
2847
+ @apply px-3 py-1 text-base md:text-sm;
2848
+ }
2849
+
2850
+ .input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
2851
+ @apply ps-1.5;
2852
+ }
2853
+
2854
+ .input-group:not([data-orientation='vertical']):has(> :is([data-align='end'], [data-align='inline-end'])) > :is(input, select, [data-control]) {
2855
+ @apply pe-1.5;
2856
+ }
2857
+
2858
+ .input-group > textarea {
2859
+ @apply px-3 py-2.5 text-base md:text-sm;
2860
+ }
2861
+
2862
+ .input-group > :is(span, [role='group'], header, footer),
2863
+ .input-group > :is(svg, kbd, .popover, .dropdown-menu) {
2864
+ @apply gap-2 py-2 text-sm font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-4;
2865
+ }
2866
+
2867
+ .input-group > :is([data-align='start'], [data-align='inline-start']) {
2868
+ @apply ps-3;
2869
+ }
2870
+
2871
+ .input-group > :is([data-align='end'], [data-align='inline-end']) {
2872
+ @apply pe-3;
2873
+ }
2874
+
2875
+ .input-group > :is([data-align='start'], [data-align='inline-start']):has(> button) {
2876
+ @apply -ms-1;
2877
+ }
2878
+
2879
+ .input-group > :is([data-align='end'], [data-align='inline-end']):has(> button) {
2880
+ @apply -me-1;
2881
+ }
2882
+
2883
+ .input-group > :is([data-align='start'], [data-align='inline-start']):has(> kbd) {
2884
+ @apply -ms-0.5;
2885
+ }
2886
+
2887
+ .input-group > :is([data-align='end'], [data-align='inline-end']):has(> kbd) {
2888
+ @apply -me-0.5;
2889
+ }
2890
+ .input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
2891
+ @apply px-3;
2892
+ }
2893
+
2894
+ .input-group > [data-align='block-start'] {
2895
+ @apply px-3 pt-2;
2896
+ }
2897
+
2898
+ .input-group > [data-align='block-end'] {
2899
+ @apply px-3 pb-2;
2900
+ }
2901
+
2902
+ .input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']) {
2903
+ @apply px-3 pt-3;
2904
+ }
2905
+
2906
+ .input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']) {
2907
+ @apply px-3 pb-3;
2908
+ }
2909
+
2910
+ .input-group[data-orientation='vertical']:has(> input) > :is(header[data-align='start'], [data-align='block-start']) {
2911
+ @apply pt-3.5;
2912
+ }
2913
+
2914
+ .input-group[data-orientation='vertical']:has(> input) > :is(footer[data-align='end'], [data-align='block-end']) {
2915
+ @apply pb-3.5;
2916
+ }
2917
+
2918
+ .input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']).border-b {
2919
+ @apply pb-3.5;
2920
+ }
2921
+
2922
+ .input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']).border-t {
2923
+ @apply pt-3.5;
2924
+ }
2925
+
2926
+
2927
+ .input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
2928
+ @apply rounded-3xl bg-muted-foreground/10 px-1.5;
2929
+ }
2930
+
2931
+ .input-group > :is(button, [role='group'] > button, header > button, footer > button) {
2932
+ @apply gap-2 rounded-xl text-sm shadow-none [&>svg:not([class*='size-'])]:size-3.5;
2933
+ }
2934
+
2935
+
2936
+ .input-group > :is(button, [role='group'] > button, header > button, footer > button):has(> svg):not(:has(> :not(svg))) {
2937
+ @apply size-6 rounded-xl p-0;
2938
+ }
2939
+
2940
+ /* Empty */
2941
+ .empty {
2942
+ @apply gap-4 rounded-2xl border-dashed p-12;
2943
+ }
2944
+
2945
+ .empty > header {
2946
+ @apply gap-2;
2947
+ }
2948
+
2949
+ .empty figure {
2950
+ @apply mb-2;
2951
+ }
2952
+
2953
+ .empty figure:has(> svg:only-child) {
2954
+ @apply bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-xl [&_svg:not([class*='size-'])]:size-5;
2955
+ }
2956
+
2957
+ .empty :is(h2, h3, h4) {
2958
+ @apply text-lg font-medium tracking-tight;
2959
+ }
2960
+
2961
+ .empty > header > p {
2962
+ @apply text-muted-foreground text-sm/relaxed;
2963
+ }
2964
+
2965
+ .empty > :is(section, footer) {
2966
+ @apply gap-4 text-sm;
2967
+ }
2968
+
2969
+ /* Item */
2970
+ .item {
2971
+ @apply rounded-2xl border text-sm;
2972
+ }
2973
+
2974
+ .item:not([data-variant]),
2975
+ .item[data-variant='default'] {
2976
+ @apply border-transparent;
2977
+ }
2978
+
2979
+ .item[data-variant='outline'] {
2980
+ @apply border-border;
2981
+ }
2982
+
2983
+ .item[data-variant='muted'] {
2984
+ @apply bg-muted/50 border-transparent;
2985
+ }
2986
+
2987
+ .item:not([data-size]),
2988
+ .item[data-size='default'] {
2989
+ @apply gap-3.5 px-4 py-3.5;
2990
+ }
2991
+
2992
+ .item[data-size='sm'] {
2993
+ @apply gap-3.5 px-3.5 py-3;
2994
+ }
2995
+
2996
+ .item[data-size='xs'] {
2997
+ @apply gap-2.5 px-3 py-2.5;
2998
+ }
2999
+
3000
+ .item > figure {
3001
+ @apply gap-2;
3002
+ }
3003
+
3004
+ .item:has(p) > figure {
3005
+ @apply translate-y-0.5 self-start;
3006
+ }
3007
+
3008
+ .item > figure:has(> svg:only-child) {
3009
+ @apply [&_svg:not([class*='size-'])]:size-4;
3010
+ }
3011
+
3012
+ .item > figure:has(> img) {
3013
+ @apply size-10 overflow-hidden rounded-xl;
3014
+ }
3015
+
3016
+ .item[data-size='sm'] > figure:has(> img) {
3017
+ @apply size-8;
3018
+ }
3019
+
3020
+ .item[data-size='xs'] > figure:has(> img) {
3021
+ @apply size-6 rounded-lg;
3022
+ }
3023
+
3024
+ .item > section {
3025
+ @apply gap-1;
3026
+ }
3027
+
3028
+ .item[data-size='xs'] > section {
3029
+ @apply gap-0.5;
3030
+ }
3031
+
3032
+ .item :is(h2, h3, h4) {
3033
+ @apply gap-2 text-sm leading-snug font-medium underline-offset-4;
3034
+ }
3035
+
3036
+ .item p {
3037
+ @apply text-sm;
3038
+ }
3039
+
3040
+ .item[data-size='xs'] p {
3041
+ @apply text-sm;
3042
+ }
3043
+
3044
+ .item > aside,
3045
+ .item > :is(header, footer) {
3046
+ @apply gap-2;
3047
+ }
3048
+
3049
+ .item-group {
3050
+ @apply gap-4;
3051
+ }
3052
+
3053
+ .item-group:has(> .item[data-size='sm']) {
3054
+ @apply gap-2.5;
3055
+ }
3056
+
3057
+ .item-group:has(> .item[data-size='xs']) {
3058
+ @apply gap-2;
3059
+ }
3060
+
3061
+ .item-group > hr {
3062
+ @apply my-2;
3063
+ }
3064
+
3065
+ /* Kbd */
3066
+ .kbd {
3067
+ @apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5.5 w-fit min-w-5.5 gap-1 rounded-lg px-1.5 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
3068
+ }
3069
+
3070
+ /* Label */
3071
+ .field > label,
3072
+ .label {
3073
+ @apply gap-2 text-sm leading-none font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
3074
+ }
3075
+
3076
+ .field > section > label {
3077
+ @apply gap-2 text-sm leading-snug font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
3078
+ }
3079
+
3080
+ /* Sidebar */
3081
+ .sidebar > nav {
3082
+ @apply bg-sidebar text-sidebar-foreground;
3083
+ }
3084
+
3085
+ .sidebar > nav > header,
3086
+ .sidebar > nav > footer {
3087
+ @apply gap-2 p-2 [--radius:var(--radius-xl)];
3088
+ }
3089
+
3090
+ .sidebar > nav > section {
3091
+ @apply gap-2 [--radius:var(--radius-xl)];
3092
+ }
3093
+
3094
+ .sidebar > nav [role=separator] {
3095
+ @apply border-sidebar-border mx-2;
3096
+ }
3097
+
3098
+ .sidebar > nav > section > [role=group] {
3099
+ @apply p-2;
3100
+ }
3101
+
3102
+ .sidebar > nav h3 {
3103
+ @apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-xl px-3 text-xs font-medium focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
3104
+ }
3105
+
3106
+ .sidebar > nav > section > [role=group] > ul {
3107
+ @apply gap-0.5;
3108
+ }
3109
+
3110
+ .sidebar > nav > section > [role=group] {
3111
+ @apply text-sm;
3112
+ }
3113
+
3114
+ .sidebar > nav li > :is(a, button),
3115
+ .sidebar > nav li > details > summary {
3116
+ @apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground gap-2 rounded-xl px-3 py-2 text-sm focus-visible:ring-2 text-left focus-visible:outline-hidden data-[open]:hover:bg-sidebar-accent data-[open]:hover:text-sidebar-accent-foreground [&>svg]:shrink-0 [&>svg]:size-4;
3117
+ }
3118
+
3119
+ .sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
3120
+ .sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
3121
+ @apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
3122
+ }
3123
+
3124
+ .sidebar > nav li > :is(a, button):not([data-variant]),
3125
+ .sidebar > nav li > details > summary:not([data-variant]),
3126
+ .sidebar > nav li > :is(a, button)[data-variant=default],
3127
+ .sidebar > nav li > details > summary[data-variant=default] {
3128
+ @apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
3129
+ }
3130
+
3131
+ .sidebar > nav li > :is(a, button)[data-variant=outline],
3132
+ .sidebar > nav li > details > summary[data-variant=outline] {
3133
+ @apply bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
3134
+ }
3135
+
3136
+ .sidebar > nav li > :is(a, button):not([data-size]),
3137
+ .sidebar > nav li > details > summary:not([data-size]),
3138
+ .sidebar > nav li > :is(a, button)[data-size=default],
3139
+ .sidebar > nav li > details > summary[data-size=default] {
3140
+ @apply h-9 text-sm;
3141
+ }
3142
+
3143
+ .sidebar > nav li > :is(a, button)[data-size=sm],
3144
+ .sidebar > nav li > details > summary[data-size=sm] {
3145
+ @apply h-8 text-xs;
3146
+ }
3147
+
3148
+ .sidebar > nav li > :is(a, button)[data-size=lg],
3149
+ .sidebar > nav li > details > summary[data-size=lg] {
3150
+ @apply h-14 px-3 text-sm;
3151
+ }
3152
+
3153
+ .sidebar > nav li > details > summary::after {
3154
+ @apply size-4;
3155
+ }
3156
+
3157
+ .sidebar > nav li > details::details-content {
3158
+ @apply px-3.5;
3159
+ }
3160
+
3161
+ .sidebar > nav ul ul {
3162
+ @apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
3163
+ }
3164
+
3165
+ .sidebar > nav ul ul > li > :is(a, button),
3166
+ .sidebar > nav ul ul > li > details > summary {
3167
+ @apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-7 gap-2 rounded-xl px-3 text-sm focus-visible:ring-2 [&>svg]:size-4;
3168
+ }
3169
+ /* Progress */
3170
+ .progress {
3171
+ @apply bg-muted h-3 rounded-full;
3172
+ }
3173
+
3174
+ .progress > span {
3175
+ @apply bg-primary;
3176
+ }
3177
+
3178
+ /* Skeleton */
3179
+ .skeleton {
3180
+ @apply bg-muted rounded-2xl;
3181
+ }
3182
+
3183
+ /* Table */
3184
+ .table-container {
3185
+ @apply relative w-full overflow-x-auto;
3186
+ }
3187
+
3188
+ .table {
3189
+ @apply w-full caption-bottom text-sm;
3190
+ }
3191
+
3192
+ .table thead {
3193
+ @apply [&_tr]:border-b;
3194
+ }
3195
+
3196
+ .table tbody {
3197
+ @apply [&_tr:last-child]:border-0;
3198
+ }
3199
+
3200
+ .table tfoot {
3201
+ @apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
3202
+ }
3203
+
3204
+ .table tr {
3205
+ @apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
3206
+ }
3207
+
3208
+ .table th {
3209
+ @apply text-foreground h-12 px-3 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0;
3210
+ }
3211
+
3212
+ .table td {
3213
+ @apply p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0;
3214
+ }
3215
+
3216
+ .table caption {
3217
+ @apply text-muted-foreground mt-4 text-sm;
3218
+ }
3219
+
3220
+
3221
+ /* Tooltip */
3222
+ [data-tooltip]::before {
3223
+ @apply bg-foreground text-background rounded-xl px-3 py-1.5 text-xs;
3224
+ }
3225
+
3226
+ [data-tooltip][data-arrow]::after {
3227
+ @apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px];
3228
+ }
3229
+
3230
+ [data-tooltip][data-arrow][data-side='left']::after {
3231
+ @apply translate-x-[-1.5px];
3232
+ }
3233
+
3234
+ [data-tooltip][data-arrow][data-side='right']::after {
3235
+ @apply translate-x-[1.5px];
3236
+ }
3237
+
3238
+ /* Toast */
3239
+ .toast-content {
3240
+ @apply bg-popover text-popover-foreground border shadow-lg rounded-2xl;
3241
+ }
3242
+
3243
+ /* Slider */
3244
+ .field > input[type='range'],
3245
+ .input[type='range'] {
3246
+ @apply h-5;
3247
+ --slider-track-height: 0.5rem;
3248
+ --slider-thumb-size: 1rem;
3249
+ }
3250
+
3251
+ :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-runnable-track {
3252
+ @apply bg-input/90 h-2 rounded-full;
3253
+ }
3254
+
3255
+ :is(.field > input[type='range'], .input[type='range'])::-moz-range-track {
3256
+ @apply bg-input/90 h-2 rounded-full;
3257
+ }
3258
+
3259
+ :is(.field > input[type='range'], .input[type='range'])::-ms-track {
3260
+ @apply bg-input/90 h-2 rounded-full;
3261
+ }
3262
+
3263
+ :is(.field > input[type='range'], .input[type='range'])::-ms-fill-lower,
3264
+ :is(.field > input[type='range'], .input[type='range'])::-ms-fill-upper {
3265
+ @apply rounded-[inherit];
3266
+ }
3267
+
3268
+ :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
3269
+ @apply ring-black/10 ring-1 h-4 w-6 rounded-full bg-white shadow-md transition-[color,box-shadow,background-color] -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
3270
+ }
3271
+
3272
+ :is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
3273
+ @apply ring-black/10 ring-1 h-4 w-6 rounded-full bg-white shadow-md transition-[color,box-shadow,background-color];
3274
+ }
3275
+
3276
+ :is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
3277
+ @apply ring-black/10 ring-1 h-4 w-6 rounded-full bg-white shadow-md transition-[color,box-shadow,background-color];
3278
+ }
3279
+
3280
+ /* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
3281
+ html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
3282
+ @apply bg-clip-padding;
3283
+ }
3284
+
3285
+ html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
3286
+ @apply bg-clip-padding;
3287
+ }
3288
+
3289
+ html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
3290
+ @apply bg-clip-padding;
3291
+ }
3292
+
3293
+ @media (hover: hover) {
3294
+ :is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
3295
+ @apply ring-4 ring-ring/30;
3296
+ }
3297
+
3298
+ :is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
3299
+ @apply ring-4 ring-ring/30;
3300
+ }
3301
+
3302
+ :is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
3303
+ @apply ring-4 ring-ring/30;
3304
+ }
3305
+ }
3306
+
3307
+ :is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
3308
+ @apply ring-4 ring-ring/30 outline-hidden;
3309
+ }
3310
+
3311
+ :is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
3312
+ @apply ring-4 ring-ring/30 outline-hidden;
3313
+ }
3314
+
3315
+ :is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
3316
+ @apply ring-4 ring-ring/30 outline-hidden;
3317
+ }
3318
+
3319
+ }