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

test/a01-safe-integer-boundary-20261019
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 712 lines 18.5 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 /* Splash */
54 #splash {
55 position: fixed; inset: 0;
56 background: linear-gradient(135deg, var(--primary), var(--primary-dark));
57 display: flex; flex-direction: column;
58 align-items: center; justify-content: center;
59 gap: 20px; color: #fff; z-index: 9999;
60 }
61 .splash-logo { font-size: 38px; font-weight: 900; letter-spacing: 2px; }
62 .splash-spinner {
63 width: 40px; height: 40px;
64 border: 3px solid rgba(255,255,255,.3);
65 border-top-color: #fff;
66 border-radius: 50%;
67 animation: spin 1s linear infinite;
68 }
69 @keyframes spin { to { transform: rotate(360deg); } }
70
71 /* App Layout */
72 .app { display: flex; min-height: 100vh; }
73
74 .sidebar {
75 width: var(--sidebar-w);
76 background: var(--card-bg);
77 border-left: 1px solid var(--border);
78 position: fixed; top: 0; bottom: 0; right: 0;
79 z-index: 100;
80 display: flex; flex-direction: column;
81 transition: width .25s ease;
82 }
83 .sidebar.collapsed { width: var(--sidebar-mini); }
84 .sidebar.collapsed .hide-on-collapse { display: none; }
85 .sidebar.collapsed .sidebar-brand { justify-content: center; padding: 20px 0; }
86 .sidebar.collapsed .sidebar-menu a { justify-content: center; padding: 12px; }
87 .sidebar.collapsed .sidebar-menu a .label { display: none; }
88 .sidebar.collapsed .user-info { display: none; }
89
90 .sidebar-brand {
91 padding: 18px 20px;
92 border-bottom: 1px solid var(--border);
93 display: flex; align-items: center; gap: 12px;
94 min-height: var(--header-h);
95 }
96 .brand-logo {
97 width: 42px; height: 42px;
98 background: linear-gradient(135deg, var(--primary), var(--primary-dark));
99 border-radius: 10px;
100 display: flex; align-items: center; justify-content: center;
101 color: #fff; font-weight: 800; font-size: 13px;
102 flex-shrink: 0;
103 }
104 .brand-text h1 { font-size: 15px; font-weight: 800; }
105 .brand-text small { font-size: 10.5px; color: var(--text-muted); }
106
107 .sidebar-menu { list-style: none; flex: 1; overflow-y: auto; padding: 12px 8px; }
108 .sidebar-menu a {
109 display: flex; align-items: center; gap: 12px;
110 padding: 11px 14px; border-radius: 10px;
111 color: var(--text); text-decoration: none;
112 font-size: 13.5px; font-weight: 500;
113 margin-bottom: 2px; cursor: pointer;
114 transition: all .15s; white-space: nowrap;
115 }
116 .sidebar-menu a:hover { background: var(--primary-light); }
117 .sidebar-menu a.active {
118 background: var(--primary); color: #fff;
119 font-weight: 700; box-shadow: var(--shadow-sm);
120 }
121 .sidebar-menu a .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
122
123 .sidebar-footer { padding: 10px; border-top: 1px solid var(--border); }
124 .user-chip {
125 display: flex; align-items: center; gap: 10px;
126 padding: 8px; border-radius: 10px;
127 background: var(--bg);
128 }
129 .user-avatar {
130 width: 34px; height: 34px; border-radius: 50%;
131 background: var(--primary); color: #fff;
132 display: flex; align-items: center; justify-content: center;
133 font-weight: 700; font-size: 13px; flex-shrink: 0;
134 }
135 .user-info { flex: 1; min-width: 0; }
136 .user-info strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
137 .user-info small { font-size: 10.5px; color: var(--text-muted); }
138
139 .main {
140 margin-right: var(--sidebar-w);
141 flex: 1; min-height: 100vh;
142 transition: margin .25s ease;
143 max-width: 100%; overflow-x: hidden;
144 }
145 .main.sidebar-collapsed { margin-right: var(--sidebar-mini); }
146
147 /* Header */
148 .header {
149 height: var(--header-h);
150 background: var(--card-bg);
151 border-bottom: 1px solid var(--border);
152 position: sticky; top: 0; z-index: 90;
153 display: flex; align-items: center;
154 padding: 0 20px; gap: 14px;
155 }
156 .hamburger {
157 background: none; border: none;
158 font-size: 22px; color: var(--text);
159 padding: 6px 10px; border-radius: 8px;
160 display: none;
161 }
162 .hamburger:hover { background: var(--bg); }
163 @media (max-width: 900px) { .hamburger { display: block; } }
164
165 .header-title { flex: 1; min-width: 0; }
166 .header-title h2 {
167 font-size: 15px; font-weight: 700;
168 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
169 }
170 .header-title small {
171 font-size: 11px; color: var(--text-muted);
172 display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
173 }
174
175 .header-stats { display: flex; gap: 8px; align-items: center; }
176 @media (max-width: 1000px) { .header-stats { display: none; } }
177 .stat-chip {
178 display: flex; flex-direction: column;
179 padding: 5px 11px; border-radius: 8px;
180 background: var(--bg); border: 1px solid var(--border);
181 font-size: 11px; line-height: 1.3; min-width: 60px;
182 }
183 .stat-chip strong { color: var(--primary); font-size: 13px; font-weight: 800; }
184 .stat-chip small { color: var(--text-muted); font-size: 10px; }
185
186 .header-tools { display: flex; gap: 6px; align-items: center; }
187 .icon-btn {
188 background: none; border: 1px solid var(--border);
189 color: var(--text); width: 38px; height: 38px;
190 border-radius: 10px;
191 display: flex; align-items: center; justify-content: center;
192 font-size: 16px; transition: all .15s;
193 position: relative;
194 }
195 .icon-btn:hover { background: var(--bg); border-color: var(--primary); }
196
197 /* Content */
198 .content {
199 padding: 22px;
200 padding-bottom: 100px;
201 min-height: calc(100vh - var(--header-h));
202 }
203
204 .page-title { margin-bottom: 18px; }
205 .page-title h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
206 .page-title p { color: var(--text-muted); font-size: 13px; }
207
208 .card {
209 background: var(--card-bg);
210 border: 1px solid var(--border);
211 border-radius: var(--radius);
212 padding: 20px;
213 box-shadow: var(--shadow-sm);
214 margin-bottom: 16px;
215 }
216 .card-title {
217 font-size: 15px; font-weight: 700;
218 margin-bottom: 14px;
219 display: flex; align-items: center;
220 justify-content: space-between; gap: 10px;
221 }
222
223 .grid-kpi {
224 display: grid;
225 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
226 gap: 14px; margin-bottom: 20px;
227 }
228
229 /* Buttons */
230 .btn {
231 display: inline-flex; align-items: center; justify-content: center;
232 gap: 8px; padding: 10px 18px; min-height: 42px;
233 background: var(--primary); color: #fff;
234 border: none; border-radius: 10px;
235 font-size: 13.5px; font-weight: 700;
236 transition: all .15s; text-decoration: none;
237 font-family: inherit;
238 }
239 .btn:hover {
240 background: var(--primary-hover);
241 transform: translateY(-1px);
242 box-shadow: var(--shadow-md);
243 }
244 .btn-secondary {
245 background: var(--bg); color: var(--text);
246 border: 1px solid var(--border);
247 }
248 .btn-secondary:hover { background: var(--card-bg); border-color: var(--primary); }
249 .btn-danger { background: var(--danger); }
250 .btn-success { background: var(--success); }
251 .btn-warning { background: var(--warning); }
252
253 /* Notifications must render above invoice and other modal backdrops. */
254 .toast-container {
255 position: fixed; top: 20px; left: 20px;
256 z-index: 2147483647;
257 display: flex; flex-direction: column;
258 gap: 10px; max-width: 380px;
259 }
260 .toast {
261 background: var(--card-bg);
262 border: 1px solid var(--border);
263 border-right: 4px solid var(--primary);
264 border-radius: 10px;
265 padding: 14px 16px;
266 box-shadow: var(--shadow-md);
267 display: flex; gap: 12px; align-items: flex-start;
268 animation: slideIn .3s ease; min-width: 280px;
269 }
270 .toast-success { border-right-color: var(--success); }
271 .toast-error { border-right-color: var(--danger); }
272 .toast-warning { border-right-color: var(--warning); }
273 .toast-info { border-right-color: var(--info); }
274 .toast-icon { font-size: 20px; flex-shrink: 0; }
275 .toast-content { flex: 1; min-width: 0; }
276 .toast-content strong { display: block; font-size: 13px; margin-bottom: 2px; }
277 .toast-content p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
278 .toast-close {
279 background: none; border: none;
280 color: var(--text-muted); font-size: 18px;
281 padding: 0; width: 20px; height: 20px;
282 display: flex; align-items: center; justify-content: center;
283 }
284 @keyframes slideIn {
285 from { transform: translateX(-100%); opacity: 0; }
286 to { transform: translateX(0); opacity: 1; }
287 }
288 @keyframes slideOut {
289 from { transform: translateX(0); opacity: 1; }
290 to { transform: translateX(-100%); opacity: 0; }
291 }
292
293 /* Utilities */
294 .hidden { display: none !important; }
295 .text-muted { color: var(--text-muted); }
296
297 /* Scrollbar */
298 ::-webkit-scrollbar { width: 8px; height: 8px; }
299 ::-webkit-scrollbar-track { background: var(--bg); }
300 ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
301 ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
302 /* ===== Tables ===== */
303 .table-wrap {
304 background: var(--card-bg);
305 border: 1px solid var(--border);
306 border-radius: var(--radius);
307 overflow: hidden;
308 }
309 .table-wrap table {
310 width: 100%;
311 border-collapse: collapse;
312 }
313 .table-wrap th {
314 background: var(--bg);
315 padding: 12px 14px;
316 text-align: right;
317 font-size: 12.5px;
318 font-weight: 700;
319 color: var(--text-muted);
320 border-bottom: 1px solid var(--border);
321 white-space: nowrap;
322 }
323 .table-wrap td {
324 padding: 12px 14px;
325 border-bottom: 1px solid var(--border);
326 font-size: 13px;
327 vertical-align: middle;
328 }
329 .table-wrap tr:last-child td { border-bottom: none; }
330 .table-wrap tr:hover td { background: var(--bg); }
331
332 /* ===== Form ===== */
333 .form-group { margin-bottom: 14px; }
334 .form-label {
335 display: block;
336 font-size: 12.5px;
337 font-weight: 600;
338 color: var(--text-muted);
339 margin-bottom: 6px;
340 }
341 .form-label .req { color: var(--danger); }
342 .form-control {
343 width: 100%;
344 min-height: 42px;
345 padding: 9px 12px;
346 border: 1px solid var(--border);
347 border-radius: 9px;
348 background: var(--card-bg);
349 color: var(--text);
350 font-size: 13.5px;
351 font-family: inherit;
352 outline: none;
353 transition: border-color .15s;
354 }
355 .form-control:focus {
356 border-color: var(--primary);
357 box-shadow: 0 0 0 3px var(--primary-light);
358 }
359 .form-row {
360 display: grid;
361 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
362 gap: 12px;
363 }
364 textarea.form-control { min-height: 80px; resize: vertical; }
365
366 /* ===== Modal ===== */
367 .modal-backdrop {
368 position: fixed;
369 inset: 0;
370 background: rgba(15,23,42,.6);
371 backdrop-filter: blur(4px);
372 display: flex;
373 align-items: center;
374 justify-content: center;
375 padding: 20px;
376 z-index: 9999;
377 animation: fadeIn .2s ease;
378 }
379 @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
380 .modal-card {
381 background: var(--card-bg);
382 border-radius: 14px;
383 box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
384 max-height: 90vh;
385 display: flex;
386 flex-direction: column;
387 animation: scaleIn .2s ease;
388 }
389 .modal-card.modal-sm { width: 100%; max-width: 420px; }
390 .modal-card.modal-md { width: 100%; max-width: 620px; }
391 .modal-card.modal-lg { width: 100%; max-width: 900px; }
392 @keyframes scaleIn {
393 from { transform: scale(.95); opacity: 0; }
394 to { transform: scale(1); opacity: 1; }
395 }
396 .modal-header {
397 padding: 16px 20px;
398 border-bottom: 1px solid var(--border);
399 display: flex;
400 align-items: center;
401 justify-content: space-between;
402 gap: 10px;
403 }
404 .modal-title { font-size: 15px; font-weight: 700; }
405 .modal-close {
406 background: none; border: none;
407 font-size: 22px; color: var(--text-muted);
408 width: 32px; height: 32px;
409 border-radius: 8px;
410 display: flex; align-items: center; justify-content: center;
411 }
412 .modal-close:hover { background: var(--bg); }
413 .modal-body { padding: 20px; overflow-y: auto; flex: 1; }
414 .modal-footer {
415 padding: 14px 20px;
416 border-top: 1px solid var(--border);
417 display: flex; gap: 10px; justify-content: flex-end;
418 }
419
420 /* ===== Tabs ===== */
421 .tabs {
422 display: flex;
423 gap: 4px;
424 margin-bottom: 16px;
425 border-bottom: 1px solid var(--border);
426 }
427 .tab-btn {
428 background: none; border: none;
429 padding: 10px 16px;
430 font-size: 13.5px;
431 font-weight: 600;
432 color: var(--text-muted);
433 cursor: pointer;
434 border-bottom: 2px solid transparent;
435 margin-bottom: -1px;
436 font-family: inherit;
437 transition: all .15s;
438 }
439 .tab-btn:hover { color: var(--text); }
440 .tab-btn.active {
441 color: var(--primary);
442 border-bottom-color: var(--primary);
443 }
444
445 /* ===== Badge ===== */
446 .badge {
447 display: inline-block;
448 padding: 3px 8px;
449 border-radius: 6px;
450 font-size: 11px;
451 font-weight: 600;
452 }
453 .badge-success { background: #d1fae5; color: #065f46; }
454 .badge-muted { background: var(--bg); color: var(--text-muted); }
455 .badge-warning { background: #fef3c7; color: #92400e; }
456 .badge-danger { background: #fee2e2; color: #991b1b; }
457
458 /* ===== Empty state ===== */
459 .empty-state {
460 text-align: center;
461 padding: 60px 20px;
462 color: var(--text-muted);
463 }
464 .empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: .4; }
465 .empty-state h3 {
466 font-size: 16px; font-weight: 700;
467 margin-bottom: 8px; color: var(--text);
468 }
469 .empty-state p { font-size: 13px; margin-bottom: 20px; }
470
471 /* ===== Toolbar ===== */
472 .toolbar {
473 display: flex; gap: 10px;
474 align-items: center; flex-wrap: wrap;
475 margin-bottom: 16px;
476 }
477 .search-input-wrap {
478 position: relative; flex: 1; min-width: 200px;
479 }
480 .search-input-wrap .icon {
481 position: absolute;
482 right: 12px; top: 50%;
483 transform: translateY(-50%);
484 color: var(--text-muted);
485 pointer-events: none;
486 }
487 .search-input-wrap input { padding-right: 38px; }
488
489 /* ===== Table actions ===== */
490 .row-actions {
491 display: flex; gap: 4px; justify-content: flex-end;
492 }
493 .icon-btn-sm {
494 background: none;
495 border: 1px solid var(--border);
496 width: 32px; height: 32px;
497 border-radius: 8px;
498 display: flex; align-items: center; justify-content: center;
499 font-size: 13px; color: var(--text-muted);
500 cursor: pointer; transition: all .15s;
501 }
502 .icon-btn-sm:hover {
503 background: var(--bg);
504 border-color: var(--primary);
505 color: var(--primary);
506 }
507 .icon-btn-sm.danger:hover {
508 border-color: var(--danger); color: var(--danger);
509 }
510
511 /* ===== Inline add button ===== */
512 .btn-add-inline {
513 background: var(--primary-light);
514 color: var(--primary);
515 border: 1px dashed var(--primary);
516 padding: 8px 12px;
517 border-radius: 8px;
518 font-size: 12.5px;
519 font-weight: 600;
520 width: 100%;
521 margin-top: 6px;
522 cursor: pointer;
523 font-family: inherit;
524 transition: all .15s;
525 }
526 .btn-add-inline:hover {
527 background: var(--primary);
528 color: #fff;
529 }
530 /* ===== Print template cards ===== */
531 .print-tpl-card {
532 display: flex;
533 flex-direction: column;
534 align-items: center;
535 padding: 14px 8px;
536 border: 2px solid var(--border);
537 border-radius: 10px;
538 cursor: pointer;
539 transition: all .15s;
540 text-align: center;
541 background: var(--card-bg);
542 }
543 .print-tpl-card:hover {
544 border-color: var(--primary);
545 transform: translateY(-2px);
546 }
547 .print-tpl-card.active {
548 border-color: var(--primary);
549 background: var(--primary-light);
550 }
551 /* ===== Account Cards ===== */
552 .account-grid {
553 display: grid;
554 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
555 gap: 14px;
556 margin-bottom: 20px;
557 }
558 .account-card {
559 background: var(--card-bg);
560 border: 1px solid var(--border);
561 border-radius: var(--radius);
562 padding: 18px;
563 transition: all .15s;
564 box-shadow: var(--shadow-sm);
565 }
566 .account-card:hover {
567 box-shadow: var(--shadow-md);
568 transform: translateY(-2px);
569 }
570 /* ===== Settings Cards ===== */
571 .settings-grid {
572 display: grid;
573 grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
574 gap: 16px;
575 margin-bottom: 20px;
576 }
577 .settings-card {
578 padding: 20px;
579 margin: 0;
580 }
581 .settings-card-header {
582 display: flex;
583 gap: 14px;
584 align-items: flex-start;
585 margin-bottom: 16px;
586 }
587 .settings-card-icon {
588 width: 46px;
589 height: 46px;
590 border-radius: 12px;
591 background: linear-gradient(135deg, var(--primary), var(--primary-dark));
592 color: #fff;
593 display: flex;
594 align-items: center;
595 justify-content: center;
596 font-size: 22px;
597 flex-shrink: 0;
598 }
599 .settings-card-title {
600 font-size: 15px;
601 font-weight: 700;
602 margin-bottom: 4px;
603 }
604 .settings-card-desc {
605 font-size: 12px;
606 color: var(--text-muted);
607 line-height: 1.6;
608 }
609 .company-preview {
610 padding: 12px 14px;
611 background: var(--bg);
612 border-radius: 10px;
613 margin-bottom: 14px;
614 border-right: 3px solid var(--primary);
615 }
616 .empty-mini {
617 padding: 20px;
618 text-align: center;
619 background: var(--bg);
620 border-radius: 10px;
621 font-size: 12.5px;
622 color: var(--text-muted);
623 margin-bottom: 14px;
624 }
625 .backup-warning {
626 padding: 10px 14px;
627 background: #fef3c7;
628 border: 1px solid #fcd34d;
629 border-radius: 8px;
630 font-size: 12px;
631 color: #78350f;
632 line-height: 1.7;
633 margin-bottom: 4px;
634 }
635 [data-theme="dark"] .backup-warning {
636 background: #422006;
637 border-color: #92400e;
638 color: #fed7aa;
639 }
640 .stats-grid {
641 display: grid;
642 grid-template-columns: repeat(3, 1fr);
643 gap: 10px;
644 }
645 .stat-mini {
646 text-align: center;
647 padding: 12px 6px;
648 background: var(--bg);
649 border-radius: 10px;
650 }
651 /* ===== Dashboard KPI Cards ===== */
652 .kpi-card {
653 display: flex;
654 align-items: center;
655 gap: 12px;
656 padding: 14px 16px !important;
657 }
658 .kpi-card-icon {
659 width: 38px;
660 height: 38px;
661 border-radius: 10px;
662 display: flex;
663 align-items: center;
664 justify-content: center;
665 font-size: 18px;
666 flex-shrink: 0;
667 }
668
669 /* ===== Chart Tabs ===== */
670 .chart-tabs {
671 display: flex;
672 gap: 4px;
673 background: var(--bg);
674 padding: 3px;
675 border-radius: 10px;
676 }
677 .chart-tab {
678 padding: 6px 12px;
679 border: none;
680 background: transparent;
681 color: var(--text-muted);
682 font-size: 12px;
683 font-weight: 600;
684 border-radius: 8px;
685 cursor: pointer;
686 font-family: inherit;
687 transition: all .15s;
688 }
689 .chart-tab:hover { color: var(--text); }
690 .chart-tab.active {
691 background: var(--card-bg);
692 color: var(--primary);
693 box-shadow: 0 1px 3px rgba(0,0,0,.08);
694 }
695
696 /* ===== Dashboard Account Cards ===== */
697 .dash-account-card {
698 background: var(--bg);
699 padding: 10px 12px;
700 border-radius: 10px;
701 transition: all .15s;
702 }
703 .dash-account-card:hover {
704 background: var(--primary-light);
705 }
706
707 /* ===== Dashboard Layout ===== */
708 @media (max-width: 1024px) {
709 .dash-grid-main {
710 grid-template-columns: 1fr !important;
711 }
712 }