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

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