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

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