120
}
121
},true);
122
123
- const THEME_CSS=`body.finora-theme-dark{--bg:#07111f;--surface:#0f1b2d;--card:#122238;--text:#e6edf7;--text-muted:#9db0c9;--border:#263a55;--primary:#22b8c7;color:var(--text);background:var(--bg)}body.finora-theme-dark .card,body.finora-theme-dark .modal-card,body.finora-theme-dark input,body.finora-theme-dark select,body.finora-theme-dark textarea{background:#122238!important;color:#e6edf7!important;border-color:#2b405d!important}body.finora-theme-dark table th,body.finora-theme-dark table td{border-color:#2b405d!important}body.finora-theme-dark .form-row[style*="background"]{background:#0d1a2c!important}`;
123
+ const THEME_CSS=`body.finora-theme-dark{
124
+ --bg:#07111f;--surface:#0f1b2d;--card:#122238;--card-bg:#122238;
125
+ --text:#f1f5f9;--text-muted:#b8c7da;--border:#405675;
126
+ --primary:#38c6d4;--primary-hover:#22aebb;
127
+ color:var(--text);background:var(--bg);color-scheme:dark
128
+}
129
+body.finora-theme-dark .main-surface,
130
+body.finora-theme-dark .view-pane{color:var(--text)}
131
+body.finora-theme-dark .sidebar,
132
+body.finora-theme-dark .app-shell-nav.sidebar,
133
+body.finora-theme-dark .module-panel,
134
+body.finora-theme-dark .module-panel-handle,
135
+body.finora-theme-dark .card,
136
+body.finora-theme-dark .modal-card,
137
+body.finora-theme-dark .accordion-item,
138
+body.finora-theme-dark .accordion-body,
139
+body.finora-theme-dark .kpi-unit,
140
+body.finora-theme-dark .table-responsive{
141
+ background:#122238!important;color:#f1f5f9!important;border-color:#405675!important
142
+}
143
+body.finora-theme-dark h1,
144
+body.finora-theme-dark h2,
145
+body.finora-theme-dark h3,
146
+body.finora-theme-dark h4,
147
+body.finora-theme-dark h5,
148
+body.finora-theme-dark h6,
149
+body.finora-theme-dark label,
150
+body.finora-theme-dark .form-group label,
151
+body.finora-theme-dark td,
152
+body.finora-theme-dark .kpi-val,
153
+body.finora-theme-dark .report-bar-value{color:#f1f5f9!important}
154
+body.finora-theme-dark p,
155
+body.finora-theme-dark small,
156
+body.finora-theme-dark .text-muted,
157
+body.finora-theme-dark .kpi-lbl,
158
+body.finora-theme-dark .report-bar-label,
159
+body.finora-theme-dark .sidebar-footer,
160
+body.finora-theme-dark .module-group-title,
161
+body.finora-theme-dark .module-panel-head small{color:#b8c7da!important}
162
+body.finora-theme-dark .app-shell-nav .brand-copy h2,
163
+body.finora-theme-dark .module-panel-head h3,
164
+body.finora-theme-dark .module-tab,
165
+body.finora-theme-dark .module-link,
166
+body.finora-theme-dark .shell-logout{color:#f1f5f9!important}
167
+body.finora-theme-dark .module-tab:hover,
168
+body.finora-theme-dark .module-link:hover,
169
+body.finora-theme-dark .module-link.active,
170
+body.finora-theme-dark .sidebar-menu li a:hover,
171
+body.finora-theme-dark .sidebar-menu li a.active{
172
+ background:#1b3552!important;color:#a5f3fc!important
173
+}
174
+body.finora-theme-dark .module-group,
175
+body.finora-theme-dark .module-panel-head,
176
+body.finora-theme-dark .app-shell-nav .brand-box{border-color:#405675!important}
177
+body.finora-theme-dark input,
178
+body.finora-theme-dark select,
179
+body.finora-theme-dark textarea,
180
+body.finora-theme-dark .form-control{
181
+ background:#0b1728!important;color:#f8fafc!important;border-color:#526985!important
182
+}
183
+body.finora-theme-dark input::placeholder,
184
+body.finora-theme-dark textarea::placeholder{color:#b8c7da!important;opacity:1}
185
+body.finora-theme-dark .form-control:disabled,
186
+body.finora-theme-dark input:disabled,
187
+body.finora-theme-dark select:disabled{
188
+ background:#17263a!important;color:#b8c7da!important;opacity:1
189
+}
190
+body.finora-theme-dark table th{
191
+ background:#1a2b42!important;color:#f8fafc!important;border-color:#405675!important
192
+}
193
+body.finora-theme-dark table td{
194
+ background:#122238!important;color:#f1f5f9!important;border-color:#405675!important
195
+}
196
+body.finora-theme-dark .accordion-header{
197
+ background:#182940!important;color:#f1f5f9!important
198
+}
199
+body.finora-theme-dark .btn-secondary{
200
+ background:#263b55!important;color:#f8fafc!important;border-color:#526985!important
201
+}
202
+body.finora-theme-dark .finora-combobox-list{
203
+ background:#0b1728!important;border-color:#526985!important;color:#f8fafc!important
204
+}
205
+body.finora-theme-dark .finora-combobox-option{
206
+ background:#0b1728!important;color:#f8fafc!important;border-color:#334a67!important
207
+}
208
+body.finora-theme-dark .finora-combobox-option:hover,
209
+body.finora-theme-dark .finora-combobox-option:focus{
210
+ background:#1b3552!important;color:#f8fafc!important
211
+}
212
+body.finora-theme-dark .form-row[style*="background"],
213
+body.finora-theme-dark .form-group[style*="background"]{
214
+ background:#0d1a2c!important
215
+}`;
216
function ensureThemeCss(){if($('finora-theme-r2-css'))return;const s=document.createElement('style');s.id='finora-theme-r2-css';s.textContent=THEME_CSS;document.head.appendChild(s)}
217
function resolveTheme(mode){if(mode==='dark'||mode==='light')return mode;const h=new Date().getHours();return h>=7&&h<19?'light':'dark'}
218
window.finoraApplyTheme=function(){ensureThemeCss();const mode=getMySettings()?.ui_theme||'auto',r=resolveTheme(mode);document.body.classList.toggle('finora-theme-dark',r==='dark');document.documentElement.dataset.finoraTheme=r}