@yudaocode/univer-bases-ui 0.0.0-stage → 1.6.219

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/lib/index.css ADDED
@@ -0,0 +1,2126 @@
1
+ /* ==========================================================================
2
+ @yudaocode/univer-bases-ui — Enterprise Relational Multi-Table Workbench CSS
3
+ ========================================================================== */
4
+
5
+ .univer-bases-main {
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: column;
9
+ width: 100%;
10
+ height: 100%;
11
+ min-height: 480px;
12
+ background: #f8fafc;
13
+ color: #0f172a;
14
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
15
+ font-size: 13px;
16
+ overflow: hidden;
17
+ }
18
+
19
+ .univer-bases-main__viewport {
20
+ flex: 1;
21
+ min-height: 0;
22
+ display: flex;
23
+ flex-direction: column;
24
+ overflow: hidden;
25
+ }
26
+
27
+ .univer-bases-empty-workspace {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ height: 100%;
32
+ color: #64748b;
33
+ font-size: 14px;
34
+ }
35
+
36
+ .univer-bases-inline-flex {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ gap: 6px;
40
+ }
41
+
42
+ .univer-bases-muted-key {
43
+ color: #64748b;
44
+ font-size: 12px;
45
+ }
46
+
47
+ /* Buttons & Inputs */
48
+ .univer-bases-btn {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ gap: 5px;
53
+ border-radius: 6px;
54
+ border: 1px solid transparent;
55
+ padding: 6px 12px;
56
+ font-size: 12.5px;
57
+ font-weight: 500;
58
+ cursor: pointer;
59
+ transition: all 0.15s ease;
60
+ background: #ffffff;
61
+ color: #1e293b;
62
+ white-space: nowrap;
63
+ }
64
+
65
+ .univer-bases-btn--sm {
66
+ padding: 4px 9px;
67
+ font-size: 12px;
68
+ }
69
+
70
+ .univer-bases-btn--primary {
71
+ background: #2563eb;
72
+ border-color: #2563eb;
73
+ color: #ffffff;
74
+ }
75
+
76
+ .univer-bases-btn--primary:hover {
77
+ background: #1d4ed8;
78
+ }
79
+
80
+ .univer-bases-btn--outline {
81
+ border-color: #cbd5e1;
82
+ background: #ffffff;
83
+ }
84
+
85
+ .univer-bases-btn--outline:hover {
86
+ border-color: #94a3b8;
87
+ background: #f8fafc;
88
+ }
89
+
90
+ .univer-bases-btn--ghost {
91
+ background: transparent;
92
+ color: #475569;
93
+ }
94
+
95
+ .univer-bases-btn--ghost:hover {
96
+ background: #f1f5f9;
97
+ color: #0f172a;
98
+ }
99
+
100
+ .univer-bases-btn--danger {
101
+ background: #fef2f2;
102
+ border-color: #fecaca;
103
+ color: #dc2626;
104
+ }
105
+
106
+ .univer-bases-btn.is-tinted {
107
+ background: #eff6ff;
108
+ border-color: #93c5fd;
109
+ color: #1d4ed8;
110
+ }
111
+
112
+ .univer-bases-icon-btn {
113
+ display: inline-flex;
114
+ align-items: center;
115
+ justify-content: center;
116
+ width: 24px;
117
+ height: 24px;
118
+ border-radius: 5px;
119
+ border: none;
120
+ background: transparent;
121
+ color: #64748b;
122
+ cursor: pointer;
123
+ }
124
+
125
+ .univer-bases-icon-btn:hover:not(:disabled) {
126
+ background: #f1f5f9;
127
+ color: #0f172a;
128
+ }
129
+
130
+ .univer-bases-icon-btn:disabled {
131
+ opacity: 0.35;
132
+ cursor: not-allowed;
133
+ }
134
+
135
+ .univer-bases-input,
136
+ .univer-bases-select,
137
+ .univer-bases-textarea {
138
+ width: 100%;
139
+ box-sizing: border-box;
140
+ border: 1px solid #cbd5e1;
141
+ border-radius: 6px;
142
+ padding: 5px 8px;
143
+ font-size: 12.5px;
144
+ color: #0f172a;
145
+ background: #ffffff;
146
+ outline: none;
147
+ }
148
+
149
+ .univer-bases-input:focus,
150
+ .univer-bases-select:focus,
151
+ .univer-bases-textarea:focus {
152
+ border-color: #2563eb;
153
+ box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
154
+ }
155
+
156
+ .univer-bases-select--xs {
157
+ width: auto;
158
+ padding: 3px 7px;
159
+ font-size: 12px;
160
+ }
161
+
162
+ /* Left Sidebar */
163
+ .univer-bases-left-sidebar {
164
+ width: 224px;
165
+ height: 100%;
166
+ background: #ffffff;
167
+ border-right: 1px solid #e2e8f0;
168
+ padding: 10px;
169
+ box-sizing: border-box;
170
+ display: flex;
171
+ flex-direction: column;
172
+ gap: 16px;
173
+ overflow-y: auto;
174
+ }
175
+
176
+ .univer-bases-sidebar-section__header {
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: space-between;
180
+ font-size: 11.5px;
181
+ font-weight: 600;
182
+ color: #64748b;
183
+ padding: 2px 4px 6px;
184
+ text-transform: uppercase;
185
+ letter-spacing: 0.02em;
186
+ }
187
+
188
+ .univer-bases-sidebar-create-box {
189
+ display: flex;
190
+ gap: 6px;
191
+ margin-bottom: 8px;
192
+ }
193
+
194
+ .univer-bases-sidebar-list {
195
+ display: flex;
196
+ flex-direction: column;
197
+ gap: 3px;
198
+ }
199
+
200
+ .univer-bases-sidebar-item {
201
+ display: flex;
202
+ align-items: center;
203
+ justify-content: space-between;
204
+ padding: 7px 8px;
205
+ border-radius: 6px;
206
+ cursor: pointer;
207
+ color: #334155;
208
+ transition: background 0.12s ease;
209
+ }
210
+
211
+ .univer-bases-sidebar-item:hover {
212
+ background: #f1f5f9;
213
+ }
214
+
215
+ .univer-bases-sidebar-item.is-active {
216
+ background: #eff6ff;
217
+ color: #1d4ed8;
218
+ font-weight: 600;
219
+ }
220
+
221
+ .univer-bases-sidebar-item__name {
222
+ overflow: hidden;
223
+ text-overflow: ellipsis;
224
+ white-space: nowrap;
225
+ max-width: 126px;
226
+ }
227
+
228
+ .univer-bases-sidebar-del {
229
+ border: none;
230
+ background: transparent;
231
+ color: #94a3b8;
232
+ cursor: pointer;
233
+ padding: 2px;
234
+ display: inline-flex;
235
+ }
236
+
237
+ .univer-bases-sidebar-del:hover {
238
+ color: #dc2626;
239
+ }
240
+
241
+ .univer-bases-sidebar-presets {
242
+ display: flex;
243
+ flex-direction: column;
244
+ gap: 5px;
245
+ }
246
+
247
+ .univer-bases-preset-btn {
248
+ text-align: left;
249
+ padding: 6px 8px;
250
+ border-radius: 6px;
251
+ border: 1px dashed #cbd5e1;
252
+ background: #f8fafc;
253
+ font-size: 12px;
254
+ color: #334155;
255
+ cursor: pointer;
256
+ }
257
+
258
+ .univer-bases-preset-btn:hover {
259
+ border-color: #2563eb;
260
+ color: #2563eb;
261
+ background: #eff6ff;
262
+ }
263
+
264
+ .univer-bases-badge-count {
265
+ display: inline-flex;
266
+ align-items: center;
267
+ justify-content: center;
268
+ min-width: 18px;
269
+ height: 18px;
270
+ padding: 0 5px;
271
+ border-radius: 9px;
272
+ background: #f1f5f9;
273
+ color: #475569;
274
+ font-size: 11px;
275
+ font-weight: 600;
276
+ }
277
+
278
+ /* Top View Toolbar */
279
+ .univer-bases-toolbar {
280
+ background: #ffffff;
281
+ border-bottom: 1px solid #e2e8f0;
282
+ flex-shrink: 0;
283
+ }
284
+
285
+ .univer-bases-toolbar__tabs {
286
+ display: flex;
287
+ align-items: center;
288
+ gap: 4px;
289
+ padding: 6px 12px 0;
290
+ border-bottom: 1px solid #f1f5f9;
291
+ overflow-x: auto;
292
+ }
293
+
294
+ .univer-bases-toolbar__quick-modes {
295
+ display: inline-flex;
296
+ align-items: center;
297
+ gap: 2px;
298
+ }
299
+
300
+ .univer-bases-view-tab {
301
+ display: inline-flex;
302
+ align-items: center;
303
+ gap: 6px;
304
+ padding: 7px 11px;
305
+ border: none;
306
+ border-bottom: 2px solid transparent;
307
+ background: transparent;
308
+ color: #475569;
309
+ font-size: 12.5px;
310
+ font-weight: 500;
311
+ cursor: pointer;
312
+ white-space: nowrap;
313
+ }
314
+
315
+ .univer-bases-view-tab:hover {
316
+ color: #0f172a;
317
+ background: #f8fafc;
318
+ }
319
+
320
+ .univer-bases-view-tab.is-active {
321
+ color: #2563eb;
322
+ border-bottom-color: #2563eb;
323
+ font-weight: 600;
324
+ }
325
+
326
+ .univer-bases-view-tab.is-ghost {
327
+ opacity: 0.72;
328
+ font-size: 12px;
329
+ }
330
+
331
+ .univer-bases-toolbar__actions {
332
+ display: flex;
333
+ align-items: center;
334
+ justify-content: space-between;
335
+ gap: 8px;
336
+ padding: 7px 12px;
337
+ flex-wrap: wrap;
338
+ }
339
+
340
+ .univer-bases-toolbar__left,
341
+ .univer-bases-toolbar__right {
342
+ display: flex;
343
+ align-items: center;
344
+ gap: 7px;
345
+ flex-wrap: wrap;
346
+ }
347
+
348
+ .univer-bases-search-box {
349
+ display: inline-flex;
350
+ align-items: center;
351
+ gap: 6px;
352
+ border: 1px solid #cbd5e1;
353
+ border-radius: 6px;
354
+ padding: 3px 8px;
355
+ background: #f8fafc;
356
+ }
357
+
358
+ .univer-bases-search-box input {
359
+ border: none;
360
+ background: transparent;
361
+ outline: none;
362
+ font-size: 12px;
363
+ width: 150px;
364
+ }
365
+
366
+ /* Popovers */
367
+ .univer-bases-popover-anchor {
368
+ position: relative;
369
+ display: inline-flex;
370
+ }
371
+
372
+ .univer-bases-popover {
373
+ position: absolute;
374
+ top: calc(100% + 6px);
375
+ left: 0;
376
+ z-index: 60;
377
+ width: 290px;
378
+ background: #ffffff;
379
+ border: 1px solid #e2e8f0;
380
+ border-radius: 10px;
381
+ box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
382
+ padding: 12px;
383
+ display: flex;
384
+ flex-direction: column;
385
+ gap: 10px;
386
+ }
387
+
388
+ .univer-bases-popover--wide {
389
+ width: 440px;
390
+ }
391
+
392
+ .univer-bases-popover--field {
393
+ width: 340px;
394
+ font-weight: 400;
395
+ text-align: left;
396
+ }
397
+
398
+ .univer-bases-popover__header {
399
+ display: flex;
400
+ align-items: center;
401
+ justify-content: space-between;
402
+ padding-bottom: 6px;
403
+ border-bottom: 1px solid #f1f5f9;
404
+ }
405
+
406
+ .univer-bases-popover__footer {
407
+ display: flex;
408
+ align-items: center;
409
+ justify-content: flex-end;
410
+ gap: 8px;
411
+ padding-top: 6px;
412
+ border-top: 1px solid #f1f5f9;
413
+ }
414
+
415
+ .univer-bases-rule-list {
416
+ display: flex;
417
+ flex-direction: column;
418
+ gap: 6px;
419
+ }
420
+
421
+ .univer-bases-rule-row {
422
+ display: flex;
423
+ align-items: center;
424
+ gap: 6px;
425
+ }
426
+
427
+ .univer-bases-form-row {
428
+ display: flex;
429
+ flex-direction: column;
430
+ gap: 4px;
431
+ }
432
+
433
+ .univer-bases-form-row label {
434
+ font-size: 12px;
435
+ font-weight: 500;
436
+ color: #475569;
437
+ }
438
+
439
+ .univer-bases-empty-hint {
440
+ padding: 12px 4px;
441
+ text-align: center;
442
+ color: #94a3b8;
443
+ font-size: 12px;
444
+ }
445
+
446
+ /* Subbar & Segmented Control */
447
+ .univer-bases-subbar {
448
+ display: flex;
449
+ align-items: center;
450
+ justify-content: space-between;
451
+ padding: 8px 14px;
452
+ background: #ffffff;
453
+ border-bottom: 1px solid #e2e8f0;
454
+ flex-shrink: 0;
455
+ }
456
+
457
+ .univer-bases-subbar__label {
458
+ font-size: 12px;
459
+ color: #64748b;
460
+ }
461
+
462
+ .univer-bases-segmented {
463
+ display: inline-flex;
464
+ background: #f1f5f9;
465
+ padding: 2px;
466
+ border-radius: 7px;
467
+ }
468
+
469
+ .univer-bases-segmented__item {
470
+ border: none;
471
+ background: transparent;
472
+ padding: 4px 12px;
473
+ border-radius: 5px;
474
+ font-size: 12px;
475
+ color: #475569;
476
+ cursor: pointer;
477
+ }
478
+
479
+ .univer-bases-segmented__item.is-active {
480
+ background: #ffffff;
481
+ color: #2563eb;
482
+ font-weight: 600;
483
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
484
+ }
485
+
486
+ /* 1. Grid View */
487
+ .univer-bases-grid-wrapper {
488
+ flex: 1;
489
+ min-height: 0;
490
+ display: flex;
491
+ flex-direction: column;
492
+ background: #ffffff;
493
+ }
494
+
495
+ .univer-bases-bulk-bar {
496
+ display: flex;
497
+ align-items: center;
498
+ justify-content: space-between;
499
+ padding: 6px 14px;
500
+ background: #eff6ff;
501
+ border-bottom: 1px solid #bfdbfe;
502
+ color: #1e40af;
503
+ font-weight: 500;
504
+ }
505
+
506
+ .univer-bases-grid-scroll {
507
+ flex: 1;
508
+ overflow: auto;
509
+ }
510
+
511
+ .univer-bases-grid-table {
512
+ border-collapse: separate;
513
+ border-spacing: 0;
514
+ width: max-content;
515
+ min-width: 100%;
516
+ }
517
+
518
+ .univer-bases-grid__index-header,
519
+ .univer-bases-grid__index-cell {
520
+ position: sticky;
521
+ left: 0;
522
+ z-index: 12;
523
+ width: 78px;
524
+ min-width: 78px;
525
+ background: #f8fafc;
526
+ border-right: 1px solid #e2e8f0;
527
+ border-bottom: 1px solid #e2e8f0;
528
+ padding: 0 8px;
529
+ text-align: center;
530
+ }
531
+
532
+ .univer-bases-grid__index-cell {
533
+ display: flex;
534
+ align-items: center;
535
+ gap: 5px;
536
+ height: 36px;
537
+ background: #ffffff;
538
+ }
539
+
540
+ .univer-bases-grid__row-num {
541
+ font-size: 11.5px;
542
+ color: #94a3b8;
543
+ min-width: 16px;
544
+ }
545
+
546
+ .univer-bases-row-expand-btn {
547
+ border: none;
548
+ background: transparent;
549
+ color: #64748b;
550
+ padding: 2px;
551
+ cursor: pointer;
552
+ opacity: 0.7;
553
+ }
554
+
555
+ .univer-bases-row-expand-btn:hover {
556
+ opacity: 1;
557
+ color: #2563eb;
558
+ }
559
+
560
+ .univer-bases-grid__th {
561
+ position: sticky;
562
+ top: 0;
563
+ z-index: 15;
564
+ height: 36px;
565
+ background: #f8fafc;
566
+ border-right: 1px solid #e2e8f0;
567
+ border-bottom: 1px solid #cbd5e1;
568
+ padding: 0;
569
+ font-weight: 600;
570
+ color: #334155;
571
+ }
572
+
573
+ .univer-bases-grid__th.is-primary-sticky {
574
+ left: 78px;
575
+ z-index: 18;
576
+ }
577
+
578
+ .univer-bases-grid__cell.is-primary-sticky,
579
+ .univer-bases-grid__summary-cell.is-primary-sticky {
580
+ position: sticky;
581
+ left: 78px;
582
+ z-index: 11;
583
+ background: inherit;
584
+ }
585
+
586
+ .univer-bases-grid__th-inner {
587
+ display: flex;
588
+ align-items: center;
589
+ gap: 6px;
590
+ padding: 0 10px;
591
+ height: 100%;
592
+ cursor: pointer;
593
+ }
594
+
595
+ .univer-bases-grid__th-inner:hover {
596
+ background: #f1f5f9;
597
+ }
598
+
599
+ .univer-bases-required-dot {
600
+ color: #dc2626;
601
+ margin-left: 2px;
602
+ }
603
+
604
+ .univer-bases-grid__add-field-th {
605
+ position: sticky;
606
+ top: 0;
607
+ z-index: 14;
608
+ background: #f8fafc;
609
+ border-bottom: 1px solid #cbd5e1;
610
+ padding: 0 10px;
611
+ min-width: 110px;
612
+ }
613
+
614
+ .univer-bases-add-field-btn {
615
+ display: inline-flex;
616
+ align-items: center;
617
+ gap: 4px;
618
+ border: none;
619
+ background: transparent;
620
+ color: #2563eb;
621
+ font-size: 12px;
622
+ font-weight: 500;
623
+ cursor: pointer;
624
+ }
625
+
626
+ .univer-bases-grid__row {
627
+ background: #ffffff;
628
+ }
629
+
630
+ .univer-bases-grid__row:hover {
631
+ background: #f8fafc;
632
+ }
633
+
634
+ .univer-bases-grid__row.is-selected {
635
+ background: #eff6ff;
636
+ }
637
+
638
+ .univer-bases-grid__cell {
639
+ height: 36px;
640
+ border-right: 1px solid #f1f5f9;
641
+ border-bottom: 1px solid #e2e8f0;
642
+ padding: 0 8px;
643
+ vertical-align: middle;
644
+ }
645
+
646
+ .univer-bases-cell-text {
647
+ min-height: 24px;
648
+ line-height: 24px;
649
+ overflow: hidden;
650
+ text-overflow: ellipsis;
651
+ white-space: nowrap;
652
+ cursor: text;
653
+ }
654
+
655
+ .univer-bases-cell-text.is-numeric {
656
+ text-align: right;
657
+ font-variant-numeric: tabular-nums;
658
+ }
659
+
660
+ .univer-bases-cell-input,
661
+ .univer-bases-date-input {
662
+ width: 100%;
663
+ height: 26px;
664
+ border: 1px solid #2563eb;
665
+ border-radius: 4px;
666
+ padding: 0 6px;
667
+ font-size: 12.5px;
668
+ box-sizing: border-box;
669
+ }
670
+
671
+ .univer-bases-date-input {
672
+ border-color: transparent;
673
+ background: transparent;
674
+ }
675
+
676
+ .univer-bases-date-input:hover {
677
+ border-color: #cbd5e1;
678
+ }
679
+
680
+ /* Pills, Badges, Barcode & Inline Controls */
681
+ .univer-bases-pill {
682
+ display: inline-flex;
683
+ align-items: center;
684
+ padding: 1px 8px;
685
+ border-radius: 999px;
686
+ border: 1px solid transparent;
687
+ font-size: 11.5px;
688
+ font-weight: 500;
689
+ white-space: nowrap;
690
+ }
691
+
692
+ .univer-bases-pill--neutral {
693
+ background: #f1f5f9;
694
+ color: #334155;
695
+ border-color: #e2e8f0;
696
+ }
697
+
698
+ .univer-bases-tag-wrap {
699
+ position: relative;
700
+ display: flex;
701
+ align-items: center;
702
+ gap: 4px;
703
+ flex-wrap: wrap;
704
+ min-height: 24px;
705
+ }
706
+
707
+ .univer-bases-select-cell {
708
+ position: relative;
709
+ display: flex;
710
+ align-items: center;
711
+ min-height: 26px;
712
+ }
713
+
714
+ .univer-bases-cell-overlay-select {
715
+ position: absolute;
716
+ inset: 0;
717
+ opacity: 0;
718
+ cursor: pointer;
719
+ width: 100%;
720
+ }
721
+
722
+ .univer-bases-inline-dropdown {
723
+ position: absolute;
724
+ top: 28px;
725
+ left: 0;
726
+ z-index: 40;
727
+ background: #ffffff;
728
+ border: 1px solid #cbd5e1;
729
+ border-radius: 8px;
730
+ padding: 8px;
731
+ box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
732
+ display: flex;
733
+ flex-direction: column;
734
+ gap: 5px;
735
+ min-width: 150px;
736
+ }
737
+
738
+ .univer-bases-checkbox-box {
739
+ width: 18px;
740
+ height: 18px;
741
+ border-radius: 4px;
742
+ border: 1.5px solid #94a3b8;
743
+ background: #ffffff;
744
+ display: inline-flex;
745
+ align-items: center;
746
+ justify-content: center;
747
+ cursor: pointer;
748
+ padding: 0;
749
+ color: #ffffff;
750
+ }
751
+
752
+ .univer-bases-checkbox-box.is-checked {
753
+ background: #2563eb;
754
+ border-color: #2563eb;
755
+ }
756
+
757
+ .univer-bases-rating-stars {
758
+ display: inline-flex;
759
+ align-items: center;
760
+ gap: 2px;
761
+ }
762
+
763
+ .univer-bases-link-cell {
764
+ display: flex;
765
+ align-items: center;
766
+ gap: 4px;
767
+ flex-wrap: wrap;
768
+ }
769
+
770
+ .univer-bases-link-chip {
771
+ display: inline-flex;
772
+ align-items: center;
773
+ gap: 4px;
774
+ padding: 1px 7px;
775
+ border-radius: 5px;
776
+ background: #eff6ff;
777
+ border: 1px solid #bfdbfe;
778
+ color: #1d4ed8;
779
+ font-size: 11.5px;
780
+ }
781
+
782
+ .univer-bases-link-add-btn {
783
+ width: 20px;
784
+ height: 20px;
785
+ border-radius: 4px;
786
+ border: 1px dashed #94a3b8;
787
+ background: transparent;
788
+ color: #64748b;
789
+ display: inline-flex;
790
+ align-items: center;
791
+ justify-content: center;
792
+ cursor: pointer;
793
+ padding: 0;
794
+ }
795
+
796
+ .univer-bases-barcode-badge {
797
+ display: inline-flex;
798
+ align-items: center;
799
+ gap: 6px;
800
+ padding: 2px 6px;
801
+ border-radius: 4px;
802
+ background: #f8fafc;
803
+ border: 1px solid #e2e8f0;
804
+ cursor: pointer;
805
+ }
806
+
807
+ .univer-bases-barcode-text {
808
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
809
+ font-size: 11px;
810
+ color: #334155;
811
+ }
812
+
813
+ .univer-bases-action-btn {
814
+ padding: 2px 10px;
815
+ border-radius: 5px;
816
+ border: 1px solid #2563eb;
817
+ background: #eff6ff;
818
+ color: #1d4ed8;
819
+ font-size: 11.5px;
820
+ font-weight: 500;
821
+ cursor: pointer;
822
+ }
823
+
824
+ .univer-bases-action-btn:hover {
825
+ background: #2563eb;
826
+ color: #ffffff;
827
+ }
828
+
829
+ .univer-bases-person-chip {
830
+ display: inline-flex;
831
+ align-items: center;
832
+ gap: 5px;
833
+ padding: 1px 7px 1px 2px;
834
+ border-radius: 999px;
835
+ background: #f1f5f9;
836
+ font-size: 12px;
837
+ }
838
+
839
+ .univer-bases-avatar {
840
+ width: 18px;
841
+ height: 18px;
842
+ border-radius: 50%;
843
+ color: #ffffff;
844
+ font-size: 10.5px;
845
+ font-weight: 600;
846
+ display: inline-flex;
847
+ align-items: center;
848
+ justify-content: center;
849
+ }
850
+
851
+ .univer-bases-cell-computed {
852
+ color: #334155;
853
+ font-variant-numeric: tabular-nums;
854
+ }
855
+
856
+ .univer-bases-computed-text {
857
+ background: #f8fafc;
858
+ padding: 2px 6px;
859
+ border-radius: 4px;
860
+ font-size: 12px;
861
+ }
862
+
863
+ .univer-bases-group-banner {
864
+ display: flex;
865
+ align-items: center;
866
+ gap: 8px;
867
+ height: 34px;
868
+ background: #f8fafc;
869
+ border-bottom: 1px solid #e2e8f0;
870
+ cursor: pointer;
871
+ font-weight: 500;
872
+ }
873
+
874
+ .univer-bases-append-row-btn {
875
+ display: inline-flex;
876
+ align-items: center;
877
+ gap: 5px;
878
+ border: none;
879
+ background: transparent;
880
+ color: #64748b;
881
+ padding: 8px 12px;
882
+ cursor: pointer;
883
+ }
884
+
885
+ .univer-bases-append-row-btn:hover {
886
+ color: #2563eb;
887
+ }
888
+
889
+ .univer-bases-grid__summary-row td {
890
+ position: sticky;
891
+ bottom: 0;
892
+ z-index: 13;
893
+ background: #f8fafc;
894
+ border-top: 1px solid #cbd5e1;
895
+ border-right: 1px solid #e2e8f0;
896
+ height: 32px;
897
+ padding: 0 8px;
898
+ }
899
+
900
+ .univer-bases-summary-box {
901
+ position: relative;
902
+ display: flex;
903
+ align-items: center;
904
+ justify-content: flex-end;
905
+ font-size: 11.5px;
906
+ font-weight: 600;
907
+ color: #334155;
908
+ }
909
+
910
+ .univer-bases-summary-select {
911
+ position: absolute;
912
+ inset: 0;
913
+ opacity: 0;
914
+ cursor: pointer;
915
+ }
916
+
917
+ /* 2. Kanban View */
918
+ .univer-bases-kanban {
919
+ flex: 1;
920
+ min-height: 0;
921
+ display: flex;
922
+ flex-direction: column;
923
+ }
924
+
925
+ .univer-bases-kanban__board {
926
+ flex: 1;
927
+ display: flex;
928
+ gap: 14px;
929
+ padding: 14px;
930
+ overflow-x: auto;
931
+ align-items: flex-start;
932
+ }
933
+
934
+ .univer-bases-kanban__column {
935
+ width: 280px;
936
+ min-width: 280px;
937
+ background: #f1f5f9;
938
+ border-radius: 10px;
939
+ padding: 10px;
940
+ display: flex;
941
+ flex-direction: column;
942
+ gap: 8px;
943
+ max-height: 100%;
944
+ border: 2px solid transparent;
945
+ }
946
+
947
+ .univer-bases-kanban__column.is-drag-over {
948
+ border-color: #2563eb;
949
+ background: #eff6ff;
950
+ }
951
+
952
+ .univer-bases-kanban__col-header {
953
+ display: flex;
954
+ align-items: center;
955
+ justify-content: space-between;
956
+ padding: 2px 4px;
957
+ }
958
+
959
+ .univer-bases-color-dot {
960
+ width: 9px;
961
+ height: 9px;
962
+ border-radius: 50%;
963
+ display: inline-block;
964
+ }
965
+
966
+ .univer-bases-kanban__sum-badge {
967
+ font-size: 11px;
968
+ color: #475569;
969
+ background: #ffffff;
970
+ padding: 1px 6px;
971
+ border-radius: 4px;
972
+ }
973
+
974
+ .univer-bases-kanban__cards {
975
+ display: flex;
976
+ flex-direction: column;
977
+ gap: 8px;
978
+ overflow-y: auto;
979
+ }
980
+
981
+ .univer-bases-kanban__card {
982
+ background: #ffffff;
983
+ border: 1px solid #e2e8f0;
984
+ border-radius: 8px;
985
+ padding: 10px;
986
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
987
+ cursor: pointer;
988
+ }
989
+
990
+ .univer-bases-kanban__card:hover {
991
+ border-color: #93c5fd;
992
+ }
993
+
994
+ .univer-bases-kanban__card-top {
995
+ display: flex;
996
+ align-items: flex-start;
997
+ justify-content: space-between;
998
+ gap: 6px;
999
+ margin-bottom: 8px;
1000
+ }
1001
+
1002
+ .univer-bases-kanban__card-title {
1003
+ font-weight: 600;
1004
+ color: #0f172a;
1005
+ line-height: 1.4;
1006
+ }
1007
+
1008
+ .univer-bases-kanban__card-moves {
1009
+ display: inline-flex;
1010
+ flex-shrink: 0;
1011
+ }
1012
+
1013
+ .univer-bases-kanban__card-meta {
1014
+ display: flex;
1015
+ flex-direction: column;
1016
+ gap: 5px;
1017
+ }
1018
+
1019
+ .univer-bases-kanban__field-line {
1020
+ display: flex;
1021
+ align-items: center;
1022
+ justify-content: space-between;
1023
+ gap: 6px;
1024
+ }
1025
+
1026
+ .univer-bases-kanban__add-card {
1027
+ display: inline-flex;
1028
+ align-items: center;
1029
+ justify-content: center;
1030
+ gap: 5px;
1031
+ padding: 7px;
1032
+ border-radius: 6px;
1033
+ border: 1px dashed #cbd5e1;
1034
+ background: transparent;
1035
+ color: #475569;
1036
+ cursor: pointer;
1037
+ }
1038
+
1039
+ .univer-bases-kanban__add-card:hover {
1040
+ background: #ffffff;
1041
+ color: #2563eb;
1042
+ border-color: #93c5fd;
1043
+ }
1044
+
1045
+ /* 3. Calendar View */
1046
+ .univer-bases-calendar {
1047
+ flex: 1;
1048
+ min-height: 0;
1049
+ display: flex;
1050
+ flex-direction: column;
1051
+ background: #ffffff;
1052
+ }
1053
+
1054
+ .univer-bases-calendar__month-title {
1055
+ font-size: 14px;
1056
+ min-width: 105px;
1057
+ text-align: center;
1058
+ }
1059
+
1060
+ .univer-bases-calendar__grid {
1061
+ flex: 1;
1062
+ display: grid;
1063
+ grid-template-columns: repeat(7, minmax(0, 1fr));
1064
+ grid-auto-rows: minmax(90px, 1fr);
1065
+ overflow-y: auto;
1066
+ border-left: 1px solid #e2e8f0;
1067
+ }
1068
+
1069
+ .univer-bases-calendar__weekday {
1070
+ padding: 7px 8px;
1071
+ background: #f8fafc;
1072
+ border-right: 1px solid #e2e8f0;
1073
+ border-bottom: 1px solid #cbd5e1;
1074
+ font-weight: 600;
1075
+ font-size: 12px;
1076
+ color: #475569;
1077
+ text-align: center;
1078
+ height: 30px;
1079
+ }
1080
+
1081
+ .univer-bases-calendar__day {
1082
+ border-right: 1px solid #e2e8f0;
1083
+ border-bottom: 1px solid #e2e8f0;
1084
+ padding: 6px;
1085
+ display: flex;
1086
+ flex-direction: column;
1087
+ gap: 4px;
1088
+ background: #ffffff;
1089
+ }
1090
+
1091
+ .univer-bases-calendar__day.is-outside {
1092
+ background: #f8fafc;
1093
+ color: #94a3b8;
1094
+ }
1095
+
1096
+ .univer-bases-calendar__day.is-today {
1097
+ background: #eff6ff;
1098
+ }
1099
+
1100
+ .univer-bases-calendar__day-top {
1101
+ display: flex;
1102
+ align-items: center;
1103
+ justify-content: space-between;
1104
+ }
1105
+
1106
+ .univer-bases-calendar__quick-add {
1107
+ border: none;
1108
+ background: transparent;
1109
+ color: #94a3b8;
1110
+ cursor: pointer;
1111
+ padding: 2px;
1112
+ border-radius: 4px;
1113
+ }
1114
+
1115
+ .univer-bases-calendar__quick-add:hover {
1116
+ background: #e2e8f0;
1117
+ color: #2563eb;
1118
+ }
1119
+
1120
+ .univer-bases-calendar__events {
1121
+ display: flex;
1122
+ flex-direction: column;
1123
+ gap: 3px;
1124
+ }
1125
+
1126
+ .univer-bases-calendar__event-pill {
1127
+ text-align: left;
1128
+ border: none;
1129
+ border-left: 3px solid #2563eb;
1130
+ border-radius: 4px;
1131
+ padding: 2px 6px;
1132
+ font-size: 11.5px;
1133
+ cursor: pointer;
1134
+ overflow: hidden;
1135
+ text-overflow: ellipsis;
1136
+ white-space: nowrap;
1137
+ }
1138
+
1139
+ /* 4. Gallery View */
1140
+ .univer-bases-gallery {
1141
+ flex: 1;
1142
+ overflow-y: auto;
1143
+ padding: 16px;
1144
+ }
1145
+
1146
+ .univer-bases-gallery__grid {
1147
+ display: grid;
1148
+ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
1149
+ gap: 16px;
1150
+ }
1151
+
1152
+ .univer-bases-gallery__card {
1153
+ background: #ffffff;
1154
+ border: 1px solid #e2e8f0;
1155
+ border-radius: 12px;
1156
+ overflow: hidden;
1157
+ cursor: pointer;
1158
+ box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
1159
+ transition: transform 0.14s ease, box-shadow 0.14s ease;
1160
+ }
1161
+
1162
+ .univer-bases-gallery__card:hover {
1163
+ transform: translateY(-2px);
1164
+ box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
1165
+ }
1166
+
1167
+ .univer-bases-gallery__cover {
1168
+ height: 54px;
1169
+ padding: 10px 14px;
1170
+ display: flex;
1171
+ align-items: flex-end;
1172
+ justify-content: flex-end;
1173
+ }
1174
+
1175
+ .univer-bases-gallery__cover-index {
1176
+ color: rgba(255, 255, 255, 0.88);
1177
+ font-size: 11.5px;
1178
+ font-weight: 600;
1179
+ }
1180
+
1181
+ .univer-bases-gallery__body {
1182
+ padding: 12px 14px;
1183
+ }
1184
+
1185
+ .univer-bases-gallery__title {
1186
+ margin: 0 0 10px;
1187
+ font-size: 14px;
1188
+ color: #0f172a;
1189
+ }
1190
+
1191
+ .univer-bases-gallery__fields {
1192
+ display: flex;
1193
+ flex-direction: column;
1194
+ gap: 6px;
1195
+ }
1196
+
1197
+ .univer-bases-gallery__kv {
1198
+ display: flex;
1199
+ align-items: center;
1200
+ justify-content: space-between;
1201
+ gap: 8px;
1202
+ font-size: 12px;
1203
+ }
1204
+
1205
+ .univer-bases-gallery__key {
1206
+ display: inline-flex;
1207
+ align-items: center;
1208
+ gap: 4px;
1209
+ color: #64748b;
1210
+ }
1211
+
1212
+ .univer-bases-gallery__val {
1213
+ color: #1e293b;
1214
+ font-weight: 500;
1215
+ text-align: right;
1216
+ overflow: hidden;
1217
+ text-overflow: ellipsis;
1218
+ white-space: nowrap;
1219
+ max-width: 145px;
1220
+ }
1221
+
1222
+ .univer-bases-gallery__add-card {
1223
+ min-height: 180px;
1224
+ border-radius: 12px;
1225
+ border: 2px dashed #cbd5e1;
1226
+ background: rgba(255, 255, 255, 0.6);
1227
+ color: #64748b;
1228
+ display: flex;
1229
+ flex-direction: column;
1230
+ align-items: center;
1231
+ justify-content: center;
1232
+ gap: 8px;
1233
+ cursor: pointer;
1234
+ }
1235
+
1236
+ .univer-bases-gallery__add-card:hover {
1237
+ border-color: #2563eb;
1238
+ color: #2563eb;
1239
+ }
1240
+
1241
+ /* 5. Gantt & Timeline View */
1242
+ .univer-bases-gantt {
1243
+ flex: 1;
1244
+ min-height: 0;
1245
+ display: flex;
1246
+ flex-direction: column;
1247
+ background: #ffffff;
1248
+ }
1249
+
1250
+ .univer-bases-gantt__split {
1251
+ flex: 1;
1252
+ min-height: 0;
1253
+ display: flex;
1254
+ overflow: hidden;
1255
+ }
1256
+
1257
+ .univer-bases-gantt__left {
1258
+ width: 410px;
1259
+ min-width: 360px;
1260
+ border-right: 1px solid #cbd5e1;
1261
+ overflow-y: auto;
1262
+ flex-shrink: 0;
1263
+ }
1264
+
1265
+ .univer-bases-gantt__left-header {
1266
+ display: flex;
1267
+ align-items: center;
1268
+ height: 32px;
1269
+ padding: 0 10px;
1270
+ background: #f8fafc;
1271
+ border-bottom: 1px solid #cbd5e1;
1272
+ font-size: 11.5px;
1273
+ font-weight: 600;
1274
+ color: #475569;
1275
+ }
1276
+
1277
+ .univer-bases-gantt__left-row {
1278
+ display: flex;
1279
+ align-items: center;
1280
+ padding: 0 10px;
1281
+ border-bottom: 1px solid #f1f5f9;
1282
+ cursor: pointer;
1283
+ }
1284
+
1285
+ .univer-bases-gantt__left-row:hover {
1286
+ background: #f8fafc;
1287
+ }
1288
+
1289
+ .univer-bases-gantt__task-name {
1290
+ flex: 1;
1291
+ overflow: hidden;
1292
+ text-overflow: ellipsis;
1293
+ white-space: nowrap;
1294
+ font-weight: 500;
1295
+ padding-right: 8px;
1296
+ }
1297
+
1298
+ .univer-bases-gantt__date-col {
1299
+ width: 82px;
1300
+ font-size: 11.5px;
1301
+ color: #64748b;
1302
+ }
1303
+
1304
+ .univer-bases-gantt__prog-col {
1305
+ width: 48px;
1306
+ text-align: right;
1307
+ font-size: 11.5px;
1308
+ font-weight: 600;
1309
+ color: #2563eb;
1310
+ }
1311
+
1312
+ .univer-bases-gantt__right {
1313
+ flex: 1;
1314
+ overflow: auto;
1315
+ }
1316
+
1317
+ .univer-bases-gantt__timeline-header {
1318
+ display: flex;
1319
+ height: 32px;
1320
+ background: #f8fafc;
1321
+ border-bottom: 1px solid #cbd5e1;
1322
+ }
1323
+
1324
+ .univer-bases-gantt__tick {
1325
+ border-right: 1px solid #e2e8f0;
1326
+ font-size: 10.5px;
1327
+ color: #64748b;
1328
+ display: flex;
1329
+ align-items: center;
1330
+ justify-content: center;
1331
+ flex-shrink: 0;
1332
+ }
1333
+
1334
+ .univer-bases-gantt__tick.is-weekend,
1335
+ .univer-bases-gantt__bg-col.is-weekend {
1336
+ background: #f8fafc;
1337
+ }
1338
+
1339
+ .univer-bases-gantt__canvas {
1340
+ position: relative;
1341
+ }
1342
+
1343
+ .univer-bases-gantt__bg-cols {
1344
+ position: absolute;
1345
+ inset: 0;
1346
+ display: flex;
1347
+ pointer-events: none;
1348
+ }
1349
+
1350
+ .univer-bases-gantt__bg-col {
1351
+ height: 100%;
1352
+ border-right: 1px solid #f1f5f9;
1353
+ flex-shrink: 0;
1354
+ }
1355
+
1356
+ .univer-bases-gantt__deps-svg {
1357
+ position: absolute;
1358
+ inset: 0;
1359
+ pointer-events: none;
1360
+ z-index: 2;
1361
+ }
1362
+
1363
+ .univer-bases-gantt__bar {
1364
+ position: absolute;
1365
+ height: 22px;
1366
+ border-radius: 6px;
1367
+ border: 1px solid #2563eb;
1368
+ overflow: hidden;
1369
+ display: flex;
1370
+ align-items: center;
1371
+ z-index: 4;
1372
+ cursor: pointer;
1373
+ }
1374
+
1375
+ .univer-bases-gantt__bar-progress {
1376
+ position: absolute;
1377
+ left: 0;
1378
+ top: 0;
1379
+ bottom: 0;
1380
+ opacity: 0.35;
1381
+ }
1382
+
1383
+ .univer-bases-gantt__bar-text {
1384
+ position: relative;
1385
+ z-index: 1;
1386
+ padding: 0 7px;
1387
+ font-size: 11px;
1388
+ font-weight: 600;
1389
+ color: #0f172a;
1390
+ white-space: nowrap;
1391
+ }
1392
+
1393
+ .univer-bases-gantt__milestone {
1394
+ position: absolute;
1395
+ z-index: 5;
1396
+ display: inline-flex;
1397
+ align-items: center;
1398
+ gap: 5px;
1399
+ cursor: pointer;
1400
+ }
1401
+
1402
+ .univer-bases-gantt__bar-label {
1403
+ font-size: 11px;
1404
+ font-weight: 600;
1405
+ color: #334155;
1406
+ white-space: nowrap;
1407
+ }
1408
+
1409
+ /* 6. Form View */
1410
+ .univer-bases-form-view {
1411
+ flex: 1;
1412
+ min-height: 0;
1413
+ display: flex;
1414
+ flex-direction: column;
1415
+ }
1416
+
1417
+ .univer-bases-form-container {
1418
+ flex: 1;
1419
+ overflow-y: auto;
1420
+ padding: 24px 16px;
1421
+ display: flex;
1422
+ justify-content: center;
1423
+ align-items: flex-start;
1424
+ }
1425
+
1426
+ .univer-bases-form-card {
1427
+ width: 100%;
1428
+ max-width: 580px;
1429
+ background: #ffffff;
1430
+ border: 1px solid #e2e8f0;
1431
+ border-radius: 14px;
1432
+ overflow: hidden;
1433
+ box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
1434
+ }
1435
+
1436
+ .univer-bases-form-banner {
1437
+ height: 10px;
1438
+ background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
1439
+ }
1440
+
1441
+ .univer-bases-form-body {
1442
+ padding: 22px 26px;
1443
+ display: flex;
1444
+ flex-direction: column;
1445
+ gap: 14px;
1446
+ }
1447
+
1448
+ .univer-bases-form-title {
1449
+ margin: 0;
1450
+ font-size: 18px;
1451
+ }
1452
+
1453
+ .univer-bases-form-desc {
1454
+ margin: 0;
1455
+ color: #64748b;
1456
+ line-height: 1.5;
1457
+ }
1458
+
1459
+ .univer-bases-form-field-label {
1460
+ display: inline-flex;
1461
+ align-items: center;
1462
+ gap: 6px;
1463
+ font-weight: 600;
1464
+ color: #1e293b;
1465
+ }
1466
+
1467
+ .univer-bases-form-design-list {
1468
+ display: flex;
1469
+ flex-direction: column;
1470
+ gap: 8px;
1471
+ margin-top: 6px;
1472
+ }
1473
+
1474
+ .univer-bases-form-design-item {
1475
+ display: flex;
1476
+ align-items: center;
1477
+ gap: 12px;
1478
+ padding: 8px;
1479
+ border: 1px solid #f1f5f9;
1480
+ border-radius: 8px;
1481
+ background: #f8fafc;
1482
+ }
1483
+
1484
+ .univer-bases-form-success {
1485
+ padding: 36px 24px;
1486
+ text-align: center;
1487
+ display: flex;
1488
+ flex-direction: column;
1489
+ align-items: center;
1490
+ gap: 12px;
1491
+ }
1492
+
1493
+ .univer-bases-success-icon {
1494
+ width: 44px;
1495
+ height: 44px;
1496
+ border-radius: 50%;
1497
+ background: #ecfdf5;
1498
+ color: #059669;
1499
+ display: flex;
1500
+ align-items: center;
1501
+ justify-content: center;
1502
+ }
1503
+
1504
+ .univer-bases-alert-error {
1505
+ padding: 8px 12px;
1506
+ border-radius: 6px;
1507
+ background: #fef2f2;
1508
+ border: 1px solid #fecaca;
1509
+ color: #dc2626;
1510
+ font-size: 12.5px;
1511
+ }
1512
+
1513
+ /* 7. Dashboard View */
1514
+ .univer-bases-dashboard {
1515
+ flex: 1;
1516
+ min-height: 0;
1517
+ display: flex;
1518
+ flex-direction: column;
1519
+ overflow-y: auto;
1520
+ }
1521
+
1522
+ .univer-bases-widget-configurator {
1523
+ margin: 12px 16px 0;
1524
+ padding: 14px;
1525
+ background: #ffffff;
1526
+ border: 1px solid #bfdbfe;
1527
+ border-radius: 10px;
1528
+ }
1529
+
1530
+ .univer-bases-widget-form-grid {
1531
+ display: grid;
1532
+ grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
1533
+ gap: 10px;
1534
+ margin: 10px 0;
1535
+ }
1536
+
1537
+ .univer-bases-dashboard__grid {
1538
+ padding: 16px;
1539
+ display: grid;
1540
+ grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
1541
+ gap: 16px;
1542
+ }
1543
+
1544
+ .univer-bases-widget-card {
1545
+ background: #ffffff;
1546
+ border: 1px solid #e2e8f0;
1547
+ border-radius: 12px;
1548
+ padding: 14px 16px;
1549
+ box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
1550
+ display: flex;
1551
+ flex-direction: column;
1552
+ gap: 10px;
1553
+ }
1554
+
1555
+ .univer-bases-widget-card__header {
1556
+ display: flex;
1557
+ align-items: flex-start;
1558
+ justify-content: space-between;
1559
+ }
1560
+
1561
+ .univer-bases-widget-card__title {
1562
+ margin: 0 0 2px;
1563
+ font-size: 13.5px;
1564
+ color: #0f172a;
1565
+ }
1566
+
1567
+ .univer-bases-kpi-body {
1568
+ padding: 14px 0 8px;
1569
+ }
1570
+
1571
+ .univer-bases-kpi-value {
1572
+ font-size: 30px;
1573
+ font-weight: 700;
1574
+ letter-spacing: -0.02em;
1575
+ }
1576
+
1577
+ .univer-bases-kpi-sub {
1578
+ margin-top: 6px;
1579
+ font-size: 12px;
1580
+ color: #64748b;
1581
+ }
1582
+
1583
+ .univer-bases-chart-svg {
1584
+ width: 100%;
1585
+ height: auto;
1586
+ }
1587
+
1588
+ .univer-bases-pie-layout {
1589
+ display: flex;
1590
+ align-items: center;
1591
+ gap: 16px;
1592
+ }
1593
+
1594
+ .univer-bases-pie-legend {
1595
+ flex: 1;
1596
+ display: flex;
1597
+ flex-direction: column;
1598
+ gap: 6px;
1599
+ }
1600
+
1601
+ .univer-bases-pie-legend__item {
1602
+ display: flex;
1603
+ align-items: center;
1604
+ gap: 6px;
1605
+ font-size: 12px;
1606
+ }
1607
+
1608
+ .univer-bases-pie-legend__name {
1609
+ flex: 1;
1610
+ overflow: hidden;
1611
+ text-overflow: ellipsis;
1612
+ white-space: nowrap;
1613
+ }
1614
+
1615
+ .univer-bases-pie-legend__val {
1616
+ font-weight: 600;
1617
+ color: #334155;
1618
+ }
1619
+
1620
+ /* Record Detail Drawer & Modals */
1621
+ .univer-bases-drawer-backdrop,
1622
+ .univer-bases-modal-backdrop {
1623
+ position: fixed;
1624
+ inset: 0;
1625
+ z-index: 90;
1626
+ background: rgba(15, 23, 42, 0.28);
1627
+ display: flex;
1628
+ justify-content: flex-end;
1629
+ }
1630
+
1631
+ .univer-bases-modal-backdrop {
1632
+ align-items: center;
1633
+ justify-content: center;
1634
+ }
1635
+
1636
+ .univer-bases-drawer {
1637
+ width: 420px;
1638
+ max-width: 92vw;
1639
+ height: 100%;
1640
+ background: #ffffff;
1641
+ box-shadow: -8px 0 28px rgba(15, 23, 42, 0.16);
1642
+ display: flex;
1643
+ flex-direction: column;
1644
+ }
1645
+
1646
+ .univer-bases-drawer__header {
1647
+ display: flex;
1648
+ align-items: flex-start;
1649
+ justify-content: space-between;
1650
+ padding: 16px 18px;
1651
+ border-bottom: 1px solid #e2e8f0;
1652
+ }
1653
+
1654
+ .univer-bases-drawer__title {
1655
+ margin: 4px 0 0;
1656
+ font-size: 16px;
1657
+ }
1658
+
1659
+ .univer-bases-drawer__body {
1660
+ flex: 1;
1661
+ overflow-y: auto;
1662
+ padding: 16px 18px;
1663
+ display: flex;
1664
+ flex-direction: column;
1665
+ gap: 14px;
1666
+ }
1667
+
1668
+ .univer-bases-drawer__field {
1669
+ display: flex;
1670
+ flex-direction: column;
1671
+ gap: 6px;
1672
+ }
1673
+
1674
+ .univer-bases-drawer__readonly {
1675
+ padding: 6px 10px;
1676
+ border-radius: 6px;
1677
+ background: #f8fafc;
1678
+ border: 1px solid #e2e8f0;
1679
+ color: #475569;
1680
+ }
1681
+
1682
+ .univer-bases-computed-badge {
1683
+ font-size: 10.5px;
1684
+ padding: 0 5px;
1685
+ border-radius: 4px;
1686
+ background: #f1f5f9;
1687
+ color: #64748b;
1688
+ font-weight: 400;
1689
+ }
1690
+
1691
+ .univer-bases-drawer__footer {
1692
+ padding: 10px 18px;
1693
+ border-top: 1px solid #e2e8f0;
1694
+ background: #f8fafc;
1695
+ display: flex;
1696
+ justify-content: space-between;
1697
+ font-size: 11.5px;
1698
+ color: #64748b;
1699
+ }
1700
+
1701
+ .univer-bases-modal {
1702
+ width: 460px;
1703
+ max-width: 92vw;
1704
+ background: #ffffff;
1705
+ border-radius: 12px;
1706
+ padding: 16px 18px;
1707
+ box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
1708
+ }
1709
+
1710
+ .univer-bases-upload-dropzone {
1711
+ display: flex;
1712
+ flex-direction: column;
1713
+ align-items: center;
1714
+ justify-content: center;
1715
+ gap: 8px;
1716
+ padding: 24px 16px;
1717
+ border: 2px dashed #93c5fd;
1718
+ border-radius: 10px;
1719
+ background: #eff6ff;
1720
+ color: #1d4ed8;
1721
+ cursor: pointer;
1722
+ margin-top: 10px;
1723
+ }
1724
+
1725
+ .univer-bases-export-options {
1726
+ display: flex;
1727
+ flex-direction: column;
1728
+ gap: 10px;
1729
+ margin-top: 12px;
1730
+ }
1731
+
1732
+ .univer-bases-export-card {
1733
+ display: flex;
1734
+ align-items: flex-start;
1735
+ gap: 12px;
1736
+ text-align: left;
1737
+ padding: 12px 14px;
1738
+ border-radius: 10px;
1739
+ border: 1px solid #e2e8f0;
1740
+ background: #f8fafc;
1741
+ cursor: pointer;
1742
+ }
1743
+
1744
+ .univer-bases-export-card:hover {
1745
+ border-color: #2563eb;
1746
+ background: #eff6ff;
1747
+ }
1748
+
1749
+ .univer-bases-export-card p {
1750
+ margin: 4px 0 0;
1751
+ font-size: 12px;
1752
+ color: #64748b;
1753
+ }
1754
+
1755
+ .univer-bases-picker-list {
1756
+ max-height: 260px;
1757
+ overflow-y: auto;
1758
+ display: flex;
1759
+ flex-direction: column;
1760
+ gap: 4px;
1761
+ }
1762
+
1763
+ .univer-bases-picker-item {
1764
+ display: flex;
1765
+ align-items: center;
1766
+ justify-content: space-between;
1767
+ padding: 8px 10px;
1768
+ border-radius: 6px;
1769
+ border: 1px solid #f1f5f9;
1770
+ cursor: pointer;
1771
+ }
1772
+
1773
+ .univer-bases-picker-item.is-selected {
1774
+ background: #eff6ff;
1775
+ border-color: #93c5fd;
1776
+ color: #1d4ed8;
1777
+ font-weight: 500;
1778
+ }
1779
+
1780
+ /* Footer Status Bar & Inspector */
1781
+ .univer-bases-statusbar {
1782
+ display: flex;
1783
+ align-items: center;
1784
+ justify-content: space-between;
1785
+ height: 28px;
1786
+ padding: 0 12px;
1787
+ background: #ffffff;
1788
+ border-top: 1px solid #e2e8f0;
1789
+ font-size: 12px;
1790
+ color: #475569;
1791
+ }
1792
+
1793
+ .univer-bases-statusbar__left,
1794
+ .univer-bases-statusbar__right {
1795
+ display: flex;
1796
+ align-items: center;
1797
+ gap: 12px;
1798
+ }
1799
+
1800
+ .univer-bases-statusbar__chip {
1801
+ display: inline-flex;
1802
+ align-items: center;
1803
+ gap: 5px;
1804
+ }
1805
+
1806
+ .univer-bases-statusbar__selected {
1807
+ color: #2563eb;
1808
+ font-weight: 600;
1809
+ }
1810
+
1811
+ .univer-bases-inspector {
1812
+ padding: 12px;
1813
+ display: flex;
1814
+ flex-direction: column;
1815
+ gap: 16px;
1816
+ }
1817
+
1818
+ .univer-bases-inspector__section h4 {
1819
+ margin: 0 0 8px;
1820
+ font-size: 13px;
1821
+ color: #0f172a;
1822
+ }
1823
+
1824
+ .univer-bases-inspector__field-list {
1825
+ display: flex;
1826
+ flex-direction: column;
1827
+ gap: 5px;
1828
+ }
1829
+
1830
+ .univer-bases-inspector__field-item {
1831
+ display: flex;
1832
+ align-items: center;
1833
+ justify-content: space-between;
1834
+ padding: 5px 8px;
1835
+ border-radius: 6px;
1836
+ background: #f8fafc;
1837
+ }
1838
+
1839
+ .univer-bases-inspector__auto-card {
1840
+ display: flex;
1841
+ flex-direction: column;
1842
+ gap: 3px;
1843
+ padding: 8px 10px;
1844
+ border-radius: 8px;
1845
+ background: #f8fafc;
1846
+ border: 1px solid #e2e8f0;
1847
+ }
1848
+
1849
+ .univer-bases-checkbox-label {
1850
+ display: inline-flex;
1851
+ align-items: center;
1852
+ gap: 5px;
1853
+ font-size: 12px;
1854
+ cursor: pointer;
1855
+ }
1856
+
1857
+ .univer-bases-toast {
1858
+ display: flex;
1859
+ align-items: center;
1860
+ justify-content: space-between;
1861
+ padding: 6px 14px;
1862
+ background: #ecfdf5;
1863
+ border-bottom: 1px solid #a7f3d0;
1864
+ color: #065f46;
1865
+ font-size: 12.5px;
1866
+ }
1867
+
1868
+ /* 8. Hierarchical List / Tree View */
1869
+ .univer-bases-list-view {
1870
+ flex: 1;
1871
+ min-height: 0;
1872
+ display: flex;
1873
+ flex-direction: column;
1874
+ background: #ffffff;
1875
+ }
1876
+
1877
+ .univer-bases-list-scroll {
1878
+ flex: 1;
1879
+ overflow-y: auto;
1880
+ }
1881
+
1882
+ .univer-bases-list-header {
1883
+ position: sticky;
1884
+ top: 0;
1885
+ z-index: 10;
1886
+ display: grid;
1887
+ grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1.2fr) 170px;
1888
+ align-items: center;
1889
+ padding: 8px 14px;
1890
+ background: #f8fafc;
1891
+ border-bottom: 1px solid #e2e8f0;
1892
+ font-size: 12px;
1893
+ font-weight: 600;
1894
+ color: #475569;
1895
+ }
1896
+
1897
+ .univer-bases-list-col-actions {
1898
+ text-align: right;
1899
+ }
1900
+
1901
+ .univer-bases-list-rows {
1902
+ display: flex;
1903
+ flex-direction: column;
1904
+ }
1905
+
1906
+ .univer-bases-list-row {
1907
+ display: grid;
1908
+ grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1.2fr) 170px;
1909
+ align-items: center;
1910
+ min-height: 42px;
1911
+ padding: 4px 14px 4px 0;
1912
+ border-bottom: 1px solid #f1f5f9;
1913
+ cursor: pointer;
1914
+ transition: background 0.12s ease;
1915
+ }
1916
+
1917
+ .univer-bases-list-row:hover {
1918
+ background: #f8fafc;
1919
+ }
1920
+
1921
+ .univer-bases-list-row__main {
1922
+ position: relative;
1923
+ display: flex;
1924
+ align-items: center;
1925
+ gap: 7px;
1926
+ min-width: 0;
1927
+ }
1928
+
1929
+ .univer-bases-list-indent-guide {
1930
+ width: 10px;
1931
+ height: 12px;
1932
+ border-left: 1.5px solid #cbd5e1;
1933
+ border-bottom: 1.5px solid #cbd5e1;
1934
+ border-bottom-left-radius: 3px;
1935
+ margin-right: 2px;
1936
+ flex-shrink: 0;
1937
+ }
1938
+
1939
+ .univer-bases-list-leaf-dot {
1940
+ width: 6px;
1941
+ height: 6px;
1942
+ border-radius: 50%;
1943
+ background: #94a3b8;
1944
+ margin: 0 5px;
1945
+ flex-shrink: 0;
1946
+ }
1947
+
1948
+ .univer-bases-list-row__title {
1949
+ font-weight: 500;
1950
+ color: #0f172a;
1951
+ overflow: hidden;
1952
+ text-overflow: ellipsis;
1953
+ white-space: nowrap;
1954
+ }
1955
+
1956
+ .univer-bases-list-row__badges {
1957
+ display: flex;
1958
+ align-items: center;
1959
+ gap: 8px;
1960
+ flex-wrap: wrap;
1961
+ }
1962
+
1963
+ .univer-bases-list-row__actions {
1964
+ display: flex;
1965
+ align-items: center;
1966
+ justify-content: flex-end;
1967
+ gap: 4px;
1968
+ }
1969
+
1970
+ /* Conditional Form Field Rules */
1971
+ .univer-bases-form-design-block {
1972
+ display: flex;
1973
+ flex-direction: column;
1974
+ gap: 6px;
1975
+ }
1976
+
1977
+ .univer-bases-form-cond-box {
1978
+ margin-left: 18px;
1979
+ padding: 10px 12px;
1980
+ background: #eff6ff;
1981
+ border: 1px solid #bfdbfe;
1982
+ border-radius: 8px;
1983
+ display: flex;
1984
+ flex-direction: column;
1985
+ gap: 8px;
1986
+ }
1987
+
1988
+ /* Multi-Section & 2-Column Record Detail Drawer */
1989
+ .univer-bases-drawer.is-two-col {
1990
+ width: 640px;
1991
+ }
1992
+
1993
+ .univer-bases-drawer__layout-bar {
1994
+ display: flex;
1995
+ align-items: center;
1996
+ justify-content: space-between;
1997
+ padding: 8px 18px;
1998
+ background: #f8fafc;
1999
+ border-bottom: 1px solid #e2e8f0;
2000
+ }
2001
+
2002
+ .univer-bases-drawer__new-section {
2003
+ padding: 12px 18px;
2004
+ background: #eff6ff;
2005
+ border-bottom: 1px solid #bfdbfe;
2006
+ display: flex;
2007
+ flex-direction: column;
2008
+ gap: 10px;
2009
+ }
2010
+
2011
+ .univer-bases-drawer__section {
2012
+ border: 1px solid #e2e8f0;
2013
+ border-radius: 10px;
2014
+ padding: 10px 12px;
2015
+ background: #ffffff;
2016
+ display: flex;
2017
+ flex-direction: column;
2018
+ gap: 10px;
2019
+ }
2020
+
2021
+ .univer-bases-drawer__section-header {
2022
+ display: flex;
2023
+ align-items: center;
2024
+ justify-content: space-between;
2025
+ }
2026
+
2027
+ .univer-bases-drawer__section-toggle {
2028
+ display: inline-flex;
2029
+ align-items: center;
2030
+ gap: 6px;
2031
+ border: none;
2032
+ background: transparent;
2033
+ padding: 2px 4px;
2034
+ cursor: pointer;
2035
+ color: #0f172a;
2036
+ font-size: 13px;
2037
+ }
2038
+
2039
+ .univer-bases-drawer__fields-grid {
2040
+ display: grid;
2041
+ gap: 12px;
2042
+ }
2043
+
2044
+ .univer-bases-drawer__fields-grid.is-one-column {
2045
+ grid-template-columns: 1fr;
2046
+ }
2047
+
2048
+ .univer-bases-drawer__fields-grid.is-two-columns {
2049
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2050
+ }
2051
+
2052
+ /* Visual Automation Builder Modal */
2053
+ .univer-bases-modal--automation {
2054
+ width: 680px;
2055
+ max-height: 86vh;
2056
+ display: flex;
2057
+ flex-direction: column;
2058
+ gap: 12px;
2059
+ }
2060
+
2061
+ .univer-bases-auto-builder-body,
2062
+ .univer-bases-auto-logs-panel {
2063
+ overflow-y: auto;
2064
+ max-height: 62vh;
2065
+ display: flex;
2066
+ flex-direction: column;
2067
+ gap: 12px;
2068
+ padding-right: 4px;
2069
+ }
2070
+
2071
+ .univer-bases-auto-grid-2 {
2072
+ display: grid;
2073
+ grid-template-columns: 1fr 1fr;
2074
+ gap: 12px;
2075
+ }
2076
+
2077
+ .univer-bases-auto-stage-card {
2078
+ border: 1px solid #e2e8f0;
2079
+ border-radius: 10px;
2080
+ padding: 12px;
2081
+ background: #f8fafc;
2082
+ display: flex;
2083
+ flex-direction: column;
2084
+ gap: 8px;
2085
+ }
2086
+
2087
+ .univer-bases-auto-stage-title {
2088
+ font-weight: 600;
2089
+ color: #1e293b;
2090
+ font-size: 12.5px;
2091
+ }
2092
+
2093
+ .univer-bases-auto-step-list {
2094
+ display: flex;
2095
+ flex-direction: column;
2096
+ gap: 8px;
2097
+ }
2098
+
2099
+ .univer-bases-auto-step-card {
2100
+ border: 1px solid #cbd5e1;
2101
+ border-radius: 8px;
2102
+ padding: 10px;
2103
+ background: #ffffff;
2104
+ }
2105
+
2106
+ .univer-bases-auto-log-item {
2107
+ border: 1px solid #e2e8f0;
2108
+ border-radius: 8px;
2109
+ padding: 10px 12px;
2110
+ background: #f8fafc;
2111
+ display: flex;
2112
+ flex-direction: column;
2113
+ gap: 4px;
2114
+ }
2115
+
2116
+ .univer-bases-auto-status--success {
2117
+ background: #ecfdf5;
2118
+ color: #059669;
2119
+ border-color: #a7f3d0;
2120
+ }
2121
+
2122
+ .univer-bases-auto-status--error {
2123
+ background: #fef2f2;
2124
+ color: #dc2626;
2125
+ border-color: #fecaca;
2126
+ }