@freegridjs/core 1.9.1 → 1.9.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/cdn/freegrid.css +525 -525
- package/dist/cdn/freegrid.esm.js +5 -5
- package/dist/cdn/freegrid.min.js +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +26 -1
- package/dist/styles.css +525 -525
- package/package.json +1 -1
package/dist/cdn/freegrid.css
CHANGED
|
@@ -1,525 +1,525 @@
|
|
|
1
|
-
[class*="fg-theme-"] {
|
|
2
|
-
--fg-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans", sans-serif;
|
|
3
|
-
--fg-font-size: 13px;
|
|
4
|
-
--fg-radius: 8px;
|
|
5
|
-
--fg-cell-px: 12px;
|
|
6
|
-
--fg-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08);
|
|
7
|
-
}
|
|
8
|
-
.fg-theme-light {
|
|
9
|
-
--fg-bg: #ffffff; --fg-fg: #1f2430; --fg-muted: #636b7c;
|
|
10
|
-
--fg-header-bg: #f6f7f9; --fg-header-fg: #39404f; --fg-border: #e3e6eb; --fg-row-border: #eef0f3;
|
|
11
|
-
--fg-row-odd: #fbfbfc; --fg-row-hover: #f2f6ff; --fg-row-selected: #e3edff;
|
|
12
|
-
--fg-accent: #2563eb; --fg-accent-fg: #ffffff; --fg-focus: #2563eb; --fg-popup-bg: #ffffff; --fg-input-bg: #ffffff;
|
|
13
|
-
}
|
|
14
|
-
.fg-theme-dark {
|
|
15
|
-
--fg-bg: #11141b; --fg-fg: #e6e9f0; --fg-muted: #8c95a8;
|
|
16
|
-
--fg-header-bg: #171b24; --fg-header-fg: #c9cfdc; --fg-border: #262c38; --fg-row-border: #1c212b;
|
|
17
|
-
--fg-row-odd: #13171f; --fg-row-hover: #1a2233; --fg-row-selected: #1d3157;
|
|
18
|
-
--fg-accent: #4f8cff; --fg-accent-fg: #0b0d12; --fg-focus: #4f8cff; --fg-popup-bg: #171b24; --fg-input-bg: #0f1218;
|
|
19
|
-
--fg-shadow: 0 12px 32px rgba(0, 0, 0, .5);
|
|
20
|
-
color-scheme: dark;
|
|
21
|
-
}
|
|
22
|
-
.fg-root {
|
|
23
|
-
position: relative; display: flex; flex-direction: row; box-sizing: border-box;
|
|
24
|
-
width: 100%; height: 100%; overflow: hidden; outline: none;
|
|
25
|
-
font: var(--fg-font-size)/1.4 var(--fg-font); color: var(--fg-fg); background: var(--fg-bg);
|
|
26
|
-
border: 1px solid var(--fg-border); border-radius: var(--fg-radius);
|
|
27
|
-
border-top: var(--fg-top-border, 1px solid var(--fg-border));
|
|
28
|
-
font-variant-numeric: tabular-nums;
|
|
29
|
-
}
|
|
30
|
-
.fg-root *, .fg-menu * { box-sizing: border-box; }
|
|
31
|
-
.fg-main { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; overflow: hidden; }
|
|
32
|
-
.fg-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; outline: none; }
|
|
33
|
-
.fg-root [hidden], .fg-menu [hidden] { display: none !important; }
|
|
34
|
-
.fg-header { display: flex; flex: none; background: var(--fg-header-bg); color: var(--fg-header-fg); border-bottom: var(--fg-header-border, 1px solid var(--fg-border)); }
|
|
35
|
-
.fg-header-pane { position: relative; overflow: hidden; flex: none; }
|
|
36
|
-
.fg-header-pane-center { flex: 1 1 0; min-width: 0; }
|
|
37
|
-
.fg-header-pane-left { border-right: 1px solid var(--fg-border); }
|
|
38
|
-
.fg-header-pane-right { border-left: 1px solid var(--fg-border); }
|
|
39
|
-
.fg-header-inner { position: relative; will-change: transform; }
|
|
40
|
-
.fg-header-cell {
|
|
41
|
-
position: absolute; display: flex; align-items: center; gap: 6px; padding: 0 var(--fg-cell-px);
|
|
42
|
-
font-weight: var(--fg-header-weight, 600); white-space: nowrap; overflow: hidden; user-select: none;
|
|
43
|
-
box-shadow: inset -1px -1px 0 var(--fg-header-line, var(--fg-row-border));
|
|
44
|
-
}
|
|
45
|
-
.fg-header-group { justify-content: center; }
|
|
46
|
-
.fg-header-cell.fg-sortable { cursor: pointer; }
|
|
47
|
-
.fg-header-cell.fg-align-right { flex-direction: row-reverse; }
|
|
48
|
-
.fg-header-label { overflow: hidden; text-overflow: ellipsis; flex: var(--fg-header-label-flex, 0 1 auto); text-align: var(--fg-header-text-align, left); }
|
|
49
|
-
.fg-sort-icon { color: var(--fg-accent); font-size: 12px; }
|
|
50
|
-
.fg-sort-icon sup { font-size: 9px; margin-left: 1px; }
|
|
51
|
-
.fg-menu-btn {
|
|
52
|
-
margin-left: auto; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none;
|
|
53
|
-
border: 0; border-radius: 5px; background: none; color: var(--fg-muted); cursor: pointer; opacity: 0; transition: opacity .12s;
|
|
54
|
-
}
|
|
55
|
-
.fg-header-cell.fg-align-right .fg-menu-btn { margin-left: 0; margin-right: auto; }
|
|
56
|
-
.fg-header-cell:hover .fg-menu-btn, .fg-menu-btn.fg-filter-active { opacity: 1; }
|
|
57
|
-
.fg-menu-btn:hover { background: var(--fg-row-hover); color: var(--fg-fg); }
|
|
58
|
-
.fg-menu-btn.fg-filter-active { color: var(--fg-accent); }
|
|
59
|
-
.fg-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 1; }
|
|
60
|
-
.fg-resize:hover, .fg-resizing .fg-resize:active { background: linear-gradient(90deg, transparent 5px, var(--fg-accent) 5px, var(--fg-accent) 8px); }
|
|
61
|
-
.fg-resizing { cursor: col-resize; user-select: none; }
|
|
62
|
-
.fg-header-cell.fg-dragging { opacity: .45; }
|
|
63
|
-
.fg-drop-marker { position: absolute; top: 0; width: 2px; background: var(--fg-accent); z-index: 5; pointer-events: none; }
|
|
64
|
-
.fg-drag-ghost {
|
|
65
|
-
position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; padding: 6px 10px; border-radius: 6px;
|
|
66
|
-
font: 600 var(--fg-font-size) var(--fg-font); color: var(--fg-fg); background: var(--fg-popup-bg); box-shadow: var(--fg-shadow);
|
|
67
|
-
}
|
|
68
|
-
.fg-body { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
|
|
69
|
-
.fg-body-pane { position: relative; overflow: hidden; flex: none; }
|
|
70
|
-
.fg-body-pane-center { flex: 1 1 0; min-width: 0; overflow: auto; }
|
|
71
|
-
.fg-body-pane-left { border-right: 1px solid var(--fg-border); box-shadow: 4px 0 8px -6px rgba(0, 0, 0, .18); z-index: 1; }
|
|
72
|
-
.fg-body-pane-right { border-left: 1px solid var(--fg-border); box-shadow: -4px 0 8px -6px rgba(0, 0, 0, .18); z-index: 1; }
|
|
73
|
-
.fg-canvas { position: relative; }
|
|
74
|
-
.fg-row { position: absolute; left: 0; right: 0; top: 0; border-bottom: 1px solid var(--fg-row-border); background: var(--fg-bg); }
|
|
75
|
-
.fg-row-odd { background: var(--fg-row-odd); }
|
|
76
|
-
.fg-row:hover { background: var(--fg-row-hover); }
|
|
77
|
-
.fg-row-selected, .fg-row-selected:hover { background: var(--fg-row-selected); }
|
|
78
|
-
.fg-cell {
|
|
79
|
-
position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 var(--fg-cell-px);
|
|
80
|
-
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
81
|
-
box-shadow: var(--fg-col-line, none);
|
|
82
|
-
}
|
|
83
|
-
.fg-cell.fg-align-right { justify-content: flex-end; }
|
|
84
|
-
.fg-cell.fg-align-center { justify-content: center; }
|
|
85
|
-
.fg-cell-focused { outline: 2px solid var(--fg-focus); outline-offset: -2px; border-radius: 2px; }
|
|
86
|
-
.fg-cell-select, .fg-header-select { justify-content: center; padding: 0; }
|
|
87
|
-
.fg-checkbox { width: 15px; height: 15px; margin: 0; accent-color: var(--fg-accent); cursor: pointer; }
|
|
88
|
-
.fg-summary { display: flex; flex: none; background: var(--fg-header-bg); font-weight: 600; }
|
|
89
|
-
.fg-summary-top { border-bottom: 1px solid var(--fg-border); }
|
|
90
|
-
.fg-summary-bottom { border-top: 1px solid var(--fg-border); }
|
|
91
|
-
.fg-summary-pane { position: relative; overflow: hidden; flex: none; }
|
|
92
|
-
.fg-summary-pane-center { flex: 1 1 0; min-width: 0; }
|
|
93
|
-
.fg-summary-pane-left { border-right: 1px solid var(--fg-border); }
|
|
94
|
-
.fg-summary-pane-right { border-left: 1px solid var(--fg-border); }
|
|
95
|
-
.fg-summary-inner { position: relative; will-change: transform; }
|
|
96
|
-
.fg-summary-row, .fg-summary-row:hover { background: var(--fg-header-bg); font-weight: 600; }
|
|
97
|
-
.fg-summary-label { color: var(--fg-muted); }
|
|
98
|
-
.fg-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: grid; place-items: center; color: var(--fg-muted); pointer-events: none; }
|
|
99
|
-
.fg-menu {
|
|
100
|
-
position: fixed; z-index: 10000; width: 248px; padding: 6px; border-radius: 10px; overflow: auto; overscroll-behavior: contain;
|
|
101
|
-
font: var(--fg-font-size)/1.4 var(--fg-font); color: var(--fg-fg); background: var(--fg-popup-bg);
|
|
102
|
-
border: 1px solid var(--fg-border); box-shadow: var(--fg-shadow);
|
|
103
|
-
}
|
|
104
|
-
.fg-menu-section { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
|
|
105
|
-
.fg-menu-section + .fg-menu-section { border-top: 1px solid var(--fg-border); }
|
|
106
|
-
.fg-menu-item { text-align: left; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }
|
|
107
|
-
.fg-menu-item:hover, .fg-menu-item:focus-visible { background: var(--fg-row-hover); outline: none; }
|
|
108
|
-
.fg-menu-title { padding: 4px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
|
|
109
|
-
.fg-filter { gap: 6px; padding: 6px 4px; }
|
|
110
|
-
.fg-input, .fg-filter-op {
|
|
111
|
-
width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--fg-border); border-radius: 6px;
|
|
112
|
-
background: var(--fg-input-bg); color: inherit; font: inherit;
|
|
113
|
-
}
|
|
114
|
-
.fg-input:focus, .fg-filter-op:focus { outline: 2px solid var(--fg-focus); outline-offset: -1px; }
|
|
115
|
-
/* every select in the grid, its menus and dialogs: a drawn chevron with room on the right */
|
|
116
|
-
.fg-root select:not([multiple]):not([size]), .fg-menu select:not([multiple]):not([size]) {
|
|
117
|
-
appearance: none; -webkit-appearance: none; padding-right: 26px;
|
|
118
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238a93a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
119
|
-
background-repeat: no-repeat; background-position: right 9px center; background-size: 11px;
|
|
120
|
-
}
|
|
121
|
-
.fg-set-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; }
|
|
122
|
-
.fg-set-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
123
|
-
.fg-set-item:hover { background: var(--fg-row-hover); }
|
|
124
|
-
.fg-set-all { font-weight: 600; }
|
|
125
|
-
.fg-set-more { padding: 4px 6px; color: var(--fg-muted); }
|
|
126
|
-
.fg-menu-actions { display: flex; justify-content: flex-end; gap: 6px; padding-top: 4px; }
|
|
127
|
-
.fg-btn { height: 28px; padding: 0 12px; border: 1px solid var(--fg-border); border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }
|
|
128
|
-
.fg-btn:hover { background: var(--fg-row-hover); }
|
|
129
|
-
.fg-btn-primary { background: var(--fg-accent); border-color: var(--fg-accent); color: var(--fg-accent-fg); }
|
|
130
|
-
.fg-btn-primary:hover { background: var(--fg-accent); filter: brightness(1.08); }
|
|
131
|
-
.fg-sidebar { display: flex; flex: none; border-left: 1px solid var(--fg-border); background: var(--fg-header-bg); }
|
|
132
|
-
.fg-sidebar-panel { width: 240px; display: flex; flex-direction: column; border-right: 1px solid var(--fg-border); background: var(--fg-bg); }
|
|
133
|
-
.fg-sidebar-tabs { width: 28px; display: flex; flex-direction: column; }
|
|
134
|
-
.fg-sidebar-tab {
|
|
135
|
-
writing-mode: vertical-rl; padding: 12px 0; border: 0; background: none; color: var(--fg-header-fg);
|
|
136
|
-
font: 600 var(--fg-font-size) var(--fg-font); cursor: pointer;
|
|
137
|
-
}
|
|
138
|
-
.fg-sidebar-tab[aria-expanded="true"] { color: var(--fg-accent); box-shadow: inset 2px 0 var(--fg-accent); }
|
|
139
|
-
.fg-sidebar-open .fg-sidebar-tabs { width: 32px; gap: 4px; padding: 8px 4px 8px 0; }
|
|
140
|
-
.fg-sidebar-open .fg-sidebar-tab {
|
|
141
|
-
position: relative; margin-left: -1px; padding: 14px 0; border: 1px solid var(--fg-border); border-left-color: transparent;
|
|
142
|
-
border-radius: 0 7px 7px 0; background: var(--fg-header-bg); color: var(--fg-muted);
|
|
143
|
-
}
|
|
144
|
-
.fg-sidebar-open .fg-sidebar-tab:hover { color: var(--fg-header-fg); background: var(--fg-row-hover); }
|
|
145
|
-
.fg-sidebar-open .fg-sidebar-tab[aria-expanded="true"] {
|
|
146
|
-
background: var(--fg-bg); color: var(--fg-accent); border-left-color: var(--fg-bg); box-shadow: inset -3px 0 var(--fg-accent); z-index: 1;
|
|
147
|
-
}
|
|
148
|
-
.fg-sidebar-open .fg-sidebar-tab:focus-visible { outline: 2px solid var(--fg-accent); outline-offset: -2px; }
|
|
149
|
-
.fg-chooser { display: flex; flex-direction: column; gap: 6px; padding: 8px; min-height: 0; flex: 1; }
|
|
150
|
-
.fg-chooser-dialog { width: 280px; }
|
|
151
|
-
.fg-chooser-dialog .fg-chooser { max-height: 420px; }
|
|
152
|
-
.fg-chooser-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0 0; }
|
|
153
|
-
.fg-chooser-close { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--fg-muted); font-size: 18px; cursor: pointer; }
|
|
154
|
-
.fg-chooser-close:hover { background: var(--fg-row-hover); color: var(--fg-fg); }
|
|
155
|
-
.fg-chooser-all { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-weight: 600; cursor: pointer; }
|
|
156
|
-
.fg-chooser-list { position: relative; overflow: auto; flex: 1; min-height: 0; }
|
|
157
|
-
.fg-chooser-item { display: flex; align-items: center; gap: 6px; height: 28px; padding-right: 6px; border-radius: 6px; white-space: nowrap; }
|
|
158
|
-
.fg-chooser-item:hover { background: var(--fg-row-hover); }
|
|
159
|
-
.fg-chooser-item.fg-dragging { opacity: .45; }
|
|
160
|
-
.fg-chooser-group > .fg-chooser-label { font-weight: 600; }
|
|
161
|
-
.fg-chooser-handle { color: var(--fg-muted); cursor: grab; letter-spacing: -3px; padding: 0 4px 0 0; user-select: none; }
|
|
162
|
-
.fg-chooser-caret { width: 16px; border: 0; background: none; color: var(--fg-muted); cursor: pointer; padding: 0; }
|
|
163
|
-
.fg-chooser-label { overflow: hidden; text-overflow: ellipsis; }
|
|
164
|
-
.fg-chooser-pin { margin-left: auto; color: var(--fg-muted); font-size: 11px; }
|
|
165
|
-
.fg-chooser-marker { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg-accent); pointer-events: none; }
|
|
166
|
-
|
|
167
|
-
/* ── Korean-style themes: simple lines, centered headers ─────────────────── */
|
|
168
|
-
.fg-theme-board, .fg-theme-erp, .fg-theme-excel, .fg-theme-classic {
|
|
169
|
-
--fg-font: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
|
|
170
|
-
--fg-header-label-flex: 1 1 auto; --fg-header-text-align: center;
|
|
171
|
-
--fg-popup-bg: #ffffff; --fg-input-bg: #ffffff; --fg-accent-fg: #ffffff; --fg-shadow: 0 8px 24px rgba(0, 0, 0, .14);
|
|
172
|
-
}
|
|
173
|
-
/* 게시판형: thick top rule, light grey header, horizontal lines only */
|
|
174
|
-
.fg-theme-board {
|
|
175
|
-
--fg-radius: 0; --fg-bg: #ffffff; --fg-fg: #222222; --fg-muted: #767676;
|
|
176
|
-
--fg-header-bg: #f7f7f7; --fg-header-fg: #222222; --fg-border: #dddddd; --fg-row-border: #e5e5e5;
|
|
177
|
-
--fg-row-odd: #ffffff; --fg-row-hover: #f6f8fb; --fg-row-selected: #eef3fc;
|
|
178
|
-
--fg-accent: #1f5bd6; --fg-focus: #1f5bd6;
|
|
179
|
-
--fg-top-border: 2px solid #222222; --fg-header-border: 1px solid #bbbbbb; --fg-header-line: transparent;
|
|
180
|
-
}
|
|
181
|
-
.fg-theme-board.fg-root { border-left: 0; border-right: 0; }
|
|
182
|
-
/* 관리자·ERP형: every cell bordered, blue-grey header, compact */
|
|
183
|
-
.fg-theme-erp {
|
|
184
|
-
--fg-font-size: 12px; --fg-radius: 2px; --fg-cell-px: 8px;
|
|
185
|
-
--fg-bg: #ffffff; --fg-fg: #333333; --fg-muted: #7a8494;
|
|
186
|
-
--fg-header-bg: #eef2f7; --fg-header-fg: #2b3442; --fg-border: #c5ceda; --fg-row-border: #dde3eb;
|
|
187
|
-
--fg-row-odd: #fafbfd; --fg-row-hover: #eef5ff; --fg-row-selected: #fff6d5;
|
|
188
|
-
--fg-accent: #2f6fde; --fg-focus: #2f6fde;
|
|
189
|
-
--fg-col-line: inset -1px 0 #dde3eb; --fg-header-line: #c5ceda;
|
|
190
|
-
}
|
|
191
|
-
/* 엑셀형: gridlines, plain grey header, green focus */
|
|
192
|
-
.fg-theme-excel {
|
|
193
|
-
--fg-radius: 0; --fg-cell-px: 8px;
|
|
194
|
-
--fg-bg: #ffffff; --fg-fg: #1f1f1f; --fg-muted: #6e6e6e;
|
|
195
|
-
--fg-header-bg: #f3f3f3; --fg-header-fg: #444444; --fg-header-weight: 500;
|
|
196
|
-
--fg-border: #d4d4d4; --fg-row-border: #e2e2e2;
|
|
197
|
-
--fg-row-odd: #ffffff; --fg-row-hover: #f7f7f7; --fg-row-selected: #e6f2ea;
|
|
198
|
-
--fg-accent: #107c41; --fg-focus: #107c41;
|
|
199
|
-
--fg-col-line: inset -1px 0 #e2e2e2; --fg-header-line: #d4d4d4;
|
|
200
|
-
}
|
|
201
|
-
/* 진한 헤더형: calm navy header with white text */
|
|
202
|
-
.fg-theme-classic {
|
|
203
|
-
--fg-radius: 4px; --fg-bg: #ffffff; --fg-fg: #2a2f37; --fg-muted: #6b7380;
|
|
204
|
-
--fg-header-bg: #3d4b63; --fg-header-fg: #ffffff; --fg-border: #cfd5de; --fg-row-border: #e3e7ed;
|
|
205
|
-
--fg-row-odd: #f8f9fb; --fg-row-hover: #eef2f8; --fg-row-selected: #e2e9f5;
|
|
206
|
-
--fg-accent: #3d4b63; --fg-focus: #3d6bb3;
|
|
207
|
-
--fg-col-line: inset -1px 0 #e3e7ed; --fg-header-line: #56657e;
|
|
208
|
-
}
|
|
209
|
-
.fg-theme-classic .fg-menu-btn { color: #c9d2e0; }
|
|
210
|
-
.fg-theme-classic .fg-menu-btn:hover { background: rgba(255, 255, 255, .12); color: #ffffff; }
|
|
211
|
-
.fg-theme-classic .fg-sort-icon, .fg-theme-classic .fg-menu-btn.fg-filter-active { color: #ffd166; }
|
|
212
|
-
.fg-theme-classic .fg-sidebar-tab { color: #c9d2e0; }
|
|
213
|
-
.fg-theme-classic .fg-sidebar-tab[aria-expanded="true"] { color: #ffd166; box-shadow: inset 2px 0 #ffd166; }
|
|
214
|
-
.fg-theme-classic .fg-sidebar-open .fg-sidebar-tab[aria-expanded="true"] { color: var(--fg-accent); box-shadow: inset -3px 0 var(--fg-accent); }
|
|
215
|
-
.fg-theme-board .fg-header-cell, .fg-theme-erp .fg-header-cell, .fg-theme-excel .fg-header-cell, .fg-theme-classic .fg-header-cell { flex-direction: row; justify-content: center; }
|
|
216
|
-
.fg-theme-board .fg-menu-btn, .fg-theme-erp .fg-menu-btn, .fg-theme-excel .fg-menu-btn, .fg-theme-classic .fg-menu-btn {
|
|
217
|
-
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin: 0;
|
|
218
|
-
}
|
|
219
|
-
.fg-theme-board .fg-header-label, .fg-theme-erp .fg-header-label, .fg-theme-excel .fg-header-label, .fg-theme-classic .fg-header-label { flex: 0 1 auto; }
|
|
220
|
-
|
|
221
|
-
/* ── cell ranges, context menu, toast ───────────────────────────────── */
|
|
222
|
-
.fg-cell-range { background: var(--fg-range-bg, color-mix(in srgb, var(--fg-accent) 13%, transparent)); }
|
|
223
|
-
.fg-range-dragging, .fg-range-dragging * { user-select: none; cursor: cell; }
|
|
224
|
-
.fg-context-menu { width: 236px; }
|
|
225
|
-
.fg-cm-item { display: flex; align-items: center; gap: 12px; width: 100%; }
|
|
226
|
-
.fg-cm-item:disabled { opacity: .45; cursor: default; background: none; }
|
|
227
|
-
.fg-cm-label { flex: 1; }
|
|
228
|
-
.fg-cm-shortcut { color: var(--fg-muted); font-size: .9em; }
|
|
229
|
-
.fg-cm-sep { height: 1px; margin: 4px 2px; background: var(--fg-border); }
|
|
230
|
-
.fg-toast {
|
|
231
|
-
position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20; max-width: 90%;
|
|
232
|
-
padding: 8px 14px; border-radius: 8px; background: var(--fg-fg); color: var(--fg-bg); font-size: .95em; box-shadow: var(--fg-shadow);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/* ── editing ────────────────────────────────────────────────────────── */
|
|
236
|
-
.fg-editor { position: absolute; z-index: 15; display: flex; background: var(--fg-bg); box-shadow: 0 0 0 2px var(--fg-focus), var(--fg-shadow); border-radius: 2px; }
|
|
237
|
-
.fg-editor-control { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: none; padding: 0 var(--fg-cell-px); background: transparent; color: var(--fg-fg); font: inherit; }
|
|
238
|
-
textarea.fg-editor-control { padding-top: 8px; resize: none; }
|
|
239
|
-
.fg-editor-msg { position: absolute; left: -2px; top: 100%; margin-top: 4px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: #c2361f; color: #fff; font-size: .9em; }
|
|
240
|
-
.fg-editor-msg:empty { display: none; }
|
|
241
|
-
.fg-editor-invalid { box-shadow: 0 0 0 2px #c2361f, var(--fg-shadow); }
|
|
242
|
-
.fg-cell-dirty { background-image: linear-gradient(225deg, var(--fg-dirty, #f2a900) 6px, transparent 6px); }
|
|
243
|
-
.fg-row-created { box-shadow: inset 3px 0 0 var(--fg-accent); }
|
|
244
|
-
|
|
245
|
-
/* ── v0.3: merge, pinned rows, status bar, fill handle, find, header wrap ── */
|
|
246
|
-
.fg-cell-merged { z-index: 1; background: var(--fg-bg); align-items: flex-start; padding-top: calc((var(--fg-font-size, 13px) * 2.75 - 1.4em) / 2); border-bottom: 1px solid var(--fg-row-border); box-shadow: var(--fg-col-line, none); }
|
|
247
|
-
.fg-row-odd .fg-cell-merged { background: var(--fg-bg); }
|
|
248
|
-
.fg-cell-merge-hidden { visibility: hidden; }
|
|
249
|
-
.fg-pinned-rows { display: flex; flex: none; background: var(--fg-bg); }
|
|
250
|
-
.fg-pinned-top { border-bottom: 2px solid var(--fg-border); }
|
|
251
|
-
.fg-pinned-bottom { border-top: 2px solid var(--fg-border); }
|
|
252
|
-
.fg-section-pane { position: relative; overflow: hidden; flex: none; }
|
|
253
|
-
.fg-section-pane-center { flex: 1 1 0; min-width: 0; }
|
|
254
|
-
.fg-section-pane-left { border-right: 1px solid var(--fg-border); }
|
|
255
|
-
.fg-section-pane-right { border-left: 1px solid var(--fg-border); }
|
|
256
|
-
.fg-section-inner { position: relative; will-change: transform; }
|
|
257
|
-
.fg-row-pinned, .fg-row-pinned:hover { background: var(--fg-row-odd); font-weight: 500; }
|
|
258
|
-
.fg-statusbar { display: flex; flex: none; justify-content: space-between; gap: 16px; padding: 6px var(--fg-cell-px); border-top: 1px solid var(--fg-border); background: var(--fg-header-bg); color: var(--fg-muted); font-size: .92em; white-space: nowrap; overflow: hidden; }
|
|
259
|
-
.fg-status-aggs { color: var(--fg-fg); font-variant-numeric: tabular-nums; white-space: pre; }
|
|
260
|
-
.fg-fill-handle { position: absolute; z-index: 16; width: 8px; height: 8px; background: var(--fg-accent); border: 1px solid var(--fg-bg); cursor: crosshair; }
|
|
261
|
-
.fg-fill-preview { position: absolute; z-index: 15; border: 1px dashed var(--fg-accent); pointer-events: none; }
|
|
262
|
-
.fg-cell-match { background: color-mix(in srgb, #f2a900 22%, transparent); }
|
|
263
|
-
.fg-cell-match-current { background: #f2a900; color: #1a1300; }
|
|
264
|
-
.fg-findbar { position: absolute; top: 6px; right: 18px; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 8px; background: var(--fg-popup-bg); border: 1px solid var(--fg-border); box-shadow: var(--fg-shadow); }
|
|
265
|
-
.fg-findbar .fg-input { width: 200px; height: 28px; }
|
|
266
|
-
.fg-findbar-count { min-width: 56px; text-align: center; color: var(--fg-muted); font-size: .9em; font-variant-numeric: tabular-nums; }
|
|
267
|
-
.fg-findbar-btn { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--fg-fg); cursor: pointer; }
|
|
268
|
-
.fg-findbar-btn:hover { background: var(--fg-row-hover); }
|
|
269
|
-
.fg-header-wrap .fg-header-label { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.25; }
|
|
270
|
-
|
|
271
|
-
/* grouping, tree data, master/detail, row drag */
|
|
272
|
-
.fg-group-panel {
|
|
273
|
-
display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px;
|
|
274
|
-
background: var(--fg-bg); border-bottom: 1px solid var(--fg-border); color: var(--fg-muted, #6b7280);
|
|
275
|
-
}
|
|
276
|
-
.fg-group-panel-over { background: var(--fg-row-hover); outline: 2px dashed var(--fg-accent); outline-offset: -4px; }
|
|
277
|
-
.fg-group-hint { font-size: .92em; }
|
|
278
|
-
.fg-group-chip {
|
|
279
|
-
display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--fg-border);
|
|
280
|
-
border-radius: 999px; background: var(--fg-header-bg); color: var(--fg-header-fg); cursor: grab; user-select: none;
|
|
281
|
-
}
|
|
282
|
-
.fg-group-chip.fg-dragging { opacity: .5; }
|
|
283
|
-
.fg-group-chip-remove {
|
|
284
|
-
width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
|
|
285
|
-
font: inherit; line-height: 1; cursor: pointer;
|
|
286
|
-
}
|
|
287
|
-
.fg-group-chip-remove:hover { background: var(--fg-row-hover); }
|
|
288
|
-
.fg-group-sep { opacity: .6; }
|
|
289
|
-
.fg-row-group, .fg-row-group:hover { background: var(--fg-header-bg); font-weight: 600; }
|
|
290
|
-
.fg-group-cell { overflow: visible; z-index: 1; padding-left: calc(4px + var(--fg-level, 0) * 16px); }
|
|
291
|
-
.fg-group-label { white-space: nowrap; }
|
|
292
|
-
.fg-cell-agg { color: var(--fg-header-fg); }
|
|
293
|
-
.fg-group-toggle, .fg-tree-toggle, .fg-detail-toggle {
|
|
294
|
-
display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin-right: 4px;
|
|
295
|
-
padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer;
|
|
296
|
-
}
|
|
297
|
-
.fg-group-toggle:hover, .fg-tree-toggle:hover, .fg-detail-toggle:hover { background: var(--fg-row-hover); }
|
|
298
|
-
.fg-group-toggle svg, .fg-tree-toggle svg, .fg-detail-toggle svg { transition: transform .12s ease; }
|
|
299
|
-
.fg-expanded svg { transform: rotate(90deg); }
|
|
300
|
-
.fg-tree-spacer { display: inline-block; flex: none; width: 24px; }
|
|
301
|
-
.fg-cell-lead { padding-left: calc(4px + var(--fg-level, 0) * 16px); }
|
|
302
|
-
.fg-row-detail, .fg-row-detail:hover { background: var(--fg-bg); }
|
|
303
|
-
.fg-detail {
|
|
304
|
-
position: absolute; top: 0; bottom: 0; box-sizing: border-box; overflow: auto; padding: 10px 14px;
|
|
305
|
-
border-bottom: 1px solid var(--fg-row-border); background: var(--fg-bg);
|
|
306
|
-
}
|
|
307
|
-
.fg-cell-drag { justify-content: center; padding: 0; cursor: grab; }
|
|
308
|
-
.fg-drag-handle { color: var(--fg-muted, #9aa1ad); cursor: grab; letter-spacing: -1px; user-select: none; }
|
|
309
|
-
.fg-drag-handle.fg-drag-disabled { opacity: .35; cursor: not-allowed; }
|
|
310
|
-
.fg-row-dragging, .fg-row-dragging * { cursor: grabbing !important; }
|
|
311
|
-
.fg-row-drop-marker { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg-accent); z-index: 6; pointer-events: none; }
|
|
312
|
-
.fg-row-drop-marker.fg-row-drop-inside { background: color-mix(in srgb, var(--fg-accent) 8%, transparent); box-shadow: inset 0 0 0 2px var(--fg-accent); }
|
|
313
|
-
@media (prefers-reduced-motion: reduce) { .fg-group-toggle svg, .fg-tree-toggle svg, .fg-detail-toggle svg { transition: none; } }
|
|
314
|
-
.fg-tree-loading svg { animation: fg-spin .8s linear infinite; opacity: .6; }
|
|
315
|
-
@keyframes fg-spin { to { transform: rotate(360deg); } }
|
|
316
|
-
@media (prefers-reduced-motion: reduce) { .fg-tree-loading svg { animation: none; } }
|
|
317
|
-
|
|
318
|
-
/* pagination and server rows */
|
|
319
|
-
.fg-pager {
|
|
320
|
-
display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 38px; padding: 4px 10px;
|
|
321
|
-
border-top: 1px solid var(--fg-border); background: var(--fg-header-bg); color: var(--fg-header-fg); font-variant-numeric: tabular-nums;
|
|
322
|
-
}
|
|
323
|
-
.fg-pager-spacer { flex: 1; }
|
|
324
|
-
.fg-pager-size-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
|
|
325
|
-
.fg-pager-size { font: inherit; color: var(--fg-fg); background: var(--fg-input-bg); border: 1px solid var(--fg-border); border-radius: 4px; padding: 2px 4px; }
|
|
326
|
-
.fg-pager-page { padding: 0 8px; }
|
|
327
|
-
.fg-pager-btn {
|
|
328
|
-
min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 4px;
|
|
329
|
-
background: transparent; color: inherit; font: inherit; font-size: 1.1em; line-height: 1; cursor: pointer;
|
|
330
|
-
}
|
|
331
|
-
.fg-pager-btn:hover:not(:disabled) { background: var(--fg-row-hover); border-color: var(--fg-border); }
|
|
332
|
-
.fg-pager-btn:disabled { opacity: .35; cursor: default; }
|
|
333
|
-
.fg-skeleton {
|
|
334
|
-
display: block; width: 70%; height: .8em; border-radius: 4px;
|
|
335
|
-
background: linear-gradient(90deg, var(--fg-row-border) 25%, var(--fg-border) 50%, var(--fg-row-border) 75%);
|
|
336
|
-
background-size: 200% 100%; animation: fg-shimmer 1.2s ease-in-out infinite;
|
|
337
|
-
}
|
|
338
|
-
@keyframes fg-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
|
|
339
|
-
@media (prefers-reduced-motion: reduce) { .fg-skeleton { animation: none; } }
|
|
340
|
-
|
|
341
|
-
/* filters tool panel */
|
|
342
|
-
.fg-filters-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }
|
|
343
|
-
.fg-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--fg-border); }
|
|
344
|
-
.fg-filters-title { font-weight: 600; }
|
|
345
|
-
.fg-filters-clear { font-size: .9em; padding: 2px 8px; }
|
|
346
|
-
.fg-filters-list { overflow: auto; flex: 1; }
|
|
347
|
-
.fg-filters-item { border-bottom: 1px solid var(--fg-row-border); }
|
|
348
|
-
.fg-filters-item > summary { padding: 7px 10px; cursor: pointer; list-style-position: inside; }
|
|
349
|
-
.fg-filters-item > summary:hover { background: var(--fg-row-hover); }
|
|
350
|
-
.fg-filters-item.fg-filter-on > summary { color: var(--fg-accent); font-weight: 600; }
|
|
351
|
-
.fg-filters-item.fg-filter-on > summary::after { content: ' ●'; font-size: .7em; vertical-align: middle; }
|
|
352
|
-
.fg-filters-item .fg-filter { border: 0; padding: 4px 10px 10px; }
|
|
353
|
-
|
|
354
|
-
/* pivot panel */
|
|
355
|
-
.fg-pivot-panel { display: flex; flex-direction: column; gap: 4px; overflow: auto; flex: 1; padding: 8px 10px; }
|
|
356
|
-
.fg-pivot-mode { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; font-weight: 600; border-bottom: 1px solid var(--fg-border); }
|
|
357
|
-
.fg-pivot-zone { padding: 8px 0; border-bottom: 1px solid var(--fg-row-border); }
|
|
358
|
-
.fg-pivot-zone-title { font-size: .9em; color: var(--fg-muted); margin-bottom: 6px; }
|
|
359
|
-
.fg-pivot-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
|
|
360
|
-
.fg-pivot-chips .fg-group-chip { cursor: default; }
|
|
361
|
-
.fg-pivot-agg, .fg-pivot-add {
|
|
362
|
-
font: inherit; font-size: .92em; color: var(--fg-fg); background: var(--fg-input-bg);
|
|
363
|
-
border: 1px solid var(--fg-border); border-radius: 4px; padding: 2px 4px;
|
|
364
|
-
}
|
|
365
|
-
.fg-pivot-add { width: 100%; }
|
|
366
|
-
|
|
367
|
-
/* charts */
|
|
368
|
-
.fg-chart-panel {
|
|
369
|
-
position: absolute; top: 12px; right: 12px; z-index: 20; width: min(640px, calc(100% - 24px));
|
|
370
|
-
background: var(--fg-popup-bg); border: 1px solid var(--fg-border); border-radius: 8px; box-shadow: var(--fg-shadow);
|
|
371
|
-
display: flex; flex-direction: column;
|
|
372
|
-
}
|
|
373
|
-
.fg-chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--fg-border); }
|
|
374
|
-
.fg-chart-type {
|
|
375
|
-
padding: 3px 8px; border: 1px solid var(--fg-border); border-radius: 999px; background: transparent;
|
|
376
|
-
color: var(--fg-fg); font: inherit; font-size: .88em; cursor: pointer;
|
|
377
|
-
}
|
|
378
|
-
.fg-chart-type[aria-pressed="true"] { background: var(--fg-accent); border-color: var(--fg-accent); color: var(--fg-accent-fg); }
|
|
379
|
-
.fg-chart-spacer { flex: 1; }
|
|
380
|
-
.fg-chart-body { padding: 4px 8px 8px; }
|
|
381
|
-
.fg-chart { display: block; width: 100%; height: auto; font: 11px var(--fg-font); color: var(--fg-fg); }
|
|
382
|
-
.fg-chart text { fill: var(--fg-muted); }
|
|
383
|
-
.fg-chart .fg-chart-title { fill: var(--fg-fg); font-size: 14px; font-weight: 600; }
|
|
384
|
-
.fg-chart-grid { stroke: var(--fg-row-border); }
|
|
385
|
-
.fg-chart-zero { stroke: var(--fg-border); stroke-width: 1.5; }
|
|
386
|
-
.fg-chart-legend-item text { fill: var(--fg-fg); }
|
|
387
|
-
.fg-chart-bar, .fg-chart-slice, .fg-chart-point { transition: opacity .12s; }
|
|
388
|
-
.fg-chart-plot:hover .fg-chart-bar:not(:hover), .fg-chart:hover .fg-chart-slice:not(:hover) { opacity: .55; }
|
|
389
|
-
.fg-chart-slice { stroke: var(--fg-popup-bg, #fff); stroke-width: 1.5; }
|
|
390
|
-
@media (prefers-reduced-motion: reduce) { .fg-chart-bar, .fg-chart-slice, .fg-chart-point { transition: none; } }
|
|
391
|
-
|
|
392
|
-
/* free-use badge (unlicensed company domains) */
|
|
393
|
-
.fg-free-badge {
|
|
394
|
-
position: absolute; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 6px;
|
|
395
|
-
padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(14, 23, 38, .15);
|
|
396
|
-
box-shadow: 0 2px 8px rgba(14, 23, 38, .12); color: #0E1726; font: 600 11px/1.2 var(--fg-font); text-decoration: none; opacity: .9;
|
|
397
|
-
}
|
|
398
|
-
.fg-free-badge:hover { opacity: 1; }
|
|
399
|
-
.fg-free-badge svg { flex: none; }
|
|
400
|
-
|
|
401
|
-
/* column spans */
|
|
402
|
-
.fg-cell-span-hidden { visibility: hidden; }
|
|
403
|
-
.fg-cell-colspan { z-index: 1; background: inherit; }
|
|
404
|
-
|
|
405
|
-
/* per-cell locks */
|
|
406
|
-
.fg-cell-readonly { color: var(--fg-muted); background-image: linear-gradient(rgba(14, 23, 38, .025), rgba(14, 23, 38, .025)); }
|
|
407
|
-
.fg-cell-select-locked .fg-checkbox { cursor: not-allowed; opacity: .45; }
|
|
408
|
-
|
|
409
|
-
/* wrapped cells (autoRowHeight grows the row to fit) */
|
|
410
|
-
.fg-cell-wrap { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.45; padding-top: 6px; padding-bottom: 6px; }
|
|
411
|
-
|
|
412
|
-
/* right-to-left: mirror the grid area, then turn every cell back so text reads normally */
|
|
413
|
-
/* the root keeps dir=rtl (side bar on the left); the grid inside is laid out ltr and mirrored */
|
|
414
|
-
.fg-rtl .fg-main { transform: scaleX(-1); direction: ltr; }
|
|
415
|
-
.fg-rtl .fg-cell, .fg-rtl .fg-header-cell, .fg-rtl .fg-statusbar, .fg-rtl .fg-pager, .fg-rtl .fg-group-panel,
|
|
416
|
-
.fg-rtl .fg-overlay, .fg-rtl .fg-find, .fg-rtl .fg-chart-panel, .fg-rtl .fg-row-detail .fg-detail { transform: scaleX(-1); direction: rtl; }
|
|
417
|
-
.fg-rtl .fg-sidebar { direction: rtl; border-left: 0; border-right: 1px solid var(--fg-border); }
|
|
418
|
-
|
|
419
|
-
/* touch */
|
|
420
|
-
.fg-body { touch-action: pan-x pan-y; }
|
|
421
|
-
@media (pointer: coarse) {
|
|
422
|
-
.fg-editor input, .fg-editor select, .fg-editor textarea { font-size: 16px; } /* no zoom-in on focus in mobile Safari */
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/* card view for narrow screens */
|
|
426
|
-
.fg-card-mode .fg-header, .fg-card-mode .fg-body, .fg-card-mode .fg-grid, .fg-card-mode .fg-summary, .fg-card-mode .fg-pinned-rows { display: none; }
|
|
427
|
-
.fg-cards { flex: 1; min-height: 0; overflow: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
|
|
428
|
-
.fg-cards-canvas { position: relative; }
|
|
429
|
-
.fg-card {
|
|
430
|
-
position: absolute; left: 0; right: 0; top: 0; box-sizing: border-box; padding: 10px 14px; overflow: hidden;
|
|
431
|
-
border: 1px solid var(--fg-border); border-radius: 10px; background: var(--fg-bg); box-shadow: 0 1px 2px rgba(14, 23, 38, .06);
|
|
432
|
-
}
|
|
433
|
-
.fg-card-selected { border-color: var(--fg-accent); background: var(--fg-row-selected); }
|
|
434
|
-
.fg-card-other { background: var(--fg-header-bg); font-weight: 600; display: flex; align-items: center; }
|
|
435
|
-
.fg-card-head { display: flex; align-items: center; gap: 8px; height: var(--fg-card-line, 27px); color: var(--fg-muted); font-size: .92em; }
|
|
436
|
-
.fg-card-line { display: grid; grid-template-columns: minmax(80px, 38%) 1fr; gap: 10px; align-items: center; height: var(--fg-card-line, 27px); }
|
|
437
|
-
.fg-card-label { color: var(--fg-muted); font-size: .92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
438
|
-
.fg-card-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
439
|
-
|
|
440
|
-
/* row numbers */
|
|
441
|
-
.fg-cell-rownum, .fg-header-rownum { justify-content: center; color: var(--fg-muted); font-variant-numeric: tabular-nums; cursor: default; }
|
|
442
|
-
.fg-cell-rownum { background: var(--fg-header-bg); }
|
|
443
|
-
|
|
444
|
-
/* filter row */
|
|
445
|
-
.fg-filter-row { position: relative; border-top: 1px solid var(--fg-border); will-change: transform; }
|
|
446
|
-
.fg-filter-cell { position: absolute; top: 0; box-sizing: border-box; display: flex; align-items: center; padding: 3px 4px; border-right: 1px solid var(--fg-border); }
|
|
447
|
-
.fg-filter-input { width: 100%; height: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--fg-border); border-radius: 4px; padding: 0 6px; background: var(--fg-bg); color: var(--fg-fg); font: inherit; font-size: .92em; }
|
|
448
|
-
.fg-filter-input:focus { outline: 2px solid var(--fg-focus); outline-offset: -1px; }
|
|
449
|
-
.fg-filter-input::placeholder { color: var(--fg-muted); opacity: .7; }
|
|
450
|
-
.fg-filter-active .fg-filter-input { border-color: var(--fg-accent); }
|
|
451
|
-
.fg-filter-bad.fg-filter-input { border-color: #dc2626; }
|
|
452
|
-
.fg-rtl .fg-filter-cell { transform: scaleX(-1); direction: rtl; }
|
|
453
|
-
|
|
454
|
-
/* tooltips */
|
|
455
|
-
.fg-tooltip { position: fixed; z-index: 1000; max-width: 360px; padding: 6px 9px; border-radius: 6px; background: #1f2430; color: #fff; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
|
|
456
|
-
.fg-tooltip.fg-theme-dark { background: #e6e9f0; color: #11141b; }
|
|
457
|
-
|
|
458
|
-
/* cells changed by applyTransaction */
|
|
459
|
-
.fg-cell-flash { animation: fg-flash var(--fg-flash-duration, 1s) ease-out; }
|
|
460
|
-
@keyframes fg-flash { from { background: color-mix(in srgb, var(--fg-accent) 35%, transparent); } to { background: transparent; } }
|
|
461
|
-
.fg-cell-flash-up { animation-name: fg-flash-up; }
|
|
462
|
-
.fg-cell-flash-down { animation-name: fg-flash-down; }
|
|
463
|
-
@keyframes fg-flash-up { from { background: color-mix(in srgb, var(--fg-up, #16a34a) 32%, transparent); } to { background: transparent; } }
|
|
464
|
-
@keyframes fg-flash-down { from { background: color-mix(in srgb, var(--fg-down, #dc2626) 32%, transparent); } to { background: transparent; } }
|
|
465
|
-
@media (prefers-reduced-motion: reduce) { .fg-cell-flash { animation: none; outline: 1px solid var(--fg-accent); outline-offset: -1px; }
|
|
466
|
-
.fg-cell-flash-up { outline-color: var(--fg-up, #16a34a); }
|
|
467
|
-
.fg-cell-flash-down { outline-color: var(--fg-down, #dc2626); } }
|
|
468
|
-
|
|
469
|
-
/* editType 'row': the row being edited */
|
|
470
|
-
.fg-row-editing { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fg-accent) 45%, transparent); background: color-mix(in srgb, var(--fg-accent) 5%, var(--fg-bg)); }
|
|
471
|
-
|
|
472
|
-
/* collapsible column groups */
|
|
473
|
-
.fg-colgroup-toggle { margin-left: 6px; width: 18px; height: 18px; padding: 0; border: 1px solid var(--fg-border); border-radius: 4px; background: var(--fg-bg); color: var(--fg-muted); font: 600 12px/1 var(--fg-font); cursor: pointer; flex: none; }
|
|
474
|
-
.fg-colgroup-toggle:hover { color: var(--fg-fg); border-color: var(--fg-muted); }
|
|
475
|
-
|
|
476
|
-
/* two conditions in a column filter */
|
|
477
|
-
.fg-filter-cond { display: flex; flex-direction: column; gap: 6px; }
|
|
478
|
-
.fg-filter-join { display: flex; gap: 14px; padding: 2px 2px 0; font-size: .92em; color: var(--fg-muted); }
|
|
479
|
-
.fg-filter-join label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
|
|
480
|
-
|
|
481
|
-
/* autoHeight: grow with the rows */
|
|
482
|
-
.fg-root.fg-auto-height { height: auto; }
|
|
483
|
-
.fg-auto-height .fg-main, .fg-auto-height .fg-grid { flex: none; }
|
|
484
|
-
.fg-auto-height .fg-body { flex: none; min-height: 0; }
|
|
485
|
-
.fg-auto-height .fg-body-pane-center { overflow-y: hidden; }
|
|
486
|
-
|
|
487
|
-
.fg-sparkline { display: block; overflow: visible; }
|
|
488
|
-
|
|
489
|
-
.fg-overlay.fg-overlay-custom { pointer-events: auto; }
|
|
490
|
-
|
|
491
|
-
/* density */
|
|
492
|
-
.fg-density-compact { --fg-cell-px: 7px; }
|
|
493
|
-
.fg-density-comfortable { --fg-cell-px: 14px; }
|
|
494
|
-
|
|
495
|
-
/* conditional formats */
|
|
496
|
-
.fg-cf-bar { background-image: linear-gradient(to right, transparent var(--fg-bar-from), color-mix(in srgb, var(--fg-bar-color) 38%, transparent) var(--fg-bar-from), color-mix(in srgb, var(--fg-bar-color) 38%, transparent) var(--fg-bar-to), transparent var(--fg-bar-to)); background-repeat: no-repeat; background-size: 100% 70%; background-position: 0 50%; }
|
|
497
|
-
.fg-cf-icon { display: inline-block; margin-inline-end: 6px; font-size: .9em; line-height: 1; }
|
|
498
|
-
.fg-cf-dialog { width: 340px; }
|
|
499
|
-
.fg-cf-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
|
|
500
|
-
.fg-cf-rule { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 1px solid var(--fg-border); border-radius: 6px; }
|
|
501
|
-
.fg-cf-rule-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
502
|
-
.fg-cf-sample { flex: none; width: 34px; height: 18px; border-radius: 4px; border: 1px solid var(--fg-border); display: grid; place-items: center; font-size: 11px; }
|
|
503
|
-
.fg-cf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
|
504
|
-
.fg-cf-form > .fg-cf-wide { grid-column: 1 / -1; }
|
|
505
|
-
.fg-cf-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
506
|
-
.fg-cf-swatch { width: 30px; height: 22px; border-radius: 5px; border: 1px solid var(--fg-border); cursor: pointer; font: 600 11px/1 var(--fg-font); padding: 0; }
|
|
507
|
-
.fg-cf-swatch[aria-pressed="true"] { outline: 2px solid var(--fg-accent); outline-offset: 1px; }
|
|
508
|
-
.fg-cf-empty { color: var(--fg-muted); padding: 4px 0; }
|
|
509
|
-
|
|
510
|
-
/* AI assistant */
|
|
511
|
-
.fg-ai-panel { width: 360px; display: flex; flex-direction: column; gap: 8px; }
|
|
512
|
-
.fg-ai-log { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
|
|
513
|
-
.fg-ai-log:empty { display: none; }
|
|
514
|
-
.fg-ai-msg { padding: 7px 10px; border-radius: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 92%; }
|
|
515
|
-
.fg-ai-user { align-self: flex-end; background: var(--fg-accent); color: var(--fg-accent-fg); border-bottom-right-radius: 3px; }
|
|
516
|
-
.fg-ai-ai { align-self: flex-start; background: var(--fg-header-bg); border: 1px solid var(--fg-border); border-bottom-left-radius: 3px; }
|
|
517
|
-
.fg-ai-error { align-self: flex-start; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
|
|
518
|
-
.fg-ai-wait { color: var(--fg-muted); }
|
|
519
|
-
.fg-ai-note { margin-top: 4px; font-size: .9em; color: var(--fg-muted); }
|
|
520
|
-
.fg-ai-undo { margin-top: 6px; height: 24px; padding: 0 10px; }
|
|
521
|
-
.fg-ai-form { display: flex; gap: 6px; align-items: flex-end; }
|
|
522
|
-
.fg-ai-input { flex: 1; resize: vertical; min-height: 40px; max-height: 140px; padding: 6px 8px; font: inherit; }
|
|
523
|
-
.fg-ai-tips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
524
|
-
.fg-ai-tip { border: 1px solid var(--fg-border); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .92em; padding: 3px 10px; cursor: pointer; }
|
|
525
|
-
.fg-ai-tip:hover { background: var(--fg-row-hover); }
|
|
1
|
+
[class*="fg-theme-"] {
|
|
2
|
+
--fg-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans", sans-serif;
|
|
3
|
+
--fg-font-size: 13px;
|
|
4
|
+
--fg-radius: 8px;
|
|
5
|
+
--fg-cell-px: 12px;
|
|
6
|
+
--fg-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08);
|
|
7
|
+
}
|
|
8
|
+
.fg-theme-light {
|
|
9
|
+
--fg-bg: #ffffff; --fg-fg: #1f2430; --fg-muted: #636b7c;
|
|
10
|
+
--fg-header-bg: #f6f7f9; --fg-header-fg: #39404f; --fg-border: #e3e6eb; --fg-row-border: #eef0f3;
|
|
11
|
+
--fg-row-odd: #fbfbfc; --fg-row-hover: #f2f6ff; --fg-row-selected: #e3edff;
|
|
12
|
+
--fg-accent: #2563eb; --fg-accent-fg: #ffffff; --fg-focus: #2563eb; --fg-popup-bg: #ffffff; --fg-input-bg: #ffffff;
|
|
13
|
+
}
|
|
14
|
+
.fg-theme-dark {
|
|
15
|
+
--fg-bg: #11141b; --fg-fg: #e6e9f0; --fg-muted: #8c95a8;
|
|
16
|
+
--fg-header-bg: #171b24; --fg-header-fg: #c9cfdc; --fg-border: #262c38; --fg-row-border: #1c212b;
|
|
17
|
+
--fg-row-odd: #13171f; --fg-row-hover: #1a2233; --fg-row-selected: #1d3157;
|
|
18
|
+
--fg-accent: #4f8cff; --fg-accent-fg: #0b0d12; --fg-focus: #4f8cff; --fg-popup-bg: #171b24; --fg-input-bg: #0f1218;
|
|
19
|
+
--fg-shadow: 0 12px 32px rgba(0, 0, 0, .5);
|
|
20
|
+
color-scheme: dark;
|
|
21
|
+
}
|
|
22
|
+
.fg-root {
|
|
23
|
+
position: relative; display: flex; flex-direction: row; box-sizing: border-box;
|
|
24
|
+
width: 100%; height: 100%; overflow: hidden; outline: none;
|
|
25
|
+
font: var(--fg-font-size)/1.4 var(--fg-font); color: var(--fg-fg); background: var(--fg-bg);
|
|
26
|
+
border: 1px solid var(--fg-border); border-radius: var(--fg-radius);
|
|
27
|
+
border-top: var(--fg-top-border, 1px solid var(--fg-border));
|
|
28
|
+
font-variant-numeric: tabular-nums;
|
|
29
|
+
}
|
|
30
|
+
.fg-root *, .fg-menu * { box-sizing: border-box; }
|
|
31
|
+
.fg-main { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; overflow: hidden; }
|
|
32
|
+
.fg-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; outline: none; }
|
|
33
|
+
.fg-root [hidden], .fg-menu [hidden] { display: none !important; }
|
|
34
|
+
.fg-header { display: flex; flex: none; background: var(--fg-header-bg); color: var(--fg-header-fg); border-bottom: var(--fg-header-border, 1px solid var(--fg-border)); }
|
|
35
|
+
.fg-header-pane { position: relative; overflow: hidden; flex: none; }
|
|
36
|
+
.fg-header-pane-center { flex: 1 1 0; min-width: 0; }
|
|
37
|
+
.fg-header-pane-left { border-right: 1px solid var(--fg-border); }
|
|
38
|
+
.fg-header-pane-right { border-left: 1px solid var(--fg-border); }
|
|
39
|
+
.fg-header-inner { position: relative; will-change: transform; }
|
|
40
|
+
.fg-header-cell {
|
|
41
|
+
position: absolute; display: flex; align-items: center; gap: 6px; padding: 0 var(--fg-cell-px);
|
|
42
|
+
font-weight: var(--fg-header-weight, 600); white-space: nowrap; overflow: hidden; user-select: none;
|
|
43
|
+
box-shadow: inset -1px -1px 0 var(--fg-header-line, var(--fg-row-border));
|
|
44
|
+
}
|
|
45
|
+
.fg-header-group { justify-content: center; }
|
|
46
|
+
.fg-header-cell.fg-sortable { cursor: pointer; }
|
|
47
|
+
.fg-header-cell.fg-align-right { flex-direction: row-reverse; }
|
|
48
|
+
.fg-header-label { overflow: hidden; text-overflow: ellipsis; flex: var(--fg-header-label-flex, 0 1 auto); text-align: var(--fg-header-text-align, left); }
|
|
49
|
+
.fg-sort-icon { color: var(--fg-accent); font-size: 12px; }
|
|
50
|
+
.fg-sort-icon sup { font-size: 9px; margin-left: 1px; }
|
|
51
|
+
.fg-menu-btn {
|
|
52
|
+
margin-left: auto; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none;
|
|
53
|
+
border: 0; border-radius: 5px; background: none; color: var(--fg-muted); cursor: pointer; opacity: 0; transition: opacity .12s;
|
|
54
|
+
}
|
|
55
|
+
.fg-header-cell.fg-align-right .fg-menu-btn { margin-left: 0; margin-right: auto; }
|
|
56
|
+
.fg-header-cell:hover .fg-menu-btn, .fg-menu-btn.fg-filter-active { opacity: 1; }
|
|
57
|
+
.fg-menu-btn:hover { background: var(--fg-row-hover); color: var(--fg-fg); }
|
|
58
|
+
.fg-menu-btn.fg-filter-active { color: var(--fg-accent); }
|
|
59
|
+
.fg-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 1; }
|
|
60
|
+
.fg-resize:hover, .fg-resizing .fg-resize:active { background: linear-gradient(90deg, transparent 5px, var(--fg-accent) 5px, var(--fg-accent) 8px); }
|
|
61
|
+
.fg-resizing { cursor: col-resize; user-select: none; }
|
|
62
|
+
.fg-header-cell.fg-dragging { opacity: .45; }
|
|
63
|
+
.fg-drop-marker { position: absolute; top: 0; width: 2px; background: var(--fg-accent); z-index: 5; pointer-events: none; }
|
|
64
|
+
.fg-drag-ghost {
|
|
65
|
+
position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; padding: 6px 10px; border-radius: 6px;
|
|
66
|
+
font: 600 var(--fg-font-size) var(--fg-font); color: var(--fg-fg); background: var(--fg-popup-bg); box-shadow: var(--fg-shadow);
|
|
67
|
+
}
|
|
68
|
+
.fg-body { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
|
|
69
|
+
.fg-body-pane { position: relative; overflow: hidden; flex: none; }
|
|
70
|
+
.fg-body-pane-center { flex: 1 1 0; min-width: 0; overflow: auto; }
|
|
71
|
+
.fg-body-pane-left { border-right: 1px solid var(--fg-border); box-shadow: 4px 0 8px -6px rgba(0, 0, 0, .18); z-index: 1; }
|
|
72
|
+
.fg-body-pane-right { border-left: 1px solid var(--fg-border); box-shadow: -4px 0 8px -6px rgba(0, 0, 0, .18); z-index: 1; }
|
|
73
|
+
.fg-canvas { position: relative; }
|
|
74
|
+
.fg-row { position: absolute; left: 0; right: 0; top: 0; border-bottom: 1px solid var(--fg-row-border); background: var(--fg-bg); }
|
|
75
|
+
.fg-row-odd { background: var(--fg-row-odd); }
|
|
76
|
+
.fg-row:hover { background: var(--fg-row-hover); }
|
|
77
|
+
.fg-row-selected, .fg-row-selected:hover { background: var(--fg-row-selected); }
|
|
78
|
+
.fg-cell {
|
|
79
|
+
position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 var(--fg-cell-px);
|
|
80
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
81
|
+
box-shadow: var(--fg-col-line, none);
|
|
82
|
+
}
|
|
83
|
+
.fg-cell.fg-align-right { justify-content: flex-end; }
|
|
84
|
+
.fg-cell.fg-align-center { justify-content: center; }
|
|
85
|
+
.fg-cell-focused { outline: 2px solid var(--fg-focus); outline-offset: -2px; border-radius: 2px; }
|
|
86
|
+
.fg-cell-select, .fg-header-select { justify-content: center; padding: 0; }
|
|
87
|
+
.fg-checkbox { width: 15px; height: 15px; margin: 0; accent-color: var(--fg-accent); cursor: pointer; }
|
|
88
|
+
.fg-summary { display: flex; flex: none; background: var(--fg-header-bg); font-weight: 600; }
|
|
89
|
+
.fg-summary-top { border-bottom: 1px solid var(--fg-border); }
|
|
90
|
+
.fg-summary-bottom { border-top: 1px solid var(--fg-border); }
|
|
91
|
+
.fg-summary-pane { position: relative; overflow: hidden; flex: none; }
|
|
92
|
+
.fg-summary-pane-center { flex: 1 1 0; min-width: 0; }
|
|
93
|
+
.fg-summary-pane-left { border-right: 1px solid var(--fg-border); }
|
|
94
|
+
.fg-summary-pane-right { border-left: 1px solid var(--fg-border); }
|
|
95
|
+
.fg-summary-inner { position: relative; will-change: transform; }
|
|
96
|
+
.fg-summary-row, .fg-summary-row:hover { background: var(--fg-header-bg); font-weight: 600; }
|
|
97
|
+
.fg-summary-label { color: var(--fg-muted); }
|
|
98
|
+
.fg-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: grid; place-items: center; color: var(--fg-muted); pointer-events: none; }
|
|
99
|
+
.fg-menu {
|
|
100
|
+
position: fixed; z-index: 10000; width: 248px; padding: 6px; border-radius: 10px; overflow: auto; overscroll-behavior: contain;
|
|
101
|
+
font: var(--fg-font-size)/1.4 var(--fg-font); color: var(--fg-fg); background: var(--fg-popup-bg);
|
|
102
|
+
border: 1px solid var(--fg-border); box-shadow: var(--fg-shadow);
|
|
103
|
+
}
|
|
104
|
+
.fg-menu-section { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
|
|
105
|
+
.fg-menu-section + .fg-menu-section { border-top: 1px solid var(--fg-border); }
|
|
106
|
+
.fg-menu-item { text-align: left; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }
|
|
107
|
+
.fg-menu-item:hover, .fg-menu-item:focus-visible { background: var(--fg-row-hover); outline: none; }
|
|
108
|
+
.fg-menu-title { padding: 4px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
|
|
109
|
+
.fg-filter { gap: 6px; padding: 6px 4px; }
|
|
110
|
+
.fg-input, .fg-filter-op {
|
|
111
|
+
width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--fg-border); border-radius: 6px;
|
|
112
|
+
background: var(--fg-input-bg); color: inherit; font: inherit;
|
|
113
|
+
}
|
|
114
|
+
.fg-input:focus, .fg-filter-op:focus { outline: 2px solid var(--fg-focus); outline-offset: -1px; }
|
|
115
|
+
/* every select in the grid, its menus and dialogs: a drawn chevron with room on the right */
|
|
116
|
+
.fg-root select:not([multiple]):not([size]), .fg-menu select:not([multiple]):not([size]) {
|
|
117
|
+
appearance: none; -webkit-appearance: none; padding-right: 26px;
|
|
118
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238a93a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
119
|
+
background-repeat: no-repeat; background-position: right 9px center; background-size: 11px;
|
|
120
|
+
}
|
|
121
|
+
.fg-set-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; }
|
|
122
|
+
.fg-set-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
123
|
+
.fg-set-item:hover { background: var(--fg-row-hover); }
|
|
124
|
+
.fg-set-all { font-weight: 600; }
|
|
125
|
+
.fg-set-more { padding: 4px 6px; color: var(--fg-muted); }
|
|
126
|
+
.fg-menu-actions { display: flex; justify-content: flex-end; gap: 6px; padding-top: 4px; }
|
|
127
|
+
.fg-btn { height: 28px; padding: 0 12px; border: 1px solid var(--fg-border); border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }
|
|
128
|
+
.fg-btn:hover { background: var(--fg-row-hover); }
|
|
129
|
+
.fg-btn-primary { background: var(--fg-accent); border-color: var(--fg-accent); color: var(--fg-accent-fg); }
|
|
130
|
+
.fg-btn-primary:hover { background: var(--fg-accent); filter: brightness(1.08); }
|
|
131
|
+
.fg-sidebar { display: flex; flex: none; border-left: 1px solid var(--fg-border); background: var(--fg-header-bg); }
|
|
132
|
+
.fg-sidebar-panel { width: 240px; display: flex; flex-direction: column; border-right: 1px solid var(--fg-border); background: var(--fg-bg); }
|
|
133
|
+
.fg-sidebar-tabs { width: 28px; display: flex; flex-direction: column; }
|
|
134
|
+
.fg-sidebar-tab {
|
|
135
|
+
writing-mode: vertical-rl; padding: 12px 0; border: 0; background: none; color: var(--fg-header-fg);
|
|
136
|
+
font: 600 var(--fg-font-size) var(--fg-font); cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
.fg-sidebar-tab[aria-expanded="true"] { color: var(--fg-accent); box-shadow: inset 2px 0 var(--fg-accent); }
|
|
139
|
+
.fg-sidebar-open .fg-sidebar-tabs { width: 32px; gap: 4px; padding: 8px 4px 8px 0; }
|
|
140
|
+
.fg-sidebar-open .fg-sidebar-tab {
|
|
141
|
+
position: relative; margin-left: -1px; padding: 14px 0; border: 1px solid var(--fg-border); border-left-color: transparent;
|
|
142
|
+
border-radius: 0 7px 7px 0; background: var(--fg-header-bg); color: var(--fg-muted);
|
|
143
|
+
}
|
|
144
|
+
.fg-sidebar-open .fg-sidebar-tab:hover { color: var(--fg-header-fg); background: var(--fg-row-hover); }
|
|
145
|
+
.fg-sidebar-open .fg-sidebar-tab[aria-expanded="true"] {
|
|
146
|
+
background: var(--fg-bg); color: var(--fg-accent); border-left-color: var(--fg-bg); box-shadow: inset -3px 0 var(--fg-accent); z-index: 1;
|
|
147
|
+
}
|
|
148
|
+
.fg-sidebar-open .fg-sidebar-tab:focus-visible { outline: 2px solid var(--fg-accent); outline-offset: -2px; }
|
|
149
|
+
.fg-chooser { display: flex; flex-direction: column; gap: 6px; padding: 8px; min-height: 0; flex: 1; }
|
|
150
|
+
.fg-chooser-dialog { width: 280px; }
|
|
151
|
+
.fg-chooser-dialog .fg-chooser { max-height: 420px; }
|
|
152
|
+
.fg-chooser-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0 0; }
|
|
153
|
+
.fg-chooser-close { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--fg-muted); font-size: 18px; cursor: pointer; }
|
|
154
|
+
.fg-chooser-close:hover { background: var(--fg-row-hover); color: var(--fg-fg); }
|
|
155
|
+
.fg-chooser-all { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-weight: 600; cursor: pointer; }
|
|
156
|
+
.fg-chooser-list { position: relative; overflow: auto; flex: 1; min-height: 0; }
|
|
157
|
+
.fg-chooser-item { display: flex; align-items: center; gap: 6px; height: 28px; padding-right: 6px; border-radius: 6px; white-space: nowrap; }
|
|
158
|
+
.fg-chooser-item:hover { background: var(--fg-row-hover); }
|
|
159
|
+
.fg-chooser-item.fg-dragging { opacity: .45; }
|
|
160
|
+
.fg-chooser-group > .fg-chooser-label { font-weight: 600; }
|
|
161
|
+
.fg-chooser-handle { color: var(--fg-muted); cursor: grab; letter-spacing: -3px; padding: 0 4px 0 0; user-select: none; }
|
|
162
|
+
.fg-chooser-caret { width: 16px; border: 0; background: none; color: var(--fg-muted); cursor: pointer; padding: 0; }
|
|
163
|
+
.fg-chooser-label { overflow: hidden; text-overflow: ellipsis; }
|
|
164
|
+
.fg-chooser-pin { margin-left: auto; color: var(--fg-muted); font-size: 11px; }
|
|
165
|
+
.fg-chooser-marker { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg-accent); pointer-events: none; }
|
|
166
|
+
|
|
167
|
+
/* ── Korean-style themes: simple lines, centered headers ─────────────────── */
|
|
168
|
+
.fg-theme-board, .fg-theme-erp, .fg-theme-excel, .fg-theme-classic {
|
|
169
|
+
--fg-font: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
|
|
170
|
+
--fg-header-label-flex: 1 1 auto; --fg-header-text-align: center;
|
|
171
|
+
--fg-popup-bg: #ffffff; --fg-input-bg: #ffffff; --fg-accent-fg: #ffffff; --fg-shadow: 0 8px 24px rgba(0, 0, 0, .14);
|
|
172
|
+
}
|
|
173
|
+
/* 게시판형: thick top rule, light grey header, horizontal lines only */
|
|
174
|
+
.fg-theme-board {
|
|
175
|
+
--fg-radius: 0; --fg-bg: #ffffff; --fg-fg: #222222; --fg-muted: #767676;
|
|
176
|
+
--fg-header-bg: #f7f7f7; --fg-header-fg: #222222; --fg-border: #dddddd; --fg-row-border: #e5e5e5;
|
|
177
|
+
--fg-row-odd: #ffffff; --fg-row-hover: #f6f8fb; --fg-row-selected: #eef3fc;
|
|
178
|
+
--fg-accent: #1f5bd6; --fg-focus: #1f5bd6;
|
|
179
|
+
--fg-top-border: 2px solid #222222; --fg-header-border: 1px solid #bbbbbb; --fg-header-line: transparent;
|
|
180
|
+
}
|
|
181
|
+
.fg-theme-board.fg-root { border-left: 0; border-right: 0; }
|
|
182
|
+
/* 관리자·ERP형: every cell bordered, blue-grey header, compact */
|
|
183
|
+
.fg-theme-erp {
|
|
184
|
+
--fg-font-size: 12px; --fg-radius: 2px; --fg-cell-px: 8px;
|
|
185
|
+
--fg-bg: #ffffff; --fg-fg: #333333; --fg-muted: #7a8494;
|
|
186
|
+
--fg-header-bg: #eef2f7; --fg-header-fg: #2b3442; --fg-border: #c5ceda; --fg-row-border: #dde3eb;
|
|
187
|
+
--fg-row-odd: #fafbfd; --fg-row-hover: #eef5ff; --fg-row-selected: #fff6d5;
|
|
188
|
+
--fg-accent: #2f6fde; --fg-focus: #2f6fde;
|
|
189
|
+
--fg-col-line: inset -1px 0 #dde3eb; --fg-header-line: #c5ceda;
|
|
190
|
+
}
|
|
191
|
+
/* 엑셀형: gridlines, plain grey header, green focus */
|
|
192
|
+
.fg-theme-excel {
|
|
193
|
+
--fg-radius: 0; --fg-cell-px: 8px;
|
|
194
|
+
--fg-bg: #ffffff; --fg-fg: #1f1f1f; --fg-muted: #6e6e6e;
|
|
195
|
+
--fg-header-bg: #f3f3f3; --fg-header-fg: #444444; --fg-header-weight: 500;
|
|
196
|
+
--fg-border: #d4d4d4; --fg-row-border: #e2e2e2;
|
|
197
|
+
--fg-row-odd: #ffffff; --fg-row-hover: #f7f7f7; --fg-row-selected: #e6f2ea;
|
|
198
|
+
--fg-accent: #107c41; --fg-focus: #107c41;
|
|
199
|
+
--fg-col-line: inset -1px 0 #e2e2e2; --fg-header-line: #d4d4d4;
|
|
200
|
+
}
|
|
201
|
+
/* 진한 헤더형: calm navy header with white text */
|
|
202
|
+
.fg-theme-classic {
|
|
203
|
+
--fg-radius: 4px; --fg-bg: #ffffff; --fg-fg: #2a2f37; --fg-muted: #6b7380;
|
|
204
|
+
--fg-header-bg: #3d4b63; --fg-header-fg: #ffffff; --fg-border: #cfd5de; --fg-row-border: #e3e7ed;
|
|
205
|
+
--fg-row-odd: #f8f9fb; --fg-row-hover: #eef2f8; --fg-row-selected: #e2e9f5;
|
|
206
|
+
--fg-accent: #3d4b63; --fg-focus: #3d6bb3;
|
|
207
|
+
--fg-col-line: inset -1px 0 #e3e7ed; --fg-header-line: #56657e;
|
|
208
|
+
}
|
|
209
|
+
.fg-theme-classic .fg-menu-btn { color: #c9d2e0; }
|
|
210
|
+
.fg-theme-classic .fg-menu-btn:hover { background: rgba(255, 255, 255, .12); color: #ffffff; }
|
|
211
|
+
.fg-theme-classic .fg-sort-icon, .fg-theme-classic .fg-menu-btn.fg-filter-active { color: #ffd166; }
|
|
212
|
+
.fg-theme-classic .fg-sidebar-tab { color: #c9d2e0; }
|
|
213
|
+
.fg-theme-classic .fg-sidebar-tab[aria-expanded="true"] { color: #ffd166; box-shadow: inset 2px 0 #ffd166; }
|
|
214
|
+
.fg-theme-classic .fg-sidebar-open .fg-sidebar-tab[aria-expanded="true"] { color: var(--fg-accent); box-shadow: inset -3px 0 var(--fg-accent); }
|
|
215
|
+
.fg-theme-board .fg-header-cell, .fg-theme-erp .fg-header-cell, .fg-theme-excel .fg-header-cell, .fg-theme-classic .fg-header-cell { flex-direction: row; justify-content: center; }
|
|
216
|
+
.fg-theme-board .fg-menu-btn, .fg-theme-erp .fg-menu-btn, .fg-theme-excel .fg-menu-btn, .fg-theme-classic .fg-menu-btn {
|
|
217
|
+
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin: 0;
|
|
218
|
+
}
|
|
219
|
+
.fg-theme-board .fg-header-label, .fg-theme-erp .fg-header-label, .fg-theme-excel .fg-header-label, .fg-theme-classic .fg-header-label { flex: 0 1 auto; }
|
|
220
|
+
|
|
221
|
+
/* ── cell ranges, context menu, toast ───────────────────────────────── */
|
|
222
|
+
.fg-cell-range { background: var(--fg-range-bg, color-mix(in srgb, var(--fg-accent) 13%, transparent)); }
|
|
223
|
+
.fg-range-dragging, .fg-range-dragging * { user-select: none; cursor: cell; }
|
|
224
|
+
.fg-context-menu { width: 236px; }
|
|
225
|
+
.fg-cm-item { display: flex; align-items: center; gap: 12px; width: 100%; }
|
|
226
|
+
.fg-cm-item:disabled { opacity: .45; cursor: default; background: none; }
|
|
227
|
+
.fg-cm-label { flex: 1; }
|
|
228
|
+
.fg-cm-shortcut { color: var(--fg-muted); font-size: .9em; }
|
|
229
|
+
.fg-cm-sep { height: 1px; margin: 4px 2px; background: var(--fg-border); }
|
|
230
|
+
.fg-toast {
|
|
231
|
+
position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20; max-width: 90%;
|
|
232
|
+
padding: 8px 14px; border-radius: 8px; background: var(--fg-fg); color: var(--fg-bg); font-size: .95em; box-shadow: var(--fg-shadow);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* ── editing ────────────────────────────────────────────────────────── */
|
|
236
|
+
.fg-editor { position: absolute; z-index: 15; display: flex; background: var(--fg-bg); box-shadow: 0 0 0 2px var(--fg-focus), var(--fg-shadow); border-radius: 2px; }
|
|
237
|
+
.fg-editor-control { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: none; padding: 0 var(--fg-cell-px); background: transparent; color: var(--fg-fg); font: inherit; }
|
|
238
|
+
textarea.fg-editor-control { padding-top: 8px; resize: none; }
|
|
239
|
+
.fg-editor-msg { position: absolute; left: -2px; top: 100%; margin-top: 4px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: #c2361f; color: #fff; font-size: .9em; }
|
|
240
|
+
.fg-editor-msg:empty { display: none; }
|
|
241
|
+
.fg-editor-invalid { box-shadow: 0 0 0 2px #c2361f, var(--fg-shadow); }
|
|
242
|
+
.fg-cell-dirty { background-image: linear-gradient(225deg, var(--fg-dirty, #f2a900) 6px, transparent 6px); }
|
|
243
|
+
.fg-row-created { box-shadow: inset 3px 0 0 var(--fg-accent); }
|
|
244
|
+
|
|
245
|
+
/* ── v0.3: merge, pinned rows, status bar, fill handle, find, header wrap ── */
|
|
246
|
+
.fg-cell-merged { z-index: 1; background: var(--fg-bg); align-items: flex-start; padding-top: calc((var(--fg-font-size, 13px) * 2.75 - 1.4em) / 2 + var(--fg-merge-shift, 0px)); border-bottom: 1px solid var(--fg-row-border); box-shadow: var(--fg-col-line, none); }
|
|
247
|
+
.fg-row-odd .fg-cell-merged { background: var(--fg-bg); }
|
|
248
|
+
.fg-cell-merge-hidden { visibility: hidden; }
|
|
249
|
+
.fg-pinned-rows { display: flex; flex: none; background: var(--fg-bg); }
|
|
250
|
+
.fg-pinned-top { border-bottom: 2px solid var(--fg-border); }
|
|
251
|
+
.fg-pinned-bottom { border-top: 2px solid var(--fg-border); }
|
|
252
|
+
.fg-section-pane { position: relative; overflow: hidden; flex: none; }
|
|
253
|
+
.fg-section-pane-center { flex: 1 1 0; min-width: 0; }
|
|
254
|
+
.fg-section-pane-left { border-right: 1px solid var(--fg-border); }
|
|
255
|
+
.fg-section-pane-right { border-left: 1px solid var(--fg-border); }
|
|
256
|
+
.fg-section-inner { position: relative; will-change: transform; }
|
|
257
|
+
.fg-row-pinned, .fg-row-pinned:hover { background: var(--fg-row-odd); font-weight: 500; }
|
|
258
|
+
.fg-statusbar { display: flex; flex: none; justify-content: space-between; gap: 16px; padding: 6px var(--fg-cell-px); border-top: 1px solid var(--fg-border); background: var(--fg-header-bg); color: var(--fg-muted); font-size: .92em; white-space: nowrap; overflow: hidden; }
|
|
259
|
+
.fg-status-aggs { color: var(--fg-fg); font-variant-numeric: tabular-nums; white-space: pre; }
|
|
260
|
+
.fg-fill-handle { position: absolute; z-index: 16; width: 8px; height: 8px; background: var(--fg-accent); border: 1px solid var(--fg-bg); cursor: crosshair; }
|
|
261
|
+
.fg-fill-preview { position: absolute; z-index: 15; border: 1px dashed var(--fg-accent); pointer-events: none; }
|
|
262
|
+
.fg-cell-match { background: color-mix(in srgb, #f2a900 22%, transparent); }
|
|
263
|
+
.fg-cell-match-current { background: #f2a900; color: #1a1300; }
|
|
264
|
+
.fg-findbar { position: absolute; top: 6px; right: 18px; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 8px; background: var(--fg-popup-bg); border: 1px solid var(--fg-border); box-shadow: var(--fg-shadow); }
|
|
265
|
+
.fg-findbar .fg-input { width: 200px; height: 28px; }
|
|
266
|
+
.fg-findbar-count { min-width: 56px; text-align: center; color: var(--fg-muted); font-size: .9em; font-variant-numeric: tabular-nums; }
|
|
267
|
+
.fg-findbar-btn { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--fg-fg); cursor: pointer; }
|
|
268
|
+
.fg-findbar-btn:hover { background: var(--fg-row-hover); }
|
|
269
|
+
.fg-header-wrap .fg-header-label { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.25; }
|
|
270
|
+
|
|
271
|
+
/* grouping, tree data, master/detail, row drag */
|
|
272
|
+
.fg-group-panel {
|
|
273
|
+
display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px;
|
|
274
|
+
background: var(--fg-bg); border-bottom: 1px solid var(--fg-border); color: var(--fg-muted, #6b7280);
|
|
275
|
+
}
|
|
276
|
+
.fg-group-panel-over { background: var(--fg-row-hover); outline: 2px dashed var(--fg-accent); outline-offset: -4px; }
|
|
277
|
+
.fg-group-hint { font-size: .92em; }
|
|
278
|
+
.fg-group-chip {
|
|
279
|
+
display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--fg-border);
|
|
280
|
+
border-radius: 999px; background: var(--fg-header-bg); color: var(--fg-header-fg); cursor: grab; user-select: none;
|
|
281
|
+
}
|
|
282
|
+
.fg-group-chip.fg-dragging { opacity: .5; }
|
|
283
|
+
.fg-group-chip-remove {
|
|
284
|
+
width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
|
|
285
|
+
font: inherit; line-height: 1; cursor: pointer;
|
|
286
|
+
}
|
|
287
|
+
.fg-group-chip-remove:hover { background: var(--fg-row-hover); }
|
|
288
|
+
.fg-group-sep { opacity: .6; }
|
|
289
|
+
.fg-row-group, .fg-row-group:hover { background: var(--fg-header-bg); font-weight: 600; }
|
|
290
|
+
.fg-group-cell { overflow: visible; z-index: 1; padding-left: calc(4px + var(--fg-level, 0) * 16px); }
|
|
291
|
+
.fg-group-label { white-space: nowrap; }
|
|
292
|
+
.fg-cell-agg { color: var(--fg-header-fg); }
|
|
293
|
+
.fg-group-toggle, .fg-tree-toggle, .fg-detail-toggle {
|
|
294
|
+
display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin-right: 4px;
|
|
295
|
+
padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer;
|
|
296
|
+
}
|
|
297
|
+
.fg-group-toggle:hover, .fg-tree-toggle:hover, .fg-detail-toggle:hover { background: var(--fg-row-hover); }
|
|
298
|
+
.fg-group-toggle svg, .fg-tree-toggle svg, .fg-detail-toggle svg { transition: transform .12s ease; }
|
|
299
|
+
.fg-expanded svg { transform: rotate(90deg); }
|
|
300
|
+
.fg-tree-spacer { display: inline-block; flex: none; width: 24px; }
|
|
301
|
+
.fg-cell-lead { padding-left: calc(4px + var(--fg-level, 0) * 16px); }
|
|
302
|
+
.fg-row-detail, .fg-row-detail:hover { background: var(--fg-bg); }
|
|
303
|
+
.fg-detail {
|
|
304
|
+
position: absolute; top: 0; bottom: 0; box-sizing: border-box; overflow: auto; padding: 10px 14px;
|
|
305
|
+
border-bottom: 1px solid var(--fg-row-border); background: var(--fg-bg);
|
|
306
|
+
}
|
|
307
|
+
.fg-cell-drag { justify-content: center; padding: 0; cursor: grab; }
|
|
308
|
+
.fg-drag-handle { color: var(--fg-muted, #9aa1ad); cursor: grab; letter-spacing: -1px; user-select: none; }
|
|
309
|
+
.fg-drag-handle.fg-drag-disabled { opacity: .35; cursor: not-allowed; }
|
|
310
|
+
.fg-row-dragging, .fg-row-dragging * { cursor: grabbing !important; }
|
|
311
|
+
.fg-row-drop-marker { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg-accent); z-index: 6; pointer-events: none; }
|
|
312
|
+
.fg-row-drop-marker.fg-row-drop-inside { background: color-mix(in srgb, var(--fg-accent) 8%, transparent); box-shadow: inset 0 0 0 2px var(--fg-accent); }
|
|
313
|
+
@media (prefers-reduced-motion: reduce) { .fg-group-toggle svg, .fg-tree-toggle svg, .fg-detail-toggle svg { transition: none; } }
|
|
314
|
+
.fg-tree-loading svg { animation: fg-spin .8s linear infinite; opacity: .6; }
|
|
315
|
+
@keyframes fg-spin { to { transform: rotate(360deg); } }
|
|
316
|
+
@media (prefers-reduced-motion: reduce) { .fg-tree-loading svg { animation: none; } }
|
|
317
|
+
|
|
318
|
+
/* pagination and server rows */
|
|
319
|
+
.fg-pager {
|
|
320
|
+
display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 38px; padding: 4px 10px;
|
|
321
|
+
border-top: 1px solid var(--fg-border); background: var(--fg-header-bg); color: var(--fg-header-fg); font-variant-numeric: tabular-nums;
|
|
322
|
+
}
|
|
323
|
+
.fg-pager-spacer { flex: 1; }
|
|
324
|
+
.fg-pager-size-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
|
|
325
|
+
.fg-pager-size { font: inherit; color: var(--fg-fg); background: var(--fg-input-bg); border: 1px solid var(--fg-border); border-radius: 4px; padding: 2px 4px; }
|
|
326
|
+
.fg-pager-page { padding: 0 8px; }
|
|
327
|
+
.fg-pager-btn {
|
|
328
|
+
min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 4px;
|
|
329
|
+
background: transparent; color: inherit; font: inherit; font-size: 1.1em; line-height: 1; cursor: pointer;
|
|
330
|
+
}
|
|
331
|
+
.fg-pager-btn:hover:not(:disabled) { background: var(--fg-row-hover); border-color: var(--fg-border); }
|
|
332
|
+
.fg-pager-btn:disabled { opacity: .35; cursor: default; }
|
|
333
|
+
.fg-skeleton {
|
|
334
|
+
display: block; width: 70%; height: .8em; border-radius: 4px;
|
|
335
|
+
background: linear-gradient(90deg, var(--fg-row-border) 25%, var(--fg-border) 50%, var(--fg-row-border) 75%);
|
|
336
|
+
background-size: 200% 100%; animation: fg-shimmer 1.2s ease-in-out infinite;
|
|
337
|
+
}
|
|
338
|
+
@keyframes fg-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
|
|
339
|
+
@media (prefers-reduced-motion: reduce) { .fg-skeleton { animation: none; } }
|
|
340
|
+
|
|
341
|
+
/* filters tool panel */
|
|
342
|
+
.fg-filters-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }
|
|
343
|
+
.fg-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--fg-border); }
|
|
344
|
+
.fg-filters-title { font-weight: 600; }
|
|
345
|
+
.fg-filters-clear { font-size: .9em; padding: 2px 8px; }
|
|
346
|
+
.fg-filters-list { overflow: auto; flex: 1; }
|
|
347
|
+
.fg-filters-item { border-bottom: 1px solid var(--fg-row-border); }
|
|
348
|
+
.fg-filters-item > summary { padding: 7px 10px; cursor: pointer; list-style-position: inside; }
|
|
349
|
+
.fg-filters-item > summary:hover { background: var(--fg-row-hover); }
|
|
350
|
+
.fg-filters-item.fg-filter-on > summary { color: var(--fg-accent); font-weight: 600; }
|
|
351
|
+
.fg-filters-item.fg-filter-on > summary::after { content: ' ●'; font-size: .7em; vertical-align: middle; }
|
|
352
|
+
.fg-filters-item .fg-filter { border: 0; padding: 4px 10px 10px; }
|
|
353
|
+
|
|
354
|
+
/* pivot panel */
|
|
355
|
+
.fg-pivot-panel { display: flex; flex-direction: column; gap: 4px; overflow: auto; flex: 1; padding: 8px 10px; }
|
|
356
|
+
.fg-pivot-mode { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; font-weight: 600; border-bottom: 1px solid var(--fg-border); }
|
|
357
|
+
.fg-pivot-zone { padding: 8px 0; border-bottom: 1px solid var(--fg-row-border); }
|
|
358
|
+
.fg-pivot-zone-title { font-size: .9em; color: var(--fg-muted); margin-bottom: 6px; }
|
|
359
|
+
.fg-pivot-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
|
|
360
|
+
.fg-pivot-chips .fg-group-chip { cursor: default; }
|
|
361
|
+
.fg-pivot-agg, .fg-pivot-add {
|
|
362
|
+
font: inherit; font-size: .92em; color: var(--fg-fg); background: var(--fg-input-bg);
|
|
363
|
+
border: 1px solid var(--fg-border); border-radius: 4px; padding: 2px 4px;
|
|
364
|
+
}
|
|
365
|
+
.fg-pivot-add { width: 100%; }
|
|
366
|
+
|
|
367
|
+
/* charts */
|
|
368
|
+
.fg-chart-panel {
|
|
369
|
+
position: absolute; top: 12px; right: 12px; z-index: 20; width: min(640px, calc(100% - 24px));
|
|
370
|
+
background: var(--fg-popup-bg); border: 1px solid var(--fg-border); border-radius: 8px; box-shadow: var(--fg-shadow);
|
|
371
|
+
display: flex; flex-direction: column;
|
|
372
|
+
}
|
|
373
|
+
.fg-chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--fg-border); }
|
|
374
|
+
.fg-chart-type {
|
|
375
|
+
padding: 3px 8px; border: 1px solid var(--fg-border); border-radius: 999px; background: transparent;
|
|
376
|
+
color: var(--fg-fg); font: inherit; font-size: .88em; cursor: pointer;
|
|
377
|
+
}
|
|
378
|
+
.fg-chart-type[aria-pressed="true"] { background: var(--fg-accent); border-color: var(--fg-accent); color: var(--fg-accent-fg); }
|
|
379
|
+
.fg-chart-spacer { flex: 1; }
|
|
380
|
+
.fg-chart-body { padding: 4px 8px 8px; }
|
|
381
|
+
.fg-chart { display: block; width: 100%; height: auto; font: 11px var(--fg-font); color: var(--fg-fg); }
|
|
382
|
+
.fg-chart text { fill: var(--fg-muted); }
|
|
383
|
+
.fg-chart .fg-chart-title { fill: var(--fg-fg); font-size: 14px; font-weight: 600; }
|
|
384
|
+
.fg-chart-grid { stroke: var(--fg-row-border); }
|
|
385
|
+
.fg-chart-zero { stroke: var(--fg-border); stroke-width: 1.5; }
|
|
386
|
+
.fg-chart-legend-item text { fill: var(--fg-fg); }
|
|
387
|
+
.fg-chart-bar, .fg-chart-slice, .fg-chart-point { transition: opacity .12s; }
|
|
388
|
+
.fg-chart-plot:hover .fg-chart-bar:not(:hover), .fg-chart:hover .fg-chart-slice:not(:hover) { opacity: .55; }
|
|
389
|
+
.fg-chart-slice { stroke: var(--fg-popup-bg, #fff); stroke-width: 1.5; }
|
|
390
|
+
@media (prefers-reduced-motion: reduce) { .fg-chart-bar, .fg-chart-slice, .fg-chart-point { transition: none; } }
|
|
391
|
+
|
|
392
|
+
/* free-use badge (unlicensed company domains) */
|
|
393
|
+
.fg-free-badge {
|
|
394
|
+
position: absolute; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 6px;
|
|
395
|
+
padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(14, 23, 38, .15);
|
|
396
|
+
box-shadow: 0 2px 8px rgba(14, 23, 38, .12); color: #0E1726; font: 600 11px/1.2 var(--fg-font); text-decoration: none; opacity: .9;
|
|
397
|
+
}
|
|
398
|
+
.fg-free-badge:hover { opacity: 1; }
|
|
399
|
+
.fg-free-badge svg { flex: none; }
|
|
400
|
+
|
|
401
|
+
/* column spans */
|
|
402
|
+
.fg-cell-span-hidden { visibility: hidden; }
|
|
403
|
+
.fg-cell-colspan { z-index: 1; background: inherit; }
|
|
404
|
+
|
|
405
|
+
/* per-cell locks */
|
|
406
|
+
.fg-cell-readonly { color: var(--fg-muted); background-image: linear-gradient(rgba(14, 23, 38, .025), rgba(14, 23, 38, .025)); }
|
|
407
|
+
.fg-cell-select-locked .fg-checkbox { cursor: not-allowed; opacity: .45; }
|
|
408
|
+
|
|
409
|
+
/* wrapped cells (autoRowHeight grows the row to fit) */
|
|
410
|
+
.fg-cell-wrap { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.45; padding-top: 6px; padding-bottom: 6px; }
|
|
411
|
+
|
|
412
|
+
/* right-to-left: mirror the grid area, then turn every cell back so text reads normally */
|
|
413
|
+
/* the root keeps dir=rtl (side bar on the left); the grid inside is laid out ltr and mirrored */
|
|
414
|
+
.fg-rtl .fg-main { transform: scaleX(-1); direction: ltr; }
|
|
415
|
+
.fg-rtl .fg-cell, .fg-rtl .fg-header-cell, .fg-rtl .fg-statusbar, .fg-rtl .fg-pager, .fg-rtl .fg-group-panel,
|
|
416
|
+
.fg-rtl .fg-overlay, .fg-rtl .fg-find, .fg-rtl .fg-chart-panel, .fg-rtl .fg-row-detail .fg-detail { transform: scaleX(-1); direction: rtl; }
|
|
417
|
+
.fg-rtl .fg-sidebar { direction: rtl; border-left: 0; border-right: 1px solid var(--fg-border); }
|
|
418
|
+
|
|
419
|
+
/* touch */
|
|
420
|
+
.fg-body { touch-action: pan-x pan-y; }
|
|
421
|
+
@media (pointer: coarse) {
|
|
422
|
+
.fg-editor input, .fg-editor select, .fg-editor textarea { font-size: 16px; } /* no zoom-in on focus in mobile Safari */
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/* card view for narrow screens */
|
|
426
|
+
.fg-card-mode .fg-header, .fg-card-mode .fg-body, .fg-card-mode .fg-grid, .fg-card-mode .fg-summary, .fg-card-mode .fg-pinned-rows { display: none; }
|
|
427
|
+
.fg-cards { flex: 1; min-height: 0; overflow: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
|
|
428
|
+
.fg-cards-canvas { position: relative; }
|
|
429
|
+
.fg-card {
|
|
430
|
+
position: absolute; left: 0; right: 0; top: 0; box-sizing: border-box; padding: 10px 14px; overflow: hidden;
|
|
431
|
+
border: 1px solid var(--fg-border); border-radius: 10px; background: var(--fg-bg); box-shadow: 0 1px 2px rgba(14, 23, 38, .06);
|
|
432
|
+
}
|
|
433
|
+
.fg-card-selected { border-color: var(--fg-accent); background: var(--fg-row-selected); }
|
|
434
|
+
.fg-card-other { background: var(--fg-header-bg); font-weight: 600; display: flex; align-items: center; }
|
|
435
|
+
.fg-card-head { display: flex; align-items: center; gap: 8px; height: var(--fg-card-line, 27px); color: var(--fg-muted); font-size: .92em; }
|
|
436
|
+
.fg-card-line { display: grid; grid-template-columns: minmax(80px, 38%) 1fr; gap: 10px; align-items: center; height: var(--fg-card-line, 27px); }
|
|
437
|
+
.fg-card-label { color: var(--fg-muted); font-size: .92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
438
|
+
.fg-card-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
439
|
+
|
|
440
|
+
/* row numbers */
|
|
441
|
+
.fg-cell-rownum, .fg-header-rownum { justify-content: center; color: var(--fg-muted); font-variant-numeric: tabular-nums; cursor: default; }
|
|
442
|
+
.fg-cell-rownum { background: var(--fg-header-bg); }
|
|
443
|
+
|
|
444
|
+
/* filter row */
|
|
445
|
+
.fg-filter-row { position: relative; border-top: 1px solid var(--fg-border); will-change: transform; }
|
|
446
|
+
.fg-filter-cell { position: absolute; top: 0; box-sizing: border-box; display: flex; align-items: center; padding: 3px 4px; border-right: 1px solid var(--fg-border); }
|
|
447
|
+
.fg-filter-input { width: 100%; height: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--fg-border); border-radius: 4px; padding: 0 6px; background: var(--fg-bg); color: var(--fg-fg); font: inherit; font-size: .92em; }
|
|
448
|
+
.fg-filter-input:focus { outline: 2px solid var(--fg-focus); outline-offset: -1px; }
|
|
449
|
+
.fg-filter-input::placeholder { color: var(--fg-muted); opacity: .7; }
|
|
450
|
+
.fg-filter-active .fg-filter-input { border-color: var(--fg-accent); }
|
|
451
|
+
.fg-filter-bad.fg-filter-input { border-color: #dc2626; }
|
|
452
|
+
.fg-rtl .fg-filter-cell { transform: scaleX(-1); direction: rtl; }
|
|
453
|
+
|
|
454
|
+
/* tooltips */
|
|
455
|
+
.fg-tooltip { position: fixed; z-index: 1000; max-width: 360px; padding: 6px 9px; border-radius: 6px; background: #1f2430; color: #fff; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
|
|
456
|
+
.fg-tooltip.fg-theme-dark { background: #e6e9f0; color: #11141b; }
|
|
457
|
+
|
|
458
|
+
/* cells changed by applyTransaction */
|
|
459
|
+
.fg-cell-flash { animation: fg-flash var(--fg-flash-duration, 1s) ease-out; }
|
|
460
|
+
@keyframes fg-flash { from { background: color-mix(in srgb, var(--fg-accent) 35%, transparent); } to { background: transparent; } }
|
|
461
|
+
.fg-cell-flash-up { animation-name: fg-flash-up; }
|
|
462
|
+
.fg-cell-flash-down { animation-name: fg-flash-down; }
|
|
463
|
+
@keyframes fg-flash-up { from { background: color-mix(in srgb, var(--fg-up, #16a34a) 32%, transparent); } to { background: transparent; } }
|
|
464
|
+
@keyframes fg-flash-down { from { background: color-mix(in srgb, var(--fg-down, #dc2626) 32%, transparent); } to { background: transparent; } }
|
|
465
|
+
@media (prefers-reduced-motion: reduce) { .fg-cell-flash { animation: none; outline: 1px solid var(--fg-accent); outline-offset: -1px; }
|
|
466
|
+
.fg-cell-flash-up { outline-color: var(--fg-up, #16a34a); }
|
|
467
|
+
.fg-cell-flash-down { outline-color: var(--fg-down, #dc2626); } }
|
|
468
|
+
|
|
469
|
+
/* editType 'row': the row being edited */
|
|
470
|
+
.fg-row-editing { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fg-accent) 45%, transparent); background: color-mix(in srgb, var(--fg-accent) 5%, var(--fg-bg)); }
|
|
471
|
+
|
|
472
|
+
/* collapsible column groups */
|
|
473
|
+
.fg-colgroup-toggle { margin-left: 6px; width: 18px; height: 18px; padding: 0; border: 1px solid var(--fg-border); border-radius: 4px; background: var(--fg-bg); color: var(--fg-muted); font: 600 12px/1 var(--fg-font); cursor: pointer; flex: none; }
|
|
474
|
+
.fg-colgroup-toggle:hover { color: var(--fg-fg); border-color: var(--fg-muted); }
|
|
475
|
+
|
|
476
|
+
/* two conditions in a column filter */
|
|
477
|
+
.fg-filter-cond { display: flex; flex-direction: column; gap: 6px; }
|
|
478
|
+
.fg-filter-join { display: flex; gap: 14px; padding: 2px 2px 0; font-size: .92em; color: var(--fg-muted); }
|
|
479
|
+
.fg-filter-join label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
|
|
480
|
+
|
|
481
|
+
/* autoHeight: grow with the rows */
|
|
482
|
+
.fg-root.fg-auto-height { height: auto; }
|
|
483
|
+
.fg-auto-height .fg-main, .fg-auto-height .fg-grid { flex: none; }
|
|
484
|
+
.fg-auto-height .fg-body { flex: none; min-height: 0; }
|
|
485
|
+
.fg-auto-height .fg-body-pane-center { overflow-y: hidden; }
|
|
486
|
+
|
|
487
|
+
.fg-sparkline { display: block; overflow: visible; }
|
|
488
|
+
|
|
489
|
+
.fg-overlay.fg-overlay-custom { pointer-events: auto; }
|
|
490
|
+
|
|
491
|
+
/* density */
|
|
492
|
+
.fg-density-compact { --fg-cell-px: 7px; }
|
|
493
|
+
.fg-density-comfortable { --fg-cell-px: 14px; }
|
|
494
|
+
|
|
495
|
+
/* conditional formats */
|
|
496
|
+
.fg-cf-bar { background-image: linear-gradient(to right, transparent var(--fg-bar-from), color-mix(in srgb, var(--fg-bar-color) 38%, transparent) var(--fg-bar-from), color-mix(in srgb, var(--fg-bar-color) 38%, transparent) var(--fg-bar-to), transparent var(--fg-bar-to)); background-repeat: no-repeat; background-size: 100% 70%; background-position: 0 50%; }
|
|
497
|
+
.fg-cf-icon { display: inline-block; margin-inline-end: 6px; font-size: .9em; line-height: 1; }
|
|
498
|
+
.fg-cf-dialog { width: 340px; }
|
|
499
|
+
.fg-cf-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
|
|
500
|
+
.fg-cf-rule { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 1px solid var(--fg-border); border-radius: 6px; }
|
|
501
|
+
.fg-cf-rule-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
502
|
+
.fg-cf-sample { flex: none; width: 34px; height: 18px; border-radius: 4px; border: 1px solid var(--fg-border); display: grid; place-items: center; font-size: 11px; }
|
|
503
|
+
.fg-cf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
|
504
|
+
.fg-cf-form > .fg-cf-wide { grid-column: 1 / -1; }
|
|
505
|
+
.fg-cf-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
506
|
+
.fg-cf-swatch { width: 30px; height: 22px; border-radius: 5px; border: 1px solid var(--fg-border); cursor: pointer; font: 600 11px/1 var(--fg-font); padding: 0; }
|
|
507
|
+
.fg-cf-swatch[aria-pressed="true"] { outline: 2px solid var(--fg-accent); outline-offset: 1px; }
|
|
508
|
+
.fg-cf-empty { color: var(--fg-muted); padding: 4px 0; }
|
|
509
|
+
|
|
510
|
+
/* AI assistant */
|
|
511
|
+
.fg-ai-panel { width: 360px; display: flex; flex-direction: column; gap: 8px; }
|
|
512
|
+
.fg-ai-log { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
|
|
513
|
+
.fg-ai-log:empty { display: none; }
|
|
514
|
+
.fg-ai-msg { padding: 7px 10px; border-radius: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 92%; }
|
|
515
|
+
.fg-ai-user { align-self: flex-end; background: var(--fg-accent); color: var(--fg-accent-fg); border-bottom-right-radius: 3px; }
|
|
516
|
+
.fg-ai-ai { align-self: flex-start; background: var(--fg-header-bg); border: 1px solid var(--fg-border); border-bottom-left-radius: 3px; }
|
|
517
|
+
.fg-ai-error { align-self: flex-start; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
|
|
518
|
+
.fg-ai-wait { color: var(--fg-muted); }
|
|
519
|
+
.fg-ai-note { margin-top: 4px; font-size: .9em; color: var(--fg-muted); }
|
|
520
|
+
.fg-ai-undo { margin-top: 6px; height: 24px; padding: 0 10px; }
|
|
521
|
+
.fg-ai-form { display: flex; gap: 6px; align-items: flex-end; }
|
|
522
|
+
.fg-ai-input { flex: 1; resize: vertical; min-height: 40px; max-height: 140px; padding: 6px 8px; font: inherit; }
|
|
523
|
+
.fg-ai-tips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
524
|
+
.fg-ai-tip { border: 1px solid var(--fg-border); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .92em; padding: 3px 10px; cursor: pointer; }
|
|
525
|
+
.fg-ai-tip:hover { background: var(--fg-row-hover); }
|