@kanunilabs/pivotgrid 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -1,1390 +1,1390 @@
1
- /* ─────────────────────────────────────────────────────────────
2
- KANUNILABS ERP — PivotGrid Isolated Theme System
3
- Provides complete encapsulation and immunity from host CSS
4
- ───────────────────────────────────────────────────────────── */
5
-
6
- .kanuni-pivot-root {
7
- /* Base Resets for the container itself */
8
- box-sizing: border-box;
9
- font-family: inherit;
10
- line-height: 1.5;
11
- -webkit-font-smoothing: antialiased;
12
- -moz-osx-font-smoothing: grayscale;
13
-
14
- /* ─────────────────────────────────────────────────────────
15
- Theme Tokens
16
- ───────────────────────────────────────────────────────── */
17
- --pivot-bg: #ffffff;
18
- --pivot-surface: #ffffff;
19
- --pivot-surface-hover: #f3f4f6; /* zinc-100 */
20
- --pivot-surface-header: #f8fafc; /* slate-50 */
21
- --pivot-border: #e2e8f0; /* slate-200 */
22
-
23
- --pivot-text: #0f172a; /* slate-900 */
24
- --pivot-text-muted: #64748b; /* slate-500 */
25
-
26
- --pivot-primary: #0ea5e9; /* sky-500 */
27
- --pivot-primary-foreground: #ffffff;
28
- --pivot-primary-hover: #0284c7; /* sky-600 */
29
-
30
- --pivot-success: #22c55e; /* green-500 */
31
- --pivot-danger: #ef4444; /* red-500 */
32
- --pivot-warning: #f59e0b; /* amber-500 */
33
- --pivot-info: #3b82f6; /* blue-500 */
34
-
35
- /* ─────────────────────────────────────────────────────────
36
- Spacing Tokens (Base 4px system)
37
- ───────────────────────────────────────────────────────── */
38
- --pivot-space-0: 0px;
39
- --pivot-space-1: 4px;
40
- --pivot-space-1-5: 6px;
41
- --pivot-space-2: 8px;
42
- --pivot-space-3: 12px;
43
- --pivot-space-4: 16px;
44
- --pivot-space-5: 20px;
45
- --pivot-space-6: 24px;
46
- --pivot-space-8: 32px;
47
- --pivot-space-12: 48px;
48
-
49
- /* ─────────────────────────────────────────────────────────
50
- Typography Tokens
51
- ───────────────────────────────────────────────────────── */
52
- --pivot-text-xs: 11px;
53
- --pivot-text-sm: 13px;
54
- --pivot-text-base: 14px;
55
- --pivot-text-lg: 16px;
56
- --pivot-text-xl: 18px;
57
-
58
- /* ─────────────────────────────────────────────────────────
59
- Structural Tokens
60
- ───────────────────────────────────────────────────────── */
61
- --pivot-overlay-bg: rgba(0, 0, 0, 0.5);
62
- --pivot-modal-bg: var(--pivot-surface);
63
-
64
- /* Unified Shadow System */
65
- --pivot-shadow-none: none;
66
- --pivot-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
67
- --pivot-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
68
- --pivot-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
69
- --pivot-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
70
-
71
- /* Unified Border Radius System */
72
- --pivot-radius-none: 0px;
73
- --pivot-radius-sm: 4px;
74
- --pivot-radius-md: 6px;
75
- --pivot-radius-lg: 8px;
76
- --pivot-radius-xl: 12px;
77
- --pivot-radius-full: 9999px;
78
-
79
- /* Aliases for the OLD token names. ~27 rules below and 3 component inline
80
- styles use --pivot-border-radius(-sm/-lg); they were never defined, so
81
- every one of those corners rendered square. Defined here as aliases
82
- rather than migrating the usages, so a consumer who themed the old names
83
- keeps winning over these defaults. */
84
- --pivot-border-radius-sm: var(--pivot-radius-sm);
85
- --pivot-border-radius: var(--pivot-radius-md);
86
- --pivot-border-radius-lg: var(--pivot-radius-lg);
87
-
88
- /* Default text and background for the component */
89
- color: var(--pivot-text);
90
- background-color: var(--pivot-bg);
91
- font-size: var(--pivot-text-base);
92
- }
93
-
94
- /* ─────────────────────────────────────────────────────────────
95
- Strict Resets
96
- Prevents host application CSS from bleeding in
97
- ───────────────────────────────────────────────────────────── */
98
-
99
- .kanuni-pivot-root *,
100
- .kanuni-pivot-root *::before,
101
- .kanuni-pivot-root *::after {
102
- box-sizing: border-box;
103
- }
104
-
105
- /* Table Reset */
106
- .kanuni-pivot-root table {
107
- border-collapse: separate !important; /* Critical for virtualization */
108
- border-spacing: 0 !important;
109
- width: auto;
110
- margin: 0;
111
- padding: 0;
112
- background: transparent;
113
- table-layout: auto;
114
- }
115
-
116
- .kanuni-pivot-root th,
117
- .kanuni-pivot-root td {
118
- padding: 0;
119
- margin: 0;
120
- border: none;
121
- background: transparent;
122
- color: inherit;
123
- font-size: inherit;
124
- font-weight: inherit;
125
- text-align: left;
126
- vertical-align: middle;
127
- }
128
-
129
- /* Form Elements Reset */
130
- .kanuni-pivot-root button {
131
- background: transparent;
132
- border: none;
133
- padding: 0;
134
- margin: 0;
135
- font: inherit;
136
- color: inherit;
137
- cursor: pointer;
138
- outline: none;
139
- appearance: none;
140
- }
141
-
142
- .kanuni-pivot-root input,
143
- .kanuni-pivot-root select {
144
- font: inherit;
145
- color: inherit;
146
- margin: 0;
147
- outline: none;
148
- box-shadow: none;
149
- background: transparent;
150
- }
151
-
152
- /* Typography Reset */
153
- .kanuni-pivot-root h1,
154
- .kanuni-pivot-root h2,
155
- .kanuni-pivot-root h3,
156
- .kanuni-pivot-root p {
157
- margin: 0;
158
- padding: 0;
159
- font-weight: normal;
160
- color: inherit;
161
- }
162
-
163
- .kanuni-pivot-root ul,
164
- .kanuni-pivot-root ol {
165
- margin: 0;
166
- padding: 0;
167
- list-style: none;
168
- }
169
-
170
- /* ─────────────────────────────────────────────────────────────
171
- Shared Layout Utilities (Internal to PivotGrid)
172
- Replaces basic Tailwind classes
173
- ───────────────────────────────────────────────────────────── */
174
-
175
- .pivot-flex { display: flex; }
176
- .pivot-flex-col { display: flex; flex-direction: column; }
177
- .pivot-flex-1 { flex: 1; min-width: 0; min-height: 0; }
178
- .pivot-items-center { align-items: center; }
179
- .pivot-justify-center { justify-content: center; }
180
- .pivot-justify-between { justify-content: space-between; }
181
- .pivot-justify-end { justify-content: flex-end; }
182
- .pivot-gap-1 { gap: var(--pivot-space-1); }
183
- .pivot-gap-2 { gap: var(--pivot-space-2); }
184
- .pivot-gap-3 { gap: var(--pivot-space-3); }
185
- .pivot-gap-4 { gap: var(--pivot-space-4); }
186
-
187
- .pivot-w-full { width: 100%; }
188
- .pivot-h-full { height: 100%; }
189
-
190
- .pivot-relative { position: relative; }
191
- .pivot-absolute { position: absolute; }
192
-
193
- .pivot-hidden { display: none !important; }
194
- .pivot-block { display: block; }
195
-
196
- .pivot-truncate {
197
- overflow: hidden;
198
- text-overflow: ellipsis;
199
- white-space: nowrap;
200
- }
201
-
202
- .pivot-text-sm { font-size: var(--pivot-text-sm); }
203
- .pivot-text-xs { font-size: var(--pivot-text-xs); }
204
- .pivot-text-lg { font-size: var(--pivot-text-lg); }
205
- .pivot-font-medium { font-weight: 500; }
206
- .pivot-font-semibold { font-weight: 600; }
207
- .pivot-font-bold { font-weight: 700; }
208
-
209
- .pivot-text-muted { color: var(--pivot-text-muted); }
210
- .pivot-text-primary { color: var(--pivot-primary); }
211
- .pivot-text-danger { color: var(--pivot-danger); }
212
- .pivot-text-success { color: var(--pivot-success); }
213
- .pivot-text-warning { color: var(--pivot-warning); }
214
-
215
- .pivot-bg-surface { background-color: var(--pivot-surface); }
216
- .pivot-bg-primary { background-color: var(--pivot-primary); color: var(--pivot-primary-foreground); }
217
-
218
- /* Custom Scrollbar for Pivot */
219
- .pivot-custom-scrollbar,
220
- .kanuni-pivot-root .custom-scrollbar {
221
- scrollbar-width: thin;
222
- scrollbar-color: color-mix(in srgb, var(--pivot-border) 80%, transparent) transparent;
223
- }
224
-
225
- .pivot-custom-scrollbar::-webkit-scrollbar,
226
- .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar {
227
- width: 8px;
228
- height: 8px;
229
- }
230
-
231
- .pivot-custom-scrollbar::-webkit-scrollbar-track,
232
- .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-track {
233
- background: transparent;
234
- }
235
-
236
- .pivot-custom-scrollbar::-webkit-scrollbar-thumb,
237
- .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-thumb {
238
- background-color: color-mix(in srgb, var(--pivot-border) 80%, transparent);
239
- border-radius: var(--pivot-radius-full);
240
- border: 2px solid transparent;
241
- background-clip: padding-box;
242
- }
243
-
244
- .pivot-custom-scrollbar::-webkit-scrollbar-thumb:hover,
245
- .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-thumb:hover {
246
- background-color: var(--pivot-text-muted);
247
- }
248
-
249
- /* ─────────────────────────────────────────────────────────────
250
- Interaction State Standards
251
- ───────────────────────────────────────────────────────────── */
252
-
253
- /* Hover State */
254
- .pivot-state-hover { transition: all 0.2s; }
255
- .pivot-state-hover:hover {
256
- background-color: var(--pivot-surface-hover);
257
- color: var(--pivot-text);
258
- }
259
-
260
- /* Active State */
261
- .pivot-state-active:active {
262
- transform: scale(0.98);
263
- background-color: color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface));
264
- }
265
-
266
- /* Focus State */
267
- .pivot-state-focus:focus-visible {
268
- outline: 2px solid var(--pivot-primary);
269
- outline-offset: 2px;
270
- }
271
-
272
- /* Disabled State */
273
- .pivot-state-disabled,
274
- .pivot-state-disabled:hover {
275
- opacity: 0.5;
276
- cursor: not-allowed;
277
- pointer-events: none;
278
- background-color: var(--pivot-surface);
279
- }
280
-
281
- /* Selected State */
282
- .pivot-state-selected {
283
- background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent) !important;
284
- color: var(--pivot-primary) !important;
285
- border-color: color-mix(in srgb, var(--pivot-primary) 30%, transparent) !important;
286
- }
287
-
288
- /* Drag-Over State */
289
- .pivot-state-drag-over {
290
- background-color: color-mix(in srgb, var(--pivot-primary) 15%, transparent) !important;
291
- border: 2px dashed var(--pivot-primary) !important;
292
- }
293
-
294
- /* Animations */
295
- @keyframes pivot-fade-in {
296
- from { opacity: 0; }
297
- to { opacity: 1; }
298
- }
299
- @keyframes pivot-zoom-in {
300
- from { opacity: 0; transform: scale(0.95); }
301
- to { opacity: 1; transform: scale(1); }
302
- }
303
- @keyframes pivot-slide-up {
304
- from { opacity: 0; transform: translateY(10px); }
305
- to { opacity: 1; transform: translateY(0); }
306
- }
307
- /* Loading spinner. The grid's loader uses `animation: datagrid-spin …`
308
- inline; without this keyframe the spinner rendered frozen. Transform-based
309
- so it stays compositor-accelerated. */
310
- @keyframes datagrid-spin {
311
- from { transform: rotate(0deg); }
312
- to { transform: rotate(360deg); }
313
- }
314
-
315
- .pivot-animate-fade-in { animation: pivot-fade-in 0.2s ease-out; }
316
- .pivot-animate-zoom-in { animation: pivot-zoom-in 0.2s ease-out; }
317
- .pivot-animate-slide-up { animation: pivot-slide-up 0.2s ease-out; }
318
-
319
- /* ─────────────────────────────────────────────────────────────
320
- Portal/Modal Root
321
- For elements rendered outside the main PivotGrid DOM
322
- ───────────────────────────────────────────────────────────── */
323
-
324
- .kanuni-pivot-portal-root {
325
- /* Dynamic theme variables are injected by PivotPortal now */
326
-
327
- position: relative;
328
- z-index: 9999;
329
- font-family: inherit;
330
- color: var(--pivot-text);
331
- font-size: 14px;
332
- }
333
-
334
- .kanuni-pivot-portal-root *,
335
- .kanuni-pivot-portal-root *::before,
336
- .kanuni-pivot-portal-root *::after {
337
- box-sizing: border-box;
338
- }
339
-
340
- .kanuni-pivot-portal-root button {
341
- background: transparent;
342
- border: none;
343
- padding: 0;
344
- margin: 0;
345
- font: inherit;
346
- color: inherit;
347
- cursor: pointer;
348
- outline: none;
349
- appearance: none;
350
- }
351
-
352
- .kanuni-pivot-portal-root input,
353
- .kanuni-pivot-portal-root select {
354
- font: inherit;
355
- color: inherit;
356
- margin: 0;
357
- outline: none;
358
- box-shadow: none;
359
- background: transparent;
360
- }
361
-
362
- .kanuni-pivot-portal-root h1,
363
- .kanuni-pivot-portal-root h2,
364
- .kanuni-pivot-portal-root h3,
365
- .kanuni-pivot-portal-root p {
366
- margin: 0;
367
- padding: 0;
368
- font-weight: normal;
369
- color: inherit;
370
- }
371
-
372
- /* ─────────────────────────────────────────────────────────────
373
- Component Specific Styles
374
- ───────────────────────────────────────────────────────────── */
375
-
376
- .kanuni-pivot-table {
377
- border-collapse: separate !important;
378
- border-spacing: 0;
379
- }
380
-
381
- .kanuni-pivot-table .kanuni-pivot-cell {
382
- max-width: 250px;
383
- /* Deterministic row metrics: 27px line + 1px bottom border = ROW_HEIGHT
384
- (28px, see PivotGridBody). Vertical padding stays 0 so a body row can
385
- never grow past ROW_HEIGHT regardless of the host page's font size —
386
- otherwise the left/right panes drift apart row by row. */
387
- padding: 0 var(--pivot-space-2);
388
- line-height: 27px;
389
- white-space: nowrap;
390
- overflow: hidden;
391
- text-overflow: ellipsis;
392
- border-bottom: 1px solid var(--pivot-border);
393
- border-right: 1px solid var(--pivot-border);
394
- }
395
-
396
- .kanuni-pivot-table .kanuni-pivot-header-cell {
397
- max-width: 250px;
398
- padding: var(--pivot-space-1-5) var(--pivot-space-2);
399
- /* 19px line + 2×4px inline padding + 1px border = ROW_HEIGHT (28px). */
400
- line-height: 19px;
401
- white-space: nowrap;
402
- overflow: hidden;
403
- text-overflow: ellipsis;
404
- color: var(--pivot-text-header, var(--pivot-text));
405
- }
406
-
407
- /* Row header cells */
408
- .kanuni-pivot-table .kanuni-pivot-row-header {
409
- font-size: var(--pivot-text-sm);
410
- font-weight: 400;
411
- color: var(--pivot-text);
412
- border-right: 1px solid var(--pivot-border);
413
- border-bottom: 1px solid var(--pivot-border);
414
- border-left: 2px solid var(--pivot-group-border, transparent);
415
- background: var(--pivot-surface);
416
- vertical-align: top;
417
- max-width: 300px;
418
- overflow: hidden;
419
- text-overflow: ellipsis;
420
- white-space: nowrap;
421
- }
422
-
423
- .kanuni-pivot-table .kanuni-pivot-row-expandable {
424
- cursor: pointer;
425
- transition: background-color 0.2s;
426
- }
427
-
428
- .kanuni-pivot-table .kanuni-pivot-row-expandable:hover {
429
- background: var(--pivot-surface-hover);
430
- }
431
-
432
- /* Expand/collapse icon (+/- box) */
433
- .kanuni-pivot-expand-icon {
434
- display: inline-flex;
435
- align-items: center;
436
- justify-content: center;
437
- width: var(--pivot-space-3);
438
- height: var(--pivot-space-3);
439
- border: 1px solid var(--pivot-border);
440
- background: var(--pivot-surface);
441
- color: var(--pivot-text-muted);
442
- font-family: monospace;
443
- font-size: var(--pivot-text-xs);
444
- line-height: 1;
445
- border-radius: var(--pivot-radius-sm);
446
- transition: all 0.15s;
447
- }
448
-
449
- .kanuni-pivot-row-expandable:hover .kanuni-pivot-expand-icon,
450
- .kanuni-pivot-header-cell:hover .kanuni-pivot-expand-icon {
451
- border-color: var(--pivot-primary);
452
- color: var(--pivot-primary);
453
- }
454
-
455
- /* Zebra Striping */
456
- .kanuni-pivot-striped .kanuni-pivot-table .kanuni-pivot-row:nth-child(even) .kanuni-pivot-cell {
457
- background-color: var(--pivot-stripe-bg, var(--pivot-surface-hover));
458
- }
459
-
460
- /* Total cells (subtotals & grand total) */
461
- .kanuni-pivot-table .kanuni-pivot-cell-total {
462
- background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface))) !important;
463
- font-weight: 600;
464
- }
465
-
466
- /* Subtotal row */
467
- .kanuni-pivot-table .kanuni-pivot-subtotal-row {
468
- background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 30%, var(--pivot-surface)));
469
- }
470
-
471
- .kanuni-pivot-table .kanuni-pivot-subtotal-row .kanuni-pivot-cell {
472
- font-weight: 600;
473
- background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 30%, var(--pivot-surface)));
474
- }
475
-
476
- /* Grand total row */
477
- .kanuni-pivot-table .kanuni-pivot-grand-total-row {
478
- background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 50%, var(--pivot-surface)));
479
- }
480
-
481
- .kanuni-pivot-table .kanuni-pivot-grand-total-row .kanuni-pivot-cell {
482
- font-weight: 700;
483
- background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 50%, var(--pivot-surface)));
484
- /* Drawn as an inset shadow (not border-top) so the grand-total row stays
485
- exactly ROW_HEIGHT tall — a real border would add 2px and desync the
486
- left/right panes. */
487
- box-shadow: inset 0 2px 0 0 var(--pivot-border);
488
- }
489
-
490
- /* Corner cell (row field headers in corner) */
491
- .kanuni-pivot-table .kanuni-pivot-header-corner {
492
- background: color-mix(in srgb, var(--pivot-border) 20%, var(--pivot-surface)) !important;
493
- border-right: 1px solid var(--pivot-border);
494
- border-bottom: 1px solid var(--pivot-border);
495
- }
496
-
497
- /* Header total columns */
498
- .kanuni-pivot-table .kanuni-pivot-header-total {
499
- background: color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface)) !important;
500
- font-weight: 600 !important;
501
- }
502
-
503
- /* Focused cell */
504
- /* Focused/selected blends are mixed over the SURFACE, not over transparent.
505
- In the React two-pane layout the transparent blend always landed on a
506
- surface-colored pane, so the computed color is identical — but the vanilla
507
- renderer's K1 single scroller slides data cells UNDER sticky row headers,
508
- and a 92%-transparent focused header let them show through (#191/5). */
509
- .kanuni-pivot-table .kanuni-pivot-cell-focused {
510
- outline: 2px solid var(--pivot-primary);
511
- outline-offset: -2px;
512
- background: color-mix(in srgb, var(--pivot-primary) 8%, var(--pivot-surface)) !important;
513
- }
514
-
515
- /* Selected cell */
516
- .kanuni-pivot-table .kanuni-pivot-cell-selected {
517
- background: color-mix(in srgb, var(--pivot-primary) 12%, var(--pivot-surface)) !important;
518
- color: var(--pivot-primary) !important;
519
- font-weight: 500;
520
- }
521
-
522
-
523
-
524
- /* (duplicate .kanuni-pivot-dropdown-divider removed — the later
525
- height/background definition was already winning the cascade) */
526
-
527
- /* Filter icon state */
528
- .kanuni-pivot-filter-icon.kanuni-pivot-is-filtered {
529
- color: var(--pivot-icon-active, var(--pivot-danger));
530
- }
531
- .kanuni-pivot-filter-icon:not(.kanuni-pivot-is-filtered):hover {
532
- opacity: 0.7 !important;
533
- }
534
-
535
- /* Resize Handles */
536
- .kanuni-pivot-resize-handle {
537
- position: absolute;
538
- top: 0;
539
- bottom: 0;
540
- width: 6px;
541
- cursor: col-resize;
542
- z-index: 10;
543
- }
544
- .kanuni-pivot-resize-handle:hover,
545
- .kanuni-pivot-resize-handle:active {
546
- background-color: var(--pivot-primary);
547
- opacity: 0.5;
548
- }
549
-
550
- /* ─────────────────────────────────────────────────────────────
551
- Report Menu Styles
552
- ───────────────────────────────────────────────────────────── */
553
- .kanuni-pivot-report-btn {
554
- display: flex;
555
- align-items: center;
556
- gap: 8px;
557
- padding: 6px 12px;
558
- border-radius: var(--pivot-border-radius);
559
- transition: all 0.2s;
560
- font-size: 14px;
561
- font-weight: 500;
562
- }
563
- .kanuni-pivot-report-btn--open {
564
- background-color: var(--pivot-primary);
565
- color: var(--pivot-primary-foreground);
566
- box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
567
- }
568
- .kanuni-pivot-report-btn--active {
569
- background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent);
570
- color: var(--pivot-primary);
571
- border: 1px solid color-mix(in srgb, var(--pivot-primary) 20%, transparent);
572
- }
573
- .kanuni-pivot-report-btn--active:hover {
574
- background-color: color-mix(in srgb, var(--pivot-primary) 20%, transparent);
575
- }
576
- .kanuni-pivot-report-btn--default {
577
- color: var(--pivot-text-muted);
578
- border: 1px solid transparent;
579
- }
580
- .kanuni-pivot-report-btn--default:hover {
581
- border-color: color-mix(in srgb, var(--pivot-border) 50%, transparent);
582
- background-color: var(--pivot-surface);
583
- color: var(--pivot-text);
584
- }
585
-
586
- .kanuni-pivot-report-dropdown {
587
- position: absolute;
588
- left: 0;
589
- bottom: 100%;
590
- margin-bottom: 4px;
591
- width: 256px;
592
- background-color: var(--pivot-surface);
593
- border: 1px solid var(--pivot-border);
594
- border-radius: var(--pivot-border-radius-lg);
595
- box-shadow: var(--pivot-shadow-md);
596
- padding: 4px 0;
597
- z-index: 50;
598
- }
599
-
600
- .kanuni-pivot-report-section-title {
601
- padding: 6px 12px;
602
- font-size: 10px;
603
- font-weight: 700;
604
- color: var(--pivot-text-muted);
605
- text-transform: uppercase;
606
- letter-spacing: 0.05em;
607
- background-color: color-mix(in srgb, var(--pivot-surface-header) 30%, transparent);
608
- border-bottom: 1px solid color-mix(in srgb, var(--pivot-border) 50%, transparent);
609
- margin-bottom: 4px;
610
- }
611
-
612
- .kanuni-pivot-report-item {
613
- width: 100%;
614
- text-align: left;
615
- padding: 8px 16px;
616
- display: flex;
617
- align-items: center;
618
- gap: 12px;
619
- font-size: 14px;
620
- color: var(--pivot-text);
621
- transition: background-color 0.15s;
622
- }
623
- .kanuni-pivot-report-item:hover {
624
- background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
625
- }
626
-
627
- .kanuni-pivot-report-list {
628
- max-height: 192px;
629
- overflow-y: auto;
630
- }
631
-
632
- .kanuni-pivot-report-list-item {
633
- display: flex;
634
- align-items: center;
635
- justify-content: space-between;
636
- padding: 4px 8px;
637
- margin: 0 4px;
638
- border-radius: var(--pivot-border-radius);
639
- border: 1px solid transparent;
640
- }
641
- .kanuni-pivot-report-list-item:hover {
642
- background-color: var(--pivot-surface-hover);
643
- }
644
- .kanuni-pivot-report-list-item--active {
645
- background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
646
- border-color: color-mix(in srgb, var(--pivot-primary) 20%, transparent);
647
- }
648
- .kanuni-pivot-report-list-item:hover .kanuni-pivot-report-actions {
649
- opacity: 1;
650
- }
651
-
652
- .kanuni-pivot-report-list-btn {
653
- flex: 1;
654
- display: flex;
655
- align-items: center;
656
- gap: 8px;
657
- text-align: left;
658
- overflow: hidden;
659
- padding: 4px 8px;
660
- }
661
-
662
- .kanuni-pivot-report-actions {
663
- display: flex;
664
- align-items: center;
665
- gap: 4px;
666
- opacity: 0;
667
- transition: opacity 0.2s;
668
- }
669
-
670
- .kanuni-pivot-action-btn {
671
- padding: 4px;
672
- color: var(--pivot-text-muted);
673
- border-radius: var(--pivot-border-radius-sm);
674
- transition: all 0.15s;
675
- }
676
- .kanuni-pivot-action-btn--warning:hover {
677
- color: var(--pivot-warning);
678
- background-color: color-mix(in srgb, var(--pivot-warning) 10%, transparent);
679
- }
680
- .kanuni-pivot-action-btn--danger:hover {
681
- color: var(--pivot-danger);
682
- background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent);
683
- }
684
-
685
- /* ─────────────────────────────────────────────────────────────
686
- Modal Styles
687
- ───────────────────────────────────────────────────────────── */
688
- .kanuni-pivot-modal-overlay {
689
- position: fixed;
690
- inset: 0;
691
- background-color: var(--pivot-overlay-bg);
692
- backdrop-filter: blur(2px);
693
- z-index: 99998;
694
- }
695
-
696
- .kanuni-pivot-modal {
697
- position: fixed;
698
- left: 50%;
699
- top: 50%;
700
- transform: translate(-50%, -50%);
701
- width: 100%;
702
- max-width: 450px;
703
- background-color: var(--pivot-modal-bg);
704
- border: 1px solid var(--pivot-border);
705
- border-radius: var(--pivot-border-radius-lg);
706
- box-shadow: var(--pivot-shadow-xl);
707
- padding: 24px;
708
- z-index: 99999;
709
- display: flex;
710
- flex-direction: column;
711
- gap: 16px;
712
- }
713
-
714
- .kanuni-pivot-modal-header {
715
- display: flex;
716
- flex-direction: column;
717
- gap: 6px;
718
- }
719
-
720
- .kanuni-pivot-modal-title {
721
- font-size: 18px;
722
- font-weight: 600;
723
- color: var(--pivot-text);
724
- display: flex;
725
- justify-content: space-between;
726
- align-items: center;
727
- }
728
-
729
- .kanuni-pivot-modal-close {
730
- padding: 6px;
731
- border-radius: 50%;
732
- color: var(--pivot-text-muted);
733
- transition: background-color 0.15s;
734
- }
735
- .kanuni-pivot-modal-close:hover {
736
- background-color: var(--pivot-surface-hover);
737
- }
738
-
739
- .kanuni-pivot-modal-desc {
740
- font-size: 14px;
741
- color: var(--pivot-text-muted);
742
- }
743
-
744
- .kanuni-pivot-form-group {
745
- display: flex;
746
- flex-direction: column;
747
- gap: 8px;
748
- }
749
-
750
- .kanuni-pivot-label {
751
- font-size: 14px;
752
- font-weight: 500;
753
- color: var(--pivot-text);
754
- }
755
-
756
- .kanuni-pivot-input {
757
- width: 100%;
758
- height: 36px;
759
- padding: 4px 12px;
760
- border-radius: var(--pivot-border-radius);
761
- border: 1px solid var(--pivot-border);
762
- background-color: transparent;
763
- color: var(--pivot-text);
764
- font-size: 14px;
765
- transition: border-color 0.15s, box-shadow 0.15s;
766
- }
767
- .kanuni-pivot-input:focus {
768
- outline: none;
769
- border-color: var(--pivot-primary);
770
- box-shadow: 0 0 0 1px var(--pivot-primary);
771
- }
772
-
773
- .kanuni-pivot-checkbox-group {
774
- display: flex;
775
- align-items: center;
776
- gap: 8px;
777
- cursor: pointer;
778
- }
779
-
780
- .kanuni-pivot-checkbox {
781
- width: 16px;
782
- height: 16px;
783
- border-radius: var(--pivot-border-radius-sm);
784
- border: 1px solid var(--pivot-border);
785
- cursor: pointer;
786
- }
787
- .kanuni-pivot-checkbox:checked {
788
- background-color: var(--pivot-primary);
789
- border-color: var(--pivot-primary);
790
- }
791
-
792
- .kanuni-pivot-modal-footer {
793
- display: flex;
794
- justify-content: flex-end;
795
- gap: 8px;
796
- margin-top: 8px;
797
- }
798
-
799
- .kanuni-pivot-btn {
800
- display: inline-flex;
801
- align-items: center;
802
- justify-content: center;
803
- gap: 8px;
804
- height: 36px;
805
- padding: 0 16px;
806
- border-radius: var(--pivot-border-radius);
807
- font-size: 14px;
808
- font-weight: 500;
809
- transition: all 0.15s;
810
- cursor: pointer;
811
- }
812
- .kanuni-pivot-btn:disabled {
813
- opacity: 0.5;
814
- cursor: not-allowed;
815
- }
816
- .kanuni-pivot-btn--outline {
817
- background-color: transparent;
818
- border: 1px solid var(--pivot-border);
819
- color: var(--pivot-text);
820
- }
821
- .kanuni-pivot-btn--outline:hover:not(:disabled) {
822
- background-color: var(--pivot-surface-hover);
823
- }
824
- .kanuni-pivot-btn--primary {
825
- background-color: var(--pivot-primary);
826
- border: 1px solid var(--pivot-primary);
827
- color: var(--pivot-primary-foreground);
828
- }
829
- .kanuni-pivot-btn--primary:hover:not(:disabled) {
830
- background-color: var(--pivot-primary-hover);
831
- }
832
-
833
- /* ─────────────────────────────────────────────────────────────
834
- Footer / Toolbar Styles
835
- ───────────────────────────────────────────────────────────── */
836
- .kanuni-pivot-footer-btn {
837
- padding: 6px;
838
- border-radius: var(--pivot-border-radius);
839
- color: var(--pivot-text-muted);
840
- background-color: transparent;
841
- border: 1px solid transparent;
842
- transition: all 0.2s;
843
- display: inline-flex;
844
- align-items: center;
845
- justify-content: center;
846
- }
847
- .kanuni-pivot-footer-btn:hover {
848
- color: var(--pivot-text);
849
- background-color: var(--pivot-surface);
850
- border-color: color-mix(in srgb, var(--pivot-border) 50%, transparent);
851
- }
852
- .kanuni-pivot-footer-btn:focus {
853
- outline: none;
854
- }
855
- .kanuni-pivot-footer-btn--active {
856
- background-color: var(--pivot-primary);
857
- color: var(--pivot-primary-foreground);
858
- box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
859
- }
860
-
861
- /* ── Touch targets ────────────────────────────────────────────
862
- Measured on the live playground at 375px (2026-08-27): every footer control
863
- was 27px — 6px padding around a 15px icon — under any touch guideline.
864
-
865
- Gated on the POINTER, not the viewport: a narrow desktop window keeps the
866
- compact chrome, a tablet in landscape still gets targets a finger can hit.
867
- The footer has no fixed height, so it simply grows. */
868
- @media (pointer: coarse) {
869
- .kanuni-pivot-footer-btn {
870
- min-width: 40px;
871
- min-height: 40px;
872
- }
873
- .kanuni-pivot-dropdown-item {
874
- min-height: 40px;
875
- }
876
- /* The saved-views button sits beside the footer icons and stayed 21px tall
877
- because its size comes from padding + font size, not from the icon rule. */
878
- .kanuni-pivot-report-btn {
879
- min-height: 40px;
880
- }
881
- /* The field chips' own controls were the worst of the lot: 12x12 (an 8px
882
- icon in 2px padding), sixteen of them on the playground at 375px.
883
-
884
- They are NOT blown up to 40x40 like the footer. The two controls sit side
885
- by side inside one chip and one of them DELETES the field, so equal-sized
886
- 40px targets would overlap and a mis-tap would be destructive. Instead the
887
- visual target reaches the WCAG 2.5.8 AA minimum (24x24) and the hit area
888
- is extended VERTICALLY only — 24x40, no horizontal bleed into the
889
- neighbour (same ::after technique as the DataGrid filter button). */
890
- .kanuni-pivot-chip-btn {
891
- min-width: 24px;
892
- min-height: 24px;
893
- padding: 6px;
894
- display: inline-flex;
895
- align-items: center;
896
- justify-content: center;
897
- position: relative;
898
- }
899
- .kanuni-pivot-chip-btn::after {
900
- content: '';
901
- position: absolute;
902
- inset: -8px 0;
903
- }
904
-
905
- /* Touch drag needs the gesture, and the browser claims it first.
906
- Both renderers activate a touch drag after a 200ms hold (dnd-kit's
907
- TouchSensor in React, the same constants in the vanilla pointer engine),
908
- but without `touch-action: none` the browser has already started panning
909
- by then and the drag never begins — the documented dnd-kit requirement,
910
- never declared here (#195).
911
-
912
- Scope matters: a strip chip drags from anywhere, so the whole chip claims
913
- the gesture. A CHOOSER chip drags only from its grip and lives in a long
914
- scrollable list, so claiming the whole chip would trap the finger — only
915
- the grip does. */
916
- .kanuni-pivot-field-chip:not([data-drag-scope='grip']) {
917
- touch-action: none;
918
- }
919
- [data-drag-grip] {
920
- touch-action: none;
921
- }
922
- }
923
- .kanuni-pivot-footer-divider {
924
- height: 16px;
925
- width: 1px;
926
- background-color: var(--pivot-border);
927
- margin: 0 4px;
928
- }
929
-
930
- /* ─────────────────────────────────────────────────────────────
931
- Area Strips & Field Chips Styles
932
- ───────────────────────────────────────────────────────────── */
933
- .kanuni-pivot-area-dropzone {
934
- flex: 1;
935
- display: flex;
936
- flex-direction: column;
937
- background-color: var(--pivot-bg);
938
- border: 1px solid color-mix(in srgb, var(--pivot-border) 60%, transparent);
939
- border-radius: var(--pivot-border-radius-sm);
940
- overflow: hidden;
941
- min-height: 42px;
942
- transition: border-color 0.2s;
943
- }
944
- .kanuni-pivot-area-dropzone:hover {
945
- border-color: var(--pivot-border);
946
- }
947
-
948
- .kanuni-pivot-area-header {
949
- display: flex;
950
- align-items: center;
951
- gap: 6px;
952
- padding: 4px 8px;
953
- background-color: color-mix(in srgb, var(--pivot-surface-header) 50%, var(--pivot-bg));
954
- border-bottom: 1px solid color-mix(in srgb, var(--pivot-border) 40%, transparent);
955
- font-size: 10px;
956
- font-weight: 700;
957
- color: var(--pivot-text-muted);
958
- text-transform: uppercase;
959
- letter-spacing: 0.05em;
960
- }
961
-
962
- .kanuni-pivot-area-content {
963
- flex: 1;
964
- display: flex;
965
- flex-wrap: wrap;
966
- gap: 4px;
967
- padding: 4px;
968
- align-items: flex-start;
969
- align-content: flex-start;
970
- }
971
-
972
- .kanuni-pivot-field-chip {
973
- display: flex;
974
- align-items: center;
975
- gap: 4px;
976
- padding: 4px 6px;
977
- background-color: var(--pivot-surface);
978
- color: var(--pivot-text);
979
- border: 1px solid color-mix(in srgb, var(--pivot-border) 80%, transparent);
980
- box-shadow: var(--pivot-shadow-sm);
981
- border-radius: var(--pivot-border-radius-sm);
982
- font-size: 12px;
983
- font-weight: 500;
984
- transition: all 0.2s;
985
- }
986
- .kanuni-pivot-field-chip:hover {
987
- border-color: color-mix(in srgb, var(--pivot-primary) 50%, transparent);
988
- background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
989
- }
990
- .kanuni-pivot-field-chip.is-dragging {
991
- opacity: 0.5;
992
- box-shadow: 0 0 0 2px var(--pivot-primary);
993
- cursor: grabbing !important;
994
- }
995
-
996
- .kanuni-pivot-field-chip-actions {
997
- display: flex;
998
- align-items: center;
999
- gap: 2px;
1000
- margin-left: 4px;
1001
- opacity: 0;
1002
- transition: opacity 0.2s;
1003
- }
1004
- .kanuni-pivot-field-chip:hover .kanuni-pivot-field-chip-actions,
1005
- .kanuni-pivot-field-chip:focus-within .kanuni-pivot-field-chip-actions {
1006
- opacity: 1;
1007
- }
1008
- /* Chips are keyboard-operable (#207): the ring is the only sign of focus. */
1009
- .kanuni-pivot-field-chip:focus-visible {
1010
- outline: 2px solid var(--pivot-primary);
1011
- outline-offset: 2px;
1012
- }
1013
- .kanuni-pivot-field-chip-actions.is-filtered {
1014
- opacity: 1;
1015
- }
1016
-
1017
- .kanuni-pivot-chip-btn {
1018
- padding: 2px;
1019
- border-radius: var(--pivot-border-radius-sm);
1020
- transition: all 0.15s;
1021
- background: transparent;
1022
- color: var(--pivot-text-muted);
1023
- }
1024
- .kanuni-pivot-chip-btn:hover {
1025
- background-color: var(--pivot-surface-hover);
1026
- color: var(--pivot-primary);
1027
- }
1028
- .kanuni-pivot-chip-btn--danger:hover {
1029
- background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent);
1030
- color: var(--pivot-danger);
1031
- }
1032
-
1033
- /* ─────────────────────────────────────────────────────────────
1034
- Filter Popup Styles
1035
- ───────────────────────────────────────────────────────────── */
1036
- .kanuni-pivot-dropdown-menu {
1037
- position: absolute;
1038
- background-color: var(--pivot-surface);
1039
- border: 1px solid var(--pivot-border);
1040
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.02);
1041
- border-radius: var(--pivot-radius-lg);
1042
- padding: 8px;
1043
- z-index: 1000;
1044
- display: flex;
1045
- flex-direction: column;
1046
- gap: 4px;
1047
- min-width: 220px;
1048
- }
1049
- .kanuni-pivot-dropdown-item {
1050
- width: 100%;
1051
- text-align: left;
1052
- padding: 12px 18px; /* Increased padding as requested */
1053
- font-size: 14px;
1054
- font-weight: 400;
1055
- color: var(--pivot-text);
1056
- background: transparent;
1057
- border: none;
1058
- border-radius: 6px;
1059
- cursor: pointer;
1060
- display: flex;
1061
- align-items: center;
1062
- gap: 12px;
1063
- transition: background-color 0.15s ease-in-out;
1064
- }
1065
- .kanuni-pivot-dropdown-item:hover {
1066
- background-color: var(--pivot-surface-hover);
1067
- }
1068
- .kanuni-pivot-dropdown-item svg {
1069
- color: var(--pivot-text-muted);
1070
- flex-shrink: 0;
1071
- transition: color 0.15s;
1072
- }
1073
- .kanuni-pivot-dropdown-item:hover svg {
1074
- color: var(--pivot-text);
1075
- }
1076
- .kanuni-pivot-dropdown-item-danger {
1077
- color: var(--pivot-danger);
1078
- }
1079
- .kanuni-pivot-dropdown-item-danger svg {
1080
- color: var(--pivot-danger) !important;
1081
- }
1082
- .kanuni-pivot-dropdown-item-danger:hover {
1083
- background-color: color-mix(in srgb, var(--pivot-danger) 8%, transparent);
1084
- color: var(--pivot-danger);
1085
- }
1086
-
1087
- /* Fullscreen mode overrides for dropdowns */
1088
- .pivot-is-fullscreen .kanuni-pivot-dropdown-menu,
1089
- .pivot-is-fullscreen .dropdown-menu {
1090
- padding: 12px !important;
1091
- gap: 4px !important;
1092
- }
1093
- .pivot-is-fullscreen .kanuni-pivot-dropdown-item,
1094
- .pivot-is-fullscreen .dropdown-item {
1095
- padding: 12px 16px !important;
1096
- }
1097
- .pivot-is-fullscreen .kanuni-pivot-report-section-title {
1098
- padding: 10px 16px !important;
1099
- }
1100
- .kanuni-pivot-dropdown-divider {
1101
- height: 1px;
1102
- background-color: var(--pivot-border);
1103
- margin: 4px -6px;
1104
- }
1105
- .kanuni-pivot-popup {
1106
- position: fixed;
1107
- z-index: 9999;
1108
- background-color: var(--pivot-surface);
1109
- border: 1px solid var(--pivot-border);
1110
- border-radius: var(--pivot-border-radius);
1111
- box-shadow: var(--pivot-shadow-lg);
1112
- display: flex;
1113
- flex-direction: column;
1114
- overflow: hidden;
1115
- color: var(--pivot-text);
1116
- font-size: 13px;
1117
- }
1118
-
1119
- .kanuni-pivot-popup-header {
1120
- padding: 8px;
1121
- border-bottom: 1px solid var(--pivot-border);
1122
- display: flex;
1123
- flex-direction: column;
1124
- gap: 8px;
1125
- }
1126
-
1127
- .kanuni-pivot-popup-search {
1128
- position: relative;
1129
- display: flex;
1130
- align-items: center;
1131
- }
1132
- .kanuni-pivot-popup-search-icon {
1133
- position: absolute;
1134
- left: 8px;
1135
- color: var(--pivot-text-muted);
1136
- }
1137
- .kanuni-pivot-popup-search-input {
1138
- width: 100%;
1139
- padding: 6px 8px 6px 28px;
1140
- border: 1px solid var(--pivot-border);
1141
- border-radius: var(--pivot-border-radius-sm);
1142
- background-color: var(--pivot-surface);
1143
- color: var(--pivot-text);
1144
- font-size: 13px;
1145
- outline: none;
1146
- transition: border-color 0.15s;
1147
- }
1148
- .kanuni-pivot-popup-search-input:focus {
1149
- border-color: var(--pivot-primary);
1150
- }
1151
-
1152
- .kanuni-pivot-popup-actions {
1153
- display: flex;
1154
- gap: 8px;
1155
- }
1156
- .kanuni-pivot-popup-action-btn {
1157
- font-size: 11px;
1158
- background: transparent;
1159
- border: none;
1160
- padding: 0;
1161
- cursor: pointer;
1162
- transition: opacity 0.15s;
1163
- }
1164
- .kanuni-pivot-popup-action-btn:hover {
1165
- text-decoration: underline;
1166
- }
1167
- .kanuni-pivot-popup-action-btn--primary {
1168
- color: var(--pivot-primary);
1169
- }
1170
- .kanuni-pivot-popup-action-btn--danger {
1171
- color: var(--pivot-danger);
1172
- }
1173
-
1174
- .kanuni-pivot-popup-list {
1175
- flex: 1;
1176
- overflow-y: auto;
1177
- min-height: 0;
1178
- }
1179
-
1180
- .kanuni-pivot-popup-item {
1181
- display: flex;
1182
- align-items: center;
1183
- gap: 8px;
1184
- padding: 4px 8px;
1185
- cursor: pointer;
1186
- user-select: none;
1187
- outline: none;
1188
- }
1189
- .kanuni-pivot-popup-item:hover,
1190
- .kanuni-pivot-popup-item:focus {
1191
- background-color: var(--pivot-surface-hover);
1192
- }
1193
- .kanuni-pivot-popup-item--active {
1194
- background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent);
1195
- }
1196
- .kanuni-pivot-popup-item--checked {
1197
- background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
1198
- }
1199
-
1200
- .kanuni-pivot-popup-footer {
1201
- padding: 8px;
1202
- border-top: 1px solid var(--pivot-border);
1203
- display: flex;
1204
- align-items: center;
1205
- justify-content: flex-end;
1206
- gap: 8px;
1207
- flex-shrink: 0;
1208
- }
1209
-
1210
- /* ─────────────────────────────────────────────────────────────
1211
- Prefilter Builder Styles
1212
- ───────────────────────────────────────────────────────────── */
1213
- .kanuni-pivot-prefilter-group {
1214
- display: flex;
1215
- flex-direction: column;
1216
- gap: 12px;
1217
- }
1218
- .kanuni-pivot-prefilter-group--nested {
1219
- padding-left: 24px;
1220
- border-left: 2px solid color-mix(in srgb, var(--pivot-primary) 30%, transparent);
1221
- padding-top: 8px;
1222
- padding-bottom: 8px;
1223
- }
1224
-
1225
- .kanuni-pivot-prefilter-header {
1226
- display: flex;
1227
- align-items: center;
1228
- gap: 8px;
1229
- }
1230
-
1231
- .kanuni-pivot-prefilter-select-logic {
1232
- background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent);
1233
- color: var(--pivot-primary);
1234
- border: 1px solid color-mix(in srgb, var(--pivot-primary) 20%, transparent);
1235
- border-radius: var(--pivot-border-radius-sm);
1236
- padding: 4px 8px;
1237
- font-size: 14px;
1238
- font-weight: 700;
1239
- text-transform: uppercase;
1240
- cursor: pointer;
1241
- outline: none;
1242
- transition: background-color 0.15s;
1243
- }
1244
- .kanuni-pivot-prefilter-select-logic:hover {
1245
- background-color: color-mix(in srgb, var(--pivot-primary) 20%, transparent);
1246
- }
1247
-
1248
- .kanuni-pivot-prefilter-action {
1249
- padding: 4px;
1250
- border-radius: var(--pivot-border-radius-sm);
1251
- transition: all 0.15s;
1252
- background: transparent;
1253
- color: var(--pivot-text-muted);
1254
- border: none;
1255
- cursor: pointer;
1256
- display: flex;
1257
- align-items: center;
1258
- justify-content: center;
1259
- }
1260
- .kanuni-pivot-prefilter-action:hover {
1261
- background-color: var(--pivot-surface-hover);
1262
- }
1263
- .kanuni-pivot-prefilter-action--success {
1264
- color: var(--pivot-success);
1265
- }
1266
- .kanuni-pivot-prefilter-action--danger {
1267
- color: var(--pivot-danger);
1268
- }
1269
- .kanuni-pivot-prefilter-action--danger:hover {
1270
- background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent);
1271
- }
1272
-
1273
- .kanuni-pivot-prefilter-btn-group {
1274
- font-size: 12px;
1275
- padding: 4px 8px;
1276
- font-weight: 600;
1277
- border-radius: var(--pivot-border-radius-sm);
1278
- border: 1px solid var(--pivot-border);
1279
- color: var(--pivot-text-muted);
1280
- background: transparent;
1281
- cursor: pointer;
1282
- transition: all 0.15s;
1283
- }
1284
- .kanuni-pivot-prefilter-btn-group:hover {
1285
- background-color: var(--pivot-surface-hover);
1286
- }
1287
-
1288
- .kanuni-pivot-prefilter-conditions {
1289
- display: flex;
1290
- flex-direction: column;
1291
- gap: 8px;
1292
- padding-left: 16px;
1293
- }
1294
-
1295
- .kanuni-pivot-prefilter-condition {
1296
- display: flex;
1297
- align-items: center;
1298
- gap: 8px;
1299
- padding: 6px;
1300
- margin-left: -6px;
1301
- border-radius: var(--pivot-border-radius);
1302
- border: 1px solid transparent;
1303
- transition: all 0.15s;
1304
- }
1305
- .kanuni-pivot-prefilter-condition:hover {
1306
- background-color: var(--pivot-surface);
1307
- border-color: var(--pivot-border);
1308
- }
1309
- .kanuni-pivot-prefilter-condition .kanuni-pivot-prefilter-action--danger {
1310
- opacity: 0;
1311
- }
1312
- .kanuni-pivot-prefilter-condition:hover .kanuni-pivot-prefilter-action--danger {
1313
- opacity: 1;
1314
- }
1315
-
1316
- .kanuni-pivot-prefilter-select {
1317
- background-color: var(--pivot-surface);
1318
- border: 1px solid var(--pivot-border);
1319
- border-radius: var(--pivot-border-radius-sm);
1320
- padding: 4px 8px;
1321
- font-size: 14px;
1322
- color: var(--pivot-text);
1323
- outline: none;
1324
- transition: border-color 0.15s;
1325
- }
1326
- .kanuni-pivot-prefilter-select:focus,
1327
- .kanuni-pivot-prefilter-select:hover {
1328
- border-color: var(--pivot-primary);
1329
- }
1330
-
1331
- /* ─────────────────────────────────────────────────────────────
1332
- Chart Overlay & Modal Styles
1333
- ───────────────────────────────────────────────────────────── */
1334
- .kanuni-pivot-chart-overlay {
1335
- width: 100%;
1336
- background-color: var(--pivot-surface);
1337
- border: 1px solid var(--pivot-border);
1338
- border-radius: var(--pivot-border-radius-lg);
1339
- padding: 16px;
1340
- flex-shrink: 0;
1341
- box-shadow: var(--pivot-shadow-sm);
1342
- position: relative;
1343
- display: flex;
1344
- flex-direction: column;
1345
- }
1346
-
1347
- .kanuni-pivot-chart-actions {
1348
- position: absolute;
1349
- top: 8px;
1350
- right: 8px;
1351
- display: flex;
1352
- gap: 4px;
1353
- z-index: 50;
1354
- background-color: color-mix(in srgb, var(--pivot-surface) 80%, transparent);
1355
- padding: 4px;
1356
- border-radius: var(--pivot-border-radius-sm);
1357
- backdrop-filter: blur(4px);
1358
- border: 1px solid var(--pivot-border);
1359
- box-shadow: var(--pivot-shadow-sm);
1360
- opacity: 0;
1361
- transition: opacity 0.2s;
1362
- }
1363
- .kanuni-pivot-chart-overlay:hover .kanuni-pivot-chart-actions,
1364
- .kanuni-pivot-chart-actions:hover {
1365
- opacity: 1;
1366
- }
1367
-
1368
- .kanuni-pivot-chart-action-btn {
1369
- padding: 6px;
1370
- border-radius: var(--pivot-border-radius-sm);
1371
- background: transparent;
1372
- border: none;
1373
- cursor: pointer;
1374
- transition: all 0.2s;
1375
- display: flex;
1376
- align-items: center;
1377
- justify-content: center;
1378
- }
1379
- .kanuni-pivot-chart-action-btn:hover {
1380
- background-color: var(--pivot-surface-hover);
1381
- }
1382
- .kanuni-pivot-chart-action-btn--primary { color: var(--pivot-primary); }
1383
- .kanuni-pivot-chart-action-btn--primary:hover { background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent); }
1384
- .kanuni-pivot-chart-action-btn--danger { color: var(--pivot-danger); }
1385
- .kanuni-pivot-chart-action-btn--danger:hover { background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent); }
1386
- .kanuni-pivot-chart-action-btn--success { color: var(--pivot-success); }
1387
- .kanuni-pivot-chart-action-btn--success:hover { background-color: color-mix(in srgb, var(--pivot-success) 10%, transparent); }
1
+ /* ─────────────────────────────────────────────────────────────
2
+ KANUNILABS ERP — PivotGrid Isolated Theme System
3
+ Provides complete encapsulation and immunity from host CSS
4
+ ───────────────────────────────────────────────────────────── */
5
+
6
+ .kanuni-pivot-root {
7
+ /* Base Resets for the container itself */
8
+ box-sizing: border-box;
9
+ font-family: inherit;
10
+ line-height: 1.5;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+
14
+ /* ─────────────────────────────────────────────────────────
15
+ Theme Tokens
16
+ ───────────────────────────────────────────────────────── */
17
+ --pivot-bg: #ffffff;
18
+ --pivot-surface: #ffffff;
19
+ --pivot-surface-hover: #f3f4f6; /* zinc-100 */
20
+ --pivot-surface-header: #f8fafc; /* slate-50 */
21
+ --pivot-border: #e2e8f0; /* slate-200 */
22
+
23
+ --pivot-text: #0f172a; /* slate-900 */
24
+ --pivot-text-muted: #64748b; /* slate-500 */
25
+
26
+ --pivot-primary: #0ea5e9; /* sky-500 */
27
+ --pivot-primary-foreground: #ffffff;
28
+ --pivot-primary-hover: #0284c7; /* sky-600 */
29
+
30
+ --pivot-success: #22c55e; /* green-500 */
31
+ --pivot-danger: #ef4444; /* red-500 */
32
+ --pivot-warning: #f59e0b; /* amber-500 */
33
+ --pivot-info: #3b82f6; /* blue-500 */
34
+
35
+ /* ─────────────────────────────────────────────────────────
36
+ Spacing Tokens (Base 4px system)
37
+ ───────────────────────────────────────────────────────── */
38
+ --pivot-space-0: 0px;
39
+ --pivot-space-1: 4px;
40
+ --pivot-space-1-5: 6px;
41
+ --pivot-space-2: 8px;
42
+ --pivot-space-3: 12px;
43
+ --pivot-space-4: 16px;
44
+ --pivot-space-5: 20px;
45
+ --pivot-space-6: 24px;
46
+ --pivot-space-8: 32px;
47
+ --pivot-space-12: 48px;
48
+
49
+ /* ─────────────────────────────────────────────────────────
50
+ Typography Tokens
51
+ ───────────────────────────────────────────────────────── */
52
+ --pivot-text-xs: 11px;
53
+ --pivot-text-sm: 13px;
54
+ --pivot-text-base: 14px;
55
+ --pivot-text-lg: 16px;
56
+ --pivot-text-xl: 18px;
57
+
58
+ /* ─────────────────────────────────────────────────────────
59
+ Structural Tokens
60
+ ───────────────────────────────────────────────────────── */
61
+ --pivot-overlay-bg: rgba(0, 0, 0, 0.5);
62
+ --pivot-modal-bg: var(--pivot-surface);
63
+
64
+ /* Unified Shadow System */
65
+ --pivot-shadow-none: none;
66
+ --pivot-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
67
+ --pivot-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
68
+ --pivot-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
69
+ --pivot-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
70
+
71
+ /* Unified Border Radius System */
72
+ --pivot-radius-none: 0px;
73
+ --pivot-radius-sm: 4px;
74
+ --pivot-radius-md: 6px;
75
+ --pivot-radius-lg: 8px;
76
+ --pivot-radius-xl: 12px;
77
+ --pivot-radius-full: 9999px;
78
+
79
+ /* Aliases for the OLD token names. ~27 rules below and 3 component inline
80
+ styles use --pivot-border-radius(-sm/-lg); they were never defined, so
81
+ every one of those corners rendered square. Defined here as aliases
82
+ rather than migrating the usages, so a consumer who themed the old names
83
+ keeps winning over these defaults. */
84
+ --pivot-border-radius-sm: var(--pivot-radius-sm);
85
+ --pivot-border-radius: var(--pivot-radius-md);
86
+ --pivot-border-radius-lg: var(--pivot-radius-lg);
87
+
88
+ /* Default text and background for the component */
89
+ color: var(--pivot-text);
90
+ background-color: var(--pivot-bg);
91
+ font-size: var(--pivot-text-base);
92
+ }
93
+
94
+ /* ─────────────────────────────────────────────────────────────
95
+ Strict Resets
96
+ Prevents host application CSS from bleeding in
97
+ ───────────────────────────────────────────────────────────── */
98
+
99
+ .kanuni-pivot-root *,
100
+ .kanuni-pivot-root *::before,
101
+ .kanuni-pivot-root *::after {
102
+ box-sizing: border-box;
103
+ }
104
+
105
+ /* Table Reset */
106
+ .kanuni-pivot-root table {
107
+ border-collapse: separate !important; /* Critical for virtualization */
108
+ border-spacing: 0 !important;
109
+ width: auto;
110
+ margin: 0;
111
+ padding: 0;
112
+ background: transparent;
113
+ table-layout: auto;
114
+ }
115
+
116
+ .kanuni-pivot-root th,
117
+ .kanuni-pivot-root td {
118
+ padding: 0;
119
+ margin: 0;
120
+ border: none;
121
+ background: transparent;
122
+ color: inherit;
123
+ font-size: inherit;
124
+ font-weight: inherit;
125
+ text-align: left;
126
+ vertical-align: middle;
127
+ }
128
+
129
+ /* Form Elements Reset */
130
+ .kanuni-pivot-root button {
131
+ background: transparent;
132
+ border: none;
133
+ padding: 0;
134
+ margin: 0;
135
+ font: inherit;
136
+ color: inherit;
137
+ cursor: pointer;
138
+ outline: none;
139
+ appearance: none;
140
+ }
141
+
142
+ .kanuni-pivot-root input,
143
+ .kanuni-pivot-root select {
144
+ font: inherit;
145
+ color: inherit;
146
+ margin: 0;
147
+ outline: none;
148
+ box-shadow: none;
149
+ background: transparent;
150
+ }
151
+
152
+ /* Typography Reset */
153
+ .kanuni-pivot-root h1,
154
+ .kanuni-pivot-root h2,
155
+ .kanuni-pivot-root h3,
156
+ .kanuni-pivot-root p {
157
+ margin: 0;
158
+ padding: 0;
159
+ font-weight: normal;
160
+ color: inherit;
161
+ }
162
+
163
+ .kanuni-pivot-root ul,
164
+ .kanuni-pivot-root ol {
165
+ margin: 0;
166
+ padding: 0;
167
+ list-style: none;
168
+ }
169
+
170
+ /* ─────────────────────────────────────────────────────────────
171
+ Shared Layout Utilities (Internal to PivotGrid)
172
+ Replaces basic Tailwind classes
173
+ ───────────────────────────────────────────────────────────── */
174
+
175
+ .pivot-flex { display: flex; }
176
+ .pivot-flex-col { display: flex; flex-direction: column; }
177
+ .pivot-flex-1 { flex: 1; min-width: 0; min-height: 0; }
178
+ .pivot-items-center { align-items: center; }
179
+ .pivot-justify-center { justify-content: center; }
180
+ .pivot-justify-between { justify-content: space-between; }
181
+ .pivot-justify-end { justify-content: flex-end; }
182
+ .pivot-gap-1 { gap: var(--pivot-space-1); }
183
+ .pivot-gap-2 { gap: var(--pivot-space-2); }
184
+ .pivot-gap-3 { gap: var(--pivot-space-3); }
185
+ .pivot-gap-4 { gap: var(--pivot-space-4); }
186
+
187
+ .pivot-w-full { width: 100%; }
188
+ .pivot-h-full { height: 100%; }
189
+
190
+ .pivot-relative { position: relative; }
191
+ .pivot-absolute { position: absolute; }
192
+
193
+ .pivot-hidden { display: none !important; }
194
+ .pivot-block { display: block; }
195
+
196
+ .pivot-truncate {
197
+ overflow: hidden;
198
+ text-overflow: ellipsis;
199
+ white-space: nowrap;
200
+ }
201
+
202
+ .pivot-text-sm { font-size: var(--pivot-text-sm); }
203
+ .pivot-text-xs { font-size: var(--pivot-text-xs); }
204
+ .pivot-text-lg { font-size: var(--pivot-text-lg); }
205
+ .pivot-font-medium { font-weight: 500; }
206
+ .pivot-font-semibold { font-weight: 600; }
207
+ .pivot-font-bold { font-weight: 700; }
208
+
209
+ .pivot-text-muted { color: var(--pivot-text-muted); }
210
+ .pivot-text-primary { color: var(--pivot-primary); }
211
+ .pivot-text-danger { color: var(--pivot-danger); }
212
+ .pivot-text-success { color: var(--pivot-success); }
213
+ .pivot-text-warning { color: var(--pivot-warning); }
214
+
215
+ .pivot-bg-surface { background-color: var(--pivot-surface); }
216
+ .pivot-bg-primary { background-color: var(--pivot-primary); color: var(--pivot-primary-foreground); }
217
+
218
+ /* Custom Scrollbar for Pivot */
219
+ .pivot-custom-scrollbar,
220
+ .kanuni-pivot-root .custom-scrollbar {
221
+ scrollbar-width: thin;
222
+ scrollbar-color: color-mix(in srgb, var(--pivot-border) 80%, transparent) transparent;
223
+ }
224
+
225
+ .pivot-custom-scrollbar::-webkit-scrollbar,
226
+ .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar {
227
+ width: 8px;
228
+ height: 8px;
229
+ }
230
+
231
+ .pivot-custom-scrollbar::-webkit-scrollbar-track,
232
+ .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-track {
233
+ background: transparent;
234
+ }
235
+
236
+ .pivot-custom-scrollbar::-webkit-scrollbar-thumb,
237
+ .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-thumb {
238
+ background-color: color-mix(in srgb, var(--pivot-border) 80%, transparent);
239
+ border-radius: var(--pivot-radius-full);
240
+ border: 2px solid transparent;
241
+ background-clip: padding-box;
242
+ }
243
+
244
+ .pivot-custom-scrollbar::-webkit-scrollbar-thumb:hover,
245
+ .kanuni-pivot-root .custom-scrollbar::-webkit-scrollbar-thumb:hover {
246
+ background-color: var(--pivot-text-muted);
247
+ }
248
+
249
+ /* ─────────────────────────────────────────────────────────────
250
+ Interaction State Standards
251
+ ───────────────────────────────────────────────────────────── */
252
+
253
+ /* Hover State */
254
+ .pivot-state-hover { transition: all 0.2s; }
255
+ .pivot-state-hover:hover {
256
+ background-color: var(--pivot-surface-hover);
257
+ color: var(--pivot-text);
258
+ }
259
+
260
+ /* Active State */
261
+ .pivot-state-active:active {
262
+ transform: scale(0.98);
263
+ background-color: color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface));
264
+ }
265
+
266
+ /* Focus State */
267
+ .pivot-state-focus:focus-visible {
268
+ outline: 2px solid var(--pivot-primary);
269
+ outline-offset: 2px;
270
+ }
271
+
272
+ /* Disabled State */
273
+ .pivot-state-disabled,
274
+ .pivot-state-disabled:hover {
275
+ opacity: 0.5;
276
+ cursor: not-allowed;
277
+ pointer-events: none;
278
+ background-color: var(--pivot-surface);
279
+ }
280
+
281
+ /* Selected State */
282
+ .pivot-state-selected {
283
+ background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent) !important;
284
+ color: var(--pivot-primary) !important;
285
+ border-color: color-mix(in srgb, var(--pivot-primary) 30%, transparent) !important;
286
+ }
287
+
288
+ /* Drag-Over State */
289
+ .pivot-state-drag-over {
290
+ background-color: color-mix(in srgb, var(--pivot-primary) 15%, transparent) !important;
291
+ border: 2px dashed var(--pivot-primary) !important;
292
+ }
293
+
294
+ /* Animations */
295
+ @keyframes pivot-fade-in {
296
+ from { opacity: 0; }
297
+ to { opacity: 1; }
298
+ }
299
+ @keyframes pivot-zoom-in {
300
+ from { opacity: 0; transform: scale(0.95); }
301
+ to { opacity: 1; transform: scale(1); }
302
+ }
303
+ @keyframes pivot-slide-up {
304
+ from { opacity: 0; transform: translateY(10px); }
305
+ to { opacity: 1; transform: translateY(0); }
306
+ }
307
+ /* Loading spinner. The grid's loader uses `animation: datagrid-spin …`
308
+ inline; without this keyframe the spinner rendered frozen. Transform-based
309
+ so it stays compositor-accelerated. */
310
+ @keyframes datagrid-spin {
311
+ from { transform: rotate(0deg); }
312
+ to { transform: rotate(360deg); }
313
+ }
314
+
315
+ .pivot-animate-fade-in { animation: pivot-fade-in 0.2s ease-out; }
316
+ .pivot-animate-zoom-in { animation: pivot-zoom-in 0.2s ease-out; }
317
+ .pivot-animate-slide-up { animation: pivot-slide-up 0.2s ease-out; }
318
+
319
+ /* ─────────────────────────────────────────────────────────────
320
+ Portal/Modal Root
321
+ For elements rendered outside the main PivotGrid DOM
322
+ ───────────────────────────────────────────────────────────── */
323
+
324
+ .kanuni-pivot-portal-root {
325
+ /* Dynamic theme variables are injected by PivotPortal now */
326
+
327
+ position: relative;
328
+ z-index: 9999;
329
+ font-family: inherit;
330
+ color: var(--pivot-text);
331
+ font-size: 14px;
332
+ }
333
+
334
+ .kanuni-pivot-portal-root *,
335
+ .kanuni-pivot-portal-root *::before,
336
+ .kanuni-pivot-portal-root *::after {
337
+ box-sizing: border-box;
338
+ }
339
+
340
+ .kanuni-pivot-portal-root button {
341
+ background: transparent;
342
+ border: none;
343
+ padding: 0;
344
+ margin: 0;
345
+ font: inherit;
346
+ color: inherit;
347
+ cursor: pointer;
348
+ outline: none;
349
+ appearance: none;
350
+ }
351
+
352
+ .kanuni-pivot-portal-root input,
353
+ .kanuni-pivot-portal-root select {
354
+ font: inherit;
355
+ color: inherit;
356
+ margin: 0;
357
+ outline: none;
358
+ box-shadow: none;
359
+ background: transparent;
360
+ }
361
+
362
+ .kanuni-pivot-portal-root h1,
363
+ .kanuni-pivot-portal-root h2,
364
+ .kanuni-pivot-portal-root h3,
365
+ .kanuni-pivot-portal-root p {
366
+ margin: 0;
367
+ padding: 0;
368
+ font-weight: normal;
369
+ color: inherit;
370
+ }
371
+
372
+ /* ─────────────────────────────────────────────────────────────
373
+ Component Specific Styles
374
+ ───────────────────────────────────────────────────────────── */
375
+
376
+ .kanuni-pivot-table {
377
+ border-collapse: separate !important;
378
+ border-spacing: 0;
379
+ }
380
+
381
+ .kanuni-pivot-table .kanuni-pivot-cell {
382
+ max-width: 250px;
383
+ /* Deterministic row metrics: 27px line + 1px bottom border = ROW_HEIGHT
384
+ (28px, see PivotGridBody). Vertical padding stays 0 so a body row can
385
+ never grow past ROW_HEIGHT regardless of the host page's font size —
386
+ otherwise the left/right panes drift apart row by row. */
387
+ padding: 0 var(--pivot-space-2);
388
+ line-height: 27px;
389
+ white-space: nowrap;
390
+ overflow: hidden;
391
+ text-overflow: ellipsis;
392
+ border-bottom: 1px solid var(--pivot-border);
393
+ border-right: 1px solid var(--pivot-border);
394
+ }
395
+
396
+ .kanuni-pivot-table .kanuni-pivot-header-cell {
397
+ max-width: 250px;
398
+ padding: var(--pivot-space-1-5) var(--pivot-space-2);
399
+ /* 19px line + 2×4px inline padding + 1px border = ROW_HEIGHT (28px). */
400
+ line-height: 19px;
401
+ white-space: nowrap;
402
+ overflow: hidden;
403
+ text-overflow: ellipsis;
404
+ color: var(--pivot-text-header, var(--pivot-text));
405
+ }
406
+
407
+ /* Row header cells */
408
+ .kanuni-pivot-table .kanuni-pivot-row-header {
409
+ font-size: var(--pivot-text-sm);
410
+ font-weight: 400;
411
+ color: var(--pivot-text);
412
+ border-right: 1px solid var(--pivot-border);
413
+ border-bottom: 1px solid var(--pivot-border);
414
+ border-left: 2px solid var(--pivot-group-border, transparent);
415
+ background: var(--pivot-surface);
416
+ vertical-align: top;
417
+ max-width: 300px;
418
+ overflow: hidden;
419
+ text-overflow: ellipsis;
420
+ white-space: nowrap;
421
+ }
422
+
423
+ .kanuni-pivot-table .kanuni-pivot-row-expandable {
424
+ cursor: pointer;
425
+ transition: background-color 0.2s;
426
+ }
427
+
428
+ .kanuni-pivot-table .kanuni-pivot-row-expandable:hover {
429
+ background: var(--pivot-surface-hover);
430
+ }
431
+
432
+ /* Expand/collapse icon (+/- box) */
433
+ .kanuni-pivot-expand-icon {
434
+ display: inline-flex;
435
+ align-items: center;
436
+ justify-content: center;
437
+ width: var(--pivot-space-3);
438
+ height: var(--pivot-space-3);
439
+ border: 1px solid var(--pivot-border);
440
+ background: var(--pivot-surface);
441
+ color: var(--pivot-text-muted);
442
+ font-family: monospace;
443
+ font-size: var(--pivot-text-xs);
444
+ line-height: 1;
445
+ border-radius: var(--pivot-radius-sm);
446
+ transition: all 0.15s;
447
+ }
448
+
449
+ .kanuni-pivot-row-expandable:hover .kanuni-pivot-expand-icon,
450
+ .kanuni-pivot-header-cell:hover .kanuni-pivot-expand-icon {
451
+ border-color: var(--pivot-primary);
452
+ color: var(--pivot-primary);
453
+ }
454
+
455
+ /* Zebra Striping */
456
+ .kanuni-pivot-striped .kanuni-pivot-table .kanuni-pivot-row:nth-child(even) .kanuni-pivot-cell {
457
+ background-color: var(--pivot-stripe-bg, var(--pivot-surface-hover));
458
+ }
459
+
460
+ /* Total cells (subtotals & grand total) */
461
+ .kanuni-pivot-table .kanuni-pivot-cell-total {
462
+ background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface))) !important;
463
+ font-weight: 600;
464
+ }
465
+
466
+ /* Subtotal row */
467
+ .kanuni-pivot-table .kanuni-pivot-subtotal-row {
468
+ background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 30%, var(--pivot-surface)));
469
+ }
470
+
471
+ .kanuni-pivot-table .kanuni-pivot-subtotal-row .kanuni-pivot-cell {
472
+ font-weight: 600;
473
+ background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 30%, var(--pivot-surface)));
474
+ }
475
+
476
+ /* Grand total row */
477
+ .kanuni-pivot-table .kanuni-pivot-grand-total-row {
478
+ background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 50%, var(--pivot-surface)));
479
+ }
480
+
481
+ .kanuni-pivot-table .kanuni-pivot-grand-total-row .kanuni-pivot-cell {
482
+ font-weight: 700;
483
+ background: var(--pivot-total-bg, color-mix(in srgb, var(--pivot-border) 50%, var(--pivot-surface)));
484
+ /* Drawn as an inset shadow (not border-top) so the grand-total row stays
485
+ exactly ROW_HEIGHT tall — a real border would add 2px and desync the
486
+ left/right panes. */
487
+ box-shadow: inset 0 2px 0 0 var(--pivot-border);
488
+ }
489
+
490
+ /* Corner cell (row field headers in corner) */
491
+ .kanuni-pivot-table .kanuni-pivot-header-corner {
492
+ background: color-mix(in srgb, var(--pivot-border) 20%, var(--pivot-surface)) !important;
493
+ border-right: 1px solid var(--pivot-border);
494
+ border-bottom: 1px solid var(--pivot-border);
495
+ }
496
+
497
+ /* Header total columns */
498
+ .kanuni-pivot-table .kanuni-pivot-header-total {
499
+ background: color-mix(in srgb, var(--pivot-border) 40%, var(--pivot-surface)) !important;
500
+ font-weight: 600 !important;
501
+ }
502
+
503
+ /* Focused cell */
504
+ /* Focused/selected blends are mixed over the SURFACE, not over transparent.
505
+ In the React two-pane layout the transparent blend always landed on a
506
+ surface-colored pane, so the computed color is identical — but the vanilla
507
+ renderer's K1 single scroller slides data cells UNDER sticky row headers,
508
+ and a 92%-transparent focused header let them show through (#191/5). */
509
+ .kanuni-pivot-table .kanuni-pivot-cell-focused {
510
+ outline: 2px solid var(--pivot-primary);
511
+ outline-offset: -2px;
512
+ background: color-mix(in srgb, var(--pivot-primary) 8%, var(--pivot-surface)) !important;
513
+ }
514
+
515
+ /* Selected cell */
516
+ .kanuni-pivot-table .kanuni-pivot-cell-selected {
517
+ background: color-mix(in srgb, var(--pivot-primary) 12%, var(--pivot-surface)) !important;
518
+ color: var(--pivot-primary) !important;
519
+ font-weight: 500;
520
+ }
521
+
522
+
523
+
524
+ /* (duplicate .kanuni-pivot-dropdown-divider removed — the later
525
+ height/background definition was already winning the cascade) */
526
+
527
+ /* Filter icon state */
528
+ .kanuni-pivot-filter-icon.kanuni-pivot-is-filtered {
529
+ color: var(--pivot-icon-active, var(--pivot-danger));
530
+ }
531
+ .kanuni-pivot-filter-icon:not(.kanuni-pivot-is-filtered):hover {
532
+ opacity: 0.7 !important;
533
+ }
534
+
535
+ /* Resize Handles */
536
+ .kanuni-pivot-resize-handle {
537
+ position: absolute;
538
+ top: 0;
539
+ bottom: 0;
540
+ width: 6px;
541
+ cursor: col-resize;
542
+ z-index: 10;
543
+ }
544
+ .kanuni-pivot-resize-handle:hover,
545
+ .kanuni-pivot-resize-handle:active {
546
+ background-color: var(--pivot-primary);
547
+ opacity: 0.5;
548
+ }
549
+
550
+ /* ─────────────────────────────────────────────────────────────
551
+ Report Menu Styles
552
+ ───────────────────────────────────────────────────────────── */
553
+ .kanuni-pivot-report-btn {
554
+ display: flex;
555
+ align-items: center;
556
+ gap: 8px;
557
+ padding: 6px 12px;
558
+ border-radius: var(--pivot-border-radius);
559
+ transition: all 0.2s;
560
+ font-size: 14px;
561
+ font-weight: 500;
562
+ }
563
+ .kanuni-pivot-report-btn--open {
564
+ background-color: var(--pivot-primary);
565
+ color: var(--pivot-primary-foreground);
566
+ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
567
+ }
568
+ .kanuni-pivot-report-btn--active {
569
+ background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent);
570
+ color: var(--pivot-primary);
571
+ border: 1px solid color-mix(in srgb, var(--pivot-primary) 20%, transparent);
572
+ }
573
+ .kanuni-pivot-report-btn--active:hover {
574
+ background-color: color-mix(in srgb, var(--pivot-primary) 20%, transparent);
575
+ }
576
+ .kanuni-pivot-report-btn--default {
577
+ color: var(--pivot-text-muted);
578
+ border: 1px solid transparent;
579
+ }
580
+ .kanuni-pivot-report-btn--default:hover {
581
+ border-color: color-mix(in srgb, var(--pivot-border) 50%, transparent);
582
+ background-color: var(--pivot-surface);
583
+ color: var(--pivot-text);
584
+ }
585
+
586
+ .kanuni-pivot-report-dropdown {
587
+ position: absolute;
588
+ left: 0;
589
+ bottom: 100%;
590
+ margin-bottom: 4px;
591
+ width: 256px;
592
+ background-color: var(--pivot-surface);
593
+ border: 1px solid var(--pivot-border);
594
+ border-radius: var(--pivot-border-radius-lg);
595
+ box-shadow: var(--pivot-shadow-md);
596
+ padding: 4px 0;
597
+ z-index: 50;
598
+ }
599
+
600
+ .kanuni-pivot-report-section-title {
601
+ padding: 6px 12px;
602
+ font-size: 10px;
603
+ font-weight: 700;
604
+ color: var(--pivot-text-muted);
605
+ text-transform: uppercase;
606
+ letter-spacing: 0.05em;
607
+ background-color: color-mix(in srgb, var(--pivot-surface-header) 30%, transparent);
608
+ border-bottom: 1px solid color-mix(in srgb, var(--pivot-border) 50%, transparent);
609
+ margin-bottom: 4px;
610
+ }
611
+
612
+ .kanuni-pivot-report-item {
613
+ width: 100%;
614
+ text-align: left;
615
+ padding: 8px 16px;
616
+ display: flex;
617
+ align-items: center;
618
+ gap: 12px;
619
+ font-size: 14px;
620
+ color: var(--pivot-text);
621
+ transition: background-color 0.15s;
622
+ }
623
+ .kanuni-pivot-report-item:hover {
624
+ background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
625
+ }
626
+
627
+ .kanuni-pivot-report-list {
628
+ max-height: 192px;
629
+ overflow-y: auto;
630
+ }
631
+
632
+ .kanuni-pivot-report-list-item {
633
+ display: flex;
634
+ align-items: center;
635
+ justify-content: space-between;
636
+ padding: 4px 8px;
637
+ margin: 0 4px;
638
+ border-radius: var(--pivot-border-radius);
639
+ border: 1px solid transparent;
640
+ }
641
+ .kanuni-pivot-report-list-item:hover {
642
+ background-color: var(--pivot-surface-hover);
643
+ }
644
+ .kanuni-pivot-report-list-item--active {
645
+ background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
646
+ border-color: color-mix(in srgb, var(--pivot-primary) 20%, transparent);
647
+ }
648
+ .kanuni-pivot-report-list-item:hover .kanuni-pivot-report-actions {
649
+ opacity: 1;
650
+ }
651
+
652
+ .kanuni-pivot-report-list-btn {
653
+ flex: 1;
654
+ display: flex;
655
+ align-items: center;
656
+ gap: 8px;
657
+ text-align: left;
658
+ overflow: hidden;
659
+ padding: 4px 8px;
660
+ }
661
+
662
+ .kanuni-pivot-report-actions {
663
+ display: flex;
664
+ align-items: center;
665
+ gap: 4px;
666
+ opacity: 0;
667
+ transition: opacity 0.2s;
668
+ }
669
+
670
+ .kanuni-pivot-action-btn {
671
+ padding: 4px;
672
+ color: var(--pivot-text-muted);
673
+ border-radius: var(--pivot-border-radius-sm);
674
+ transition: all 0.15s;
675
+ }
676
+ .kanuni-pivot-action-btn--warning:hover {
677
+ color: var(--pivot-warning);
678
+ background-color: color-mix(in srgb, var(--pivot-warning) 10%, transparent);
679
+ }
680
+ .kanuni-pivot-action-btn--danger:hover {
681
+ color: var(--pivot-danger);
682
+ background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent);
683
+ }
684
+
685
+ /* ─────────────────────────────────────────────────────────────
686
+ Modal Styles
687
+ ───────────────────────────────────────────────────────────── */
688
+ .kanuni-pivot-modal-overlay {
689
+ position: fixed;
690
+ inset: 0;
691
+ background-color: var(--pivot-overlay-bg);
692
+ backdrop-filter: blur(2px);
693
+ z-index: 99998;
694
+ }
695
+
696
+ .kanuni-pivot-modal {
697
+ position: fixed;
698
+ left: 50%;
699
+ top: 50%;
700
+ transform: translate(-50%, -50%);
701
+ width: 100%;
702
+ max-width: 450px;
703
+ background-color: var(--pivot-modal-bg);
704
+ border: 1px solid var(--pivot-border);
705
+ border-radius: var(--pivot-border-radius-lg);
706
+ box-shadow: var(--pivot-shadow-xl);
707
+ padding: 24px;
708
+ z-index: 99999;
709
+ display: flex;
710
+ flex-direction: column;
711
+ gap: 16px;
712
+ }
713
+
714
+ .kanuni-pivot-modal-header {
715
+ display: flex;
716
+ flex-direction: column;
717
+ gap: 6px;
718
+ }
719
+
720
+ .kanuni-pivot-modal-title {
721
+ font-size: 18px;
722
+ font-weight: 600;
723
+ color: var(--pivot-text);
724
+ display: flex;
725
+ justify-content: space-between;
726
+ align-items: center;
727
+ }
728
+
729
+ .kanuni-pivot-modal-close {
730
+ padding: 6px;
731
+ border-radius: 50%;
732
+ color: var(--pivot-text-muted);
733
+ transition: background-color 0.15s;
734
+ }
735
+ .kanuni-pivot-modal-close:hover {
736
+ background-color: var(--pivot-surface-hover);
737
+ }
738
+
739
+ .kanuni-pivot-modal-desc {
740
+ font-size: 14px;
741
+ color: var(--pivot-text-muted);
742
+ }
743
+
744
+ .kanuni-pivot-form-group {
745
+ display: flex;
746
+ flex-direction: column;
747
+ gap: 8px;
748
+ }
749
+
750
+ .kanuni-pivot-label {
751
+ font-size: 14px;
752
+ font-weight: 500;
753
+ color: var(--pivot-text);
754
+ }
755
+
756
+ .kanuni-pivot-input {
757
+ width: 100%;
758
+ height: 36px;
759
+ padding: 4px 12px;
760
+ border-radius: var(--pivot-border-radius);
761
+ border: 1px solid var(--pivot-border);
762
+ background-color: transparent;
763
+ color: var(--pivot-text);
764
+ font-size: 14px;
765
+ transition: border-color 0.15s, box-shadow 0.15s;
766
+ }
767
+ .kanuni-pivot-input:focus {
768
+ outline: none;
769
+ border-color: var(--pivot-primary);
770
+ box-shadow: 0 0 0 1px var(--pivot-primary);
771
+ }
772
+
773
+ .kanuni-pivot-checkbox-group {
774
+ display: flex;
775
+ align-items: center;
776
+ gap: 8px;
777
+ cursor: pointer;
778
+ }
779
+
780
+ .kanuni-pivot-checkbox {
781
+ width: 16px;
782
+ height: 16px;
783
+ border-radius: var(--pivot-border-radius-sm);
784
+ border: 1px solid var(--pivot-border);
785
+ cursor: pointer;
786
+ }
787
+ .kanuni-pivot-checkbox:checked {
788
+ background-color: var(--pivot-primary);
789
+ border-color: var(--pivot-primary);
790
+ }
791
+
792
+ .kanuni-pivot-modal-footer {
793
+ display: flex;
794
+ justify-content: flex-end;
795
+ gap: 8px;
796
+ margin-top: 8px;
797
+ }
798
+
799
+ .kanuni-pivot-btn {
800
+ display: inline-flex;
801
+ align-items: center;
802
+ justify-content: center;
803
+ gap: 8px;
804
+ height: 36px;
805
+ padding: 0 16px;
806
+ border-radius: var(--pivot-border-radius);
807
+ font-size: 14px;
808
+ font-weight: 500;
809
+ transition: all 0.15s;
810
+ cursor: pointer;
811
+ }
812
+ .kanuni-pivot-btn:disabled {
813
+ opacity: 0.5;
814
+ cursor: not-allowed;
815
+ }
816
+ .kanuni-pivot-btn--outline {
817
+ background-color: transparent;
818
+ border: 1px solid var(--pivot-border);
819
+ color: var(--pivot-text);
820
+ }
821
+ .kanuni-pivot-btn--outline:hover:not(:disabled) {
822
+ background-color: var(--pivot-surface-hover);
823
+ }
824
+ .kanuni-pivot-btn--primary {
825
+ background-color: var(--pivot-primary);
826
+ border: 1px solid var(--pivot-primary);
827
+ color: var(--pivot-primary-foreground);
828
+ }
829
+ .kanuni-pivot-btn--primary:hover:not(:disabled) {
830
+ background-color: var(--pivot-primary-hover);
831
+ }
832
+
833
+ /* ─────────────────────────────────────────────────────────────
834
+ Footer / Toolbar Styles
835
+ ───────────────────────────────────────────────────────────── */
836
+ .kanuni-pivot-footer-btn {
837
+ padding: 6px;
838
+ border-radius: var(--pivot-border-radius);
839
+ color: var(--pivot-text-muted);
840
+ background-color: transparent;
841
+ border: 1px solid transparent;
842
+ transition: all 0.2s;
843
+ display: inline-flex;
844
+ align-items: center;
845
+ justify-content: center;
846
+ }
847
+ .kanuni-pivot-footer-btn:hover {
848
+ color: var(--pivot-text);
849
+ background-color: var(--pivot-surface);
850
+ border-color: color-mix(in srgb, var(--pivot-border) 50%, transparent);
851
+ }
852
+ .kanuni-pivot-footer-btn:focus {
853
+ outline: none;
854
+ }
855
+ .kanuni-pivot-footer-btn--active {
856
+ background-color: var(--pivot-primary);
857
+ color: var(--pivot-primary-foreground);
858
+ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
859
+ }
860
+
861
+ /* ── Touch targets ────────────────────────────────────────────
862
+ Measured on the live playground at 375px (2026-08-27): every footer control
863
+ was 27px — 6px padding around a 15px icon — under any touch guideline.
864
+
865
+ Gated on the POINTER, not the viewport: a narrow desktop window keeps the
866
+ compact chrome, a tablet in landscape still gets targets a finger can hit.
867
+ The footer has no fixed height, so it simply grows. */
868
+ @media (pointer: coarse) {
869
+ .kanuni-pivot-footer-btn {
870
+ min-width: 40px;
871
+ min-height: 40px;
872
+ }
873
+ .kanuni-pivot-dropdown-item {
874
+ min-height: 40px;
875
+ }
876
+ /* The saved-views button sits beside the footer icons and stayed 21px tall
877
+ because its size comes from padding + font size, not from the icon rule. */
878
+ .kanuni-pivot-report-btn {
879
+ min-height: 40px;
880
+ }
881
+ /* The field chips' own controls were the worst of the lot: 12x12 (an 8px
882
+ icon in 2px padding), sixteen of them on the playground at 375px.
883
+
884
+ They are NOT blown up to 40x40 like the footer. The two controls sit side
885
+ by side inside one chip and one of them DELETES the field, so equal-sized
886
+ 40px targets would overlap and a mis-tap would be destructive. Instead the
887
+ visual target reaches the WCAG 2.5.8 AA minimum (24x24) and the hit area
888
+ is extended VERTICALLY only — 24x40, no horizontal bleed into the
889
+ neighbour (same ::after technique as the DataGrid filter button). */
890
+ .kanuni-pivot-chip-btn {
891
+ min-width: 24px;
892
+ min-height: 24px;
893
+ padding: 6px;
894
+ display: inline-flex;
895
+ align-items: center;
896
+ justify-content: center;
897
+ position: relative;
898
+ }
899
+ .kanuni-pivot-chip-btn::after {
900
+ content: '';
901
+ position: absolute;
902
+ inset: -8px 0;
903
+ }
904
+
905
+ /* Touch drag needs the gesture, and the browser claims it first.
906
+ Both renderers activate a touch drag after a 200ms hold (dnd-kit's
907
+ TouchSensor in React, the same constants in the vanilla pointer engine),
908
+ but without `touch-action: none` the browser has already started panning
909
+ by then and the drag never begins — the documented dnd-kit requirement,
910
+ never declared here (#195).
911
+
912
+ Scope matters: a strip chip drags from anywhere, so the whole chip claims
913
+ the gesture. A CHOOSER chip drags only from its grip and lives in a long
914
+ scrollable list, so claiming the whole chip would trap the finger — only
915
+ the grip does. */
916
+ .kanuni-pivot-field-chip:not([data-drag-scope='grip']) {
917
+ touch-action: none;
918
+ }
919
+ [data-drag-grip] {
920
+ touch-action: none;
921
+ }
922
+ }
923
+ .kanuni-pivot-footer-divider {
924
+ height: 16px;
925
+ width: 1px;
926
+ background-color: var(--pivot-border);
927
+ margin: 0 4px;
928
+ }
929
+
930
+ /* ─────────────────────────────────────────────────────────────
931
+ Area Strips & Field Chips Styles
932
+ ───────────────────────────────────────────────────────────── */
933
+ .kanuni-pivot-area-dropzone {
934
+ flex: 1;
935
+ display: flex;
936
+ flex-direction: column;
937
+ background-color: var(--pivot-bg);
938
+ border: 1px solid color-mix(in srgb, var(--pivot-border) 60%, transparent);
939
+ border-radius: var(--pivot-border-radius-sm);
940
+ overflow: hidden;
941
+ min-height: 42px;
942
+ transition: border-color 0.2s;
943
+ }
944
+ .kanuni-pivot-area-dropzone:hover {
945
+ border-color: var(--pivot-border);
946
+ }
947
+
948
+ .kanuni-pivot-area-header {
949
+ display: flex;
950
+ align-items: center;
951
+ gap: 6px;
952
+ padding: 4px 8px;
953
+ background-color: color-mix(in srgb, var(--pivot-surface-header) 50%, var(--pivot-bg));
954
+ border-bottom: 1px solid color-mix(in srgb, var(--pivot-border) 40%, transparent);
955
+ font-size: 10px;
956
+ font-weight: 700;
957
+ color: var(--pivot-text-muted);
958
+ text-transform: uppercase;
959
+ letter-spacing: 0.05em;
960
+ }
961
+
962
+ .kanuni-pivot-area-content {
963
+ flex: 1;
964
+ display: flex;
965
+ flex-wrap: wrap;
966
+ gap: 4px;
967
+ padding: 4px;
968
+ align-items: flex-start;
969
+ align-content: flex-start;
970
+ }
971
+
972
+ .kanuni-pivot-field-chip {
973
+ display: flex;
974
+ align-items: center;
975
+ gap: 4px;
976
+ padding: 4px 6px;
977
+ background-color: var(--pivot-surface);
978
+ color: var(--pivot-text);
979
+ border: 1px solid color-mix(in srgb, var(--pivot-border) 80%, transparent);
980
+ box-shadow: var(--pivot-shadow-sm);
981
+ border-radius: var(--pivot-border-radius-sm);
982
+ font-size: 12px;
983
+ font-weight: 500;
984
+ transition: all 0.2s;
985
+ }
986
+ .kanuni-pivot-field-chip:hover {
987
+ border-color: color-mix(in srgb, var(--pivot-primary) 50%, transparent);
988
+ background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
989
+ }
990
+ .kanuni-pivot-field-chip.is-dragging {
991
+ opacity: 0.5;
992
+ box-shadow: 0 0 0 2px var(--pivot-primary);
993
+ cursor: grabbing !important;
994
+ }
995
+
996
+ .kanuni-pivot-field-chip-actions {
997
+ display: flex;
998
+ align-items: center;
999
+ gap: 2px;
1000
+ margin-left: 4px;
1001
+ opacity: 0;
1002
+ transition: opacity 0.2s;
1003
+ }
1004
+ .kanuni-pivot-field-chip:hover .kanuni-pivot-field-chip-actions,
1005
+ .kanuni-pivot-field-chip:focus-within .kanuni-pivot-field-chip-actions {
1006
+ opacity: 1;
1007
+ }
1008
+ /* Chips are keyboard-operable (#207): the ring is the only sign of focus. */
1009
+ .kanuni-pivot-field-chip:focus-visible {
1010
+ outline: 2px solid var(--pivot-primary);
1011
+ outline-offset: 2px;
1012
+ }
1013
+ .kanuni-pivot-field-chip-actions.is-filtered {
1014
+ opacity: 1;
1015
+ }
1016
+
1017
+ .kanuni-pivot-chip-btn {
1018
+ padding: 2px;
1019
+ border-radius: var(--pivot-border-radius-sm);
1020
+ transition: all 0.15s;
1021
+ background: transparent;
1022
+ color: var(--pivot-text-muted);
1023
+ }
1024
+ .kanuni-pivot-chip-btn:hover {
1025
+ background-color: var(--pivot-surface-hover);
1026
+ color: var(--pivot-primary);
1027
+ }
1028
+ .kanuni-pivot-chip-btn--danger:hover {
1029
+ background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent);
1030
+ color: var(--pivot-danger);
1031
+ }
1032
+
1033
+ /* ─────────────────────────────────────────────────────────────
1034
+ Filter Popup Styles
1035
+ ───────────────────────────────────────────────────────────── */
1036
+ .kanuni-pivot-dropdown-menu {
1037
+ position: absolute;
1038
+ background-color: var(--pivot-surface);
1039
+ border: 1px solid var(--pivot-border);
1040
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.02);
1041
+ border-radius: var(--pivot-radius-lg);
1042
+ padding: 8px;
1043
+ z-index: 1000;
1044
+ display: flex;
1045
+ flex-direction: column;
1046
+ gap: 4px;
1047
+ min-width: 220px;
1048
+ }
1049
+ .kanuni-pivot-dropdown-item {
1050
+ width: 100%;
1051
+ text-align: left;
1052
+ padding: 12px 18px; /* Increased padding as requested */
1053
+ font-size: 14px;
1054
+ font-weight: 400;
1055
+ color: var(--pivot-text);
1056
+ background: transparent;
1057
+ border: none;
1058
+ border-radius: 6px;
1059
+ cursor: pointer;
1060
+ display: flex;
1061
+ align-items: center;
1062
+ gap: 12px;
1063
+ transition: background-color 0.15s ease-in-out;
1064
+ }
1065
+ .kanuni-pivot-dropdown-item:hover {
1066
+ background-color: var(--pivot-surface-hover);
1067
+ }
1068
+ .kanuni-pivot-dropdown-item svg {
1069
+ color: var(--pivot-text-muted);
1070
+ flex-shrink: 0;
1071
+ transition: color 0.15s;
1072
+ }
1073
+ .kanuni-pivot-dropdown-item:hover svg {
1074
+ color: var(--pivot-text);
1075
+ }
1076
+ .kanuni-pivot-dropdown-item-danger {
1077
+ color: var(--pivot-danger);
1078
+ }
1079
+ .kanuni-pivot-dropdown-item-danger svg {
1080
+ color: var(--pivot-danger) !important;
1081
+ }
1082
+ .kanuni-pivot-dropdown-item-danger:hover {
1083
+ background-color: color-mix(in srgb, var(--pivot-danger) 8%, transparent);
1084
+ color: var(--pivot-danger);
1085
+ }
1086
+
1087
+ /* Fullscreen mode overrides for dropdowns */
1088
+ .pivot-is-fullscreen .kanuni-pivot-dropdown-menu,
1089
+ .pivot-is-fullscreen .dropdown-menu {
1090
+ padding: 12px !important;
1091
+ gap: 4px !important;
1092
+ }
1093
+ .pivot-is-fullscreen .kanuni-pivot-dropdown-item,
1094
+ .pivot-is-fullscreen .dropdown-item {
1095
+ padding: 12px 16px !important;
1096
+ }
1097
+ .pivot-is-fullscreen .kanuni-pivot-report-section-title {
1098
+ padding: 10px 16px !important;
1099
+ }
1100
+ .kanuni-pivot-dropdown-divider {
1101
+ height: 1px;
1102
+ background-color: var(--pivot-border);
1103
+ margin: 4px -6px;
1104
+ }
1105
+ .kanuni-pivot-popup {
1106
+ position: fixed;
1107
+ z-index: 9999;
1108
+ background-color: var(--pivot-surface);
1109
+ border: 1px solid var(--pivot-border);
1110
+ border-radius: var(--pivot-border-radius);
1111
+ box-shadow: var(--pivot-shadow-lg);
1112
+ display: flex;
1113
+ flex-direction: column;
1114
+ overflow: hidden;
1115
+ color: var(--pivot-text);
1116
+ font-size: 13px;
1117
+ }
1118
+
1119
+ .kanuni-pivot-popup-header {
1120
+ padding: 8px;
1121
+ border-bottom: 1px solid var(--pivot-border);
1122
+ display: flex;
1123
+ flex-direction: column;
1124
+ gap: 8px;
1125
+ }
1126
+
1127
+ .kanuni-pivot-popup-search {
1128
+ position: relative;
1129
+ display: flex;
1130
+ align-items: center;
1131
+ }
1132
+ .kanuni-pivot-popup-search-icon {
1133
+ position: absolute;
1134
+ left: 8px;
1135
+ color: var(--pivot-text-muted);
1136
+ }
1137
+ .kanuni-pivot-popup-search-input {
1138
+ width: 100%;
1139
+ padding: 6px 8px 6px 28px;
1140
+ border: 1px solid var(--pivot-border);
1141
+ border-radius: var(--pivot-border-radius-sm);
1142
+ background-color: var(--pivot-surface);
1143
+ color: var(--pivot-text);
1144
+ font-size: 13px;
1145
+ outline: none;
1146
+ transition: border-color 0.15s;
1147
+ }
1148
+ .kanuni-pivot-popup-search-input:focus {
1149
+ border-color: var(--pivot-primary);
1150
+ }
1151
+
1152
+ .kanuni-pivot-popup-actions {
1153
+ display: flex;
1154
+ gap: 8px;
1155
+ }
1156
+ .kanuni-pivot-popup-action-btn {
1157
+ font-size: 11px;
1158
+ background: transparent;
1159
+ border: none;
1160
+ padding: 0;
1161
+ cursor: pointer;
1162
+ transition: opacity 0.15s;
1163
+ }
1164
+ .kanuni-pivot-popup-action-btn:hover {
1165
+ text-decoration: underline;
1166
+ }
1167
+ .kanuni-pivot-popup-action-btn--primary {
1168
+ color: var(--pivot-primary);
1169
+ }
1170
+ .kanuni-pivot-popup-action-btn--danger {
1171
+ color: var(--pivot-danger);
1172
+ }
1173
+
1174
+ .kanuni-pivot-popup-list {
1175
+ flex: 1;
1176
+ overflow-y: auto;
1177
+ min-height: 0;
1178
+ }
1179
+
1180
+ .kanuni-pivot-popup-item {
1181
+ display: flex;
1182
+ align-items: center;
1183
+ gap: 8px;
1184
+ padding: 4px 8px;
1185
+ cursor: pointer;
1186
+ user-select: none;
1187
+ outline: none;
1188
+ }
1189
+ .kanuni-pivot-popup-item:hover,
1190
+ .kanuni-pivot-popup-item:focus {
1191
+ background-color: var(--pivot-surface-hover);
1192
+ }
1193
+ .kanuni-pivot-popup-item--active {
1194
+ background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent);
1195
+ }
1196
+ .kanuni-pivot-popup-item--checked {
1197
+ background-color: color-mix(in srgb, var(--pivot-primary) 5%, transparent);
1198
+ }
1199
+
1200
+ .kanuni-pivot-popup-footer {
1201
+ padding: 8px;
1202
+ border-top: 1px solid var(--pivot-border);
1203
+ display: flex;
1204
+ align-items: center;
1205
+ justify-content: flex-end;
1206
+ gap: 8px;
1207
+ flex-shrink: 0;
1208
+ }
1209
+
1210
+ /* ─────────────────────────────────────────────────────────────
1211
+ Prefilter Builder Styles
1212
+ ───────────────────────────────────────────────────────────── */
1213
+ .kanuni-pivot-prefilter-group {
1214
+ display: flex;
1215
+ flex-direction: column;
1216
+ gap: 12px;
1217
+ }
1218
+ .kanuni-pivot-prefilter-group--nested {
1219
+ padding-left: 24px;
1220
+ border-left: 2px solid color-mix(in srgb, var(--pivot-primary) 30%, transparent);
1221
+ padding-top: 8px;
1222
+ padding-bottom: 8px;
1223
+ }
1224
+
1225
+ .kanuni-pivot-prefilter-header {
1226
+ display: flex;
1227
+ align-items: center;
1228
+ gap: 8px;
1229
+ }
1230
+
1231
+ .kanuni-pivot-prefilter-select-logic {
1232
+ background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent);
1233
+ color: var(--pivot-primary);
1234
+ border: 1px solid color-mix(in srgb, var(--pivot-primary) 20%, transparent);
1235
+ border-radius: var(--pivot-border-radius-sm);
1236
+ padding: 4px 8px;
1237
+ font-size: 14px;
1238
+ font-weight: 700;
1239
+ text-transform: uppercase;
1240
+ cursor: pointer;
1241
+ outline: none;
1242
+ transition: background-color 0.15s;
1243
+ }
1244
+ .kanuni-pivot-prefilter-select-logic:hover {
1245
+ background-color: color-mix(in srgb, var(--pivot-primary) 20%, transparent);
1246
+ }
1247
+
1248
+ .kanuni-pivot-prefilter-action {
1249
+ padding: 4px;
1250
+ border-radius: var(--pivot-border-radius-sm);
1251
+ transition: all 0.15s;
1252
+ background: transparent;
1253
+ color: var(--pivot-text-muted);
1254
+ border: none;
1255
+ cursor: pointer;
1256
+ display: flex;
1257
+ align-items: center;
1258
+ justify-content: center;
1259
+ }
1260
+ .kanuni-pivot-prefilter-action:hover {
1261
+ background-color: var(--pivot-surface-hover);
1262
+ }
1263
+ .kanuni-pivot-prefilter-action--success {
1264
+ color: var(--pivot-success);
1265
+ }
1266
+ .kanuni-pivot-prefilter-action--danger {
1267
+ color: var(--pivot-danger);
1268
+ }
1269
+ .kanuni-pivot-prefilter-action--danger:hover {
1270
+ background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent);
1271
+ }
1272
+
1273
+ .kanuni-pivot-prefilter-btn-group {
1274
+ font-size: 12px;
1275
+ padding: 4px 8px;
1276
+ font-weight: 600;
1277
+ border-radius: var(--pivot-border-radius-sm);
1278
+ border: 1px solid var(--pivot-border);
1279
+ color: var(--pivot-text-muted);
1280
+ background: transparent;
1281
+ cursor: pointer;
1282
+ transition: all 0.15s;
1283
+ }
1284
+ .kanuni-pivot-prefilter-btn-group:hover {
1285
+ background-color: var(--pivot-surface-hover);
1286
+ }
1287
+
1288
+ .kanuni-pivot-prefilter-conditions {
1289
+ display: flex;
1290
+ flex-direction: column;
1291
+ gap: 8px;
1292
+ padding-left: 16px;
1293
+ }
1294
+
1295
+ .kanuni-pivot-prefilter-condition {
1296
+ display: flex;
1297
+ align-items: center;
1298
+ gap: 8px;
1299
+ padding: 6px;
1300
+ margin-left: -6px;
1301
+ border-radius: var(--pivot-border-radius);
1302
+ border: 1px solid transparent;
1303
+ transition: all 0.15s;
1304
+ }
1305
+ .kanuni-pivot-prefilter-condition:hover {
1306
+ background-color: var(--pivot-surface);
1307
+ border-color: var(--pivot-border);
1308
+ }
1309
+ .kanuni-pivot-prefilter-condition .kanuni-pivot-prefilter-action--danger {
1310
+ opacity: 0;
1311
+ }
1312
+ .kanuni-pivot-prefilter-condition:hover .kanuni-pivot-prefilter-action--danger {
1313
+ opacity: 1;
1314
+ }
1315
+
1316
+ .kanuni-pivot-prefilter-select {
1317
+ background-color: var(--pivot-surface);
1318
+ border: 1px solid var(--pivot-border);
1319
+ border-radius: var(--pivot-border-radius-sm);
1320
+ padding: 4px 8px;
1321
+ font-size: 14px;
1322
+ color: var(--pivot-text);
1323
+ outline: none;
1324
+ transition: border-color 0.15s;
1325
+ }
1326
+ .kanuni-pivot-prefilter-select:focus,
1327
+ .kanuni-pivot-prefilter-select:hover {
1328
+ border-color: var(--pivot-primary);
1329
+ }
1330
+
1331
+ /* ─────────────────────────────────────────────────────────────
1332
+ Chart Overlay & Modal Styles
1333
+ ───────────────────────────────────────────────────────────── */
1334
+ .kanuni-pivot-chart-overlay {
1335
+ width: 100%;
1336
+ background-color: var(--pivot-surface);
1337
+ border: 1px solid var(--pivot-border);
1338
+ border-radius: var(--pivot-border-radius-lg);
1339
+ padding: 16px;
1340
+ flex-shrink: 0;
1341
+ box-shadow: var(--pivot-shadow-sm);
1342
+ position: relative;
1343
+ display: flex;
1344
+ flex-direction: column;
1345
+ }
1346
+
1347
+ .kanuni-pivot-chart-actions {
1348
+ position: absolute;
1349
+ top: 8px;
1350
+ right: 8px;
1351
+ display: flex;
1352
+ gap: 4px;
1353
+ z-index: 50;
1354
+ background-color: color-mix(in srgb, var(--pivot-surface) 80%, transparent);
1355
+ padding: 4px;
1356
+ border-radius: var(--pivot-border-radius-sm);
1357
+ backdrop-filter: blur(4px);
1358
+ border: 1px solid var(--pivot-border);
1359
+ box-shadow: var(--pivot-shadow-sm);
1360
+ opacity: 0;
1361
+ transition: opacity 0.2s;
1362
+ }
1363
+ .kanuni-pivot-chart-overlay:hover .kanuni-pivot-chart-actions,
1364
+ .kanuni-pivot-chart-actions:hover {
1365
+ opacity: 1;
1366
+ }
1367
+
1368
+ .kanuni-pivot-chart-action-btn {
1369
+ padding: 6px;
1370
+ border-radius: var(--pivot-border-radius-sm);
1371
+ background: transparent;
1372
+ border: none;
1373
+ cursor: pointer;
1374
+ transition: all 0.2s;
1375
+ display: flex;
1376
+ align-items: center;
1377
+ justify-content: center;
1378
+ }
1379
+ .kanuni-pivot-chart-action-btn:hover {
1380
+ background-color: var(--pivot-surface-hover);
1381
+ }
1382
+ .kanuni-pivot-chart-action-btn--primary { color: var(--pivot-primary); }
1383
+ .kanuni-pivot-chart-action-btn--primary:hover { background-color: color-mix(in srgb, var(--pivot-primary) 10%, transparent); }
1384
+ .kanuni-pivot-chart-action-btn--danger { color: var(--pivot-danger); }
1385
+ .kanuni-pivot-chart-action-btn--danger:hover { background-color: color-mix(in srgb, var(--pivot-danger) 10%, transparent); }
1386
+ .kanuni-pivot-chart-action-btn--success { color: var(--pivot-success); }
1387
+ .kanuni-pivot-chart-action-btn--success:hover { background-color: color-mix(in srgb, var(--pivot-success) 10%, transparent); }
1388
1388
 
1389
1389
 
1390
1390
  /* ───── Tailwind utilities (compiled & scoped under .kanuni-pivot-root) ───── */