فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

perf/a08-paginated-reports-20261101
a02/strict-export-preflight-20261018 audit/a01-readonly-invoice-metadata-20261101 ci/a06-require-trusted-issuer-for-release ci/main-postmerge-phase-a-validation-20261020 ci/phase-a-controlled-public-release design/issue-5-commercial-corrections-adr docs/a01-a02-a05-oct23-verified-evidence docs/a01-cheque-endorsement-evidence-20261022 docs/a01-cheque-event-date-evidence-20261021 docs/a01-explicit-refund-reason-evidence-20261021 docs/a01-refund-auth-status-20261020 docs/a01-refund-trace-evidence-20261020 docs/a02-102-evidence-20261018 docs/a02-pr104-evidence-20261018 docs/a02-pr106-evidence-20261019 docs/a02-pr108-ten-tests-20261019 docs/a02-private-sql-backup-evidence-20261111 docs/a03-merge-status-sync-20261020 docs/a04-software-gate-acceptance-20261020 docs/feature-matrix-20261014 docs/finora-master-execution-playbook docs/four-phase-execution-20261014 docs/four-phase-roadmap-20261014 docs/holoo-lab-stabilization-phase1-20261111 docs/holoo-runtime-schema-audit-20261111 docs/ops-142-governance-5-1-3-20261030 docs/phase-a-a01-a02-a06-a08-verified-evidence-20261023 docs/phase-a-a01-a05-a06-evidence-20261023 docs/phase-a-independent-acceptance-evidence docs/phase-a-pr110-evidence-20261019 docs/project-status-phase-a-20261014 feat/a01-referenced-return-corrections feat/a01-referenced-returns-on-main feat/a02-atomic-opening-ledger-preflight feat/a02-holoo-compatibility-preflight feat/a02-holoo-declared-control-totals feat/a02-holoo-explicit-csv-gate feat/a02-holoo-safe-zip-intake-offline-webview2-20261030 feat/a02-offline-sql-server-provisioning-20261030 feat/a02-opening-balance-dry-run feat/a02-opening-ledger-admin-ui feat/a02-opt-in-isolated-sql-restore-executor-20261030 feat/a02-private-holoo-zip-staging-20261030 feat/a02-safe-isolated-restore-plan-20261030 feat/a02-sql-backup-header-verifyonly-20261030 feat/a03-audit-schema-atomic-events feat/a03-complete-manual-journal-audit feat/a05-cheque-treasury-reconciliation feat/a06-signed-offline-license-activation feat/a08-synthetic-performance-baseline feat/phase-a-accounting-benchmark-return-preview feat/phase-a-ledger-settlement-diagnostics feature/v2-reconciliation-20261013 fix/a01-atomic-confirm-ui-one-shot-20261031 fix/a01-cheque-clearance-explicit-account-20261023 fix/a01-cheque-contractual-due-date-validity-20261023 fix/a01-cheque-endorsement-counterparty-20261022 fix/a01-cheque-event-date-open-period-20261021 fix/a01-cumulative-return-amount-cap fix/a01-explicit-refund-reason-approval-20261021 fix/a01-manager-authorized-customer-refunds-20261020 fix/a01-no-implicit-refund fix/a01-one-shot-confirm-on-atomic-import-20261031 fix/a01-refund-and-overcollection-net-cash fix/a01-refund-correction-trace-20261020 fix/a02-atomic-excel-master-merge-20261031 fix/a02-canonical-mapping-contract-20261018 fix/a02-disable-destructive-excel-replace-20261031 fix/a02-holoo-invoice-line-coverage-20261023 fix/a02-holoo-preflight-required-invoice-lines-20261023 fix/a02-mapping-contract-20261018 fix/a02-opening-preflight-unbalanced-report fix/a02-orphan-mapping-20261018 fix/a02-private-excel-import-session-20261031 fix/a02-strict-export-input-20261019 fix/a03-append-only-full-backup-import fix/a03-append-only-write-guard fix/a03-block-transaction-clear-append-only-20261016 fix/a03-chain-validation-20261020 fix/a03-company-scoped-audit-data-access fix/a03-deny-direct-audit-write-20261019 fix/a03-escaped-expense-list-20261031 fix/a03-escaped-financial-record-ids-20261031 fix/a03-financial-ledger-actions-and-print-20261031 fix/a04-backup-checksum-preflight fix/a04-company-audit-replay-stable-compare fix/a04-company-backup-source-isolation-20261020 fix/a04-full-restore-posted-financial-integrity fix/a04-reject-mixed-company-backup-20261019 fix/a04-replace-immutable-posted-ledger fix/a04-restore-financial-journal-references fix/a04-service-source-company-boundary-20261020 fix/a05-block-inactive-treasury-settlements fix/a05-cheque-cash-evidence-reconciliation-20261023 fix/a05-cheque-ledger-and-bank-reconciliation-20261023 fix/a05-fiscal-close-invariant-gates fix/a06-backup-restore-user-privileges fix/a06-license-user-company-quota-20261023 fix/a06-malformed-trial-state-fail-closed fix/a06-offline-clock-fail-closed-20261019 fix/a07-indexeddb-blocked-startup fix/a07-offline-bundled-assets fix/a07-version-and-startup-banner fix/issue-7-company-backup-isolation fix/p0-deterministic-fractional-invoice-money-20261031 fix/p0-fractional-quantity-input-20261031 fix/p0-fractional-quantity-integrated-20261031 fix/p0-invoice-posting-invariants-20261031 fix/p0-legacy-stock-and-product-inputs-20261031 fix/p0-reports-immutable-cogs-20261101 fix/p0-verified-financial-percent-20261031 fix/p0-zero-discount-report-revenue-20261101 fix/phase-a-backup-app-version fix/phase-a-backup-integrity-checksum fix/phase-a-backup-record-id-validation-20261014 fix/phase-a-backup-version-validation-20261014 fix/phase-a-closure-pack3-20261101 fix/phase-a-entitlement-payload-validation fix/phase-a-gate-exact-evidence-20261019 fix/phase-a-pack4-stock-scope-20261101 fix/phase-a-pack5-integrated-evidence-20261101 fix/phase-a-pack6-atomic-legacy-20261101 fix/phase-a-restore-envelope-and-rollback fix/phase-a-settings-admin-gate fix/print-browser-header-footer-20261014 fix/q01-expense-security-probe-exact-option-20261031 fix/q01-financial-grid-labels-20261031 fix/q01-form-label-association-20261031 fix/q01-native-evidence-integrity-20261030 fix/q01-number-input-persian-decimal-20261031 fix/q01-responsive-dashboard-and-cheque-table-20261031 fix/q01-safe-ui-action-audit-coverage-20261031 fix/q01-visible-desktop-sidebar-and-safe-confirm-20261030 fix/roadmap-metadata-sync-20261014 gate/a03-audit-metadata-validation-20261019 integration/a02-windows-holoo-setup-candidate-20261030 license-server main perf/a07-lazy-load-excel perf/a08-cheque-reconciliation-account-index-20261023 perf/a08-paginated-reports-20261101 phase1-restore-hardening planning/holoo-execution-20261013 planning/roadmap-project-management-20261014 qa/native-click-coverage-audit-20261030 release/v2.0.0 test/a01-native-endorsement-mandatory-20261023 test/a01-native-purchase-return-guardrails test/a01-native-sale-return-financial-guardrails test/a01-safe-integer-boundary-20261019 test/a02-native-opening-dry-run-rejections test/a02-native-positive-opening-ledger test/a04-native-corrupt-fbackup-20261016 test/a04-native-encrypted-company-backup test/a04-native-encrypted-company-backup-main test/a04-native-late-transaction-rollback test/a04-native-windows-backup-recovery test/a04-real-edge-v6-v7-migration test/a04-real-native-interrupted-restore test/a05-native-draft-ledger-and-repeat-close-20261016 test/a05-native-fiscal-close-guardrails test/a07-native-multipage-print-engine test/a07-native-origin-provenance test/a07-native-webview2-offline-routes test/a07-windows-offline-startup-smoke test/a08-installed-webview2-60k-baseline test/a08-native-webview2-heap-metrics test/a08-windows-synthetic-performance-baseline test/github-write-access-20261009 test/native-win-ui-routes-after-finance-backup test/phase-a-combined-a01-a05-a08-final-evidence test/phase-a-combined-native-acceptance-matrix test/phase-a-ledger-invariants-20261014 test/phase-a-native-all-routes-on-merged-lab test/phase-a-native-encrypted-backup test/phase-a-native-finance-backup-matrix test/phase-a-native-ui-and-backup-smoke test/phase-a-windows-native-installer-lab work/a08-dispatch-activation-20261123 work/a08-memory-stability-20261123 work/finance-curated-20261123
css 738 lines 19.4 KB
Raw
1 /* ============================================================
2 Finora Pro — Main Stylesheet
3 ============================================================ */
4
5 :root {
6 --primary: #0d9488;
7 --primary-hover: #0f766e;
8 --primary-light: #ccfbf1;
9 --primary-dark: #115e59;
10 --bg: #f8fafc;
11 --card-bg: #ffffff;
12 --text: #0f172a;
13 --text-muted: #64748b;
14 --border: #e2e8f0;
15 --danger: #dc2626;
16 --success: #059669;
17 --warning: #d97706;
18 --info: #0284c7;
19 --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
20 --shadow-md: 0 4px 12px rgba(0,0,0,.08);
21 --sidebar-w: 260px;
22 --sidebar-mini: 72px;
23 --header-h: 64px;
24 --radius: 12px;
25 --font-size-base: 14px;
26 }
27
28 [data-theme="dark"] {
29 --bg: #0f172a;
30 --card-bg: #1e293b;
31 --text: #f1f5f9;
32 --text-muted: #94a3b8;
33 --border: #334155;
34 --primary-light: #134e4a;
35 --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
36 --shadow-md: 0 4px 12px rgba(0,0,0,.4);
37 }
38
39 * { box-sizing: border-box; margin: 0; padding: 0; }
40 html, body { height: 100%; }
41 body {
42 background: var(--bg);
43 color: var(--text);
44 font-family: 'Vazirmatn FD', Tahoma, sans-serif;
45 font-size: var(--font-size-base);
46 overflow-x: hidden;
47 transition: background .3s, color .3s;
48 }
49 button { cursor: pointer; font-family: inherit; }
50 input, select, textarea { font-family: inherit; font-size: inherit; }
51 a { color: inherit; }
52
53 /* Keyboard users must always be able to identify the focused action.
54 Visible only for keyboard-type focus, not ordinary pointer interaction. */
55 :where(button, a[href], input, select, textarea, [role="button"]):focus-visible {
56 outline: 3px solid var(--primary);
57 outline-offset: 3px;
58 }
59 .table-wrap[tabindex="0"]:focus-visible {
60 outline: 3px solid var(--primary);
61 outline-offset: 2px;
62 }
63 :where(button, a[href], [role="button"])[disabled] {
64 cursor: not-allowed;
65 }
66
67 /* Splash */
68 #splash {
69 position: fixed; inset: 0;
70 background: linear-gradient(135deg, var(--primary), var(--primary-dark));
71 display: flex; flex-direction: column;
72 align-items: center; justify-content: center;
73 gap: 20px; color: #fff; z-index: 9999;
74 }
75 .splash-logo { font-size: 38px; font-weight: 900; letter-spacing: 2px; }
76 .splash-spinner {
77 width: 40px; height: 40px;
78 border: 3px solid rgba(255,255,255,.3);
79 border-top-color: #fff;
80 border-radius: 50%;
81 animation: spin 1s linear infinite;
82 }
83 @keyframes spin { to { transform: rotate(360deg); } }
84
85 /* App Layout */
86 .app { display: flex; min-height: 100vh; }
87
88 .sidebar {
89 width: var(--sidebar-w);
90 background: var(--card-bg);
91 border-left: 1px solid var(--border);
92 position: fixed; top: 0; bottom: 0; right: 0;
93 z-index: 100;
94 display: flex; flex-direction: column;
95 transition: width .25s ease;
96 }
97 .sidebar.collapsed { width: var(--sidebar-mini); }
98 .sidebar.collapsed .hide-on-collapse { display: none; }
99 .sidebar.collapsed .sidebar-brand { justify-content: center; padding: 20px 0; }
100 .sidebar.collapsed .sidebar-menu a { justify-content: center; padding: 12px; }
101 .sidebar.collapsed .sidebar-menu a .label { display: none; }
102 .sidebar.collapsed .user-info { display: none; }
103
104 .sidebar-brand {
105 padding: 18px 20px;
106 border-bottom: 1px solid var(--border);
107 display: flex; align-items: center; gap: 12px;
108 min-height: var(--header-h);
109 }
110 .brand-logo {
111 width: 42px; height: 42px;
112 background: linear-gradient(135deg, var(--primary), var(--primary-dark));
113 border-radius: 10px;
114 display: flex; align-items: center; justify-content: center;
115 color: #fff; font-weight: 800; font-size: 13px;
116 flex-shrink: 0;
117 }
118 .brand-text h1 { font-size: 15px; font-weight: 800; }
119 .brand-text small { font-size: 10.5px; color: var(--text-muted); }
120
121 .sidebar-menu { list-style: none; flex: 1; overflow-y: auto; padding: 12px 8px; }
122 .sidebar-menu a {
123 display: flex; align-items: center; gap: 12px;
124 padding: 11px 14px; border-radius: 10px;
125 color: var(--text); text-decoration: none;
126 font-size: 13.5px; font-weight: 500;
127 margin-bottom: 2px; cursor: pointer;
128 transition: all .15s; white-space: nowrap;
129 }
130 .sidebar-menu a:hover { background: var(--primary-light); }
131 .sidebar-menu a.active {
132 background: var(--primary); color: #fff;
133 font-weight: 700; box-shadow: var(--shadow-sm);
134 }
135 .sidebar-menu a .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
136
137 .sidebar-footer { padding: 10px; border-top: 1px solid var(--border); }
138 .user-chip {
139 display: flex; align-items: center; gap: 10px;
140 padding: 8px; border-radius: 10px;
141 background: var(--bg);
142 }
143 .user-avatar {
144 width: 34px; height: 34px; border-radius: 50%;
145 background: var(--primary); color: #fff;
146 display: flex; align-items: center; justify-content: center;
147 font-weight: 700; font-size: 13px; flex-shrink: 0;
148 }
149 .user-info { flex: 1; min-width: 0; }
150 .user-info strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
151 .user-info small { font-size: 10.5px; color: var(--text-muted); }
152
153 .main {
154 margin-right: var(--sidebar-w);
155 flex: 1; min-height: 100vh;
156 transition: margin .25s ease;
157 max-width: 100%; overflow-x: hidden;
158 }
159 .main.sidebar-collapsed { margin-right: var(--sidebar-mini); }
160
161 /* Header */
162 .header {
163 height: var(--header-h);
164 background: var(--card-bg);
165 border-bottom: 1px solid var(--border);
166 position: sticky; top: 0; z-index: 90;
167 display: flex; align-items: center;
168 padding: 0 20px; gap: 14px;
169 }
170 .hamburger {
171 background: none; border: none;
172 font-size: 22px; color: var(--text);
173 padding: 6px 10px; border-radius: 8px;
174 display: inline-flex; align-items: center; justify-content: center;
175 }
176 .hamburger:hover { background: var(--bg); }
177
178 .header-title { flex: 1; min-width: 0; }
179 .header-title h2 {
180 font-size: 15px; font-weight: 700;
181 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
182 }
183 .header-title small {
184 font-size: 11px; color: var(--text-muted);
185 display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
186 }
187
188 .header-stats { display: flex; gap: 8px; align-items: center; }
189 @media (max-width: 1000px) { .header-stats { display: none; } }
190 .stat-chip {
191 display: flex; flex-direction: column;
192 padding: 5px 11px; border-radius: 8px;
193 background: var(--bg); border: 1px solid var(--border);
194 font-size: 11px; line-height: 1.3; min-width: 60px;
195 }
196 .stat-chip strong { color: var(--primary); font-size: 13px; font-weight: 800; }
197 .stat-chip small { color: var(--text-muted); font-size: 10px; }
198
199 .header-tools { display: flex; gap: 6px; align-items: center; }
200 .icon-btn {
201 background: none; border: 1px solid var(--border);
202 color: var(--text); width: 38px; height: 38px;
203 border-radius: 10px;
204 display: flex; align-items: center; justify-content: center;
205 font-size: 16px; transition: all .15s;
206 position: relative;
207 }
208 .icon-btn:hover { background: var(--bg); border-color: var(--primary); }
209
210 /* Content */
211 .content {
212 padding: 22px;
213 padding-bottom: 100px;
214 min-height: calc(100vh - var(--header-h));
215 }
216
217 .page-title { margin-bottom: 18px; }
218 .page-title h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
219 .page-title p { color: var(--text-muted); font-size: 13px; }
220
221 .card {
222 background: var(--card-bg);
223 border: 1px solid var(--border);
224 border-radius: var(--radius);
225 padding: 20px;
226 box-shadow: var(--shadow-sm);
227 margin-bottom: 16px;
228 }
229 .card-title {
230 font-size: 15px; font-weight: 700;
231 margin-bottom: 14px;
232 display: flex; align-items: center;
233 justify-content: space-between; gap: 10px;
234 }
235
236 .grid-kpi {
237 display: grid;
238 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
239 gap: 14px; margin-bottom: 20px;
240 }
241
242 /* Buttons */
243 .btn {
244 display: inline-flex; align-items: center; justify-content: center;
245 gap: 8px; padding: 10px 18px; min-height: 42px;
246 background: var(--primary); color: #fff;
247 border: none; border-radius: 10px;
248 font-size: 13.5px; font-weight: 700;
249 transition: all .15s; text-decoration: none;
250 font-family: inherit;
251 }
252 .btn:hover {
253 background: var(--primary-hover);
254 transform: translateY(-1px);
255 box-shadow: var(--shadow-md);
256 }
257 .btn-secondary {
258 background: var(--bg); color: var(--text);
259 border: 1px solid var(--border);
260 }
261 .btn-secondary:hover { background: var(--card-bg); border-color: var(--primary); }
262 .btn-danger { background: var(--danger); }
263 .btn-success { background: var(--success); }
264 .btn-warning { background: var(--warning); }
265
266 /* Notifications must render above invoice and other modal backdrops. */
267 .toast-container {
268 position: fixed; top: 20px; left: 20px;
269 z-index: 2147483647;
270 display: flex; flex-direction: column;
271 gap: 10px; max-width: min(380px, calc(100vw - 28px));
272 max-height: min(60vh, 520px);
273 overflow-y: auto; overflow-x: hidden;
274 padding: 2px 4px 6px;
275 overscroll-behavior: contain;
276 }
277 .toast {
278 background: var(--card-bg);
279 border: 1px solid var(--border);
280 border-right: 4px solid var(--primary);
281 border-radius: 10px;
282 padding: 14px 16px;
283 box-shadow: var(--shadow-md);
284 display: flex; gap: 12px; align-items: flex-start;
285 animation: slideIn .3s ease; min-width: 280px;
286 }
287 .toast-success { border-right-color: var(--success); }
288 .toast-error { border-right-color: var(--danger); }
289 .toast-warning { border-right-color: var(--warning); }
290 .toast-info { border-right-color: var(--info); }
291 .toast-icon { font-size: 20px; flex-shrink: 0; }
292 .toast-content { flex: 1; min-width: 0; }
293 .toast-content strong { display: block; font-size: 13px; margin-bottom: 2px; }
294 .toast-content p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
295 .toast-close {
296 background: none; border: none;
297 color: var(--text-muted); font-size: 18px;
298 padding: 0; width: 20px; height: 20px;
299 display: flex; align-items: center; justify-content: center;
300 }
301 @keyframes slideIn {
302 from { transform: translateX(-100%); opacity: 0; }
303 to { transform: translateX(0); opacity: 1; }
304 }
305 @keyframes slideOut {
306 from { transform: translateX(0); opacity: 1; }
307 to { transform: translateX(-100%); opacity: 0; }
308 }
309
310 /* Utilities */
311 .hidden { display: none !important; }
312 .text-muted { color: var(--text-muted); }
313
314 /* Scrollbar */
315 ::-webkit-scrollbar { width: 8px; height: 8px; }
316 ::-webkit-scrollbar-track { background: var(--bg); }
317 ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
318 ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
319 /* ===== Tables ===== */
320 .table-wrap {
321 background: var(--card-bg);
322 border: 1px solid var(--border);
323 border-radius: var(--radius);
324 max-width: 100%;
325 overflow-x: auto;
326 overflow-y: hidden;
327 overscroll-behavior-x: contain;
328 }
329 .table-wrap table {
330 width: 100%;
331 border-collapse: collapse;
332 }
333 .table-wrap th {
334 background: var(--bg);
335 padding: 12px 14px;
336 text-align: right;
337 font-size: 12.5px;
338 font-weight: 700;
339 color: var(--text-muted);
340 border-bottom: 1px solid var(--border);
341 white-space: nowrap;
342 }
343 .table-wrap td {
344 padding: 12px 14px;
345 border-bottom: 1px solid var(--border);
346 font-size: 13px;
347 vertical-align: middle;
348 }
349 .table-wrap tr:last-child td { border-bottom: none; }
350 .table-wrap tr:hover td { background: var(--bg); }
351
352 /* ===== Form ===== */
353 .form-group { margin-bottom: 14px; }
354 .form-label {
355 display: block;
356 font-size: 12.5px;
357 font-weight: 600;
358 color: var(--text-muted);
359 margin-bottom: 6px;
360 }
361 .form-label .req { color: var(--danger); }
362 .form-control {
363 width: 100%;
364 min-height: 42px;
365 padding: 9px 12px;
366 border: 1px solid var(--border);
367 border-radius: 9px;
368 background: var(--card-bg);
369 color: var(--text);
370 font-size: 13.5px;
371 font-family: inherit;
372 outline: none;
373 transition: border-color .15s;
374 }
375 .form-control:focus {
376 border-color: var(--primary);
377 box-shadow: 0 0 0 3px var(--primary-light);
378 }
379 .form-row {
380 display: grid;
381 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
382 gap: 12px;
383 }
384 textarea.form-control { min-height: 80px; resize: vertical; }
385
386 /* ===== Modal ===== */
387 .modal-backdrop {
388 position: fixed;
389 inset: 0;
390 background: rgba(15,23,42,.6);
391 backdrop-filter: blur(4px);
392 display: flex;
393 align-items: center;
394 justify-content: center;
395 padding: 20px;
396 z-index: 9999;
397 animation: fadeIn .2s ease;
398 }
399 @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
400 .modal-card {
401 background: var(--card-bg);
402 border-radius: 14px;
403 box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
404 max-height: 90vh;
405 display: flex;
406 flex-direction: column;
407 animation: scaleIn .2s ease;
408 }
409 .modal-card.modal-sm { width: 100%; max-width: 420px; }
410 .modal-card.modal-md { width: 100%; max-width: 620px; }
411 .modal-card.modal-lg { width: 100%; max-width: 900px; }
412 @keyframes scaleIn {
413 from { transform: scale(.95); opacity: 0; }
414 to { transform: scale(1); opacity: 1; }
415 }
416 .modal-header {
417 padding: 16px 20px;
418 border-bottom: 1px solid var(--border);
419 display: flex;
420 align-items: center;
421 justify-content: space-between;
422 gap: 10px;
423 }
424 .modal-title { font-size: 15px; font-weight: 700; }
425 .modal-close {
426 background: none; border: none;
427 font-size: 22px; color: var(--text-muted);
428 width: 32px; height: 32px;
429 border-radius: 8px;
430 display: flex; align-items: center; justify-content: center;
431 }
432 .modal-close:hover { background: var(--bg); }
433 .modal-body { padding: 20px; overflow-y: auto; flex: 1; }
434 .modal-footer {
435 padding: 14px 20px;
436 border-top: 1px solid var(--border);
437 display: flex; gap: 10px; justify-content: flex-end;
438 }
439
440 /* ===== Tabs ===== */
441 .tabs {
442 display: flex;
443 gap: 4px;
444 margin-bottom: 16px;
445 border-bottom: 1px solid var(--border);
446 }
447 .tab-btn {
448 background: none; border: none;
449 padding: 10px 16px;
450 font-size: 13.5px;
451 font-weight: 600;
452 color: var(--text-muted);
453 cursor: pointer;
454 border-bottom: 2px solid transparent;
455 margin-bottom: -1px;
456 font-family: inherit;
457 transition: all .15s;
458 }
459 .tab-btn:hover { color: var(--text); }
460 .tab-btn.active {
461 color: var(--primary);
462 border-bottom-color: var(--primary);
463 }
464
465 /* ===== Badge ===== */
466 .badge {
467 display: inline-block;
468 padding: 3px 8px;
469 border-radius: 6px;
470 font-size: 11px;
471 font-weight: 600;
472 }
473 .badge-success { background: #d1fae5; color: #065f46; }
474 .badge-muted { background: var(--bg); color: var(--text-muted); }
475 .badge-warning { background: #fef3c7; color: #92400e; }
476 .badge-danger { background: #fee2e2; color: #991b1b; }
477
478 /* ===== Empty state ===== */
479 .empty-state {
480 text-align: center;
481 padding: 60px 20px;
482 color: var(--text-muted);
483 }
484 .empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: .4; }
485 .empty-state h3 {
486 font-size: 16px; font-weight: 700;
487 margin-bottom: 8px; color: var(--text);
488 }
489 .empty-state p { font-size: 13px; margin-bottom: 20px; }
490
491 /* ===== Toolbar ===== */
492 .toolbar {
493 display: flex; gap: 10px;
494 align-items: center; flex-wrap: wrap;
495 margin-bottom: 16px;
496 }
497 .search-input-wrap {
498 position: relative; flex: 1; min-width: 200px;
499 }
500 .search-input-wrap .icon {
501 position: absolute;
502 right: 12px; top: 50%;
503 transform: translateY(-50%);
504 color: var(--text-muted);
505 pointer-events: none;
506 }
507 .search-input-wrap input { padding-right: 38px; }
508
509 /* ===== Table actions ===== */
510 .row-actions {
511 display: flex; gap: 4px; justify-content: flex-end;
512 }
513 .icon-btn-sm {
514 background: none;
515 border: 1px solid var(--border);
516 width: 32px; height: 32px;
517 border-radius: 8px;
518 display: flex; align-items: center; justify-content: center;
519 font-size: 13px; color: var(--text-muted);
520 cursor: pointer; transition: all .15s;
521 }
522 .icon-btn-sm:hover {
523 background: var(--bg);
524 border-color: var(--primary);
525 color: var(--primary);
526 }
527 .icon-btn-sm.danger:hover {
528 border-color: var(--danger); color: var(--danger);
529 }
530
531 /* ===== Inline add button ===== */
532 .btn-add-inline {
533 background: var(--primary-light);
534 color: var(--primary);
535 border: 1px dashed var(--primary);
536 padding: 8px 12px;
537 border-radius: 8px;
538 font-size: 12.5px;
539 font-weight: 600;
540 width: 100%;
541 margin-top: 6px;
542 cursor: pointer;
543 font-family: inherit;
544 transition: all .15s;
545 }
546 .btn-add-inline:hover {
547 background: var(--primary);
548 color: #fff;
549 }
550 /* ===== Print template cards ===== */
551 .print-tpl-card {
552 display: flex;
553 flex-direction: column;
554 align-items: center;
555 padding: 14px 8px;
556 border: 2px solid var(--border);
557 border-radius: 10px;
558 cursor: pointer;
559 transition: all .15s;
560 text-align: center;
561 background: var(--card-bg);
562 }
563 .print-tpl-card:hover {
564 border-color: var(--primary);
565 transform: translateY(-2px);
566 }
567 .print-tpl-card.active {
568 border-color: var(--primary);
569 background: var(--primary-light);
570 }
571 /* ===== Account Cards ===== */
572 .account-grid {
573 display: grid;
574 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
575 gap: 14px;
576 margin-bottom: 20px;
577 }
578 .account-card {
579 background: var(--card-bg);
580 border: 1px solid var(--border);
581 border-radius: var(--radius);
582 padding: 18px;
583 transition: all .15s;
584 box-shadow: var(--shadow-sm);
585 }
586 .account-card:hover {
587 box-shadow: var(--shadow-md);
588 transform: translateY(-2px);
589 }
590 /* ===== Settings Cards ===== */
591 .settings-grid {
592 display: grid;
593 grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
594 gap: 16px;
595 margin-bottom: 20px;
596 }
597 .settings-card {
598 padding: 20px;
599 margin: 0;
600 }
601 .settings-card-header {
602 display: flex;
603 gap: 14px;
604 align-items: flex-start;
605 margin-bottom: 16px;
606 }
607 .settings-card-icon {
608 width: 46px;
609 height: 46px;
610 border-radius: 12px;
611 background: linear-gradient(135deg, var(--primary), var(--primary-dark));
612 color: #fff;
613 display: flex;
614 align-items: center;
615 justify-content: center;
616 font-size: 22px;
617 flex-shrink: 0;
618 }
619 .settings-card-title {
620 font-size: 15px;
621 font-weight: 700;
622 margin-bottom: 4px;
623 }
624 .settings-card-desc {
625 font-size: 12px;
626 color: var(--text-muted);
627 line-height: 1.6;
628 }
629 .company-preview {
630 padding: 12px 14px;
631 background: var(--bg);
632 border-radius: 10px;
633 margin-bottom: 14px;
634 border-right: 3px solid var(--primary);
635 }
636 .empty-mini {
637 padding: 20px;
638 text-align: center;
639 background: var(--bg);
640 border-radius: 10px;
641 font-size: 12.5px;
642 color: var(--text-muted);
643 margin-bottom: 14px;
644 }
645 .backup-warning {
646 padding: 10px 14px;
647 background: #fef3c7;
648 border: 1px solid #fcd34d;
649 border-radius: 8px;
650 font-size: 12px;
651 color: #78350f;
652 line-height: 1.7;
653 margin-bottom: 4px;
654 }
655 [data-theme="dark"] .backup-warning {
656 background: #422006;
657 border-color: #92400e;
658 color: #fed7aa;
659 }
660 .stats-grid {
661 display: grid;
662 grid-template-columns: repeat(3, 1fr);
663 gap: 10px;
664 }
665 .stat-mini {
666 text-align: center;
667 padding: 12px 6px;
668 background: var(--bg);
669 border-radius: 10px;
670 }
671 /* ===== Dashboard KPI Cards ===== */
672 .kpi-card {
673 display: flex;
674 align-items: center;
675 gap: 12px;
676 padding: 14px 16px !important;
677 }
678 .kpi-card-icon {
679 width: 38px;
680 height: 38px;
681 border-radius: 10px;
682 display: flex;
683 align-items: center;
684 justify-content: center;
685 font-size: 18px;
686 flex-shrink: 0;
687 }
688
689 /* ===== Chart Tabs ===== */
690 .chart-tabs {
691 display: flex;
692 gap: 4px;
693 background: var(--bg);
694 padding: 3px;
695 border-radius: 10px;
696 }
697 .chart-tab {
698 padding: 6px 12px;
699 border: none;
700 background: transparent;
701 color: var(--text-muted);
702 font-size: 12px;
703 font-weight: 600;
704 border-radius: 8px;
705 cursor: pointer;
706 font-family: inherit;
707 transition: all .15s;
708 }
709 .chart-tab:hover { color: var(--text); }
710 .chart-tab.active {
711 background: var(--card-bg);
712 color: var(--primary);
713 box-shadow: 0 1px 3px rgba(0,0,0,.08);
714 }
715
716 /* ===== Dashboard Account Cards ===== */
717 .dash-account-card {
718 background: var(--bg);
719 padding: 10px 12px;
720 border-radius: 10px;
721 transition: all .15s;
722 }
723 .dash-account-card:hover {
724 background: var(--primary-light);
725 }
726
727 /* ===== Dashboard Layout ===== */
728 .dash-grid-main,
729 .dash-grid-main > * {
730 min-width: 0;
731 }
732 @media (max-width: 1200px) {
733 /* The sidebar consumes part of the viewport. Switch to one column before
734 the remaining content pane becomes narrower than the chart's intrinsic width. */
735 .dash-grid-main {
736 grid-template-columns: minmax(0, 1fr) !important;
737 }
738 }