@gp-grid/core 0.10.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,950 @@
1
+
2
+ /* =============================================================================
3
+ GP Grid - CSS Variables for Theming
4
+ ============================================================================= */
5
+
6
+ .gp-grid-container {
7
+ /* Colors - Light Mode (default) */
8
+ --gp-grid-bg: #ffffff;
9
+ --gp-grid-bg-alt: #f8f9fa;
10
+ --gp-grid-text: #212529;
11
+ --gp-grid-text-secondary: #6c757d;
12
+ --gp-grid-text-muted: #adb5bd;
13
+ --gp-grid-border: #dee2e6;
14
+ --gp-grid-border-light: #e9ecef;
15
+
16
+ /* Header */
17
+ --gp-grid-header-bg: #f1f3f5;
18
+ --gp-grid-header-text: #212529;
19
+ --gp-grid-header-z-index: 10;
20
+
21
+ /* Selection */
22
+ --gp-grid-primary: #228be6;
23
+ --gp-grid-primary-light: #e7f5ff;
24
+ --gp-grid-primary-border: #74c0fc;
25
+ --gp-grid-hover: #f1f3f5;
26
+
27
+ /* Filter */
28
+ --gp-grid-filter-bg: #f8f9fa;
29
+ --gp-grid-input-bg: #ffffff;
30
+ --gp-grid-input-border: #ced4da;
31
+
32
+ /* Error */
33
+ --gp-grid-error-bg: #fff5f5;
34
+ --gp-grid-error-text: #c92a2a;
35
+
36
+ /* Loading */
37
+ --gp-grid-loading-bg: rgba(255, 255, 255, 0.95);
38
+ --gp-grid-loading-text: #495057;
39
+
40
+ /* Scrollbar */
41
+ --gp-grid-scrollbar-track: #f1f3f5;
42
+ --gp-grid-scrollbar-thumb: #ced4da;
43
+ --gp-grid-scrollbar-thumb-hover: #adb5bd;
44
+ }
45
+
46
+ /* Dark Mode */
47
+ .gp-grid-container--dark {
48
+ --gp-grid-bg: #1a1b1e;
49
+ --gp-grid-bg-alt: #25262b;
50
+ --gp-grid-text: #c1c2c5;
51
+ --gp-grid-text-secondary: #909296;
52
+ --gp-grid-text-muted: #5c5f66;
53
+ --gp-grid-border: #373a40;
54
+ --gp-grid-border-light: #2c2e33;
55
+
56
+ /* Header */
57
+ --gp-grid-header-bg: #25262b;
58
+ --gp-grid-header-text: #c1c2c5;
59
+ --gp-grid-header-z-index: 10;
60
+
61
+ /* Selection */
62
+ --gp-grid-primary: #339af0;
63
+ --gp-grid-primary-light: #1c3d5a;
64
+ --gp-grid-primary-border: #1c7ed6;
65
+ --gp-grid-hover: #2c2e33;
66
+
67
+ /* Filter */
68
+ --gp-grid-filter-bg: #25262b;
69
+ --gp-grid-input-bg: #1a1b1e;
70
+ --gp-grid-input-border: #373a40;
71
+
72
+ /* Error */
73
+ --gp-grid-error-bg: #2c1a1a;
74
+ --gp-grid-error-text: #ff6b6b;
75
+
76
+ /* Loading */
77
+ --gp-grid-loading-bg: rgba(26, 27, 30, 0.95);
78
+ --gp-grid-loading-text: #c1c2c5;
79
+
80
+ /* Scrollbar */
81
+ --gp-grid-scrollbar-track: #25262b;
82
+ --gp-grid-scrollbar-thumb: #373a40;
83
+ --gp-grid-scrollbar-thumb-hover: #4a4d52;
84
+ }
85
+
86
+
87
+ /* =============================================================================
88
+ GP Grid - Clean Flat Design
89
+ ============================================================================= */
90
+
91
+ /* Grid Container */
92
+ .gp-grid-container {
93
+ outline: none;
94
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
95
+ font-size: 13px;
96
+ line-height: 1.5;
97
+ color: var(--gp-grid-text);
98
+ background-color: var(--gp-grid-bg);
99
+ border: 1px solid var(--gp-grid-border);
100
+ border-radius: 6px;
101
+ user-select: none;
102
+ -webkit-user-select: none;
103
+ }
104
+
105
+ .gp-grid-container:focus {
106
+ outline: none;
107
+ border-color: var(--gp-grid-primary);
108
+ }
109
+
110
+
111
+ /* =============================================================================
112
+ Header
113
+ ============================================================================= */
114
+
115
+ .gp-grid-header {
116
+ position: sticky;
117
+ top: 0;
118
+ left: 0;
119
+ /* z-index set inline (100) to ensure header stays above rows wrapper */
120
+ background-color: var(--gp-grid-header-bg);
121
+ border-bottom: 1px solid var(--gp-grid-border);
122
+ flex-shrink: 0;
123
+ z-index: 11;
124
+ overflow: hidden;
125
+ }
126
+
127
+ .gp-grid-container .gp-grid-header-cell {
128
+ position: absolute;
129
+ box-sizing: border-box;
130
+ border-right: 1px solid var(--gp-grid-border);
131
+ font-weight: 600;
132
+ font-size: 12px;
133
+ text-transform: uppercase;
134
+ letter-spacing: 0.5px;
135
+ color: var(--gp-grid-header-text);
136
+ cursor: pointer;
137
+ user-select: none;
138
+ display: flex;
139
+ align-items: center;
140
+ padding: 0 12px;
141
+ background-color: transparent;
142
+ transition: background-color 0.1s ease;
143
+ top: 0;
144
+ background: transparent;
145
+ touch-action: none;
146
+ }
147
+
148
+ .gp-grid-container .gp-grid-header-cell:hover {
149
+ background-color: var(--gp-grid-hover);
150
+ }
151
+
152
+ .gp-grid-container .gp-grid-header-cell:active {
153
+ background-color: var(--gp-grid-border-light);
154
+ }
155
+
156
+ .gp-grid-container .gp-grid-header-text {
157
+ flex: 1;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ white-space: nowrap;
161
+ color: var(--gp-grid-header-text);
162
+ }
163
+
164
+ /* Header icons container */
165
+ .gp-grid-header-icons {
166
+ display: flex;
167
+ align-items: center;
168
+ gap: 4px;
169
+ margin-left: auto;
170
+ }
171
+
172
+ /* Stacked sort arrows */
173
+ .gp-grid-sort-arrows {
174
+ display: flex;
175
+ flex-direction: row;
176
+ align-items: center;
177
+ gap: 2px;
178
+ margin-left: 6px;
179
+ }
180
+
181
+ .gp-grid-sort-arrows-stack {
182
+ display: flex;
183
+ flex-direction: column;
184
+ align-items: center;
185
+ gap: 2px;
186
+ }
187
+
188
+ .gp-grid-sort-arrow-up,
189
+ .gp-grid-sort-arrow-down {
190
+ opacity: 0.35;
191
+ transition: opacity 0.15s ease, color 0.15s ease;
192
+ color: var(--gp-grid-text);
193
+ }
194
+
195
+ .gp-grid-sort-arrow-up.active,
196
+ .gp-grid-sort-arrow-down.active {
197
+ opacity: 1;
198
+ color: var(--gp-grid-primary);
199
+ }
200
+
201
+ .gp-grid-sort-index {
202
+ font-size: 9px;
203
+ color: var(--gp-grid-primary);
204
+ font-weight: 600;
205
+ }
206
+
207
+ /* Filter icon */
208
+ .gp-grid-filter-icon {
209
+ display: flex;
210
+ align-items: center;
211
+ justify-content: center;
212
+ width: 20px;
213
+ height: 20px;
214
+ border-radius: 4px;
215
+ cursor: pointer;
216
+ color: var(--gp-grid-text-secondary);
217
+ transition: background-color 0.15s ease, color 0.15s ease;
218
+ margin-left: 2px;
219
+ }
220
+
221
+ .gp-grid-filter-icon:hover {
222
+ background-color: var(--gp-grid-hover);
223
+ color: var(--gp-grid-primary);
224
+ }
225
+
226
+ .gp-grid-filter-icon.active {
227
+ color: var(--gp-grid-primary);
228
+ background-color: var(--gp-grid-primary-light);
229
+ }
230
+
231
+ /* Touch device: larger tap target for filter icon */
232
+ @media (pointer: coarse) and (hover: none) and (max-width: 768px) {
233
+ .gp-grid-filter-icon {
234
+ min-width: 44px;
235
+ min-height: 44px;
236
+ width: 44px;
237
+ height: 44px;
238
+ margin-left: 0;
239
+ }
240
+
241
+ .gp-grid-filter-icon svg {
242
+ width: 20px;
243
+ height: 20px;
244
+ }
245
+ }
246
+
247
+ /* Disabled header state during data loading */
248
+ .gp-grid-header--loading .gp-grid-header-cell {
249
+ pointer-events: none;
250
+ opacity: 0.6;
251
+ cursor: default;
252
+ }
253
+
254
+ /* =============================================================================
255
+ Column Resize
256
+ ============================================================================= */
257
+
258
+ .gp-grid-header-resize-handle {
259
+ position: absolute;
260
+ right: -3px;
261
+ top: 0;
262
+ width: 6px;
263
+ height: 100%;
264
+ cursor: col-resize;
265
+ z-index: 10;
266
+ touch-action: none;
267
+ }
268
+
269
+ .gp-grid-header-resize-handle:hover,
270
+ .gp-grid-header-resize-handle--active {
271
+ background-color: var(--gp-grid-primary);
272
+ opacity: 0.4;
273
+ }
274
+
275
+ /* Touch device: wider resize handle hit area */
276
+ @media (pointer: coarse) and (hover: none) and (max-width: 768px) {
277
+ .gp-grid-header-resize-handle {
278
+ width: 24px;
279
+ right: -12px;
280
+ }
281
+ }
282
+
283
+ .gp-grid-column-resize-line {
284
+ position: absolute;
285
+ top: 0;
286
+ width: 2px;
287
+ height: 100%;
288
+ background-color: var(--gp-grid-primary);
289
+ z-index: 1000;
290
+ pointer-events: none;
291
+ }
292
+
293
+ /* =============================================================================
294
+ Column Move
295
+ ============================================================================= */
296
+
297
+ .gp-grid-column-move-ghost {
298
+ position: fixed;
299
+ pointer-events: none;
300
+ opacity: 0.7;
301
+ z-index: 2000;
302
+ background-color: var(--gp-grid-header-bg);
303
+ border: 2px solid var(--gp-grid-primary);
304
+ border-radius: 4px;
305
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
306
+ display: flex;
307
+ align-items: center;
308
+ padding: 0 12px;
309
+ font-weight: 600;
310
+ font-size: 12px;
311
+ text-transform: uppercase;
312
+ letter-spacing: 0.5px;
313
+ color: var(--gp-grid-header-text);
314
+ box-sizing: border-box;
315
+ overflow: hidden;
316
+ white-space: nowrap;
317
+ text-overflow: ellipsis;
318
+ }
319
+
320
+ .gp-grid-column-drop-indicator {
321
+ position: absolute;
322
+ top: 0;
323
+ left: 0;
324
+ width: 3px;
325
+ height: 100%;
326
+ background-color: var(--gp-grid-primary);
327
+ z-index: 1000;
328
+ pointer-events: none;
329
+ border-radius: 2px;
330
+ }
331
+
332
+
333
+ /* =============================================================================
334
+ Data Cells
335
+ ============================================================================= */
336
+
337
+ /* Rows wrapper - positions rows with small translateY values for large datasets */
338
+ .gp-grid-rows-wrapper {
339
+ position: absolute;
340
+ top: 0;
341
+ left: 0;
342
+ /* Keep wrapper below the sticky header (z-index: 10) */
343
+ z-index: 1;
344
+ will-change: transform;
345
+ }
346
+
347
+ .gp-grid-row {
348
+ position: absolute;
349
+ top: 0;
350
+ left: 0;
351
+ }
352
+
353
+ /* Row background - :where() for zero specificity, so user highlight classes always win */
354
+ :where(.gp-grid-row) {
355
+ background-color: var(--gp-grid-bg);
356
+ }
357
+
358
+ /* Structural properties - required for grid layout */
359
+ .gp-grid-cell {
360
+ position: absolute;
361
+ top: 0;
362
+ box-sizing: border-box;
363
+ display: flex;
364
+ align-items: center;
365
+ overflow: hidden;
366
+ text-overflow: ellipsis;
367
+ white-space: nowrap;
368
+ user-select: none;
369
+ -webkit-user-select: none;
370
+ }
371
+
372
+ /* Visual properties - :where() for zero specificity, so user highlight classes always win */
373
+ :where(.gp-grid-cell) {
374
+ padding: 0 12px;
375
+ cursor: cell;
376
+ color: var(--gp-grid-text);
377
+ border-right: 1px solid var(--gp-grid-border-light);
378
+ border-bottom: 1px solid var(--gp-grid-border-light);
379
+ background-color: transparent;
380
+ }
381
+
382
+ /* Active cell (focused) - structural properties stay, visual use :where() */
383
+ .gp-grid-cell--active {
384
+ outline: none;
385
+ z-index: 5;
386
+ }
387
+ :where(.gp-grid-cell--active) {
388
+ background-color: var(--gp-grid-primary-light);
389
+ border: 2px solid var(--gp-grid-primary);
390
+ padding: 0 11px;
391
+ }
392
+
393
+ /* Selected cells (range selection) */
394
+ :where(.gp-grid-cell--selected) {
395
+ background-color: var(--gp-grid-primary-light);
396
+ }
397
+
398
+ /* Editing cell - structural properties stay, visual use :where() */
399
+ .gp-grid-cell--editing {
400
+ z-index: 10;
401
+ }
402
+ :where(.gp-grid-cell--editing) {
403
+ background-color: var(--gp-grid-bg);
404
+ border: 2px solid var(--gp-grid-primary);
405
+ padding: 0;
406
+ }
407
+
408
+ /* =============================================================================
409
+ Fill Handle (drag to fill)
410
+ ============================================================================= */
411
+
412
+ .gp-grid-fill-handle {
413
+ position: absolute;
414
+ width: 8px;
415
+ height: 8px;
416
+ background-color: var(--gp-grid-primary);
417
+ border: 2px solid var(--gp-grid-bg);
418
+ cursor: crosshair;
419
+ z-index: 11;
420
+ pointer-events: auto;
421
+ box-sizing: border-box;
422
+ border-radius: 1px;
423
+ touch-action: none;
424
+ }
425
+
426
+ .gp-grid-fill-handle:hover {
427
+ transform: scale(1.2);
428
+ }
429
+
430
+ @media (pointer: coarse) and (hover: none) and (max-width: 768px) {
431
+ .gp-grid-fill-handle {
432
+ width: 24px;
433
+ height: 24px;
434
+ border-width: 3px;
435
+ border-radius: 3px;
436
+ }
437
+ }
438
+
439
+ /* Fill preview (cells being filled) */
440
+ .gp-grid-cell.gp-grid-cell--fill-preview {
441
+ background-color: var(--gp-grid-primary-light);
442
+ border: 1px dashed var(--gp-grid-primary);
443
+ }
444
+
445
+ /* =============================================================================
446
+ Edit Input
447
+ ============================================================================= */
448
+
449
+ .gp-grid-edit-input {
450
+ width: 100%;
451
+ height: 100%;
452
+ padding: 0 11px;
453
+ font-family: inherit;
454
+ font-size: inherit;
455
+ color: var(--gp-grid-text);
456
+ border: none;
457
+ background-color: transparent;
458
+ }
459
+
460
+ .gp-grid-edit-input:focus {
461
+ outline: none;
462
+ }
463
+
464
+
465
+ /* =============================================================================
466
+ Loading & Error States
467
+ ============================================================================= */
468
+
469
+ /* Sticky wrapper: stays pinned at viewport top, takes no layout space */
470
+ .gp-grid-loading-anchor {
471
+ position: sticky;
472
+ top: 0;
473
+ left: 0;
474
+ height: 0;
475
+ z-index: 900;
476
+ overflow: visible;
477
+ pointer-events: none;
478
+ }
479
+
480
+ /* Semi-transparent overlay covering the visible viewport area */
481
+ .gp-grid-loading-overlay {
482
+ position: absolute;
483
+ top: 0;
484
+ left: 0;
485
+ width: 100%;
486
+ height: 100%;
487
+ pointer-events: none;
488
+ background-color: var(--gp-grid-loading-overlay-bg, rgba(255, 255, 255, 0.4));
489
+ }
490
+
491
+ .gp-grid-container--dark .gp-grid-loading-overlay {
492
+ background-color: var(--gp-grid-loading-overlay-bg, rgba(0, 0, 0, 0.3));
493
+ }
494
+
495
+ /* Loading indicator centered in the visible viewport */
496
+ .gp-grid-loading {
497
+ position: absolute;
498
+ top: 50%;
499
+ left: 50%;
500
+ transform: translate(-50%, -50%);
501
+ padding: 12px 20px;
502
+ background-color: var(--gp-grid-loading-bg);
503
+ color: var(--gp-grid-loading-text);
504
+ border-radius: 6px;
505
+ border: 1px solid var(--gp-grid-border);
506
+ font-weight: 500;
507
+ font-size: 13px;
508
+ z-index: 1000;
509
+ display: flex;
510
+ align-items: center;
511
+ gap: 10px;
512
+ pointer-events: auto;
513
+ }
514
+
515
+ .gp-grid-loading-spinner {
516
+ width: 16px;
517
+ height: 16px;
518
+ border: 2px solid var(--gp-grid-border);
519
+ border-top-color: var(--gp-grid-primary);
520
+ border-radius: 50%;
521
+ animation: gp-grid-spin 0.7s linear infinite;
522
+ }
523
+
524
+ @keyframes gp-grid-spin {
525
+ to {
526
+ transform: rotate(360deg);
527
+ }
528
+ }
529
+
530
+ .gp-grid-error {
531
+ position: absolute;
532
+ top: 50%;
533
+ left: 50%;
534
+ transform: translate(-50%, -50%);
535
+ padding: 12px 20px;
536
+ background-color: var(--gp-grid-error-bg);
537
+ color: var(--gp-grid-error-text);
538
+ border-radius: 6px;
539
+ border: 1px solid var(--gp-grid-error-text);
540
+ font-weight: 500;
541
+ font-size: 13px;
542
+ z-index: 1000;
543
+ max-width: 80%;
544
+ text-align: center;
545
+ }
546
+
547
+ /* =============================================================================
548
+ Empty State
549
+ ============================================================================= */
550
+
551
+ .gp-grid-empty {
552
+ position: absolute;
553
+ top: 50%;
554
+ left: 50%;
555
+ transform: translate(-50%, -50%);
556
+ color: var(--gp-grid-text-muted);
557
+ font-size: 14px;
558
+ text-align: center;
559
+ }
560
+
561
+
562
+ /* =============================================================================
563
+ Scrollbar Styling
564
+ ============================================================================= */
565
+
566
+ .gp-grid-container::-webkit-scrollbar {
567
+ width: 8px;
568
+ height: 8px;
569
+ }
570
+
571
+ .gp-grid-container::-webkit-scrollbar-track {
572
+ background-color: var(--gp-grid-scrollbar-track);
573
+ }
574
+
575
+ .gp-grid-container::-webkit-scrollbar-thumb {
576
+ background-color: var(--gp-grid-scrollbar-thumb);
577
+ border-radius: 4px;
578
+ }
579
+
580
+ .gp-grid-container::-webkit-scrollbar-thumb:hover {
581
+ background-color: var(--gp-grid-scrollbar-thumb-hover);
582
+ }
583
+
584
+ .gp-grid-container::-webkit-scrollbar-corner {
585
+ background-color: var(--gp-grid-scrollbar-track);
586
+ }
587
+
588
+
589
+ /* =============================================================================
590
+ Filter Popup
591
+ ============================================================================= */
592
+
593
+ .gp-grid-filter-popup {
594
+ background-color: var(--gp-grid-bg);
595
+ border: 1px solid var(--gp-grid-border);
596
+ border-radius: 6px;
597
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
598
+ max-height: 400px;
599
+ display: flex;
600
+ flex-direction: column;
601
+ font-size: 13px;
602
+ }
603
+
604
+ .gp-grid-filter-header {
605
+ padding: 10px 12px;
606
+ font-weight: 600;
607
+ border-bottom: 1px solid var(--gp-grid-border-light);
608
+ color: var(--gp-grid-header-text);
609
+ }
610
+
611
+ .gp-grid-filter-content {
612
+ padding: 10px 12px;
613
+ display: flex;
614
+ flex-direction: column;
615
+ gap: 10px;
616
+ overflow: hidden;
617
+ }
618
+
619
+ /* Mode toggle (Values / Condition) */
620
+ .gp-grid-filter-mode-toggle {
621
+ display: flex;
622
+ gap: 4px;
623
+ background-color: var(--gp-grid-bg-alt);
624
+ border-radius: 4px;
625
+ padding: 2px;
626
+ }
627
+
628
+ .gp-grid-filter-mode-toggle button {
629
+ flex: 1;
630
+ padding: 6px 10px;
631
+ font-size: 11px;
632
+ font-family: inherit;
633
+ border: none;
634
+ border-radius: 3px;
635
+ background-color: transparent;
636
+ color: var(--gp-grid-text-secondary);
637
+ cursor: pointer;
638
+ transition: background-color 0.15s ease, color 0.15s ease;
639
+ }
640
+
641
+ .gp-grid-filter-mode-toggle button:hover {
642
+ color: var(--gp-grid-text);
643
+ }
644
+
645
+ .gp-grid-filter-mode-toggle button.active {
646
+ background-color: var(--gp-grid-bg);
647
+ color: var(--gp-grid-text);
648
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
649
+ }
650
+
651
+ /* Info message for too many values */
652
+ .gp-grid-filter-info {
653
+ font-size: 11px;
654
+ color: var(--gp-grid-text-secondary);
655
+ padding: 6px 8px;
656
+ background-color: var(--gp-grid-bg-alt);
657
+ border-radius: 4px;
658
+ }
659
+
660
+ /* Search input in filter */
661
+ .gp-grid-filter-search {
662
+ width: 100%;
663
+ height: 30px;
664
+ padding: 0 10px;
665
+ font-family: inherit;
666
+ font-size: 12px;
667
+ border: 1px solid var(--gp-grid-input-border);
668
+ border-radius: 4px;
669
+ background-color: var(--gp-grid-input-bg);
670
+ color: var(--gp-grid-text);
671
+ box-sizing: border-box;
672
+ }
673
+
674
+ .gp-grid-filter-search:focus {
675
+ outline: none;
676
+ border-color: var(--gp-grid-primary);
677
+ }
678
+
679
+ /* Select All / Deselect All actions */
680
+ .gp-grid-filter-actions {
681
+ display: flex;
682
+ gap: 8px;
683
+ }
684
+
685
+ .gp-grid-filter-actions button {
686
+ flex: 1;
687
+ padding: 4px 8px;
688
+ font-size: 11px;
689
+ font-family: inherit;
690
+ border: 1px solid var(--gp-grid-input-border);
691
+ border-radius: 3px;
692
+ background-color: var(--gp-grid-bg);
693
+ color: var(--gp-grid-text);
694
+ cursor: pointer;
695
+ }
696
+
697
+ .gp-grid-filter-actions button:hover:not(:disabled) {
698
+ background-color: var(--gp-grid-hover);
699
+ }
700
+
701
+ .gp-grid-filter-actions button:disabled {
702
+ opacity: 0.5;
703
+ cursor: not-allowed;
704
+ }
705
+
706
+ /* Checkbox list */
707
+ .gp-grid-filter-list {
708
+ max-height: 200px;
709
+ overflow-y: auto;
710
+ display: flex;
711
+ flex-direction: column;
712
+ gap: 4px;
713
+ border: 1px solid var(--gp-grid-border-light);
714
+ border-radius: 4px;
715
+ padding: 6px;
716
+ }
717
+
718
+ .gp-grid-filter-option {
719
+ display: flex;
720
+ align-items: center;
721
+ gap: 8px;
722
+ padding: 4px 6px;
723
+ border-radius: 3px;
724
+ cursor: pointer;
725
+ }
726
+
727
+ .gp-grid-filter-option:hover {
728
+ background-color: var(--gp-grid-hover);
729
+ }
730
+
731
+ .gp-grid-filter-option input[type="checkbox"] {
732
+ margin: 0;
733
+ cursor: pointer;
734
+ }
735
+
736
+ .gp-grid-filter-option span {
737
+ flex: 1;
738
+ overflow: hidden;
739
+ text-overflow: ellipsis;
740
+ white-space: nowrap;
741
+ }
742
+
743
+ .gp-grid-filter-blank {
744
+ font-style: italic;
745
+ color: var(--gp-grid-text-muted);
746
+ }
747
+
748
+ /* Filter condition row (for number/date filters) */
749
+ .gp-grid-filter-condition {
750
+ display: flex;
751
+ flex-direction: column;
752
+ gap: 6px;
753
+ }
754
+
755
+ .gp-grid-filter-row {
756
+ display: flex;
757
+ align-items: center;
758
+ gap: 6px;
759
+ }
760
+
761
+ .gp-grid-filter-row select {
762
+ height: 30px;
763
+ padding: 0 6px;
764
+ font-family: inherit;
765
+ font-size: 12px;
766
+ border: 1px solid var(--gp-grid-input-border);
767
+ border-radius: 4px;
768
+ background-color: var(--gp-grid-input-bg);
769
+ color: var(--gp-grid-text);
770
+ cursor: pointer;
771
+ }
772
+
773
+ .gp-grid-filter-row input[type="number"],
774
+ .gp-grid-filter-row input[type="date"],
775
+ .gp-grid-filter-row input[type="text"],
776
+ .gp-grid-filter-text-input {
777
+ flex: 1;
778
+ height: 30px;
779
+ padding: 0 8px;
780
+ font-family: inherit;
781
+ font-size: 12px;
782
+ border: 1px solid var(--gp-grid-input-border);
783
+ border-radius: 4px;
784
+ background-color: var(--gp-grid-input-bg);
785
+ color: var(--gp-grid-text);
786
+ min-width: 0;
787
+ box-sizing: border-box;
788
+ }
789
+
790
+ .gp-grid-filter-row input:focus {
791
+ outline: none;
792
+ border-color: var(--gp-grid-primary);
793
+ }
794
+
795
+ .gp-grid-filter-to {
796
+ font-size: 11px;
797
+ color: var(--gp-grid-text-secondary);
798
+ }
799
+
800
+ .gp-grid-filter-remove {
801
+ width: 24px;
802
+ height: 24px;
803
+ padding: 0;
804
+ font-size: 16px;
805
+ line-height: 1;
806
+ border: none;
807
+ border-radius: 3px;
808
+ background-color: transparent;
809
+ color: var(--gp-grid-text-muted);
810
+ cursor: pointer;
811
+ }
812
+
813
+ .gp-grid-filter-remove:hover {
814
+ background-color: var(--gp-grid-error-bg);
815
+ color: var(--gp-grid-error-text);
816
+ }
817
+
818
+ /* AND/OR combination toggle */
819
+ .gp-grid-filter-combination {
820
+ display: flex;
821
+ gap: 4px;
822
+ margin-bottom: 4px;
823
+ }
824
+
825
+ .gp-grid-filter-combination button {
826
+ flex: 1;
827
+ padding: 4px 8px;
828
+ font-size: 10px;
829
+ font-family: inherit;
830
+ border: 1px solid var(--gp-grid-input-border);
831
+ border-radius: 3px;
832
+ background-color: var(--gp-grid-bg);
833
+ color: var(--gp-grid-text-secondary);
834
+ cursor: pointer;
835
+ }
836
+
837
+ .gp-grid-filter-combination button.active {
838
+ background-color: var(--gp-grid-primary);
839
+ border-color: var(--gp-grid-primary);
840
+ color: #fff;
841
+ }
842
+
843
+ /* Add condition button */
844
+ .gp-grid-filter-add {
845
+ width: 100%;
846
+ padding: 6px;
847
+ font-size: 11px;
848
+ font-family: inherit;
849
+ border: 1px dashed var(--gp-grid-border);
850
+ border-radius: 4px;
851
+ background-color: transparent;
852
+ color: var(--gp-grid-text-secondary);
853
+ cursor: pointer;
854
+ }
855
+
856
+ .gp-grid-filter-add:hover {
857
+ background-color: var(--gp-grid-hover);
858
+ border-color: var(--gp-grid-primary);
859
+ color: var(--gp-grid-primary);
860
+ }
861
+
862
+ /* Apply / Clear buttons */
863
+ .gp-grid-filter-buttons {
864
+ display: flex;
865
+ gap: 8px;
866
+ padding-top: 8px;
867
+ border-top: 1px solid var(--gp-grid-border-light);
868
+ }
869
+
870
+ .gp-grid-filter-btn-clear,
871
+ .gp-grid-filter-btn-apply {
872
+ flex: 1;
873
+ padding: 8px 12px;
874
+ font-size: 12px;
875
+ font-family: inherit;
876
+ border-radius: 4px;
877
+ cursor: pointer;
878
+ }
879
+
880
+ .gp-grid-filter-btn-clear {
881
+ border: 1px solid var(--gp-grid-input-border);
882
+ background-color: var(--gp-grid-bg);
883
+ color: var(--gp-grid-text);
884
+ }
885
+
886
+ .gp-grid-filter-btn-clear:hover {
887
+ background-color: var(--gp-grid-hover);
888
+ }
889
+
890
+ .gp-grid-filter-btn-apply {
891
+ border: 1px solid var(--gp-grid-primary);
892
+ background-color: var(--gp-grid-primary);
893
+ color: #fff;
894
+ }
895
+
896
+ .gp-grid-filter-btn-apply:hover {
897
+ opacity: 0.9;
898
+ }
899
+
900
+
901
+ /* =============================================================================
902
+ Row Drag
903
+ ============================================================================= */
904
+
905
+ .gp-grid-cell--row-drag-handle {
906
+ cursor: grab;
907
+ touch-action: none;
908
+ }
909
+
910
+ .gp-grid-cell--row-drag-handle:active {
911
+ cursor: grabbing;
912
+ }
913
+
914
+ .gp-grid-row-drag-icon {
915
+ display: flex;
916
+ align-items: center;
917
+ justify-content: center;
918
+ width: 100%;
919
+ height: 100%;
920
+ color: var(--gp-grid-text-secondary);
921
+ }
922
+
923
+ .gp-grid-row-drag-icon svg {
924
+ width: 16px;
925
+ height: 16px;
926
+ }
927
+
928
+ .gp-grid-row-drag-ghost {
929
+ position: fixed;
930
+ pointer-events: none;
931
+ opacity: 0.8;
932
+ z-index: 2000;
933
+ background-color: var(--gp-grid-bg, #fff);
934
+ border: 2px solid var(--gp-grid-primary);
935
+ border-radius: 4px;
936
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
937
+ overflow: hidden;
938
+ box-sizing: border-box;
939
+ }
940
+
941
+ .gp-grid-row-drop-indicator {
942
+ position: absolute;
943
+ left: 0;
944
+ width: 100%;
945
+ height: 3px;
946
+ background-color: var(--gp-grid-primary);
947
+ z-index: 1000;
948
+ pointer-events: none;
949
+ border-radius: 2px;
950
+ }