@rfc0/patty 0.0.0-stage → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +214 -2
- package/dist/adapters/access-tokens.js +7 -0
- package/dist/adapters/accounts.js +37 -0
- package/dist/adapters/auth.js +11 -0
- package/dist/adapters/bills.js +32 -0
- package/dist/adapters/budgets.js +29 -0
- package/dist/adapters/categories.js +32 -0
- package/dist/adapters/client-grants.js +7 -0
- package/dist/adapters/credit-cards.js +33 -0
- package/dist/adapters/currencies.js +2 -0
- package/dist/adapters/currency-rates.js +18 -0
- package/dist/adapters/dashboards.js +43 -0
- package/dist/adapters/demo.js +13 -0
- package/dist/adapters/instance-settings.js +7 -0
- package/dist/adapters/invites.js +7 -0
- package/dist/adapters/recurring.js +55 -0
- package/dist/adapters/sessions.js +7 -0
- package/dist/adapters/settings.js +4 -0
- package/dist/adapters/setup-codes.js +7 -0
- package/dist/adapters/tags.js +9 -0
- package/dist/adapters/transactions.js +95 -0
- package/dist/adapters/users.js +7 -0
- package/dist/common/build-version.js +5 -0
- package/dist/common/errors.js +118 -0
- package/dist/common/net.js +71 -0
- package/dist/common/result.js +7 -0
- package/dist/composition/auth.js +106 -0
- package/dist/composition/boot.js +27 -0
- package/dist/composition/cli.js +86 -0
- package/dist/composition/demo/seed.js +92 -0
- package/dist/composition/demo/shell.js +107 -0
- package/dist/composition/export.js +89 -0
- package/dist/composition/http.js +110 -0
- package/dist/composition/import.js +55 -0
- package/dist/composition/lazy-modules.js +2 -0
- package/dist/composition/runtime.js +115 -0
- package/dist/composition/sign-in/interpreter.js +154 -0
- package/dist/composition/sign-in/server.js +36 -0
- package/dist/composition/sign-in/wiring.js +23 -0
- package/dist/composition/stdio.js +69 -0
- package/dist/config.js +136 -0
- package/dist/controllers/account/account.js +88 -0
- package/dist/controllers/account/transaction.js +119 -0
- package/dist/controllers/account/transfer.js +34 -0
- package/dist/controllers/aggregate.js +40 -0
- package/dist/controllers/auth/access-tokens.js +61 -0
- package/dist/controllers/auth/grants.js +136 -0
- package/dist/controllers/auth/key-export.js +20 -0
- package/dist/controllers/auth/owner.js +80 -0
- package/dist/controllers/auth/password.js +35 -0
- package/dist/controllers/auth/session.js +50 -0
- package/dist/controllers/auth/step-up.js +8 -0
- package/dist/controllers/auth/users.js +183 -0
- package/dist/controllers/budgets.js +87 -0
- package/dist/controllers/categories.js +67 -0
- package/dist/controllers/correlations.js +112 -0
- package/dist/controllers/credit-card/bill.js +105 -0
- package/dist/controllers/credit-card/credit-card.js +129 -0
- package/dist/controllers/credit-card/transaction.js +181 -0
- package/dist/controllers/currencies.js +1 -0
- package/dist/controllers/currency-rates.js +40 -0
- package/dist/controllers/dashboards.js +68 -0
- package/dist/controllers/demo/seed.js +31 -0
- package/dist/controllers/demo/tour.js +12 -0
- package/dist/controllers/deps.js +6 -0
- package/dist/controllers/instance.js +6 -0
- package/dist/controllers/merchants.js +12 -0
- package/dist/controllers/recurring.js +70 -0
- package/dist/controllers/resolve.js +37 -0
- package/dist/controllers/settings.js +47 -0
- package/dist/controllers/status.js +19 -0
- package/dist/controllers/summary.js +21 -0
- package/dist/controllers/tags.js +19 -0
- package/dist/controllers/transaction/bulk.js +6 -0
- package/dist/controllers/transaction/core.js +49 -0
- package/dist/controllers/transaction/read.js +28 -0
- package/dist/diplomat/auth/credentials.js +58 -0
- package/dist/diplomat/auth/sign-in-store.js +18 -0
- package/dist/diplomat/cli/commands/auth.js +100 -0
- package/dist/diplomat/cli/commands/db.js +72 -0
- package/dist/diplomat/cli/commands/demo.js +68 -0
- package/dist/diplomat/cli/commands/key.js +119 -0
- package/dist/diplomat/cli/commands/login.js +151 -0
- package/dist/diplomat/cli/commands/setup.js +132 -0
- package/dist/diplomat/cli/commands/users.js +123 -0
- package/dist/diplomat/cli/commands.js +61 -0
- package/dist/diplomat/cli/export-file.js +37 -0
- package/dist/diplomat/cli/import-file.js +44 -0
- package/dist/diplomat/cli/io.js +61 -0
- package/dist/diplomat/cli/key-export-approval.js +37 -0
- package/dist/diplomat/cli/messages.js +96 -0
- package/dist/diplomat/cli/prompt.js +74 -0
- package/dist/diplomat/cli/terminal.js +81 -0
- package/dist/diplomat/client-config/clients.js +150 -0
- package/dist/diplomat/client-config/merge.js +41 -0
- package/dist/diplomat/db/bootstrap.js +98 -0
- package/dist/diplomat/db/database-files.js +147 -0
- package/dist/diplomat/db/driver.js +167 -0
- package/dist/diplomat/db/effects.js +101 -0
- package/dist/diplomat/db/engine.js +9 -0
- package/dist/diplomat/db/export.js +22 -0
- package/dist/diplomat/db/file-lock.js +82 -0
- package/dist/diplomat/db/key-lock.js +14 -0
- package/dist/diplomat/db/locale-cache.js +23 -0
- package/dist/diplomat/db/migration-barrier.js +57 -0
- package/dist/diplomat/db/migration-journal.js +18 -0
- package/dist/diplomat/db/migration-lock.js +15 -0
- package/dist/diplomat/db/migrations.js +11 -0
- package/dist/diplomat/db/present.js +17 -0
- package/dist/diplomat/db/queries/aggregate-whitelist.js +35 -0
- package/dist/diplomat/db/queries/filters.js +59 -0
- package/dist/diplomat/db/queries/fts.js +18 -0
- package/dist/diplomat/db/queries/scope.js +8 -0
- package/dist/diplomat/db/queries/transaction-select.js +26 -0
- package/dist/diplomat/db/queries/tx-predicates.js +13 -0
- package/dist/diplomat/db/repos/access-tokens.js +27 -0
- package/dist/diplomat/db/repos/accounts.js +91 -0
- package/dist/diplomat/db/repos/bills.js +93 -0
- package/dist/diplomat/db/repos/budgets.js +72 -0
- package/dist/diplomat/db/repos/categories.js +53 -0
- package/dist/diplomat/db/repos/client-grants.js +67 -0
- package/dist/diplomat/db/repos/correlations.js +66 -0
- package/dist/diplomat/db/repos/credit-cards.js +67 -0
- package/dist/diplomat/db/repos/currencies.js +8 -0
- package/dist/diplomat/db/repos/currency-rates.js +40 -0
- package/dist/diplomat/db/repos/dashboards.js +123 -0
- package/dist/diplomat/db/repos/health.js +12 -0
- package/dist/diplomat/db/repos/instance-settings.js +14 -0
- package/dist/diplomat/db/repos/instance.js +58 -0
- package/dist/diplomat/db/repos/invites.js +43 -0
- package/dist/diplomat/db/repos/merchants.js +121 -0
- package/dist/diplomat/db/repos/recurring.js +29 -0
- package/dist/diplomat/db/repos/sessions.js +19 -0
- package/dist/diplomat/db/repos/settings.js +41 -0
- package/dist/diplomat/db/repos/setup-codes.js +28 -0
- package/dist/diplomat/db/repos/sub-categories.js +67 -0
- package/dist/diplomat/db/repos/tags.js +51 -0
- package/dist/diplomat/db/repos/transaction-tags.js +57 -0
- package/dist/diplomat/db/repos/transactions.js +163 -0
- package/dist/diplomat/db/repos/users.js +47 -0
- package/dist/diplomat/db/safety-copy.js +87 -0
- package/dist/diplomat/db/schema.js +348 -0
- package/dist/diplomat/db/seed/categories.js +112 -0
- package/dist/diplomat/db/seed/currencies.js +9 -0
- package/dist/diplomat/db/seed/demo/br.js +98 -0
- package/dist/diplomat/db/seed/demo/co.js +89 -0
- package/dist/diplomat/db/seed/demo/index.js +12 -0
- package/dist/diplomat/db/seed/demo/mx.js +90 -0
- package/dist/diplomat/db/seed/demo/shared.js +39 -0
- package/dist/diplomat/db/seed/demo/us.js +90 -0
- package/dist/diplomat/db/seed/merchant-rules.js +188 -0
- package/dist/diplomat/db/sqlite-errors.js +40 -0
- package/dist/diplomat/db/tenancy-integrity.js +45 -0
- package/dist/diplomat/db/version-guard.js +16 -0
- package/dist/diplomat/http/auth-pages.js +41 -0
- package/dist/diplomat/http/auth-paths.js +46 -0
- package/dist/diplomat/http/bearer.js +15 -0
- package/dist/diplomat/http/connect-pages.js +51 -0
- package/dist/diplomat/http/context.js +17 -0
- package/dist/diplomat/http/cookies.js +27 -0
- package/dist/diplomat/http/form-pages.js +38 -0
- package/dist/diplomat/http/hooks/auth.js +106 -0
- package/dist/diplomat/http/hooks/demo-marker.js +59 -0
- package/dist/diplomat/http/openapi.js +73 -0
- package/dist/diplomat/http/principal.js +1 -0
- package/dist/diplomat/http/rate-limiter.js +78 -0
- package/dist/diplomat/http/remedy.js +26 -0
- package/dist/diplomat/http/respond.js +50 -0
- package/dist/diplomat/http/routes/account.js +226 -0
- package/dist/diplomat/http/routes/aggregate.js +28 -0
- package/dist/diplomat/http/routes/auth.js +105 -0
- package/dist/diplomat/http/routes/budget.js +34 -0
- package/dist/diplomat/http/routes/category.js +109 -0
- package/dist/diplomat/http/routes/connect.js +124 -0
- package/dist/diplomat/http/routes/credit-card.js +263 -0
- package/dist/diplomat/http/routes/currency-rates.js +60 -0
- package/dist/diplomat/http/routes/currency.js +16 -0
- package/dist/diplomat/http/routes/dashboard.js +93 -0
- package/dist/diplomat/http/routes/invite.js +63 -0
- package/dist/diplomat/http/routes/recurring.js +65 -0
- package/dist/diplomat/http/routes/settings.js +38 -0
- package/dist/diplomat/http/routes/summary.js +23 -0
- package/dist/diplomat/http/routes/system.js +29 -0
- package/dist/diplomat/http/routes/tag.js +51 -0
- package/dist/diplomat/http/routes/tokens.js +72 -0
- package/dist/diplomat/http/routes/transaction.js +55 -0
- package/dist/diplomat/http/routes/transfer.js +35 -0
- package/dist/diplomat/http/routes/ui.js +110 -0
- package/dist/diplomat/http/routes/users.js +156 -0
- package/dist/diplomat/http/routes/well-known.js +26 -0
- package/dist/diplomat/http/routes.js +85 -0
- package/dist/diplomat/http/session.js +34 -0
- package/dist/diplomat/http/token-pages.js +75 -0
- package/dist/diplomat/http/ui-files.js +21 -0
- package/dist/diplomat/http/user-pages.js +93 -0
- package/dist/diplomat/mcp/annotations.js +8 -0
- package/dist/diplomat/mcp/auth-info.js +20 -0
- package/dist/diplomat/mcp/context.js +14 -0
- package/dist/diplomat/mcp/definition.js +3 -0
- package/dist/diplomat/mcp/gate.js +15 -0
- package/dist/diplomat/mcp/instructions.js +19 -0
- package/dist/diplomat/mcp/prompts.js +125 -0
- package/dist/diplomat/mcp/register.js +12 -0
- package/dist/diplomat/mcp/remedy.js +17 -0
- package/dist/diplomat/mcp/resources.js +93 -0
- package/dist/diplomat/mcp/respond.js +20 -0
- package/dist/diplomat/mcp/route.js +62 -0
- package/dist/diplomat/mcp/scopes.js +53 -0
- package/dist/diplomat/mcp/server.js +26 -0
- package/dist/diplomat/mcp/shared.js +5 -0
- package/dist/diplomat/mcp/stdio-session.js +94 -0
- package/dist/diplomat/mcp/stdio.js +23 -0
- package/dist/diplomat/mcp/tool-name.js +59 -0
- package/dist/diplomat/mcp/tools/account.js +218 -0
- package/dist/diplomat/mcp/tools/aggregate.js +32 -0
- package/dist/diplomat/mcp/tools/budget.js +99 -0
- package/dist/diplomat/mcp/tools/category.js +103 -0
- package/dist/diplomat/mcp/tools/correlations.js +70 -0
- package/dist/diplomat/mcp/tools/credit-card.js +239 -0
- package/dist/diplomat/mcp/tools/currency-rates.js +62 -0
- package/dist/diplomat/mcp/tools/dashboard.js +75 -0
- package/dist/diplomat/mcp/tools/index.js +31 -0
- package/dist/diplomat/mcp/tools/recurring.js +62 -0
- package/dist/diplomat/mcp/tools/summary.js +30 -0
- package/dist/diplomat/mcp/tools/system.js +83 -0
- package/dist/diplomat/mcp/tools/tag.js +48 -0
- package/dist/diplomat/mcp/tools/transaction.js +53 -0
- package/dist/diplomat/mcp/tools/transfer.js +28 -0
- package/dist/diplomat/mcp/tour.js +87 -0
- package/dist/logic/account.js +79 -0
- package/dist/logic/aggregate.js +37 -0
- package/dist/logic/auth/bearer.js +35 -0
- package/dist/logic/auth/grant.js +126 -0
- package/dist/logic/auth/key-export.js +10 -0
- package/dist/logic/auth/keychain.js +3 -0
- package/dist/logic/auth/message.js +22 -0
- package/dist/logic/auth/origin.js +57 -0
- package/dist/logic/auth/owner.js +22 -0
- package/dist/logic/auth/password.js +3 -0
- package/dist/logic/auth/redact.js +25 -0
- package/dist/logic/auth/revoke.js +28 -0
- package/dist/logic/auth/scope.js +17 -0
- package/dist/logic/auth/session.js +30 -0
- package/dist/logic/auth/sign-in-flow.js +305 -0
- package/dist/logic/auth/time.js +2 -0
- package/dist/logic/auth/token.js +74 -0
- package/dist/logic/auth/user-plans.js +84 -0
- package/dist/logic/auth/users.js +78 -0
- package/dist/logic/balance.js +2 -0
- package/dist/logic/bill.js +74 -0
- package/dist/logic/budget.js +78 -0
- package/dist/logic/category.js +37 -0
- package/dist/logic/classify.js +21 -0
- package/dist/logic/correlations.js +147 -0
- package/dist/logic/credit-card.js +2 -0
- package/dist/logic/currency-rate.js +69 -0
- package/dist/logic/dashboard.js +40 -0
- package/dist/logic/demo/database.js +30 -0
- package/dist/logic/demo/plan.js +308 -0
- package/dist/logic/demo/tour.js +33 -0
- package/dist/logic/export-destination.js +12 -0
- package/dist/logic/key-import.js +15 -0
- package/dist/logic/locale.js +5 -0
- package/dist/logic/localize.js +12 -0
- package/dist/logic/merchant.js +31 -0
- package/dist/logic/migration.js +1 -0
- package/dist/logic/money.js +12 -0
- package/dist/logic/period.js +45 -0
- package/dist/logic/persistence.js +48 -0
- package/dist/logic/recurring.js +51 -0
- package/dist/logic/resolve.js +44 -0
- package/dist/logic/summary.js +29 -0
- package/dist/logic/tag.js +13 -0
- package/dist/logic/transaction.js +197 -0
- package/dist/main.js +42 -0
- package/dist/models/account.js +197 -0
- package/dist/models/aggregate.js +61 -0
- package/dist/models/auth/bearer.js +11 -0
- package/dist/models/auth/entity.js +17 -0
- package/dist/models/auth/errors.js +42 -0
- package/dist/models/auth/grant.js +58 -0
- package/dist/models/auth/key-export.js +11 -0
- package/dist/models/auth/message.js +50 -0
- package/dist/models/auth/mode.js +7 -0
- package/dist/models/auth/origin.js +16 -0
- package/dist/models/auth/owner.js +36 -0
- package/dist/models/auth/password.js +24 -0
- package/dist/models/auth/principal.js +26 -0
- package/dist/models/auth/redact.js +4 -0
- package/dist/models/auth/scope.js +9 -0
- package/dist/models/auth/session.js +19 -0
- package/dist/models/auth/sign-in-flow.js +102 -0
- package/dist/models/auth/sign-in.js +41 -0
- package/dist/models/auth/time.js +5 -0
- package/dist/models/auth/token.js +50 -0
- package/dist/models/auth/users.js +52 -0
- package/dist/models/bill.js +55 -0
- package/dist/models/budget.js +106 -0
- package/dist/models/category.js +52 -0
- package/dist/models/client-config.js +18 -0
- package/dist/models/correlations.js +215 -0
- package/dist/models/credit-card.js +156 -0
- package/dist/models/currency-rate.js +83 -0
- package/dist/models/dashboard.js +54 -0
- package/dist/models/database.js +16 -0
- package/dist/models/date.js +8 -0
- package/dist/models/demo/core.js +58 -0
- package/dist/models/demo/tour.js +41 -0
- package/dist/models/encryption-key.js +2 -0
- package/dist/models/error.js +13 -0
- package/dist/models/export.js +9 -0
- package/dist/models/id.js +2 -0
- package/dist/models/instance.js +7 -0
- package/dist/models/key-import.js +6 -0
- package/dist/models/locale.js +25 -0
- package/dist/models/merchant.js +12 -0
- package/dist/models/money.js +14 -0
- package/dist/models/package.js +12 -0
- package/dist/models/page.js +56 -0
- package/dist/models/persistence.js +1 -0
- package/dist/models/prompts.js +5 -0
- package/dist/models/recurring.js +54 -0
- package/dist/models/remedy.js +17 -0
- package/dist/models/resolution.js +1 -0
- package/dist/models/startup.js +7 -0
- package/dist/models/summary.js +24 -0
- package/dist/models/tag.js +14 -0
- package/dist/models/tenancy.js +10 -0
- package/dist/models/transaction-tag.js +6 -0
- package/dist/models/transaction.js +275 -0
- package/dist/wire/db/access-tokens.js +1 -0
- package/dist/wire/db/accounts.js +7 -0
- package/dist/wire/db/aggregate.js +16 -0
- package/dist/wire/db/bills.js +14 -0
- package/dist/wire/db/budgets.js +33 -0
- package/dist/wire/db/categories.js +14 -0
- package/dist/wire/db/client-grants.js +1 -0
- package/dist/wire/db/correlations.js +49 -0
- package/dist/wire/db/credit-cards.js +1 -0
- package/dist/wire/db/currencies.js +1 -0
- package/dist/wire/db/currency-rates.js +1 -0
- package/dist/wire/db/dashboards.js +1 -0
- package/dist/wire/db/instance-settings.js +1 -0
- package/dist/wire/db/invites.js +1 -0
- package/dist/wire/db/merchants.js +18 -0
- package/dist/wire/db/recurring.js +19 -0
- package/dist/wire/db/sessions.js +1 -0
- package/dist/wire/db/settings.js +1 -0
- package/dist/wire/db/setup-codes.js +1 -0
- package/dist/wire/db/tags.js +1 -0
- package/dist/wire/db/tenancy.js +1 -0
- package/dist/wire/db/transactions.js +89 -0
- package/dist/wire/db/users.js +1 -0
- package/dist/wire/in/accounts.js +26 -0
- package/dist/wire/in/aggregate.js +10 -0
- package/dist/wire/in/auth.js +107 -0
- package/dist/wire/in/bills.js +11 -0
- package/dist/wire/in/budgets.js +11 -0
- package/dist/wire/in/categories.js +9 -0
- package/dist/wire/in/cli.js +106 -0
- package/dist/wire/in/coerce.js +6 -0
- package/dist/wire/in/common.js +17 -0
- package/dist/wire/in/credit-cards.js +16 -0
- package/dist/wire/in/currency-rates.js +8 -0
- package/dist/wire/in/period.js +7 -0
- package/dist/wire/in/recurring.js +6 -0
- package/dist/wire/in/settings.js +5 -0
- package/dist/wire/in/summary.js +5 -0
- package/dist/wire/in/tags.js +2 -0
- package/dist/wire/in/transactions.js +31 -0
- package/dist/wire/out/bills.js +9 -0
- package/dist/wire/out/budgets.js +10 -0
- package/dist/wire/out/client-config.js +2 -0
- package/dist/wire/out/common.js +4 -0
- package/dist/wire/out/credit-cards.js +15 -0
- package/dist/wire/out/currency-rates.js +11 -0
- package/dist/wire/out/errors.js +58 -0
- package/dist/wire/out/recurring.js +6 -0
- package/dist/wire/out/status.js +10 -0
- package/dist/wire/out/summary.js +9 -0
- package/dist/wire/out/transactions.js +52 -0
- package/drizzle/0000_futuristic_umar.sql +124 -0
- package/drizzle/0001_fts5_search.sql +23 -0
- package/drizzle/0002_rename_graph_to_history.sql +7 -0
- package/drizzle/0003_lyrical_hairball.sql +2 -0
- package/drizzle/0004_misty_ikaris.sql +7 -0
- package/drizzle/0005_credit-liability-accounts.sql +14 -0
- package/drizzle/0006_smart_aqueduct.sql +1 -0
- package/drizzle/0007_add_dashboards.sql +5 -0
- package/drizzle/0008_yummy_madripoor.sql +1 -0
- package/drizzle/0009_version_groundwork.sql +9 -0
- package/drizzle/0010_category_merchant_association_cascade.sql +16 -0
- package/drizzle/0011_dashboard_id_normalization.sql +16 -0
- package/drizzle/0012_hot_the_spike.sql +12 -0
- package/drizzle/0013_recurring_rules_merchant.sql +1 -0
- package/drizzle/0014_dashboard_source_discriminator.sql +17 -0
- package/drizzle/0015_currencies_decimals.sql +1 -0
- package/drizzle/0016_unusual_zaran.sql +13 -0
- package/drizzle/0017_premium_blur.sql +1 -0
- package/drizzle/0018_auth_identity.sql +39 -0
- package/drizzle/0019_access_tokens.sql +16 -0
- package/drizzle/0020_stdio_sign_in.sql +27 -0
- package/drizzle/0021_tenancy_data.sql +289 -0
- package/drizzle/0022_user_management.sql +17 -0
- package/drizzle/0023_instance_settings_row.sql +2 -0
- package/drizzle/0024_credentials_changed_at.sql +2 -0
- package/drizzle/0025_instance_kind.sql +2 -0
- package/drizzle/0026_demo_seeded_at.sql +2 -0
- package/drizzle/0027_demo_country.sql +2 -0
- package/drizzle/0028_reset_sign_ins.sql +2 -0
- package/drizzle/meta/0000_snapshot.json +894 -0
- package/drizzle/meta/0003_snapshot.json +910 -0
- package/drizzle/meta/0004_snapshot.json +951 -0
- package/drizzle/meta/0005_snapshot.json +991 -0
- package/drizzle/meta/0006_snapshot.json +998 -0
- package/drizzle/meta/0007_snapshot.json +1029 -0
- package/drizzle/meta/0008_snapshot.json +1049 -0
- package/drizzle/meta/0009_snapshot.json +1121 -0
- package/drizzle/meta/0010_snapshot.json +1121 -0
- package/drizzle/meta/0011_snapshot.json +1136 -0
- package/drizzle/meta/0012_snapshot.json +1227 -0
- package/drizzle/meta/0013_snapshot.json +1247 -0
- package/drizzle/meta/0014_snapshot.json +1267 -0
- package/drizzle/meta/0015_snapshot.json +1275 -0
- package/drizzle/meta/0016_snapshot.json +1371 -0
- package/drizzle/meta/0017_snapshot.json +1392 -0
- package/drizzle/meta/0018_snapshot.json +1603 -0
- package/drizzle/meta/0019_snapshot.json +1713 -0
- package/drizzle/meta/0020_snapshot.json +1904 -0
- package/drizzle/meta/0021_snapshot.json +2186 -0
- package/drizzle/meta/0022_snapshot.json +2311 -0
- package/drizzle/meta/0023_snapshot.json +2311 -0
- package/drizzle/meta/0024_snapshot.json +2318 -0
- package/drizzle/meta/0025_snapshot.json +2326 -0
- package/drizzle/meta/0026_snapshot.json +2333 -0
- package/drizzle/meta/0027_snapshot.json +2340 -0
- package/drizzle/meta/0028_snapshot.json +2340 -0
- package/drizzle/meta/_journal.json +209 -0
- package/package.json +106 -4
- package/skills/dashboard-building/SKILL.md +201 -0
- package/skills/patty-tour/SKILL.md +34 -0
- package/ui/app.css +758 -0
- package/ui/app.js +543 -0
- package/ui/connect-result.html +16 -0
- package/ui/connect.html +53 -0
- package/ui/dashboards/accounts.html +3189 -0
- package/ui/dashboards/budget.html +1734 -0
- package/ui/dashboards/cards.html +4032 -0
- package/ui/dashboards/categories.html +4694 -0
- package/ui/dashboards/comparative.html +2475 -0
- package/ui/dashboards/dashboards.html +839 -0
- package/ui/dashboards/overview.html +2405 -0
- package/ui/dashboards/pending.html +2973 -0
- package/ui/dashboards/projections.html +2528 -0
- package/ui/dashboards/tags.html +1365 -0
- package/ui/invite.html +44 -0
- package/ui/login.html +26 -0
- package/ui/money.js +175 -0
- package/ui/setup.html +29 -0
- package/ui/shell.html +96 -0
- package/ui/token-created.html +24 -0
- package/ui/tokens.html +58 -0
- package/ui/user-invited.html +27 -0
- package/ui/users.html +60 -0
|
@@ -0,0 +1,4694 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
/* Tooltip styling */
|
|
3
|
+
.sidebar-menu a[data-tooltip]::after {
|
|
4
|
+
content: attr(data-tooltip);
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 80px;
|
|
7
|
+
top: 50%;
|
|
8
|
+
transform: translateY(-50%) translateX(-10px);
|
|
9
|
+
background: #11131e;
|
|
10
|
+
color: #fff;
|
|
11
|
+
padding: 0.4rem 0.75rem;
|
|
12
|
+
border-radius: 6px;
|
|
13
|
+
font-size: 0.75rem;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
opacity: 0;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
transition: all 0.2s ease;
|
|
19
|
+
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
|
20
|
+
border: 1px solid var(--panel-border);
|
|
21
|
+
z-index: 1000;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sidebar-menu a[data-tooltip]:hover::after {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
transform: translateY(-50%) translateX(0);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
header h1 {
|
|
30
|
+
font-size: 1.6rem;
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: 0.75rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
header h1 i {
|
|
38
|
+
color: var(--accent-primary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
header p {
|
|
42
|
+
font-size: 0.85rem;
|
|
43
|
+
color: var(--text-muted);
|
|
44
|
+
margin-top: 0.25rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Main Tree Panel */
|
|
48
|
+
/* base: ui/app.css (#164) */
|
|
49
|
+
.panel {
|
|
50
|
+
padding: 1.75rem;
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.panel-header-row {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
align-items: center;
|
|
58
|
+
margin-bottom: 1.5rem;
|
|
59
|
+
border-bottom: 1px solid var(--panel-border);
|
|
60
|
+
padding-bottom: 1rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.panel-title {
|
|
64
|
+
font-size: 1.15rem;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 0.5rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.panel-title i {
|
|
72
|
+
color: var(--accent-primary);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Buttons (base: ui/app.css, #164) */
|
|
76
|
+
.btn-action-primary {
|
|
77
|
+
padding: 0.5rem 1rem;
|
|
78
|
+
font-size: 0.85rem;
|
|
79
|
+
font-weight: 700;
|
|
80
|
+
display: flex;
|
|
81
|
+
gap: 0.35rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.btn-action-primary:hover {
|
|
85
|
+
background: var(--accent-secondary);
|
|
86
|
+
transform: translateY(-1px);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Inline Forms */
|
|
90
|
+
.panel-form-inline {
|
|
91
|
+
background: rgba(255, 255, 255, 0.02);
|
|
92
|
+
border: 1px dashed rgba(139, 92, 246, 0.25);
|
|
93
|
+
border-radius: 16px;
|
|
94
|
+
padding: 1.25rem;
|
|
95
|
+
margin-bottom: 1.5rem;
|
|
96
|
+
animation: slideDown 0.3s ease;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.panel-form-inline.hidden {
|
|
100
|
+
display: none !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes slideDown {
|
|
104
|
+
from { opacity: 0; transform: translateY(-10px); }
|
|
105
|
+
to { opacity: 1; transform: translateY(0); }
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.form-row {
|
|
109
|
+
display: flex;
|
|
110
|
+
gap: 1rem;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
align-items: flex-end;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.form-group {
|
|
116
|
+
flex: 1;
|
|
117
|
+
min-width: 200px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.form-label {
|
|
121
|
+
display: block;
|
|
122
|
+
font-size: 0.75rem;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
color: var(--text-muted);
|
|
125
|
+
margin-bottom: 0.4rem;
|
|
126
|
+
text-transform: uppercase;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* base: ui/app.css (#164) */
|
|
130
|
+
.form-control {
|
|
131
|
+
background: rgba(0, 0, 0, 0.2);
|
|
132
|
+
padding: 0.55rem 0.75rem;
|
|
133
|
+
color: #fff;
|
|
134
|
+
font-family: inherit;
|
|
135
|
+
font-size: 0.85rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.form-control:focus {
|
|
139
|
+
outline: none;
|
|
140
|
+
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Grouped Columns Grid (Receitas x Despesas) */
|
|
144
|
+
.tree-columns-grid {
|
|
145
|
+
display: grid;
|
|
146
|
+
grid-template-columns: 1fr 1fr;
|
|
147
|
+
gap: 2.5rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@media (max-width: 900px) {
|
|
151
|
+
.tree-columns-grid {
|
|
152
|
+
grid-template-columns: 1fr;
|
|
153
|
+
gap: 2rem;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.tree-column-panel {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
gap: 1rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.column-header {
|
|
164
|
+
font-size: 1rem;
|
|
165
|
+
font-weight: 700;
|
|
166
|
+
padding-bottom: 0.5rem;
|
|
167
|
+
border-bottom: 2px solid var(--panel-border);
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: 0.5rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.column-header.income {
|
|
174
|
+
color: var(--income-color);
|
|
175
|
+
border-bottom-color: rgba(16, 185, 129, 0.3);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.column-header.expense {
|
|
179
|
+
color: var(--expense-color);
|
|
180
|
+
border-bottom-color: rgba(244, 63, 94, 0.3);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Tree Structure List */
|
|
184
|
+
.tree-list {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
gap: 0.5rem;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.tree-node-parent {
|
|
191
|
+
position: relative;
|
|
192
|
+
padding-bottom: 0.25rem;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Left vertical branch connector line */
|
|
196
|
+
.tree-node-parent::before {
|
|
197
|
+
content: '';
|
|
198
|
+
position: absolute;
|
|
199
|
+
left: 10px;
|
|
200
|
+
top: 28px;
|
|
201
|
+
bottom: 6px;
|
|
202
|
+
width: 1px;
|
|
203
|
+
border-left: 1px dashed rgba(255, 255, 255, 0.12);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Hide branch line if collapsed */
|
|
207
|
+
.tree-node-parent.collapsed::before {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.category-row-item {
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: space-between;
|
|
214
|
+
align-items: center;
|
|
215
|
+
padding: 0.45rem 0.5rem;
|
|
216
|
+
border-radius: 8px;
|
|
217
|
+
transition: var(--transition-smooth);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.category-row-item:hover {
|
|
221
|
+
background: rgba(255, 255, 255, 0.025);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.category-info {
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
gap: 0.5rem;
|
|
228
|
+
user-select: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.btn-collapse {
|
|
232
|
+
background: none;
|
|
233
|
+
border: none;
|
|
234
|
+
color: var(--text-muted);
|
|
235
|
+
cursor: pointer;
|
|
236
|
+
font-size: 0.75rem;
|
|
237
|
+
width: 20px;
|
|
238
|
+
height: 20px;
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
justify-content: center;
|
|
242
|
+
transition: var(--transition-smooth);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.btn-collapse.collapsed i {
|
|
246
|
+
transform: rotate(-90deg);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.category-name {
|
|
250
|
+
font-size: 0.9rem;
|
|
251
|
+
font-weight: 600;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.category-actions {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
gap: 0.25rem;
|
|
258
|
+
opacity: 0.3;
|
|
259
|
+
transition: var(--transition-smooth);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.category-row-item:hover .category-actions {
|
|
263
|
+
opacity: 1;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.btn-node-action {
|
|
267
|
+
background: none;
|
|
268
|
+
border: none;
|
|
269
|
+
color: var(--text-muted);
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
font-size: 0.85rem;
|
|
272
|
+
padding: 0.25rem;
|
|
273
|
+
border-radius: 4px;
|
|
274
|
+
transition: var(--transition-smooth);
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: center;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.btn-node-action.add-sub:hover {
|
|
281
|
+
color: var(--accent-secondary);
|
|
282
|
+
background: rgba(139, 92, 246, 0.15);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.btn-node-action.delete-node:hover {
|
|
286
|
+
color: var(--expense-color);
|
|
287
|
+
background: rgba(244, 63, 94, 0.12);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Subcategories Nest */
|
|
291
|
+
.subcategories-nest {
|
|
292
|
+
padding-left: 1.5rem;
|
|
293
|
+
display: flex;
|
|
294
|
+
flex-direction: column;
|
|
295
|
+
gap: 0.35rem;
|
|
296
|
+
margin-top: 0.25rem;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.subcategories-nest.hidden {
|
|
300
|
+
display: none !important;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.tree-node-child {
|
|
304
|
+
position: relative;
|
|
305
|
+
display: flex;
|
|
306
|
+
justify-content: space-between;
|
|
307
|
+
align-items: center;
|
|
308
|
+
padding: 0.35rem 0.5rem;
|
|
309
|
+
font-size: 0.82rem;
|
|
310
|
+
color: var(--text-muted);
|
|
311
|
+
border-radius: 6px;
|
|
312
|
+
transition: var(--transition-smooth);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Horizontal branch connector line (L-shaped) */
|
|
316
|
+
.tree-node-child::before {
|
|
317
|
+
content: '';
|
|
318
|
+
position: absolute;
|
|
319
|
+
left: -14px;
|
|
320
|
+
top: 14px;
|
|
321
|
+
width: 10px;
|
|
322
|
+
height: 1px;
|
|
323
|
+
border-top: 1px dashed rgba(255, 255, 255, 0.12);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.tree-node-child:hover {
|
|
327
|
+
background: rgba(255, 255, 255, 0.02);
|
|
328
|
+
color: #fff;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.tree-node-child .btn-node-action {
|
|
332
|
+
opacity: 0;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.tree-node-child:hover .btn-node-action {
|
|
336
|
+
opacity: 1;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.empty-nest {
|
|
340
|
+
font-size: 0.78rem;
|
|
341
|
+
color: var(--text-dark);
|
|
342
|
+
font-style: italic;
|
|
343
|
+
padding: 0.25rem 0.5rem;
|
|
344
|
+
position: relative;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.empty-nest::before {
|
|
348
|
+
content: '';
|
|
349
|
+
position: absolute;
|
|
350
|
+
left: -14px;
|
|
351
|
+
top: 12px;
|
|
352
|
+
width: 10px;
|
|
353
|
+
height: 1px;
|
|
354
|
+
border-top: 1px dashed rgba(255, 255, 255, 0.12);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* Inline Subcategory Form */
|
|
358
|
+
.inline-subcat-form {
|
|
359
|
+
display: flex;
|
|
360
|
+
align-items: center;
|
|
361
|
+
gap: 0.4rem;
|
|
362
|
+
background: rgba(139, 92, 246, 0.03);
|
|
363
|
+
border: 1px dashed rgba(139, 92, 246, 0.15);
|
|
364
|
+
padding: 0.3rem 0.5rem;
|
|
365
|
+
border-radius: 6px;
|
|
366
|
+
margin-bottom: 0.2rem;
|
|
367
|
+
animation: slideDown 0.2s ease;
|
|
368
|
+
position: relative;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.inline-subcat-form::before {
|
|
372
|
+
content: '';
|
|
373
|
+
position: absolute;
|
|
374
|
+
left: -14px;
|
|
375
|
+
top: 17px;
|
|
376
|
+
width: 10px;
|
|
377
|
+
height: 1px;
|
|
378
|
+
border-top: 1px dashed rgba(139, 92, 246, 0.25);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.inline-subcat-form.hidden {
|
|
382
|
+
display: none !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.inline-subcat-form input {
|
|
386
|
+
flex: 1;
|
|
387
|
+
background: rgba(0, 0, 0, 0.25);
|
|
388
|
+
border: 1px solid var(--panel-border);
|
|
389
|
+
border-radius: 5px;
|
|
390
|
+
padding: 0.25rem 0.45rem;
|
|
391
|
+
color: #fff;
|
|
392
|
+
font-size: 0.78rem;
|
|
393
|
+
font-family: inherit;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.inline-subcat-form input:focus {
|
|
397
|
+
outline: none;
|
|
398
|
+
border-color: var(--accent-primary);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.btn-inline-action {
|
|
402
|
+
background: none;
|
|
403
|
+
border: none;
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
font-size: 0.75rem;
|
|
406
|
+
padding: 0.25rem 0.45rem;
|
|
407
|
+
border-radius: 4px;
|
|
408
|
+
font-weight: 700;
|
|
409
|
+
transition: var(--transition-smooth);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.btn-inline-action.save {
|
|
413
|
+
background: var(--accent-primary);
|
|
414
|
+
color: #fff;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.btn-inline-action.save:hover {
|
|
418
|
+
background: var(--accent-secondary);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.btn-inline-action.cancel {
|
|
422
|
+
color: var(--text-muted);
|
|
423
|
+
background: rgba(255,255,255,0.05);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.btn-inline-action.cancel:hover {
|
|
427
|
+
background: rgba(255,255,255,0.1);
|
|
428
|
+
color: #fff;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/* Loading Overlay (.loading-overlay/.spinner base: ui/app.css, #164) */
|
|
432
|
+
.loading-overlay {
|
|
433
|
+
width: 100%; height: 100%;
|
|
434
|
+
background: rgba(12, 14, 23, 0.85);
|
|
435
|
+
z-index: 100;
|
|
436
|
+
border-radius: 24px;
|
|
437
|
+
opacity: 0; pointer-events: none;
|
|
438
|
+
transition: opacity 0.25s ease;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.loading-overlay.active {
|
|
442
|
+
opacity: 1;
|
|
443
|
+
pointer-events: all;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* Toast notifications (.toast-container/.toast base: ui/app.css, #164) */
|
|
447
|
+
.toast-container {
|
|
448
|
+
z-index: 9999;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.toast {
|
|
452
|
+
background: #111322;
|
|
453
|
+
padding: 1rem 1.25rem;
|
|
454
|
+
font-size: 0.85rem;
|
|
455
|
+
font-weight: 500;
|
|
456
|
+
transform: translateY(20px);
|
|
457
|
+
opacity: 0;
|
|
458
|
+
animation: toastIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
|
|
459
|
+
min-width: 280px;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.toast.success { border-left: 4px solid var(--income-color); }
|
|
463
|
+
.toast.error { border-left: 4px solid var(--expense-color); }
|
|
464
|
+
|
|
465
|
+
.toast i { font-size: 1.1rem; }
|
|
466
|
+
.toast.success i { color: var(--income-color); }
|
|
467
|
+
.toast.error i { color: var(--expense-color); }
|
|
468
|
+
|
|
469
|
+
@keyframes toastIn {
|
|
470
|
+
to { transform: translateY(0); opacity: 1; }
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
@keyframes fadeOut {
|
|
474
|
+
to { opacity: 0; transform: translateY(20px); }
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/* Custom Select component styling */
|
|
478
|
+
.select-container-custom {
|
|
479
|
+
position: relative;
|
|
480
|
+
display: inline-block;
|
|
481
|
+
min-width: 120px;
|
|
482
|
+
user-select: none;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.select-trigger-custom {
|
|
486
|
+
background: rgba(255, 255, 255, 0.05);
|
|
487
|
+
border: 1px solid var(--panel-border);
|
|
488
|
+
color: var(--text-main);
|
|
489
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
490
|
+
border-radius: 8px;
|
|
491
|
+
cursor: pointer;
|
|
492
|
+
font-size: 0.85rem;
|
|
493
|
+
font-weight: 600;
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
justify-content: space-between;
|
|
497
|
+
transition: var(--transition-smooth);
|
|
498
|
+
min-height: 36px;
|
|
499
|
+
box-sizing: border-box;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.select-trigger-custom:hover {
|
|
503
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
504
|
+
background: rgba(255, 255, 255, 0.08);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.select-container-custom.open .select-trigger-custom {
|
|
508
|
+
border-color: var(--accent-primary);
|
|
509
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.select-trigger-custom::after {
|
|
513
|
+
content: '\f078';
|
|
514
|
+
font-family: 'Font Awesome 6 Free';
|
|
515
|
+
font-weight: 900;
|
|
516
|
+
font-size: 0.7rem;
|
|
517
|
+
color: var(--text-muted);
|
|
518
|
+
position: absolute;
|
|
519
|
+
right: 12px;
|
|
520
|
+
transition: transform 0.3s ease;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
524
|
+
transform: rotate(180deg);
|
|
525
|
+
color: var(--accent-primary);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.select-options-custom {
|
|
529
|
+
display: none;
|
|
530
|
+
position: absolute;
|
|
531
|
+
top: calc(100% + 6px);
|
|
532
|
+
left: 0;
|
|
533
|
+
width: 100%;
|
|
534
|
+
background: var(--panel-bg);
|
|
535
|
+
border: 1px solid var(--panel-border);
|
|
536
|
+
border-radius: 12px;
|
|
537
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
|
538
|
+
z-index: 1000;
|
|
539
|
+
max-height: 250px;
|
|
540
|
+
overflow-y: auto;
|
|
541
|
+
padding: 4px;
|
|
542
|
+
backdrop-filter: blur(20px);
|
|
543
|
+
box-sizing: border-box;
|
|
544
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
@keyframes selectFadeIn {
|
|
548
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
549
|
+
to { opacity: 1; transform: translateY(0); }
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.select-container-custom.open .select-options-custom {
|
|
553
|
+
display: block;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.select-option-custom {
|
|
557
|
+
padding: 0.5rem 0.75rem;
|
|
558
|
+
color: var(--text-dark);
|
|
559
|
+
font-size: 0.82rem;
|
|
560
|
+
font-weight: 500;
|
|
561
|
+
border-radius: 6px;
|
|
562
|
+
cursor: pointer;
|
|
563
|
+
transition: var(--transition-smooth);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.select-option-custom:hover {
|
|
567
|
+
background: rgba(255, 255, 255, 0.05);
|
|
568
|
+
color: #fff;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.select-option-custom.selected {
|
|
572
|
+
background: var(--accent-primary-glow);
|
|
573
|
+
color: var(--accent-primary);
|
|
574
|
+
font-weight: 700;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.select-options-custom::-webkit-scrollbar {
|
|
578
|
+
width: 6px;
|
|
579
|
+
}
|
|
580
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
581
|
+
background: transparent;
|
|
582
|
+
}
|
|
583
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
584
|
+
background: rgba(255, 255, 255, 0.1);
|
|
585
|
+
border-radius: 3px;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/* Custom Select component styling */
|
|
589
|
+
.select-container-custom {
|
|
590
|
+
position: relative;
|
|
591
|
+
display: inline-block;
|
|
592
|
+
min-width: 120px;
|
|
593
|
+
user-select: none;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.select-trigger-custom {
|
|
597
|
+
background: rgba(255, 255, 255, 0.05);
|
|
598
|
+
border: 1px solid var(--panel-border);
|
|
599
|
+
color: var(--text-main);
|
|
600
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
601
|
+
border-radius: 8px;
|
|
602
|
+
cursor: pointer;
|
|
603
|
+
font-size: 0.85rem;
|
|
604
|
+
font-weight: 600;
|
|
605
|
+
display: flex;
|
|
606
|
+
align-items: center;
|
|
607
|
+
justify-content: space-between;
|
|
608
|
+
transition: var(--transition-smooth);
|
|
609
|
+
min-height: 36px;
|
|
610
|
+
box-sizing: border-box;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.select-trigger-custom:hover {
|
|
614
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
615
|
+
background: rgba(255, 255, 255, 0.08);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.select-container-custom.open .select-trigger-custom {
|
|
619
|
+
border-color: var(--accent-primary);
|
|
620
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.select-trigger-custom::after {
|
|
624
|
+
content: '\f078';
|
|
625
|
+
font-family: 'Font Awesome 6 Free';
|
|
626
|
+
font-weight: 900;
|
|
627
|
+
font-size: 0.7rem;
|
|
628
|
+
color: var(--text-muted);
|
|
629
|
+
position: absolute;
|
|
630
|
+
right: 12px;
|
|
631
|
+
transition: transform 0.3s ease;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
635
|
+
transform: rotate(180deg);
|
|
636
|
+
color: var(--accent-primary);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.select-options-custom {
|
|
640
|
+
display: none;
|
|
641
|
+
position: absolute;
|
|
642
|
+
top: calc(100% + 6px);
|
|
643
|
+
left: 0;
|
|
644
|
+
width: 100%;
|
|
645
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
646
|
+
border: 1px solid var(--panel-border);
|
|
647
|
+
border-radius: 12px;
|
|
648
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
649
|
+
z-index: 1000;
|
|
650
|
+
max-height: 250px;
|
|
651
|
+
overflow-y: auto;
|
|
652
|
+
padding: 4px;
|
|
653
|
+
backdrop-filter: blur(20px);
|
|
654
|
+
box-sizing: border-box;
|
|
655
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
@keyframes selectFadeIn {
|
|
659
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
660
|
+
to { opacity: 1; transform: translateY(0); }
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.select-container-custom.open .select-options-custom {
|
|
664
|
+
display: block;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.select-option-custom {
|
|
668
|
+
padding: 0.5rem 0.75rem;
|
|
669
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
670
|
+
font-size: 0.82rem;
|
|
671
|
+
font-weight: 500;
|
|
672
|
+
border-radius: 6px;
|
|
673
|
+
cursor: pointer;
|
|
674
|
+
transition: var(--transition-smooth);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.select-option-custom:hover {
|
|
678
|
+
background: rgba(255, 255, 255, 0.08);
|
|
679
|
+
color: #fff;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.select-option-custom.selected {
|
|
683
|
+
background: var(--accent-primary-glow);
|
|
684
|
+
color: var(--accent-primary);
|
|
685
|
+
font-weight: 700;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.select-options-custom::-webkit-scrollbar {
|
|
689
|
+
width: 6px;
|
|
690
|
+
}
|
|
691
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
692
|
+
background: transparent;
|
|
693
|
+
}
|
|
694
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
695
|
+
background: rgba(255, 255, 255, 0.1);
|
|
696
|
+
border-radius: 3px;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/* Custom Select component styling */
|
|
700
|
+
.select-container-custom {
|
|
701
|
+
position: relative;
|
|
702
|
+
display: inline-block;
|
|
703
|
+
min-width: 120px;
|
|
704
|
+
user-select: none;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.select-trigger-custom {
|
|
708
|
+
background: rgba(255, 255, 255, 0.05);
|
|
709
|
+
border: 1px solid var(--panel-border);
|
|
710
|
+
color: var(--text-main);
|
|
711
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
712
|
+
border-radius: 8px;
|
|
713
|
+
cursor: pointer;
|
|
714
|
+
font-size: 0.85rem;
|
|
715
|
+
font-weight: 600;
|
|
716
|
+
display: flex;
|
|
717
|
+
align-items: center;
|
|
718
|
+
justify-content: space-between;
|
|
719
|
+
transition: var(--transition-smooth);
|
|
720
|
+
min-height: 36px;
|
|
721
|
+
box-sizing: border-box;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.select-trigger-custom:hover {
|
|
725
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
726
|
+
background: rgba(255, 255, 255, 0.08);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.select-container-custom.open .select-trigger-custom {
|
|
730
|
+
border-color: var(--accent-primary);
|
|
731
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.select-trigger-custom::after {
|
|
735
|
+
content: '\f078';
|
|
736
|
+
font-family: 'Font Awesome 6 Free';
|
|
737
|
+
font-weight: 900;
|
|
738
|
+
font-size: 0.7rem;
|
|
739
|
+
color: var(--text-muted);
|
|
740
|
+
position: absolute;
|
|
741
|
+
right: 12px;
|
|
742
|
+
transition: transform 0.3s ease;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
746
|
+
transform: rotate(180deg);
|
|
747
|
+
color: var(--accent-primary);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.select-options-custom {
|
|
751
|
+
display: none;
|
|
752
|
+
position: absolute;
|
|
753
|
+
top: calc(100% + 6px);
|
|
754
|
+
left: 0;
|
|
755
|
+
width: 100%;
|
|
756
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
757
|
+
border: 1px solid var(--panel-border);
|
|
758
|
+
border-radius: 12px;
|
|
759
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
760
|
+
z-index: 1000;
|
|
761
|
+
max-height: 250px;
|
|
762
|
+
overflow-y: auto;
|
|
763
|
+
padding: 4px;
|
|
764
|
+
backdrop-filter: blur(20px);
|
|
765
|
+
box-sizing: border-box;
|
|
766
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
@keyframes selectFadeIn {
|
|
770
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
771
|
+
to { opacity: 1; transform: translateY(0); }
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.select-container-custom.open .select-options-custom {
|
|
775
|
+
display: block;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.select-option-custom {
|
|
779
|
+
padding: 0.5rem 0.75rem;
|
|
780
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
781
|
+
font-size: 0.82rem;
|
|
782
|
+
font-weight: 500;
|
|
783
|
+
border-radius: 6px;
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
transition: var(--transition-smooth);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.select-option-custom:hover {
|
|
789
|
+
background: rgba(255, 255, 255, 0.08);
|
|
790
|
+
color: #fff;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.select-option-custom.selected {
|
|
794
|
+
background: var(--accent-primary-glow);
|
|
795
|
+
color: var(--accent-primary);
|
|
796
|
+
font-weight: 700;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.select-options-custom::-webkit-scrollbar {
|
|
800
|
+
width: 6px;
|
|
801
|
+
}
|
|
802
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
803
|
+
background: transparent;
|
|
804
|
+
}
|
|
805
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
806
|
+
background: rgba(255, 255, 255, 0.1);
|
|
807
|
+
border-radius: 3px;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/* Custom Select component styling */
|
|
811
|
+
.select-container-custom {
|
|
812
|
+
position: relative;
|
|
813
|
+
display: inline-block;
|
|
814
|
+
min-width: 120px;
|
|
815
|
+
user-select: none;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.select-trigger-custom {
|
|
819
|
+
background: rgba(255, 255, 255, 0.05);
|
|
820
|
+
border: 1px solid var(--panel-border);
|
|
821
|
+
color: var(--text-main);
|
|
822
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
823
|
+
border-radius: 8px;
|
|
824
|
+
cursor: pointer;
|
|
825
|
+
font-size: 0.85rem;
|
|
826
|
+
font-weight: 600;
|
|
827
|
+
display: flex;
|
|
828
|
+
align-items: center;
|
|
829
|
+
justify-content: space-between;
|
|
830
|
+
transition: var(--transition-smooth);
|
|
831
|
+
min-height: 36px;
|
|
832
|
+
box-sizing: border-box;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.select-trigger-custom:hover {
|
|
836
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
837
|
+
background: rgba(255, 255, 255, 0.08);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.select-container-custom.open .select-trigger-custom {
|
|
841
|
+
border-color: var(--accent-primary);
|
|
842
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.select-trigger-custom::after {
|
|
846
|
+
content: '\f078';
|
|
847
|
+
font-family: 'Font Awesome 6 Free';
|
|
848
|
+
font-weight: 900;
|
|
849
|
+
font-size: 0.7rem;
|
|
850
|
+
color: var(--text-muted);
|
|
851
|
+
position: absolute;
|
|
852
|
+
right: 12px;
|
|
853
|
+
transition: transform 0.3s ease;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
857
|
+
transform: rotate(180deg);
|
|
858
|
+
color: var(--accent-primary);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.select-options-custom {
|
|
862
|
+
display: none;
|
|
863
|
+
position: absolute;
|
|
864
|
+
top: calc(100% + 6px);
|
|
865
|
+
left: 0;
|
|
866
|
+
width: 100%;
|
|
867
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
868
|
+
border: 1px solid var(--panel-border);
|
|
869
|
+
border-radius: 12px;
|
|
870
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
871
|
+
z-index: 1000;
|
|
872
|
+
max-height: 250px;
|
|
873
|
+
overflow-y: auto;
|
|
874
|
+
padding: 4px;
|
|
875
|
+
backdrop-filter: blur(20px);
|
|
876
|
+
box-sizing: border-box;
|
|
877
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
@keyframes selectFadeIn {
|
|
881
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
882
|
+
to { opacity: 1; transform: translateY(0); }
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.select-container-custom.open .select-options-custom {
|
|
886
|
+
display: block;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.select-option-custom {
|
|
890
|
+
padding: 0.5rem 0.75rem;
|
|
891
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
892
|
+
font-size: 0.82rem;
|
|
893
|
+
font-weight: 500;
|
|
894
|
+
border-radius: 6px;
|
|
895
|
+
cursor: pointer;
|
|
896
|
+
transition: var(--transition-smooth);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.select-option-custom:hover {
|
|
900
|
+
background: rgba(255, 255, 255, 0.08);
|
|
901
|
+
color: #fff;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.select-option-custom.selected {
|
|
905
|
+
background: var(--accent-primary-glow);
|
|
906
|
+
color: var(--accent-primary);
|
|
907
|
+
font-weight: 700;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.select-options-custom::-webkit-scrollbar {
|
|
911
|
+
width: 6px;
|
|
912
|
+
}
|
|
913
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
914
|
+
background: transparent;
|
|
915
|
+
}
|
|
916
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
917
|
+
background: rgba(255, 255, 255, 0.1);
|
|
918
|
+
border-radius: 3px;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/* Custom Select component styling */
|
|
922
|
+
.select-container-custom {
|
|
923
|
+
position: relative;
|
|
924
|
+
display: inline-block;
|
|
925
|
+
min-width: 120px;
|
|
926
|
+
user-select: none;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.select-trigger-custom {
|
|
930
|
+
background: rgba(255, 255, 255, 0.05);
|
|
931
|
+
border: 1px solid var(--panel-border);
|
|
932
|
+
color: var(--text-main);
|
|
933
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
934
|
+
border-radius: 8px;
|
|
935
|
+
cursor: pointer;
|
|
936
|
+
font-size: 0.85rem;
|
|
937
|
+
font-weight: 600;
|
|
938
|
+
display: flex;
|
|
939
|
+
align-items: center;
|
|
940
|
+
justify-content: space-between;
|
|
941
|
+
transition: var(--transition-smooth);
|
|
942
|
+
min-height: 36px;
|
|
943
|
+
box-sizing: border-box;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.select-trigger-custom:hover {
|
|
947
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
948
|
+
background: rgba(255, 255, 255, 0.08);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.select-container-custom.open .select-trigger-custom {
|
|
952
|
+
border-color: var(--accent-primary);
|
|
953
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.select-trigger-custom::after {
|
|
957
|
+
content: '\f078';
|
|
958
|
+
font-family: 'Font Awesome 6 Free';
|
|
959
|
+
font-weight: 900;
|
|
960
|
+
font-size: 0.7rem;
|
|
961
|
+
color: var(--text-muted);
|
|
962
|
+
position: absolute;
|
|
963
|
+
right: 12px;
|
|
964
|
+
transition: transform 0.3s ease;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
968
|
+
transform: rotate(180deg);
|
|
969
|
+
color: var(--accent-primary);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.select-options-custom {
|
|
973
|
+
display: none;
|
|
974
|
+
position: absolute;
|
|
975
|
+
top: calc(100% + 6px);
|
|
976
|
+
left: 0;
|
|
977
|
+
width: 100%;
|
|
978
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
979
|
+
border: 1px solid var(--panel-border);
|
|
980
|
+
border-radius: 12px;
|
|
981
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
982
|
+
z-index: 1000;
|
|
983
|
+
max-height: 250px;
|
|
984
|
+
overflow-y: auto;
|
|
985
|
+
padding: 4px;
|
|
986
|
+
backdrop-filter: blur(20px);
|
|
987
|
+
box-sizing: border-box;
|
|
988
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
@keyframes selectFadeIn {
|
|
992
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
993
|
+
to { opacity: 1; transform: translateY(0); }
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.select-container-custom.open .select-options-custom {
|
|
997
|
+
display: block;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.select-option-custom {
|
|
1001
|
+
padding: 0.5rem 0.75rem;
|
|
1002
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1003
|
+
font-size: 0.82rem;
|
|
1004
|
+
font-weight: 500;
|
|
1005
|
+
border-radius: 6px;
|
|
1006
|
+
cursor: pointer;
|
|
1007
|
+
transition: var(--transition-smooth);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.select-option-custom:hover {
|
|
1011
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1012
|
+
color: #fff;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
.select-option-custom.selected {
|
|
1016
|
+
background: var(--accent-primary-glow);
|
|
1017
|
+
color: var(--accent-primary);
|
|
1018
|
+
font-weight: 700;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1022
|
+
width: 6px;
|
|
1023
|
+
}
|
|
1024
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1025
|
+
background: transparent;
|
|
1026
|
+
}
|
|
1027
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1028
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1029
|
+
border-radius: 3px;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/* Custom Select component styling */
|
|
1033
|
+
.select-container-custom {
|
|
1034
|
+
position: relative;
|
|
1035
|
+
display: inline-block;
|
|
1036
|
+
min-width: 120px;
|
|
1037
|
+
user-select: none;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.select-trigger-custom {
|
|
1041
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1042
|
+
border: 1px solid var(--panel-border);
|
|
1043
|
+
color: var(--text-main);
|
|
1044
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1045
|
+
border-radius: 8px;
|
|
1046
|
+
cursor: pointer;
|
|
1047
|
+
font-size: 0.85rem;
|
|
1048
|
+
font-weight: 600;
|
|
1049
|
+
display: flex;
|
|
1050
|
+
align-items: center;
|
|
1051
|
+
justify-content: space-between;
|
|
1052
|
+
transition: var(--transition-smooth);
|
|
1053
|
+
min-height: 36px;
|
|
1054
|
+
box-sizing: border-box;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.select-trigger-custom:hover {
|
|
1058
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1059
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1063
|
+
border-color: var(--accent-primary);
|
|
1064
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.select-trigger-custom::after {
|
|
1068
|
+
content: '\f078';
|
|
1069
|
+
font-family: 'Font Awesome 6 Free';
|
|
1070
|
+
font-weight: 900;
|
|
1071
|
+
font-size: 0.7rem;
|
|
1072
|
+
color: var(--text-muted);
|
|
1073
|
+
position: absolute;
|
|
1074
|
+
right: 12px;
|
|
1075
|
+
transition: transform 0.3s ease;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1079
|
+
transform: rotate(180deg);
|
|
1080
|
+
color: var(--accent-primary);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.select-options-custom {
|
|
1084
|
+
display: none;
|
|
1085
|
+
position: absolute;
|
|
1086
|
+
top: calc(100% + 6px);
|
|
1087
|
+
left: 0;
|
|
1088
|
+
width: 100%;
|
|
1089
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1090
|
+
border: 1px solid var(--panel-border);
|
|
1091
|
+
border-radius: 12px;
|
|
1092
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1093
|
+
z-index: 1000;
|
|
1094
|
+
max-height: 250px;
|
|
1095
|
+
overflow-y: auto;
|
|
1096
|
+
padding: 4px;
|
|
1097
|
+
backdrop-filter: blur(20px);
|
|
1098
|
+
box-sizing: border-box;
|
|
1099
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
@keyframes selectFadeIn {
|
|
1103
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1104
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.select-container-custom.open .select-options-custom {
|
|
1108
|
+
display: block;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.select-option-custom {
|
|
1112
|
+
padding: 0.5rem 0.75rem;
|
|
1113
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1114
|
+
font-size: 0.82rem;
|
|
1115
|
+
font-weight: 500;
|
|
1116
|
+
border-radius: 6px;
|
|
1117
|
+
cursor: pointer;
|
|
1118
|
+
transition: var(--transition-smooth);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.select-option-custom:hover {
|
|
1122
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1123
|
+
color: #fff;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.select-option-custom.selected {
|
|
1127
|
+
background: var(--accent-primary-glow);
|
|
1128
|
+
color: var(--accent-primary);
|
|
1129
|
+
font-weight: 700;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1133
|
+
width: 6px;
|
|
1134
|
+
}
|
|
1135
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1136
|
+
background: transparent;
|
|
1137
|
+
}
|
|
1138
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1139
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1140
|
+
border-radius: 3px;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/* Custom Select component styling */
|
|
1144
|
+
.select-container-custom {
|
|
1145
|
+
position: relative;
|
|
1146
|
+
display: inline-block;
|
|
1147
|
+
min-width: 120px;
|
|
1148
|
+
user-select: none;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.select-trigger-custom {
|
|
1152
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1153
|
+
border: 1px solid var(--panel-border);
|
|
1154
|
+
color: var(--text-main);
|
|
1155
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1156
|
+
border-radius: 8px;
|
|
1157
|
+
cursor: pointer;
|
|
1158
|
+
font-size: 0.85rem;
|
|
1159
|
+
font-weight: 600;
|
|
1160
|
+
display: flex;
|
|
1161
|
+
align-items: center;
|
|
1162
|
+
justify-content: space-between;
|
|
1163
|
+
transition: var(--transition-smooth);
|
|
1164
|
+
min-height: 36px;
|
|
1165
|
+
box-sizing: border-box;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.select-trigger-custom:hover {
|
|
1169
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1170
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1174
|
+
border-color: var(--accent-primary);
|
|
1175
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.select-trigger-custom::after {
|
|
1179
|
+
content: '\f078';
|
|
1180
|
+
font-family: 'Font Awesome 6 Free';
|
|
1181
|
+
font-weight: 900;
|
|
1182
|
+
font-size: 0.7rem;
|
|
1183
|
+
color: var(--text-muted);
|
|
1184
|
+
position: absolute;
|
|
1185
|
+
right: 12px;
|
|
1186
|
+
transition: transform 0.3s ease;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1190
|
+
transform: rotate(180deg);
|
|
1191
|
+
color: var(--accent-primary);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.select-options-custom {
|
|
1195
|
+
display: none;
|
|
1196
|
+
position: absolute;
|
|
1197
|
+
top: calc(100% + 6px);
|
|
1198
|
+
left: 0;
|
|
1199
|
+
width: 100%;
|
|
1200
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1201
|
+
border: 1px solid var(--panel-border);
|
|
1202
|
+
border-radius: 12px;
|
|
1203
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1204
|
+
z-index: 1000;
|
|
1205
|
+
max-height: 250px;
|
|
1206
|
+
overflow-y: auto;
|
|
1207
|
+
padding: 4px;
|
|
1208
|
+
backdrop-filter: blur(20px);
|
|
1209
|
+
box-sizing: border-box;
|
|
1210
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
@keyframes selectFadeIn {
|
|
1214
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1215
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.select-container-custom.open .select-options-custom {
|
|
1219
|
+
display: block;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.select-option-custom {
|
|
1223
|
+
padding: 0.5rem 0.75rem;
|
|
1224
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1225
|
+
font-size: 0.82rem;
|
|
1226
|
+
font-weight: 500;
|
|
1227
|
+
border-radius: 6px;
|
|
1228
|
+
cursor: pointer;
|
|
1229
|
+
transition: var(--transition-smooth);
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.select-option-custom:hover {
|
|
1233
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1234
|
+
color: #fff;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.select-option-custom.selected {
|
|
1238
|
+
background: var(--accent-primary-glow);
|
|
1239
|
+
color: var(--accent-primary);
|
|
1240
|
+
font-weight: 700;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1244
|
+
width: 6px;
|
|
1245
|
+
}
|
|
1246
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1247
|
+
background: transparent;
|
|
1248
|
+
}
|
|
1249
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1250
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1251
|
+
border-radius: 3px;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/* Custom Select component styling */
|
|
1255
|
+
.select-container-custom {
|
|
1256
|
+
position: relative;
|
|
1257
|
+
display: inline-block;
|
|
1258
|
+
min-width: 120px;
|
|
1259
|
+
user-select: none;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.select-trigger-custom {
|
|
1263
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1264
|
+
border: 1px solid var(--panel-border);
|
|
1265
|
+
color: var(--text-main);
|
|
1266
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1267
|
+
border-radius: 8px;
|
|
1268
|
+
cursor: pointer;
|
|
1269
|
+
font-size: 0.85rem;
|
|
1270
|
+
font-weight: 600;
|
|
1271
|
+
display: flex;
|
|
1272
|
+
align-items: center;
|
|
1273
|
+
justify-content: space-between;
|
|
1274
|
+
transition: var(--transition-smooth);
|
|
1275
|
+
min-height: 36px;
|
|
1276
|
+
box-sizing: border-box;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.select-trigger-custom:hover {
|
|
1280
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1281
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1285
|
+
border-color: var(--accent-primary);
|
|
1286
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.select-trigger-custom::after {
|
|
1290
|
+
content: '\f078';
|
|
1291
|
+
font-family: 'Font Awesome 6 Free';
|
|
1292
|
+
font-weight: 900;
|
|
1293
|
+
font-size: 0.7rem;
|
|
1294
|
+
color: var(--text-muted);
|
|
1295
|
+
position: absolute;
|
|
1296
|
+
right: 12px;
|
|
1297
|
+
transition: transform 0.3s ease;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1301
|
+
transform: rotate(180deg);
|
|
1302
|
+
color: var(--accent-primary);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.select-options-custom {
|
|
1306
|
+
display: none;
|
|
1307
|
+
position: absolute;
|
|
1308
|
+
top: calc(100% + 6px);
|
|
1309
|
+
left: 0;
|
|
1310
|
+
width: 100%;
|
|
1311
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1312
|
+
border: 1px solid var(--panel-border);
|
|
1313
|
+
border-radius: 12px;
|
|
1314
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1315
|
+
z-index: 1000;
|
|
1316
|
+
max-height: 250px;
|
|
1317
|
+
overflow-y: auto;
|
|
1318
|
+
padding: 4px;
|
|
1319
|
+
backdrop-filter: blur(20px);
|
|
1320
|
+
box-sizing: border-box;
|
|
1321
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
@keyframes selectFadeIn {
|
|
1325
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1326
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.select-container-custom.open .select-options-custom {
|
|
1330
|
+
display: block;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.select-option-custom {
|
|
1334
|
+
padding: 0.5rem 0.75rem;
|
|
1335
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1336
|
+
font-size: 0.82rem;
|
|
1337
|
+
font-weight: 500;
|
|
1338
|
+
border-radius: 6px;
|
|
1339
|
+
cursor: pointer;
|
|
1340
|
+
transition: var(--transition-smooth);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.select-option-custom:hover {
|
|
1344
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1345
|
+
color: #fff;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.select-option-custom.selected {
|
|
1349
|
+
background: var(--accent-primary-glow);
|
|
1350
|
+
color: var(--accent-primary);
|
|
1351
|
+
font-weight: 700;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1355
|
+
width: 6px;
|
|
1356
|
+
}
|
|
1357
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1358
|
+
background: transparent;
|
|
1359
|
+
}
|
|
1360
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1361
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1362
|
+
border-radius: 3px;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
/* Custom Select component styling */
|
|
1366
|
+
.select-container-custom {
|
|
1367
|
+
position: relative;
|
|
1368
|
+
display: inline-block;
|
|
1369
|
+
min-width: 120px;
|
|
1370
|
+
user-select: none;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.select-trigger-custom {
|
|
1374
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1375
|
+
border: 1px solid var(--panel-border);
|
|
1376
|
+
color: var(--text-main);
|
|
1377
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1378
|
+
border-radius: 8px;
|
|
1379
|
+
cursor: pointer;
|
|
1380
|
+
font-size: 0.85rem;
|
|
1381
|
+
font-weight: 600;
|
|
1382
|
+
display: flex;
|
|
1383
|
+
align-items: center;
|
|
1384
|
+
justify-content: space-between;
|
|
1385
|
+
transition: var(--transition-smooth);
|
|
1386
|
+
min-height: 36px;
|
|
1387
|
+
box-sizing: border-box;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
.select-trigger-custom:hover {
|
|
1391
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1392
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1396
|
+
border-color: var(--accent-primary);
|
|
1397
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.select-trigger-custom::after {
|
|
1401
|
+
content: '\f078';
|
|
1402
|
+
font-family: 'Font Awesome 6 Free';
|
|
1403
|
+
font-weight: 900;
|
|
1404
|
+
font-size: 0.7rem;
|
|
1405
|
+
color: var(--text-muted);
|
|
1406
|
+
position: absolute;
|
|
1407
|
+
right: 12px;
|
|
1408
|
+
transition: transform 0.3s ease;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1412
|
+
transform: rotate(180deg);
|
|
1413
|
+
color: var(--accent-primary);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.select-options-custom {
|
|
1417
|
+
display: none;
|
|
1418
|
+
position: absolute;
|
|
1419
|
+
top: calc(100% + 6px);
|
|
1420
|
+
left: 0;
|
|
1421
|
+
width: 100%;
|
|
1422
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1423
|
+
border: 1px solid var(--panel-border);
|
|
1424
|
+
border-radius: 12px;
|
|
1425
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1426
|
+
z-index: 1000;
|
|
1427
|
+
max-height: 250px;
|
|
1428
|
+
overflow-y: auto;
|
|
1429
|
+
padding: 4px;
|
|
1430
|
+
backdrop-filter: blur(20px);
|
|
1431
|
+
box-sizing: border-box;
|
|
1432
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
@keyframes selectFadeIn {
|
|
1436
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1437
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
.select-container-custom.open .select-options-custom {
|
|
1441
|
+
display: block;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.select-option-custom {
|
|
1445
|
+
padding: 0.5rem 0.75rem;
|
|
1446
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1447
|
+
font-size: 0.82rem;
|
|
1448
|
+
font-weight: 500;
|
|
1449
|
+
border-radius: 6px;
|
|
1450
|
+
cursor: pointer;
|
|
1451
|
+
transition: var(--transition-smooth);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
.select-option-custom:hover {
|
|
1455
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1456
|
+
color: #fff;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.select-option-custom.selected {
|
|
1460
|
+
background: var(--accent-primary-glow);
|
|
1461
|
+
color: var(--accent-primary);
|
|
1462
|
+
font-weight: 700;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1466
|
+
width: 6px;
|
|
1467
|
+
}
|
|
1468
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1469
|
+
background: transparent;
|
|
1470
|
+
}
|
|
1471
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1472
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1473
|
+
border-radius: 3px;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
/* Custom Select component styling */
|
|
1477
|
+
.select-container-custom {
|
|
1478
|
+
position: relative;
|
|
1479
|
+
display: inline-block;
|
|
1480
|
+
min-width: 120px;
|
|
1481
|
+
user-select: none;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
.select-trigger-custom {
|
|
1485
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1486
|
+
border: 1px solid var(--panel-border);
|
|
1487
|
+
color: var(--text-main);
|
|
1488
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1489
|
+
border-radius: 8px;
|
|
1490
|
+
cursor: pointer;
|
|
1491
|
+
font-size: 0.85rem;
|
|
1492
|
+
font-weight: 600;
|
|
1493
|
+
display: flex;
|
|
1494
|
+
align-items: center;
|
|
1495
|
+
justify-content: space-between;
|
|
1496
|
+
transition: var(--transition-smooth);
|
|
1497
|
+
min-height: 36px;
|
|
1498
|
+
box-sizing: border-box;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.select-trigger-custom:hover {
|
|
1502
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1503
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1507
|
+
border-color: var(--accent-primary);
|
|
1508
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
.select-trigger-custom::after {
|
|
1512
|
+
content: '\f078';
|
|
1513
|
+
font-family: 'Font Awesome 6 Free';
|
|
1514
|
+
font-weight: 900;
|
|
1515
|
+
font-size: 0.7rem;
|
|
1516
|
+
color: var(--text-muted);
|
|
1517
|
+
position: absolute;
|
|
1518
|
+
right: 12px;
|
|
1519
|
+
transition: transform 0.3s ease;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1523
|
+
transform: rotate(180deg);
|
|
1524
|
+
color: var(--accent-primary);
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.select-options-custom {
|
|
1528
|
+
display: none;
|
|
1529
|
+
position: absolute;
|
|
1530
|
+
top: calc(100% + 6px);
|
|
1531
|
+
left: 0;
|
|
1532
|
+
width: 100%;
|
|
1533
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1534
|
+
border: 1px solid var(--panel-border);
|
|
1535
|
+
border-radius: 12px;
|
|
1536
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1537
|
+
z-index: 1000;
|
|
1538
|
+
max-height: 250px;
|
|
1539
|
+
overflow-y: auto;
|
|
1540
|
+
padding: 4px;
|
|
1541
|
+
backdrop-filter: blur(20px);
|
|
1542
|
+
box-sizing: border-box;
|
|
1543
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
@keyframes selectFadeIn {
|
|
1547
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1548
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
.select-container-custom.open .select-options-custom {
|
|
1552
|
+
display: block;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
.select-option-custom {
|
|
1556
|
+
padding: 0.5rem 0.75rem;
|
|
1557
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1558
|
+
font-size: 0.82rem;
|
|
1559
|
+
font-weight: 500;
|
|
1560
|
+
border-radius: 6px;
|
|
1561
|
+
cursor: pointer;
|
|
1562
|
+
transition: var(--transition-smooth);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
.select-option-custom:hover {
|
|
1566
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1567
|
+
color: #fff;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
.select-option-custom.selected {
|
|
1571
|
+
background: var(--accent-primary-glow);
|
|
1572
|
+
color: var(--accent-primary);
|
|
1573
|
+
font-weight: 700;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1577
|
+
width: 6px;
|
|
1578
|
+
}
|
|
1579
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1580
|
+
background: transparent;
|
|
1581
|
+
}
|
|
1582
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1583
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1584
|
+
border-radius: 3px;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/* Custom Select component styling */
|
|
1588
|
+
.select-container-custom {
|
|
1589
|
+
position: relative;
|
|
1590
|
+
display: inline-block;
|
|
1591
|
+
min-width: 120px;
|
|
1592
|
+
user-select: none;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
.select-trigger-custom {
|
|
1596
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1597
|
+
border: 1px solid var(--panel-border);
|
|
1598
|
+
color: var(--text-main);
|
|
1599
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1600
|
+
border-radius: 8px;
|
|
1601
|
+
cursor: pointer;
|
|
1602
|
+
font-size: 0.85rem;
|
|
1603
|
+
font-weight: 600;
|
|
1604
|
+
display: flex;
|
|
1605
|
+
align-items: center;
|
|
1606
|
+
justify-content: space-between;
|
|
1607
|
+
transition: var(--transition-smooth);
|
|
1608
|
+
min-height: 36px;
|
|
1609
|
+
box-sizing: border-box;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.select-trigger-custom:hover {
|
|
1613
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1614
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1618
|
+
border-color: var(--accent-primary);
|
|
1619
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
.select-trigger-custom::after {
|
|
1623
|
+
content: '\f078';
|
|
1624
|
+
font-family: 'Font Awesome 6 Free';
|
|
1625
|
+
font-weight: 900;
|
|
1626
|
+
font-size: 0.7rem;
|
|
1627
|
+
color: var(--text-muted);
|
|
1628
|
+
position: absolute;
|
|
1629
|
+
right: 12px;
|
|
1630
|
+
transition: transform 0.3s ease;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1634
|
+
transform: rotate(180deg);
|
|
1635
|
+
color: var(--accent-primary);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
.select-options-custom {
|
|
1639
|
+
display: none;
|
|
1640
|
+
position: absolute;
|
|
1641
|
+
top: calc(100% + 6px);
|
|
1642
|
+
left: 0;
|
|
1643
|
+
width: 100%;
|
|
1644
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1645
|
+
border: 1px solid var(--panel-border);
|
|
1646
|
+
border-radius: 12px;
|
|
1647
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1648
|
+
z-index: 1000;
|
|
1649
|
+
max-height: 250px;
|
|
1650
|
+
overflow-y: auto;
|
|
1651
|
+
padding: 4px;
|
|
1652
|
+
backdrop-filter: blur(20px);
|
|
1653
|
+
box-sizing: border-box;
|
|
1654
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
@keyframes selectFadeIn {
|
|
1658
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1659
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
.select-container-custom.open .select-options-custom {
|
|
1663
|
+
display: block;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
.select-option-custom {
|
|
1667
|
+
padding: 0.5rem 0.75rem;
|
|
1668
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1669
|
+
font-size: 0.82rem;
|
|
1670
|
+
font-weight: 500;
|
|
1671
|
+
border-radius: 6px;
|
|
1672
|
+
cursor: pointer;
|
|
1673
|
+
transition: var(--transition-smooth);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.select-option-custom:hover {
|
|
1677
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1678
|
+
color: #fff;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
.select-option-custom.selected {
|
|
1682
|
+
background: var(--accent-primary-glow);
|
|
1683
|
+
color: var(--accent-primary);
|
|
1684
|
+
font-weight: 700;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1688
|
+
width: 6px;
|
|
1689
|
+
}
|
|
1690
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1691
|
+
background: transparent;
|
|
1692
|
+
}
|
|
1693
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1694
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1695
|
+
border-radius: 3px;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/* Custom Select component styling */
|
|
1699
|
+
.select-container-custom {
|
|
1700
|
+
position: relative;
|
|
1701
|
+
display: inline-block;
|
|
1702
|
+
min-width: 120px;
|
|
1703
|
+
user-select: none;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
.select-trigger-custom {
|
|
1707
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1708
|
+
border: 1px solid var(--panel-border);
|
|
1709
|
+
color: var(--text-main);
|
|
1710
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1711
|
+
border-radius: 8px;
|
|
1712
|
+
cursor: pointer;
|
|
1713
|
+
font-size: 0.85rem;
|
|
1714
|
+
font-weight: 600;
|
|
1715
|
+
display: flex;
|
|
1716
|
+
align-items: center;
|
|
1717
|
+
justify-content: space-between;
|
|
1718
|
+
transition: var(--transition-smooth);
|
|
1719
|
+
min-height: 36px;
|
|
1720
|
+
box-sizing: border-box;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
.select-trigger-custom:hover {
|
|
1724
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1725
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1729
|
+
border-color: var(--accent-primary);
|
|
1730
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
.select-trigger-custom::after {
|
|
1734
|
+
content: '\f078';
|
|
1735
|
+
font-family: 'Font Awesome 6 Free';
|
|
1736
|
+
font-weight: 900;
|
|
1737
|
+
font-size: 0.7rem;
|
|
1738
|
+
color: var(--text-muted);
|
|
1739
|
+
position: absolute;
|
|
1740
|
+
right: 12px;
|
|
1741
|
+
transition: transform 0.3s ease;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1745
|
+
transform: rotate(180deg);
|
|
1746
|
+
color: var(--accent-primary);
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
.select-options-custom {
|
|
1750
|
+
display: none;
|
|
1751
|
+
position: absolute;
|
|
1752
|
+
top: calc(100% + 6px);
|
|
1753
|
+
left: 0;
|
|
1754
|
+
width: 100%;
|
|
1755
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1756
|
+
border: 1px solid var(--panel-border);
|
|
1757
|
+
border-radius: 12px;
|
|
1758
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1759
|
+
z-index: 1000;
|
|
1760
|
+
max-height: 250px;
|
|
1761
|
+
overflow-y: auto;
|
|
1762
|
+
padding: 4px;
|
|
1763
|
+
backdrop-filter: blur(20px);
|
|
1764
|
+
box-sizing: border-box;
|
|
1765
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
@keyframes selectFadeIn {
|
|
1769
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1770
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
.select-container-custom.open .select-options-custom {
|
|
1774
|
+
display: block;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.select-option-custom {
|
|
1778
|
+
padding: 0.5rem 0.75rem;
|
|
1779
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1780
|
+
font-size: 0.82rem;
|
|
1781
|
+
font-weight: 500;
|
|
1782
|
+
border-radius: 6px;
|
|
1783
|
+
cursor: pointer;
|
|
1784
|
+
transition: var(--transition-smooth);
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
.select-option-custom:hover {
|
|
1788
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1789
|
+
color: #fff;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
.select-option-custom.selected {
|
|
1793
|
+
background: var(--accent-primary-glow);
|
|
1794
|
+
color: var(--accent-primary);
|
|
1795
|
+
font-weight: 700;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1799
|
+
width: 6px;
|
|
1800
|
+
}
|
|
1801
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1802
|
+
background: transparent;
|
|
1803
|
+
}
|
|
1804
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1805
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1806
|
+
border-radius: 3px;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
/* Custom Select component styling */
|
|
1810
|
+
.select-container-custom {
|
|
1811
|
+
position: relative;
|
|
1812
|
+
display: inline-block;
|
|
1813
|
+
min-width: 120px;
|
|
1814
|
+
user-select: none;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
.select-trigger-custom {
|
|
1818
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1819
|
+
border: 1px solid var(--panel-border);
|
|
1820
|
+
color: var(--text-main);
|
|
1821
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1822
|
+
border-radius: 8px;
|
|
1823
|
+
cursor: pointer;
|
|
1824
|
+
font-size: 0.85rem;
|
|
1825
|
+
font-weight: 600;
|
|
1826
|
+
display: flex;
|
|
1827
|
+
align-items: center;
|
|
1828
|
+
justify-content: space-between;
|
|
1829
|
+
transition: var(--transition-smooth);
|
|
1830
|
+
min-height: 36px;
|
|
1831
|
+
box-sizing: border-box;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.select-trigger-custom:hover {
|
|
1835
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1836
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1840
|
+
border-color: var(--accent-primary);
|
|
1841
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.select-trigger-custom::after {
|
|
1845
|
+
content: '\f078';
|
|
1846
|
+
font-family: 'Font Awesome 6 Free';
|
|
1847
|
+
font-weight: 900;
|
|
1848
|
+
font-size: 0.7rem;
|
|
1849
|
+
color: var(--text-muted);
|
|
1850
|
+
position: absolute;
|
|
1851
|
+
right: 12px;
|
|
1852
|
+
transition: transform 0.3s ease;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1856
|
+
transform: rotate(180deg);
|
|
1857
|
+
color: var(--accent-primary);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
.select-options-custom {
|
|
1861
|
+
display: none;
|
|
1862
|
+
position: absolute;
|
|
1863
|
+
top: calc(100% + 6px);
|
|
1864
|
+
left: 0;
|
|
1865
|
+
width: 100%;
|
|
1866
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1867
|
+
border: 1px solid var(--panel-border);
|
|
1868
|
+
border-radius: 12px;
|
|
1869
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1870
|
+
z-index: 1000;
|
|
1871
|
+
max-height: 250px;
|
|
1872
|
+
overflow-y: auto;
|
|
1873
|
+
padding: 4px;
|
|
1874
|
+
backdrop-filter: blur(20px);
|
|
1875
|
+
box-sizing: border-box;
|
|
1876
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
@keyframes selectFadeIn {
|
|
1880
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1881
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
.select-container-custom.open .select-options-custom {
|
|
1885
|
+
display: block;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
.select-option-custom {
|
|
1889
|
+
padding: 0.5rem 0.75rem;
|
|
1890
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
1891
|
+
font-size: 0.82rem;
|
|
1892
|
+
font-weight: 500;
|
|
1893
|
+
border-radius: 6px;
|
|
1894
|
+
cursor: pointer;
|
|
1895
|
+
transition: var(--transition-smooth);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
.select-option-custom:hover {
|
|
1899
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1900
|
+
color: #fff;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
.select-option-custom.selected {
|
|
1904
|
+
background: var(--accent-primary-glow);
|
|
1905
|
+
color: var(--accent-primary);
|
|
1906
|
+
font-weight: 700;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
.select-options-custom::-webkit-scrollbar {
|
|
1910
|
+
width: 6px;
|
|
1911
|
+
}
|
|
1912
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
1913
|
+
background: transparent;
|
|
1914
|
+
}
|
|
1915
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
1916
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1917
|
+
border-radius: 3px;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/* Custom Select component styling */
|
|
1921
|
+
.select-container-custom {
|
|
1922
|
+
position: relative;
|
|
1923
|
+
display: inline-block;
|
|
1924
|
+
min-width: 120px;
|
|
1925
|
+
user-select: none;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
.select-trigger-custom {
|
|
1929
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1930
|
+
border: 1px solid var(--panel-border);
|
|
1931
|
+
color: var(--text-main);
|
|
1932
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
1933
|
+
border-radius: 8px;
|
|
1934
|
+
cursor: pointer;
|
|
1935
|
+
font-size: 0.85rem;
|
|
1936
|
+
font-weight: 600;
|
|
1937
|
+
display: flex;
|
|
1938
|
+
align-items: center;
|
|
1939
|
+
justify-content: space-between;
|
|
1940
|
+
transition: var(--transition-smooth);
|
|
1941
|
+
min-height: 36px;
|
|
1942
|
+
box-sizing: border-box;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
.select-trigger-custom:hover {
|
|
1946
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1947
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
.select-container-custom.open .select-trigger-custom {
|
|
1951
|
+
border-color: var(--accent-primary);
|
|
1952
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.select-trigger-custom::after {
|
|
1956
|
+
content: '\f078';
|
|
1957
|
+
font-family: 'Font Awesome 6 Free';
|
|
1958
|
+
font-weight: 900;
|
|
1959
|
+
font-size: 0.7rem;
|
|
1960
|
+
color: var(--text-muted);
|
|
1961
|
+
position: absolute;
|
|
1962
|
+
right: 12px;
|
|
1963
|
+
transition: transform 0.3s ease;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
1967
|
+
transform: rotate(180deg);
|
|
1968
|
+
color: var(--accent-primary);
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
.select-options-custom {
|
|
1972
|
+
display: none;
|
|
1973
|
+
position: absolute;
|
|
1974
|
+
top: calc(100% + 6px);
|
|
1975
|
+
left: 0;
|
|
1976
|
+
width: 100%;
|
|
1977
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
1978
|
+
border: 1px solid var(--panel-border);
|
|
1979
|
+
border-radius: 12px;
|
|
1980
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
1981
|
+
z-index: 1000;
|
|
1982
|
+
max-height: 250px;
|
|
1983
|
+
overflow-y: auto;
|
|
1984
|
+
padding: 4px;
|
|
1985
|
+
backdrop-filter: blur(20px);
|
|
1986
|
+
box-sizing: border-box;
|
|
1987
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
@keyframes selectFadeIn {
|
|
1991
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
1992
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
.select-container-custom.open .select-options-custom {
|
|
1996
|
+
display: block;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
.select-option-custom {
|
|
2000
|
+
padding: 0.5rem 0.75rem;
|
|
2001
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2002
|
+
font-size: 0.82rem;
|
|
2003
|
+
font-weight: 500;
|
|
2004
|
+
border-radius: 6px;
|
|
2005
|
+
cursor: pointer;
|
|
2006
|
+
transition: var(--transition-smooth);
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
.select-option-custom:hover {
|
|
2010
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2011
|
+
color: #fff;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.select-option-custom.selected {
|
|
2015
|
+
background: var(--accent-primary-glow);
|
|
2016
|
+
color: var(--accent-primary);
|
|
2017
|
+
font-weight: 700;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2021
|
+
width: 6px;
|
|
2022
|
+
}
|
|
2023
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2024
|
+
background: transparent;
|
|
2025
|
+
}
|
|
2026
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2027
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2028
|
+
border-radius: 3px;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
/* Custom Select component styling */
|
|
2032
|
+
.select-container-custom {
|
|
2033
|
+
position: relative;
|
|
2034
|
+
display: inline-block;
|
|
2035
|
+
min-width: 120px;
|
|
2036
|
+
user-select: none;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
.select-trigger-custom {
|
|
2040
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2041
|
+
border: 1px solid var(--panel-border);
|
|
2042
|
+
color: var(--text-main);
|
|
2043
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2044
|
+
border-radius: 8px;
|
|
2045
|
+
cursor: pointer;
|
|
2046
|
+
font-size: 0.85rem;
|
|
2047
|
+
font-weight: 600;
|
|
2048
|
+
display: flex;
|
|
2049
|
+
align-items: center;
|
|
2050
|
+
justify-content: space-between;
|
|
2051
|
+
transition: var(--transition-smooth);
|
|
2052
|
+
min-height: 36px;
|
|
2053
|
+
box-sizing: border-box;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
.select-trigger-custom:hover {
|
|
2057
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2058
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2062
|
+
border-color: var(--accent-primary);
|
|
2063
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
.select-trigger-custom::after {
|
|
2067
|
+
content: '\f078';
|
|
2068
|
+
font-family: 'Font Awesome 6 Free';
|
|
2069
|
+
font-weight: 900;
|
|
2070
|
+
font-size: 0.7rem;
|
|
2071
|
+
color: var(--text-muted);
|
|
2072
|
+
position: absolute;
|
|
2073
|
+
right: 12px;
|
|
2074
|
+
transition: transform 0.3s ease;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2078
|
+
transform: rotate(180deg);
|
|
2079
|
+
color: var(--accent-primary);
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
.select-options-custom {
|
|
2083
|
+
display: none;
|
|
2084
|
+
position: absolute;
|
|
2085
|
+
top: calc(100% + 6px);
|
|
2086
|
+
left: 0;
|
|
2087
|
+
width: 100%;
|
|
2088
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2089
|
+
border: 1px solid var(--panel-border);
|
|
2090
|
+
border-radius: 12px;
|
|
2091
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2092
|
+
z-index: 1000;
|
|
2093
|
+
max-height: 250px;
|
|
2094
|
+
overflow-y: auto;
|
|
2095
|
+
padding: 4px;
|
|
2096
|
+
backdrop-filter: blur(20px);
|
|
2097
|
+
box-sizing: border-box;
|
|
2098
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
@keyframes selectFadeIn {
|
|
2102
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2103
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
.select-container-custom.open .select-options-custom {
|
|
2107
|
+
display: block;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
.select-option-custom {
|
|
2111
|
+
padding: 0.5rem 0.75rem;
|
|
2112
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2113
|
+
font-size: 0.82rem;
|
|
2114
|
+
font-weight: 500;
|
|
2115
|
+
border-radius: 6px;
|
|
2116
|
+
cursor: pointer;
|
|
2117
|
+
transition: var(--transition-smooth);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
.select-option-custom:hover {
|
|
2121
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2122
|
+
color: #fff;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
.select-option-custom.selected {
|
|
2126
|
+
background: var(--accent-primary-glow);
|
|
2127
|
+
color: var(--accent-primary);
|
|
2128
|
+
font-weight: 700;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2132
|
+
width: 6px;
|
|
2133
|
+
}
|
|
2134
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2135
|
+
background: transparent;
|
|
2136
|
+
}
|
|
2137
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2138
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2139
|
+
border-radius: 3px;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
/* Custom Select component styling */
|
|
2143
|
+
.select-container-custom {
|
|
2144
|
+
position: relative;
|
|
2145
|
+
display: inline-block;
|
|
2146
|
+
min-width: 120px;
|
|
2147
|
+
user-select: none;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
.select-trigger-custom {
|
|
2151
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2152
|
+
border: 1px solid var(--panel-border);
|
|
2153
|
+
color: var(--text-main);
|
|
2154
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2155
|
+
border-radius: 8px;
|
|
2156
|
+
cursor: pointer;
|
|
2157
|
+
font-size: 0.85rem;
|
|
2158
|
+
font-weight: 600;
|
|
2159
|
+
display: flex;
|
|
2160
|
+
align-items: center;
|
|
2161
|
+
justify-content: space-between;
|
|
2162
|
+
transition: var(--transition-smooth);
|
|
2163
|
+
min-height: 36px;
|
|
2164
|
+
box-sizing: border-box;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
.select-trigger-custom:hover {
|
|
2168
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2169
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2173
|
+
border-color: var(--accent-primary);
|
|
2174
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
.select-trigger-custom::after {
|
|
2178
|
+
content: '\f078';
|
|
2179
|
+
font-family: 'Font Awesome 6 Free';
|
|
2180
|
+
font-weight: 900;
|
|
2181
|
+
font-size: 0.7rem;
|
|
2182
|
+
color: var(--text-muted);
|
|
2183
|
+
position: absolute;
|
|
2184
|
+
right: 12px;
|
|
2185
|
+
transition: transform 0.3s ease;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2189
|
+
transform: rotate(180deg);
|
|
2190
|
+
color: var(--accent-primary);
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
.select-options-custom {
|
|
2194
|
+
display: none;
|
|
2195
|
+
position: absolute;
|
|
2196
|
+
top: calc(100% + 6px);
|
|
2197
|
+
left: 0;
|
|
2198
|
+
width: 100%;
|
|
2199
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2200
|
+
border: 1px solid var(--panel-border);
|
|
2201
|
+
border-radius: 12px;
|
|
2202
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2203
|
+
z-index: 1000;
|
|
2204
|
+
max-height: 250px;
|
|
2205
|
+
overflow-y: auto;
|
|
2206
|
+
padding: 4px;
|
|
2207
|
+
backdrop-filter: blur(20px);
|
|
2208
|
+
box-sizing: border-box;
|
|
2209
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
@keyframes selectFadeIn {
|
|
2213
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2214
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
.select-container-custom.open .select-options-custom {
|
|
2218
|
+
display: block;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
.select-option-custom {
|
|
2222
|
+
padding: 0.5rem 0.75rem;
|
|
2223
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2224
|
+
font-size: 0.82rem;
|
|
2225
|
+
font-weight: 500;
|
|
2226
|
+
border-radius: 6px;
|
|
2227
|
+
cursor: pointer;
|
|
2228
|
+
transition: var(--transition-smooth);
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
.select-option-custom:hover {
|
|
2232
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2233
|
+
color: #fff;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.select-option-custom.selected {
|
|
2237
|
+
background: var(--accent-primary-glow);
|
|
2238
|
+
color: var(--accent-primary);
|
|
2239
|
+
font-weight: 700;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2243
|
+
width: 6px;
|
|
2244
|
+
}
|
|
2245
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2246
|
+
background: transparent;
|
|
2247
|
+
}
|
|
2248
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2249
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2250
|
+
border-radius: 3px;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
/* Custom Select component styling */
|
|
2254
|
+
.select-container-custom {
|
|
2255
|
+
position: relative;
|
|
2256
|
+
display: inline-block;
|
|
2257
|
+
min-width: 120px;
|
|
2258
|
+
user-select: none;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
.select-trigger-custom {
|
|
2262
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2263
|
+
border: 1px solid var(--panel-border);
|
|
2264
|
+
color: var(--text-main);
|
|
2265
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2266
|
+
border-radius: 8px;
|
|
2267
|
+
cursor: pointer;
|
|
2268
|
+
font-size: 0.85rem;
|
|
2269
|
+
font-weight: 600;
|
|
2270
|
+
display: flex;
|
|
2271
|
+
align-items: center;
|
|
2272
|
+
justify-content: space-between;
|
|
2273
|
+
transition: var(--transition-smooth);
|
|
2274
|
+
min-height: 36px;
|
|
2275
|
+
box-sizing: border-box;
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
.select-trigger-custom:hover {
|
|
2279
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2280
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2284
|
+
border-color: var(--accent-primary);
|
|
2285
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
.select-trigger-custom::after {
|
|
2289
|
+
content: '\f078';
|
|
2290
|
+
font-family: 'Font Awesome 6 Free';
|
|
2291
|
+
font-weight: 900;
|
|
2292
|
+
font-size: 0.7rem;
|
|
2293
|
+
color: var(--text-muted);
|
|
2294
|
+
position: absolute;
|
|
2295
|
+
right: 12px;
|
|
2296
|
+
transition: transform 0.3s ease;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2300
|
+
transform: rotate(180deg);
|
|
2301
|
+
color: var(--accent-primary);
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
.select-options-custom {
|
|
2305
|
+
display: none;
|
|
2306
|
+
position: absolute;
|
|
2307
|
+
top: calc(100% + 6px);
|
|
2308
|
+
left: 0;
|
|
2309
|
+
width: 100%;
|
|
2310
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2311
|
+
border: 1px solid var(--panel-border);
|
|
2312
|
+
border-radius: 12px;
|
|
2313
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2314
|
+
z-index: 1000;
|
|
2315
|
+
max-height: 250px;
|
|
2316
|
+
overflow-y: auto;
|
|
2317
|
+
padding: 4px;
|
|
2318
|
+
backdrop-filter: blur(20px);
|
|
2319
|
+
box-sizing: border-box;
|
|
2320
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
@keyframes selectFadeIn {
|
|
2324
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2325
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
.select-container-custom.open .select-options-custom {
|
|
2329
|
+
display: block;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
.select-option-custom {
|
|
2333
|
+
padding: 0.5rem 0.75rem;
|
|
2334
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2335
|
+
font-size: 0.82rem;
|
|
2336
|
+
font-weight: 500;
|
|
2337
|
+
border-radius: 6px;
|
|
2338
|
+
cursor: pointer;
|
|
2339
|
+
transition: var(--transition-smooth);
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
.select-option-custom:hover {
|
|
2343
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2344
|
+
color: #fff;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
.select-option-custom.selected {
|
|
2348
|
+
background: var(--accent-primary-glow);
|
|
2349
|
+
color: var(--accent-primary);
|
|
2350
|
+
font-weight: 700;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2354
|
+
width: 6px;
|
|
2355
|
+
}
|
|
2356
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2357
|
+
background: transparent;
|
|
2358
|
+
}
|
|
2359
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2360
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2361
|
+
border-radius: 3px;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
/* Custom Select component styling */
|
|
2365
|
+
.select-container-custom {
|
|
2366
|
+
position: relative;
|
|
2367
|
+
display: inline-block;
|
|
2368
|
+
min-width: 120px;
|
|
2369
|
+
user-select: none;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
.select-trigger-custom {
|
|
2373
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2374
|
+
border: 1px solid var(--panel-border);
|
|
2375
|
+
color: var(--text-main);
|
|
2376
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2377
|
+
border-radius: 8px;
|
|
2378
|
+
cursor: pointer;
|
|
2379
|
+
font-size: 0.85rem;
|
|
2380
|
+
font-weight: 600;
|
|
2381
|
+
display: flex;
|
|
2382
|
+
align-items: center;
|
|
2383
|
+
justify-content: space-between;
|
|
2384
|
+
transition: var(--transition-smooth);
|
|
2385
|
+
min-height: 36px;
|
|
2386
|
+
box-sizing: border-box;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
.select-trigger-custom:hover {
|
|
2390
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2391
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2395
|
+
border-color: var(--accent-primary);
|
|
2396
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
.select-trigger-custom::after {
|
|
2400
|
+
content: '\f078';
|
|
2401
|
+
font-family: 'Font Awesome 6 Free';
|
|
2402
|
+
font-weight: 900;
|
|
2403
|
+
font-size: 0.7rem;
|
|
2404
|
+
color: var(--text-muted);
|
|
2405
|
+
position: absolute;
|
|
2406
|
+
right: 12px;
|
|
2407
|
+
transition: transform 0.3s ease;
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2411
|
+
transform: rotate(180deg);
|
|
2412
|
+
color: var(--accent-primary);
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
.select-options-custom {
|
|
2416
|
+
display: none;
|
|
2417
|
+
position: absolute;
|
|
2418
|
+
top: calc(100% + 6px);
|
|
2419
|
+
left: 0;
|
|
2420
|
+
width: 100%;
|
|
2421
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2422
|
+
border: 1px solid var(--panel-border);
|
|
2423
|
+
border-radius: 12px;
|
|
2424
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2425
|
+
z-index: 1000;
|
|
2426
|
+
max-height: 250px;
|
|
2427
|
+
overflow-y: auto;
|
|
2428
|
+
padding: 4px;
|
|
2429
|
+
backdrop-filter: blur(20px);
|
|
2430
|
+
box-sizing: border-box;
|
|
2431
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
@keyframes selectFadeIn {
|
|
2435
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2436
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
.select-container-custom.open .select-options-custom {
|
|
2440
|
+
display: block;
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
.select-option-custom {
|
|
2444
|
+
padding: 0.5rem 0.75rem;
|
|
2445
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2446
|
+
font-size: 0.82rem;
|
|
2447
|
+
font-weight: 500;
|
|
2448
|
+
border-radius: 6px;
|
|
2449
|
+
cursor: pointer;
|
|
2450
|
+
transition: var(--transition-smooth);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.select-option-custom:hover {
|
|
2454
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2455
|
+
color: #fff;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
.select-option-custom.selected {
|
|
2459
|
+
background: var(--accent-primary-glow);
|
|
2460
|
+
color: var(--accent-primary);
|
|
2461
|
+
font-weight: 700;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2465
|
+
width: 6px;
|
|
2466
|
+
}
|
|
2467
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2468
|
+
background: transparent;
|
|
2469
|
+
}
|
|
2470
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2471
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2472
|
+
border-radius: 3px;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
/* Custom Select component styling */
|
|
2476
|
+
.select-container-custom {
|
|
2477
|
+
position: relative;
|
|
2478
|
+
display: inline-block;
|
|
2479
|
+
min-width: 120px;
|
|
2480
|
+
user-select: none;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
.select-trigger-custom {
|
|
2484
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2485
|
+
border: 1px solid var(--panel-border);
|
|
2486
|
+
color: var(--text-main);
|
|
2487
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2488
|
+
border-radius: 8px;
|
|
2489
|
+
cursor: pointer;
|
|
2490
|
+
font-size: 0.85rem;
|
|
2491
|
+
font-weight: 600;
|
|
2492
|
+
display: flex;
|
|
2493
|
+
align-items: center;
|
|
2494
|
+
justify-content: space-between;
|
|
2495
|
+
transition: var(--transition-smooth);
|
|
2496
|
+
min-height: 36px;
|
|
2497
|
+
box-sizing: border-box;
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
.select-trigger-custom:hover {
|
|
2501
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2502
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2506
|
+
border-color: var(--accent-primary);
|
|
2507
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
.select-trigger-custom::after {
|
|
2511
|
+
content: '\f078';
|
|
2512
|
+
font-family: 'Font Awesome 6 Free';
|
|
2513
|
+
font-weight: 900;
|
|
2514
|
+
font-size: 0.7rem;
|
|
2515
|
+
color: var(--text-muted);
|
|
2516
|
+
position: absolute;
|
|
2517
|
+
right: 12px;
|
|
2518
|
+
transition: transform 0.3s ease;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2522
|
+
transform: rotate(180deg);
|
|
2523
|
+
color: var(--accent-primary);
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
.select-options-custom {
|
|
2527
|
+
display: none;
|
|
2528
|
+
position: absolute;
|
|
2529
|
+
top: calc(100% + 6px);
|
|
2530
|
+
left: 0;
|
|
2531
|
+
width: 100%;
|
|
2532
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2533
|
+
border: 1px solid var(--panel-border);
|
|
2534
|
+
border-radius: 12px;
|
|
2535
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2536
|
+
z-index: 1000;
|
|
2537
|
+
max-height: 250px;
|
|
2538
|
+
overflow-y: auto;
|
|
2539
|
+
padding: 4px;
|
|
2540
|
+
backdrop-filter: blur(20px);
|
|
2541
|
+
box-sizing: border-box;
|
|
2542
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
@keyframes selectFadeIn {
|
|
2546
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2547
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
.select-container-custom.open .select-options-custom {
|
|
2551
|
+
display: block;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
.select-option-custom {
|
|
2555
|
+
padding: 0.5rem 0.75rem;
|
|
2556
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2557
|
+
font-size: 0.82rem;
|
|
2558
|
+
font-weight: 500;
|
|
2559
|
+
border-radius: 6px;
|
|
2560
|
+
cursor: pointer;
|
|
2561
|
+
transition: var(--transition-smooth);
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
.select-option-custom:hover {
|
|
2565
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2566
|
+
color: #fff;
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.select-option-custom.selected {
|
|
2570
|
+
background: var(--accent-primary-glow);
|
|
2571
|
+
color: var(--accent-primary);
|
|
2572
|
+
font-weight: 700;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2576
|
+
width: 6px;
|
|
2577
|
+
}
|
|
2578
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2579
|
+
background: transparent;
|
|
2580
|
+
}
|
|
2581
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2582
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2583
|
+
border-radius: 3px;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
/* Custom Select component styling */
|
|
2587
|
+
.select-container-custom {
|
|
2588
|
+
position: relative;
|
|
2589
|
+
display: inline-block;
|
|
2590
|
+
min-width: 120px;
|
|
2591
|
+
user-select: none;
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
.select-trigger-custom {
|
|
2595
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2596
|
+
border: 1px solid var(--panel-border);
|
|
2597
|
+
color: var(--text-main);
|
|
2598
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2599
|
+
border-radius: 8px;
|
|
2600
|
+
cursor: pointer;
|
|
2601
|
+
font-size: 0.85rem;
|
|
2602
|
+
font-weight: 600;
|
|
2603
|
+
display: flex;
|
|
2604
|
+
align-items: center;
|
|
2605
|
+
justify-content: space-between;
|
|
2606
|
+
transition: var(--transition-smooth);
|
|
2607
|
+
min-height: 36px;
|
|
2608
|
+
box-sizing: border-box;
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
.select-trigger-custom:hover {
|
|
2612
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2613
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2617
|
+
border-color: var(--accent-primary);
|
|
2618
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
.select-trigger-custom::after {
|
|
2622
|
+
content: '\f078';
|
|
2623
|
+
font-family: 'Font Awesome 6 Free';
|
|
2624
|
+
font-weight: 900;
|
|
2625
|
+
font-size: 0.7rem;
|
|
2626
|
+
color: var(--text-muted);
|
|
2627
|
+
position: absolute;
|
|
2628
|
+
right: 12px;
|
|
2629
|
+
transition: transform 0.3s ease;
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2633
|
+
transform: rotate(180deg);
|
|
2634
|
+
color: var(--accent-primary);
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
.select-options-custom {
|
|
2638
|
+
display: none;
|
|
2639
|
+
position: absolute;
|
|
2640
|
+
top: calc(100% + 6px);
|
|
2641
|
+
left: 0;
|
|
2642
|
+
width: 100%;
|
|
2643
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2644
|
+
border: 1px solid var(--panel-border);
|
|
2645
|
+
border-radius: 12px;
|
|
2646
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2647
|
+
z-index: 1000;
|
|
2648
|
+
max-height: 250px;
|
|
2649
|
+
overflow-y: auto;
|
|
2650
|
+
padding: 4px;
|
|
2651
|
+
backdrop-filter: blur(20px);
|
|
2652
|
+
box-sizing: border-box;
|
|
2653
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
@keyframes selectFadeIn {
|
|
2657
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2658
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
.select-container-custom.open .select-options-custom {
|
|
2662
|
+
display: block;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
.select-option-custom {
|
|
2666
|
+
padding: 0.5rem 0.75rem;
|
|
2667
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2668
|
+
font-size: 0.82rem;
|
|
2669
|
+
font-weight: 500;
|
|
2670
|
+
border-radius: 6px;
|
|
2671
|
+
cursor: pointer;
|
|
2672
|
+
transition: var(--transition-smooth);
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
.select-option-custom:hover {
|
|
2676
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2677
|
+
color: #fff;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
.select-option-custom.selected {
|
|
2681
|
+
background: var(--accent-primary-glow);
|
|
2682
|
+
color: var(--accent-primary);
|
|
2683
|
+
font-weight: 700;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2687
|
+
width: 6px;
|
|
2688
|
+
}
|
|
2689
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2690
|
+
background: transparent;
|
|
2691
|
+
}
|
|
2692
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2693
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2694
|
+
border-radius: 3px;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
/* Custom Select component styling */
|
|
2698
|
+
.select-container-custom {
|
|
2699
|
+
position: relative;
|
|
2700
|
+
display: inline-block;
|
|
2701
|
+
min-width: 120px;
|
|
2702
|
+
user-select: none;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
.select-trigger-custom {
|
|
2706
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2707
|
+
border: 1px solid var(--panel-border);
|
|
2708
|
+
color: var(--text-main);
|
|
2709
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2710
|
+
border-radius: 8px;
|
|
2711
|
+
cursor: pointer;
|
|
2712
|
+
font-size: 0.85rem;
|
|
2713
|
+
font-weight: 600;
|
|
2714
|
+
display: flex;
|
|
2715
|
+
align-items: center;
|
|
2716
|
+
justify-content: space-between;
|
|
2717
|
+
transition: var(--transition-smooth);
|
|
2718
|
+
min-height: 36px;
|
|
2719
|
+
box-sizing: border-box;
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
.select-trigger-custom:hover {
|
|
2723
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2724
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2728
|
+
border-color: var(--accent-primary);
|
|
2729
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
.select-trigger-custom::after {
|
|
2733
|
+
content: '\f078';
|
|
2734
|
+
font-family: 'Font Awesome 6 Free';
|
|
2735
|
+
font-weight: 900;
|
|
2736
|
+
font-size: 0.7rem;
|
|
2737
|
+
color: var(--text-muted);
|
|
2738
|
+
position: absolute;
|
|
2739
|
+
right: 12px;
|
|
2740
|
+
transition: transform 0.3s ease;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2744
|
+
transform: rotate(180deg);
|
|
2745
|
+
color: var(--accent-primary);
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
.select-options-custom {
|
|
2749
|
+
display: none;
|
|
2750
|
+
position: absolute;
|
|
2751
|
+
top: calc(100% + 6px);
|
|
2752
|
+
left: 0;
|
|
2753
|
+
width: 100%;
|
|
2754
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2755
|
+
border: 1px solid var(--panel-border);
|
|
2756
|
+
border-radius: 12px;
|
|
2757
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2758
|
+
z-index: 1000;
|
|
2759
|
+
max-height: 250px;
|
|
2760
|
+
overflow-y: auto;
|
|
2761
|
+
padding: 4px;
|
|
2762
|
+
backdrop-filter: blur(20px);
|
|
2763
|
+
box-sizing: border-box;
|
|
2764
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
@keyframes selectFadeIn {
|
|
2768
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2769
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
.select-container-custom.open .select-options-custom {
|
|
2773
|
+
display: block;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
.select-option-custom {
|
|
2777
|
+
padding: 0.5rem 0.75rem;
|
|
2778
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2779
|
+
font-size: 0.82rem;
|
|
2780
|
+
font-weight: 500;
|
|
2781
|
+
border-radius: 6px;
|
|
2782
|
+
cursor: pointer;
|
|
2783
|
+
transition: var(--transition-smooth);
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
.select-option-custom:hover {
|
|
2787
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2788
|
+
color: #fff;
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
.select-option-custom.selected {
|
|
2792
|
+
background: var(--accent-primary-glow);
|
|
2793
|
+
color: var(--accent-primary);
|
|
2794
|
+
font-weight: 700;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2798
|
+
width: 6px;
|
|
2799
|
+
}
|
|
2800
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2801
|
+
background: transparent;
|
|
2802
|
+
}
|
|
2803
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2804
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2805
|
+
border-radius: 3px;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/* Custom Select component styling */
|
|
2809
|
+
.select-container-custom {
|
|
2810
|
+
position: relative;
|
|
2811
|
+
display: inline-block;
|
|
2812
|
+
min-width: 120px;
|
|
2813
|
+
user-select: none;
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
.select-trigger-custom {
|
|
2817
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2818
|
+
border: 1px solid var(--panel-border);
|
|
2819
|
+
color: var(--text-main);
|
|
2820
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2821
|
+
border-radius: 8px;
|
|
2822
|
+
cursor: pointer;
|
|
2823
|
+
font-size: 0.85rem;
|
|
2824
|
+
font-weight: 600;
|
|
2825
|
+
display: flex;
|
|
2826
|
+
align-items: center;
|
|
2827
|
+
justify-content: space-between;
|
|
2828
|
+
transition: var(--transition-smooth);
|
|
2829
|
+
min-height: 36px;
|
|
2830
|
+
box-sizing: border-box;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
.select-trigger-custom:hover {
|
|
2834
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2835
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2839
|
+
border-color: var(--accent-primary);
|
|
2840
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
.select-trigger-custom::after {
|
|
2844
|
+
content: '\f078';
|
|
2845
|
+
font-family: 'Font Awesome 6 Free';
|
|
2846
|
+
font-weight: 900;
|
|
2847
|
+
font-size: 0.7rem;
|
|
2848
|
+
color: var(--text-muted);
|
|
2849
|
+
position: absolute;
|
|
2850
|
+
right: 12px;
|
|
2851
|
+
transition: transform 0.3s ease;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2855
|
+
transform: rotate(180deg);
|
|
2856
|
+
color: var(--accent-primary);
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
.select-options-custom {
|
|
2860
|
+
display: none;
|
|
2861
|
+
position: absolute;
|
|
2862
|
+
top: calc(100% + 6px);
|
|
2863
|
+
left: 0;
|
|
2864
|
+
width: 100%;
|
|
2865
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2866
|
+
border: 1px solid var(--panel-border);
|
|
2867
|
+
border-radius: 12px;
|
|
2868
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2869
|
+
z-index: 1000;
|
|
2870
|
+
max-height: 250px;
|
|
2871
|
+
overflow-y: auto;
|
|
2872
|
+
padding: 4px;
|
|
2873
|
+
backdrop-filter: blur(20px);
|
|
2874
|
+
box-sizing: border-box;
|
|
2875
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
@keyframes selectFadeIn {
|
|
2879
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2880
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
.select-container-custom.open .select-options-custom {
|
|
2884
|
+
display: block;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
.select-option-custom {
|
|
2888
|
+
padding: 0.5rem 0.75rem;
|
|
2889
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
2890
|
+
font-size: 0.82rem;
|
|
2891
|
+
font-weight: 500;
|
|
2892
|
+
border-radius: 6px;
|
|
2893
|
+
cursor: pointer;
|
|
2894
|
+
transition: var(--transition-smooth);
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
.select-option-custom:hover {
|
|
2898
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2899
|
+
color: #fff;
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
.select-option-custom.selected {
|
|
2903
|
+
background: var(--accent-primary-glow);
|
|
2904
|
+
color: var(--accent-primary);
|
|
2905
|
+
font-weight: 700;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
.select-options-custom::-webkit-scrollbar {
|
|
2909
|
+
width: 6px;
|
|
2910
|
+
}
|
|
2911
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
2912
|
+
background: transparent;
|
|
2913
|
+
}
|
|
2914
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
2915
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2916
|
+
border-radius: 3px;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
/* Custom Select component styling */
|
|
2920
|
+
.select-container-custom {
|
|
2921
|
+
position: relative;
|
|
2922
|
+
display: inline-block;
|
|
2923
|
+
min-width: 120px;
|
|
2924
|
+
user-select: none;
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
.select-trigger-custom {
|
|
2928
|
+
background: rgba(255, 255, 255, 0.05);
|
|
2929
|
+
border: 1px solid var(--panel-border);
|
|
2930
|
+
color: var(--text-main);
|
|
2931
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
2932
|
+
border-radius: 8px;
|
|
2933
|
+
cursor: pointer;
|
|
2934
|
+
font-size: 0.85rem;
|
|
2935
|
+
font-weight: 600;
|
|
2936
|
+
display: flex;
|
|
2937
|
+
align-items: center;
|
|
2938
|
+
justify-content: space-between;
|
|
2939
|
+
transition: var(--transition-smooth);
|
|
2940
|
+
min-height: 36px;
|
|
2941
|
+
box-sizing: border-box;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
.select-trigger-custom:hover {
|
|
2945
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2946
|
+
background: rgba(255, 255, 255, 0.08);
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
.select-container-custom.open .select-trigger-custom {
|
|
2950
|
+
border-color: var(--accent-primary);
|
|
2951
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
.select-trigger-custom::after {
|
|
2955
|
+
content: '\f078';
|
|
2956
|
+
font-family: 'Font Awesome 6 Free';
|
|
2957
|
+
font-weight: 900;
|
|
2958
|
+
font-size: 0.7rem;
|
|
2959
|
+
color: var(--text-muted);
|
|
2960
|
+
position: absolute;
|
|
2961
|
+
right: 12px;
|
|
2962
|
+
transition: transform 0.3s ease;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
2966
|
+
transform: rotate(180deg);
|
|
2967
|
+
color: var(--accent-primary);
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
.select-options-custom {
|
|
2971
|
+
display: none;
|
|
2972
|
+
position: absolute;
|
|
2973
|
+
top: calc(100% + 6px);
|
|
2974
|
+
left: 0;
|
|
2975
|
+
width: 100%;
|
|
2976
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
2977
|
+
border: 1px solid var(--panel-border);
|
|
2978
|
+
border-radius: 12px;
|
|
2979
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
2980
|
+
z-index: 1000;
|
|
2981
|
+
max-height: 250px;
|
|
2982
|
+
overflow-y: auto;
|
|
2983
|
+
padding: 4px;
|
|
2984
|
+
backdrop-filter: blur(20px);
|
|
2985
|
+
box-sizing: border-box;
|
|
2986
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
@keyframes selectFadeIn {
|
|
2990
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
2991
|
+
to { opacity: 1; transform: translateY(0); }
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
.select-container-custom.open .select-options-custom {
|
|
2995
|
+
display: block;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
.select-option-custom {
|
|
2999
|
+
padding: 0.5rem 0.75rem;
|
|
3000
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
3001
|
+
font-size: 0.82rem;
|
|
3002
|
+
font-weight: 500;
|
|
3003
|
+
border-radius: 6px;
|
|
3004
|
+
cursor: pointer;
|
|
3005
|
+
transition: var(--transition-smooth);
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
.select-option-custom:hover {
|
|
3009
|
+
background: rgba(255, 255, 255, 0.08);
|
|
3010
|
+
color: #fff;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
.select-option-custom.selected {
|
|
3014
|
+
background: var(--accent-primary-glow);
|
|
3015
|
+
color: var(--accent-primary);
|
|
3016
|
+
font-weight: 700;
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
.select-options-custom::-webkit-scrollbar {
|
|
3020
|
+
width: 6px;
|
|
3021
|
+
}
|
|
3022
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
3023
|
+
background: transparent;
|
|
3024
|
+
}
|
|
3025
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
3026
|
+
background: rgba(255, 255, 255, 0.1);
|
|
3027
|
+
border-radius: 3px;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
/* Custom Select component styling */
|
|
3031
|
+
.select-container-custom {
|
|
3032
|
+
position: relative;
|
|
3033
|
+
display: inline-block;
|
|
3034
|
+
min-width: 120px;
|
|
3035
|
+
user-select: none;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
.select-trigger-custom {
|
|
3039
|
+
background: rgba(255, 255, 255, 0.05);
|
|
3040
|
+
border: 1px solid var(--panel-border);
|
|
3041
|
+
color: var(--text-main);
|
|
3042
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
3043
|
+
border-radius: 8px;
|
|
3044
|
+
cursor: pointer;
|
|
3045
|
+
font-size: 0.85rem;
|
|
3046
|
+
font-weight: 600;
|
|
3047
|
+
display: flex;
|
|
3048
|
+
align-items: center;
|
|
3049
|
+
justify-content: space-between;
|
|
3050
|
+
transition: var(--transition-smooth);
|
|
3051
|
+
min-height: 36px;
|
|
3052
|
+
box-sizing: border-box;
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
.select-trigger-custom:hover {
|
|
3056
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
3057
|
+
background: rgba(255, 255, 255, 0.08);
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
.select-container-custom.open .select-trigger-custom {
|
|
3061
|
+
border-color: var(--accent-primary);
|
|
3062
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
.select-trigger-custom::after {
|
|
3066
|
+
content: '\f078';
|
|
3067
|
+
font-family: 'Font Awesome 6 Free';
|
|
3068
|
+
font-weight: 900;
|
|
3069
|
+
font-size: 0.7rem;
|
|
3070
|
+
color: var(--text-muted);
|
|
3071
|
+
position: absolute;
|
|
3072
|
+
right: 12px;
|
|
3073
|
+
transition: transform 0.3s ease;
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
3077
|
+
transform: rotate(180deg);
|
|
3078
|
+
color: var(--accent-primary);
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
.select-options-custom {
|
|
3082
|
+
display: none;
|
|
3083
|
+
position: absolute;
|
|
3084
|
+
top: calc(100% + 6px);
|
|
3085
|
+
left: 0;
|
|
3086
|
+
width: 100%;
|
|
3087
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
3088
|
+
border: 1px solid var(--panel-border);
|
|
3089
|
+
border-radius: 12px;
|
|
3090
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
3091
|
+
z-index: 1000;
|
|
3092
|
+
max-height: 250px;
|
|
3093
|
+
overflow-y: auto;
|
|
3094
|
+
padding: 4px;
|
|
3095
|
+
backdrop-filter: blur(20px);
|
|
3096
|
+
box-sizing: border-box;
|
|
3097
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
@keyframes selectFadeIn {
|
|
3101
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
3102
|
+
to { opacity: 1; transform: translateY(0); }
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
.select-container-custom.open .select-options-custom {
|
|
3106
|
+
display: block;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
3109
|
+
.select-option-custom {
|
|
3110
|
+
padding: 0.5rem 0.75rem;
|
|
3111
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
3112
|
+
font-size: 0.82rem;
|
|
3113
|
+
font-weight: 500;
|
|
3114
|
+
border-radius: 6px;
|
|
3115
|
+
cursor: pointer;
|
|
3116
|
+
transition: var(--transition-smooth);
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
.select-option-custom:hover {
|
|
3120
|
+
background: rgba(255, 255, 255, 0.08);
|
|
3121
|
+
color: #fff;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
.select-option-custom.selected {
|
|
3125
|
+
background: var(--accent-primary-glow);
|
|
3126
|
+
color: var(--accent-primary);
|
|
3127
|
+
font-weight: 700;
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
.select-options-custom::-webkit-scrollbar {
|
|
3131
|
+
width: 6px;
|
|
3132
|
+
}
|
|
3133
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
3134
|
+
background: transparent;
|
|
3135
|
+
}
|
|
3136
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
3137
|
+
background: rgba(255, 255, 255, 0.1);
|
|
3138
|
+
border-radius: 3px;
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
/* Custom Select component styling */
|
|
3142
|
+
.select-container-custom {
|
|
3143
|
+
position: relative;
|
|
3144
|
+
display: inline-block;
|
|
3145
|
+
min-width: 120px;
|
|
3146
|
+
user-select: none;
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
.select-trigger-custom {
|
|
3150
|
+
background: rgba(255, 255, 255, 0.05);
|
|
3151
|
+
border: 1px solid var(--panel-border);
|
|
3152
|
+
color: var(--text-main);
|
|
3153
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
3154
|
+
border-radius: 8px;
|
|
3155
|
+
cursor: pointer;
|
|
3156
|
+
font-size: 0.85rem;
|
|
3157
|
+
font-weight: 600;
|
|
3158
|
+
display: flex;
|
|
3159
|
+
align-items: center;
|
|
3160
|
+
justify-content: space-between;
|
|
3161
|
+
transition: var(--transition-smooth);
|
|
3162
|
+
min-height: 36px;
|
|
3163
|
+
box-sizing: border-box;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
.select-trigger-custom:hover {
|
|
3167
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
3168
|
+
background: rgba(255, 255, 255, 0.08);
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
.select-container-custom.open .select-trigger-custom {
|
|
3172
|
+
border-color: var(--accent-primary);
|
|
3173
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
3174
|
+
}
|
|
3175
|
+
|
|
3176
|
+
.select-trigger-custom::after {
|
|
3177
|
+
content: '\f078';
|
|
3178
|
+
font-family: 'Font Awesome 6 Free';
|
|
3179
|
+
font-weight: 900;
|
|
3180
|
+
font-size: 0.7rem;
|
|
3181
|
+
color: var(--text-muted);
|
|
3182
|
+
position: absolute;
|
|
3183
|
+
right: 12px;
|
|
3184
|
+
transition: transform 0.3s ease;
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
3188
|
+
transform: rotate(180deg);
|
|
3189
|
+
color: var(--accent-primary);
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
.select-options-custom {
|
|
3193
|
+
display: none;
|
|
3194
|
+
position: absolute;
|
|
3195
|
+
top: calc(100% + 6px);
|
|
3196
|
+
left: 0;
|
|
3197
|
+
width: 100%;
|
|
3198
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
3199
|
+
border: 1px solid var(--panel-border);
|
|
3200
|
+
border-radius: 12px;
|
|
3201
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
3202
|
+
z-index: 1000;
|
|
3203
|
+
max-height: 250px;
|
|
3204
|
+
overflow-y: auto;
|
|
3205
|
+
padding: 4px;
|
|
3206
|
+
backdrop-filter: blur(20px);
|
|
3207
|
+
box-sizing: border-box;
|
|
3208
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
@keyframes selectFadeIn {
|
|
3212
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
3213
|
+
to { opacity: 1; transform: translateY(0); }
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
.select-container-custom.open .select-options-custom {
|
|
3217
|
+
display: block;
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
.select-option-custom {
|
|
3221
|
+
padding: 0.5rem 0.75rem;
|
|
3222
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
3223
|
+
font-size: 0.82rem;
|
|
3224
|
+
font-weight: 500;
|
|
3225
|
+
border-radius: 6px;
|
|
3226
|
+
cursor: pointer;
|
|
3227
|
+
transition: var(--transition-smooth);
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
.select-option-custom:hover {
|
|
3231
|
+
background: rgba(255, 255, 255, 0.08);
|
|
3232
|
+
color: #fff;
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
.select-option-custom.selected {
|
|
3236
|
+
background: var(--accent-primary-glow);
|
|
3237
|
+
color: var(--accent-primary);
|
|
3238
|
+
font-weight: 700;
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
.select-options-custom::-webkit-scrollbar {
|
|
3242
|
+
width: 6px;
|
|
3243
|
+
}
|
|
3244
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
3245
|
+
background: transparent;
|
|
3246
|
+
}
|
|
3247
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
3248
|
+
background: rgba(255, 255, 255, 0.1);
|
|
3249
|
+
border-radius: 3px;
|
|
3250
|
+
}
|
|
3251
|
+
/* Segmented control for type selections (Receita/Despesa/Ambos) */
|
|
3252
|
+
.segmented-control {
|
|
3253
|
+
display: flex;
|
|
3254
|
+
background: rgba(255, 255, 255, 0.04);
|
|
3255
|
+
border: 1px solid var(--panel-border);
|
|
3256
|
+
border-radius: 8px;
|
|
3257
|
+
padding: 2px;
|
|
3258
|
+
width: 100%;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
.segmented-btn {
|
|
3262
|
+
flex: 1;
|
|
3263
|
+
background: transparent;
|
|
3264
|
+
border: none;
|
|
3265
|
+
color: var(--text-muted);
|
|
3266
|
+
padding: 0.6rem;
|
|
3267
|
+
border-radius: 6px;
|
|
3268
|
+
font-family: var(--font-family);
|
|
3269
|
+
font-size: 0.85rem;
|
|
3270
|
+
font-weight: 600;
|
|
3271
|
+
cursor: pointer;
|
|
3272
|
+
transition: var(--transition-smooth);
|
|
3273
|
+
display: flex;
|
|
3274
|
+
justify-content: center;
|
|
3275
|
+
align-items: center;
|
|
3276
|
+
gap: 0.35rem;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
.segmented-btn:hover {
|
|
3280
|
+
color: var(--text-main);
|
|
3281
|
+
background: rgba(255, 255, 255, 0.02);
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
.segmented-btn.active.expense {
|
|
3285
|
+
background: var(--expense-color);
|
|
3286
|
+
color: #fff;
|
|
3287
|
+
box-shadow: 0 2px 8px var(--expense-glow);
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
.segmented-btn.active.income {
|
|
3291
|
+
background: var(--income-color);
|
|
3292
|
+
color: #fff;
|
|
3293
|
+
box-shadow: 0 2px 8px var(--income-glow);
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
.segmented-btn.active.both {
|
|
3297
|
+
background: var(--accent-primary);
|
|
3298
|
+
color: #fff;
|
|
3299
|
+
box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
/* Custom Select component styling */
|
|
3303
|
+
.select-container-custom {
|
|
3304
|
+
position: relative;
|
|
3305
|
+
display: inline-block;
|
|
3306
|
+
min-width: 120px;
|
|
3307
|
+
user-select: none;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
.select-trigger-custom {
|
|
3311
|
+
background: rgba(255, 255, 255, 0.05);
|
|
3312
|
+
border: 1px solid var(--panel-border);
|
|
3313
|
+
color: var(--text-main);
|
|
3314
|
+
padding: 0.5rem 2.2rem 0.5rem 0.75rem;
|
|
3315
|
+
border-radius: 8px;
|
|
3316
|
+
cursor: pointer;
|
|
3317
|
+
font-size: 0.85rem;
|
|
3318
|
+
font-weight: 600;
|
|
3319
|
+
display: flex;
|
|
3320
|
+
align-items: center;
|
|
3321
|
+
justify-content: space-between;
|
|
3322
|
+
transition: var(--transition-smooth);
|
|
3323
|
+
min-height: 36px;
|
|
3324
|
+
box-sizing: border-box;
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
.select-trigger-custom:hover {
|
|
3328
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
3329
|
+
background: rgba(255, 255, 255, 0.08);
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
.select-container-custom.open .select-trigger-custom {
|
|
3333
|
+
border-color: var(--accent-primary);
|
|
3334
|
+
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
.select-trigger-custom::after {
|
|
3338
|
+
content: '\f078';
|
|
3339
|
+
font-family: 'Font Awesome 6 Free';
|
|
3340
|
+
font-weight: 900;
|
|
3341
|
+
font-size: 0.7rem;
|
|
3342
|
+
color: var(--text-muted);
|
|
3343
|
+
position: absolute;
|
|
3344
|
+
right: 12px;
|
|
3345
|
+
transition: transform 0.3s ease;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
.select-container-custom.open .select-trigger-custom::after {
|
|
3349
|
+
transform: rotate(180deg);
|
|
3350
|
+
color: var(--accent-primary);
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
.select-options-custom {
|
|
3354
|
+
display: none;
|
|
3355
|
+
position: absolute;
|
|
3356
|
+
top: calc(100% + 6px);
|
|
3357
|
+
left: 0;
|
|
3358
|
+
width: 100%;
|
|
3359
|
+
background: rgba(22, 22, 34, 0.98); /* Opaque dark background to prevent bleed-through */
|
|
3360
|
+
border: 1px solid var(--panel-border);
|
|
3361
|
+
border-radius: 12px;
|
|
3362
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
|
|
3363
|
+
z-index: 1000;
|
|
3364
|
+
max-height: 250px;
|
|
3365
|
+
overflow-y: auto;
|
|
3366
|
+
padding: 4px;
|
|
3367
|
+
backdrop-filter: blur(20px);
|
|
3368
|
+
box-sizing: border-box;
|
|
3369
|
+
animation: selectFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
@keyframes selectFadeIn {
|
|
3373
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
3374
|
+
to { opacity: 1; transform: translateY(0); }
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
.select-container-custom.open .select-options-custom {
|
|
3378
|
+
display: block;
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
.select-option-custom {
|
|
3382
|
+
padding: 0.5rem 0.75rem;
|
|
3383
|
+
color: var(--text-muted); /* Highly readable text color on dark backgrounds */
|
|
3384
|
+
font-size: 0.82rem;
|
|
3385
|
+
font-weight: 500;
|
|
3386
|
+
border-radius: 6px;
|
|
3387
|
+
cursor: pointer;
|
|
3388
|
+
transition: var(--transition-smooth);
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
.select-option-custom:hover {
|
|
3392
|
+
background: rgba(255, 255, 255, 0.08);
|
|
3393
|
+
color: #fff;
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
.select-option-custom.selected {
|
|
3397
|
+
background: var(--accent-primary-glow);
|
|
3398
|
+
color: var(--accent-primary);
|
|
3399
|
+
font-weight: 700;
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
.select-options-custom::-webkit-scrollbar {
|
|
3403
|
+
width: 6px;
|
|
3404
|
+
}
|
|
3405
|
+
.select-options-custom::-webkit-scrollbar-track {
|
|
3406
|
+
background: transparent;
|
|
3407
|
+
}
|
|
3408
|
+
.select-options-custom::-webkit-scrollbar-thumb {
|
|
3409
|
+
background: rgba(255, 255, 255, 0.1);
|
|
3410
|
+
border-radius: 3px;
|
|
3411
|
+
}
|
|
3412
|
+
</style>
|
|
3413
|
+
|
|
3414
|
+
<header>
|
|
3415
|
+
<div class="header-title-area">
|
|
3416
|
+
<h1><i class="fa-solid fa-tags"></i> Árvore de Categorias</h1>
|
|
3417
|
+
<p>Gerencie as categorias e subcategorias utilizadas nos seus lançamentos</p>
|
|
3418
|
+
</div>
|
|
3419
|
+
</header>
|
|
3420
|
+
|
|
3421
|
+
<!-- Main centered tree panel -->
|
|
3422
|
+
<section class="panel">
|
|
3423
|
+
<div class="loading-overlay" id="list-loading">
|
|
3424
|
+
<div class="spinner"></div>
|
|
3425
|
+
</div>
|
|
3426
|
+
|
|
3427
|
+
<div class="panel-header-row">
|
|
3428
|
+
<div class="panel-title">
|
|
3429
|
+
<i class="fa-solid fa-folder-tree"></i> Estrutura de Diretório
|
|
3430
|
+
</div>
|
|
3431
|
+
<button type="button" class="btn-action-primary" onclick="toggleAddCategoryForm()">
|
|
3432
|
+
<i class="fa-solid fa-plus"></i> Nova Categoria
|
|
3433
|
+
</button>
|
|
3434
|
+
</div>
|
|
3435
|
+
|
|
3436
|
+
<!-- Form: Create New Category (Hidden/Inline) -->
|
|
3437
|
+
<!-- Form: Create New Category (Hidden/Inline) -->
|
|
3438
|
+
<div id="add-category-form-container" class="panel-form-inline hidden">
|
|
3439
|
+
<form id="category-form" onsubmit="handleCreateCategory(event)">
|
|
3440
|
+
<div class="form-row" style="display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;">
|
|
3441
|
+
<div class="form-group" style="flex: 2; min-width: 200px; display: flex; flex-direction: column; gap: 6px;">
|
|
3442
|
+
<label class="form-label" for="cat-name">Nome da Categoria</label>
|
|
3443
|
+
<input type="text" id="cat-name" class="form-control" placeholder="Ex: Alimentação, Lazer" style="height: 38px; box-sizing: border-box;" required>
|
|
3444
|
+
</div>
|
|
3445
|
+
<div class="form-group" style="flex: 2; min-width: 280px; display: flex; flex-direction: column; gap: 6px;">
|
|
3446
|
+
<label class="form-label">Tipo de Lançamento</label>
|
|
3447
|
+
<div class="segmented-control" id="cat-kind-control" style="height: 38px; align-items: center; box-sizing: border-box;">
|
|
3448
|
+
<button type="button" class="segmented-btn expense active" id="btn-kind-expense" onclick="setCategoryKind('expense')" style="height: 32px;">
|
|
3449
|
+
<i class="fa-solid fa-arrow-trend-down"></i> Despesa
|
|
3450
|
+
</button>
|
|
3451
|
+
<button type="button" class="segmented-btn income" id="btn-kind-income" onclick="setCategoryKind('income')" style="height: 32px;">
|
|
3452
|
+
<i class="fa-solid fa-arrow-trend-up"></i> Receita
|
|
3453
|
+
</button>
|
|
3454
|
+
<button type="button" class="segmented-btn both" id="btn-kind-both" onclick="setCategoryKind('both')" style="height: 32px;">
|
|
3455
|
+
<i class="fa-solid fa-shuffle"></i> Ambos
|
|
3456
|
+
</button>
|
|
3457
|
+
</div>
|
|
3458
|
+
<input type="hidden" id="cat-kind" value="expense">
|
|
3459
|
+
</div>
|
|
3460
|
+
<div style="display: flex; gap: 0.5rem; height: 38px; align-items: center;">
|
|
3461
|
+
<button type="submit" class="btn-action-primary" style="height: 38px; padding: 0 1.25rem;">Salvar</button>
|
|
3462
|
+
<button type="button" class="btn-action-primary" style="height: 38px; padding: 0 1.25rem; background: rgba(255, 255, 255, 0.05); color: var(--text-muted);" onclick="toggleAddCategoryForm()">Cancelar</button>
|
|
3463
|
+
</div>
|
|
3464
|
+
</div>
|
|
3465
|
+
</form>
|
|
3466
|
+
</div>
|
|
3467
|
+
|
|
3468
|
+
<!-- Grouped Columns (Receitas x Despesas) -->
|
|
3469
|
+
<div class="tree-columns-grid">
|
|
3470
|
+
<!-- Incomes Column -->
|
|
3471
|
+
<div class="tree-column-panel">
|
|
3472
|
+
<div class="column-header income">
|
|
3473
|
+
<i class="fa-solid fa-circle-arrow-up"></i>
|
|
3474
|
+
<span>Receitas</span>
|
|
3475
|
+
</div>
|
|
3476
|
+
<div class="tree-list" id="income-tree-list">
|
|
3477
|
+
<!-- Loaded dynamically -->
|
|
3478
|
+
</div>
|
|
3479
|
+
</div>
|
|
3480
|
+
|
|
3481
|
+
<!-- Expenses Column -->
|
|
3482
|
+
<div class="tree-column-panel">
|
|
3483
|
+
<div class="column-header expense">
|
|
3484
|
+
<i class="fa-solid fa-circle-arrow-down"></i>
|
|
3485
|
+
<span>Despesas</span>
|
|
3486
|
+
</div>
|
|
3487
|
+
<div class="tree-list" id="expense-tree-list">
|
|
3488
|
+
<!-- Loaded dynamically -->
|
|
3489
|
+
</div>
|
|
3490
|
+
</div>
|
|
3491
|
+
</div>
|
|
3492
|
+
</section>
|
|
3493
|
+
|
|
3494
|
+
<div class="toast-container" id="toast-container"></div>
|
|
3495
|
+
|
|
3496
|
+
<script>
|
|
3497
|
+
// State
|
|
3498
|
+
var categories = [];
|
|
3499
|
+
var subcategories = [];
|
|
3500
|
+
var collapsedCategories = {}; // categoryId -> boolean
|
|
3501
|
+
|
|
3502
|
+
// Elements
|
|
3503
|
+
var listLoading = document.getElementById('list-loading');
|
|
3504
|
+
var incomeTreeList = document.getElementById('income-tree-list');
|
|
3505
|
+
var expenseTreeList = document.getElementById('expense-tree-list');
|
|
3506
|
+
|
|
3507
|
+
// Toast Helper
|
|
3508
|
+
function showToast(message, type = "success") {
|
|
3509
|
+
const container = document.getElementById('toast-container');
|
|
3510
|
+
const toast = document.createElement('div');
|
|
3511
|
+
toast.className = `toast ${type}`;
|
|
3512
|
+
toast.innerHTML = `
|
|
3513
|
+
<i class="fa-solid ${type === 'success' ? 'fa-circle-check' : 'fa-circle-exclamation'}"></i>
|
|
3514
|
+
<span>${escapeHtml(message)}</span>
|
|
3515
|
+
`;
|
|
3516
|
+
container.appendChild(toast);
|
|
3517
|
+
|
|
3518
|
+
setTimeout(() => {
|
|
3519
|
+
toast.style.animation = "fadeOut 0.4s ease forwards";
|
|
3520
|
+
setTimeout(() => toast.remove(), 400);
|
|
3521
|
+
}, 3500);
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3524
|
+
// Fetch data from local API
|
|
3525
|
+
async function loadData() {
|
|
3526
|
+
listLoading.classList.add('active');
|
|
3527
|
+
try {
|
|
3528
|
+
const [catsRes, subcatsRes] = await Promise.all([
|
|
3529
|
+
fetch('/api/categories'),
|
|
3530
|
+
fetch('/api/sub-categories')
|
|
3531
|
+
]);
|
|
3532
|
+
|
|
3533
|
+
if (catsRes.ok) {
|
|
3534
|
+
categories = await catsRes.json();
|
|
3535
|
+
categories.sort((a, b) => a.name.localeCompare(b.name));
|
|
3536
|
+
}
|
|
3537
|
+
if (subcatsRes.ok) {
|
|
3538
|
+
subcategories = await subcatsRes.json();
|
|
3539
|
+
subcategories.sort((a, b) => a.name.localeCompare(b.name));
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
renderTreeView();
|
|
3543
|
+
} catch (err) {
|
|
3544
|
+
console.error("Error loading categories:", err);
|
|
3545
|
+
showToast("Erro ao buscar dados do servidor.", "error");
|
|
3546
|
+
} finally {
|
|
3547
|
+
listLoading.classList.remove('active');
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
// Set category kind from segmented control
|
|
3552
|
+
function setCategoryKind(kind) {
|
|
3553
|
+
document.getElementById('cat-kind').value = kind;
|
|
3554
|
+
|
|
3555
|
+
// Toggle active classes on segmented buttons
|
|
3556
|
+
const kinds = ['expense', 'income', 'both'];
|
|
3557
|
+
kinds.forEach(k => {
|
|
3558
|
+
const btn = document.getElementById(`btn-kind-${k}`);
|
|
3559
|
+
if (btn) {
|
|
3560
|
+
if (k === kind) {
|
|
3561
|
+
btn.classList.add('active');
|
|
3562
|
+
} else {
|
|
3563
|
+
btn.classList.remove('active');
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
});
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
// Toggle New Category Form
|
|
3570
|
+
function toggleAddCategoryForm() {
|
|
3571
|
+
const container = document.getElementById('add-category-form-container');
|
|
3572
|
+
container.classList.toggle('hidden');
|
|
3573
|
+
if (!container.classList.contains('hidden')) {
|
|
3574
|
+
document.getElementById('category-form').reset();
|
|
3575
|
+
setCategoryKind('expense'); // Reset kind segment
|
|
3576
|
+
document.getElementById('cat-name').focus();
|
|
3577
|
+
}
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
// Toggle Category Collapse/Expand
|
|
3581
|
+
function toggleCategoryNode(categoryId) {
|
|
3582
|
+
// Get current active state or default state
|
|
3583
|
+
const childSubs = subcategories.filter(s => s.parentId === categoryId);
|
|
3584
|
+
let isCollapsed = collapsedCategories[categoryId];
|
|
3585
|
+
if (isCollapsed === undefined) {
|
|
3586
|
+
isCollapsed = childSubs.length === 0;
|
|
3587
|
+
}
|
|
3588
|
+
|
|
3589
|
+
// Flip the state
|
|
3590
|
+
collapsedCategories[categoryId] = !isCollapsed;
|
|
3591
|
+
|
|
3592
|
+
const nest = document.getElementById(`nest-${categoryId}`);
|
|
3593
|
+
const btn = document.getElementById(`collapse-btn-${categoryId}`);
|
|
3594
|
+
const node = document.getElementById(`node-${categoryId}`);
|
|
3595
|
+
|
|
3596
|
+
if (collapsedCategories[categoryId]) {
|
|
3597
|
+
nest.classList.add('hidden');
|
|
3598
|
+
btn.classList.add('collapsed');
|
|
3599
|
+
node.classList.add('collapsed');
|
|
3600
|
+
} else {
|
|
3601
|
+
nest.classList.remove('hidden');
|
|
3602
|
+
btn.classList.remove('collapsed');
|
|
3603
|
+
node.classList.remove('collapsed');
|
|
3604
|
+
}
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
// Toggle Inline Subcategory Form
|
|
3608
|
+
function toggleAddSubcatForm(categoryId, forceShow = false) {
|
|
3609
|
+
// Expand parent category if collapsed
|
|
3610
|
+
if (collapsedCategories[categoryId]) {
|
|
3611
|
+
toggleCategoryNode(categoryId);
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
const form = document.getElementById(`subcat-form-${categoryId}`);
|
|
3615
|
+
const input = document.getElementById(`subcat-input-${categoryId}`);
|
|
3616
|
+
|
|
3617
|
+
if (forceShow) {
|
|
3618
|
+
form.classList.remove('hidden');
|
|
3619
|
+
input.focus();
|
|
3620
|
+
} else {
|
|
3621
|
+
form.classList.toggle('hidden');
|
|
3622
|
+
if (!form.classList.contains('hidden')) {
|
|
3623
|
+
input.focus();
|
|
3624
|
+
} else {
|
|
3625
|
+
input.value = '';
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
// Render Tree List View
|
|
3631
|
+
function renderTreeView() {
|
|
3632
|
+
incomeTreeList.innerHTML = '';
|
|
3633
|
+
expenseTreeList.innerHTML = '';
|
|
3634
|
+
|
|
3635
|
+
const incomes = categories.filter(c => c.kind === 'income' || c.kind === 'both');
|
|
3636
|
+
const expenses = categories.filter(c => c.kind === 'expense' || c.kind === 'both');
|
|
3637
|
+
|
|
3638
|
+
if (incomes.length === 0) {
|
|
3639
|
+
incomeTreeList.innerHTML = '<div style="text-align:center; padding:1.5rem 0; color:var(--text-dark); font-style:italic; font-size:0.82rem;">Nenhuma categoria de receita.</div>';
|
|
3640
|
+
} else {
|
|
3641
|
+
incomes.forEach(c => renderCategoryNode(c, incomeTreeList));
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
if (expenses.length === 0) {
|
|
3645
|
+
expenseTreeList.innerHTML = '<div style="text-align:center; padding:1.5rem 0; color:var(--text-dark); font-style:italic; font-size:0.82rem;">Nenhuma categoria de despesa.</div>';
|
|
3646
|
+
} else {
|
|
3647
|
+
expenses.forEach(c => renderCategoryNode(c, expenseTreeList));
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
// Helper to render node in specific container
|
|
3652
|
+
function renderCategoryNode(c, container) {
|
|
3653
|
+
const node = document.createElement('div');
|
|
3654
|
+
|
|
3655
|
+
// Subcategories under this parent
|
|
3656
|
+
const childSubs = subcategories.filter(s => s.parentId === c.id);
|
|
3657
|
+
|
|
3658
|
+
// Default collapsed state: collapsed if no subcategories, expanded if has subcategories
|
|
3659
|
+
let isCollapsed = collapsedCategories[c.id];
|
|
3660
|
+
if (isCollapsed === undefined) {
|
|
3661
|
+
isCollapsed = childSubs.length === 0;
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
node.className = `tree-node-parent ${isCollapsed ? 'collapsed' : ''}`;
|
|
3665
|
+
node.id = `node-${c.id}`;
|
|
3666
|
+
|
|
3667
|
+
// Badge mapping
|
|
3668
|
+
let badgeClass = 'badge-both';
|
|
3669
|
+
let kindText = 'Ambos';
|
|
3670
|
+
if (c.kind === 'income') {
|
|
3671
|
+
badgeClass = 'badge-income';
|
|
3672
|
+
kindText = 'Receita';
|
|
3673
|
+
} else if (c.kind === 'expense') {
|
|
3674
|
+
badgeClass = 'badge-expense';
|
|
3675
|
+
kindText = 'Despesa';
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
// Subcategory Rows HTML
|
|
3679
|
+
let subsHtml = '';
|
|
3680
|
+
childSubs.forEach(sub => {
|
|
3681
|
+
subsHtml += `
|
|
3682
|
+
<div class="tree-node-child">
|
|
3683
|
+
<span>${escapeHtml(sub.name)}</span>
|
|
3684
|
+
<button type="button" class="btn-node-action delete-node" title="Excluir subcategoria" onclick="handleDeleteSubcategory('${escapeJsAttr(sub.name)}')">
|
|
3685
|
+
<i class="fa-regular fa-trash-can"></i>
|
|
3686
|
+
</button>
|
|
3687
|
+
</div>
|
|
3688
|
+
`;
|
|
3689
|
+
});
|
|
3690
|
+
|
|
3691
|
+
if (childSubs.length === 0) {
|
|
3692
|
+
subsHtml += `<div class="empty-nest" id="empty-${c.id}">Sem subcategorias</div>`;
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
node.innerHTML = `
|
|
3696
|
+
<div class="category-row-item">
|
|
3697
|
+
<div class="category-info">
|
|
3698
|
+
<button type="button" class="btn-collapse ${isCollapsed ? 'collapsed' : ''}" id="collapse-btn-${c.id}" onclick="toggleCategoryNode('${c.id}')" title="Recolher/Expandir">
|
|
3699
|
+
<i class="fa-solid fa-chevron-down"></i>
|
|
3700
|
+
</button>
|
|
3701
|
+
<span class="category-name">${escapeHtml(c.name)}</span>
|
|
3702
|
+
${c.kind === 'both' ? `<span class="category-badge ${badgeClass}">${kindText}</span>` : ''}
|
|
3703
|
+
</div>
|
|
3704
|
+
<div class="category-actions">
|
|
3705
|
+
<button type="button" class="btn-node-action add-sub" title="Adicionar subcategoria" onclick="toggleAddSubcatForm('${c.id}', true)">
|
|
3706
|
+
<i class="fa-solid fa-plus"></i>
|
|
3707
|
+
</button>
|
|
3708
|
+
<button type="button" class="btn-node-action delete-node" title="Excluir categoria" onclick="handleDeleteCategory('${escapeJsAttr(c.name)}')">
|
|
3709
|
+
<i class="fa-regular fa-trash-can"></i>
|
|
3710
|
+
</button>
|
|
3711
|
+
</div>
|
|
3712
|
+
</div>
|
|
3713
|
+
|
|
3714
|
+
<div class="subcategories-nest ${isCollapsed ? 'hidden' : ''}" id="nest-${c.id}">
|
|
3715
|
+
<!-- Inline Subcategory Form (Pai Fixo/Read-Only) -->
|
|
3716
|
+
<div class="inline-subcat-form hidden" id="subcat-form-${c.id}">
|
|
3717
|
+
<input type="text" id="subcat-input-${c.id}" placeholder="Nova subcategoria..." onkeydown="handleSubcatKeyDown(event, '${c.id}')">
|
|
3718
|
+
<button type="button" class="btn-inline-action save" onclick="saveSubcategory('${c.id}')">Salvar</button>
|
|
3719
|
+
<button type="button" class="btn-inline-action cancel" onclick="toggleAddSubcatForm('${c.id}')">Cancelar</button>
|
|
3720
|
+
</div>
|
|
3721
|
+
|
|
3722
|
+
${subsHtml}
|
|
3723
|
+
</div>
|
|
3724
|
+
`;
|
|
3725
|
+
|
|
3726
|
+
container.appendChild(node);
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
// Subcategory form KeyDown listener (Enter/Escape shortcut)
|
|
3730
|
+
function handleSubcatKeyDown(e, categoryId) {
|
|
3731
|
+
if (e.key === 'Enter') {
|
|
3732
|
+
saveSubcategory(categoryId);
|
|
3733
|
+
} else if (e.key === 'Escape') {
|
|
3734
|
+
toggleAddSubcatForm(categoryId);
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
|
|
3738
|
+
// Create Category handler (Inline Form)
|
|
3739
|
+
async function handleCreateCategory(e) {
|
|
3740
|
+
e.preventDefault();
|
|
3741
|
+
const nameInput = document.getElementById('cat-name');
|
|
3742
|
+
const kindSelect = document.getElementById('cat-kind');
|
|
3743
|
+
|
|
3744
|
+
const name = nameInput.value.trim();
|
|
3745
|
+
const kind = kindSelect.value;
|
|
3746
|
+
|
|
3747
|
+
if (!name) return;
|
|
3748
|
+
|
|
3749
|
+
listLoading.classList.add('active');
|
|
3750
|
+
try {
|
|
3751
|
+
const res = await fetch('/api/categories', {
|
|
3752
|
+
method: 'POST',
|
|
3753
|
+
headers: { 'Content-Type': 'application/json' },
|
|
3754
|
+
body: JSON.stringify({ name, kind })
|
|
3755
|
+
});
|
|
3756
|
+
|
|
3757
|
+
if (res.status === 201 || res.status === 200) {
|
|
3758
|
+
showToast(`Categoria "${name}" criada com sucesso!`);
|
|
3759
|
+
nameInput.value = '';
|
|
3760
|
+
toggleAddCategoryForm();
|
|
3761
|
+
await loadData();
|
|
3762
|
+
} else {
|
|
3763
|
+
const errData = await res.json();
|
|
3764
|
+
const errMsg = errData.error?.code === 'duplicate_name'
|
|
3765
|
+
? 'Uma categoria com este nome já existe.'
|
|
3766
|
+
: 'Erro ao criar categoria.';
|
|
3767
|
+
showToast(errMsg, 'error');
|
|
3768
|
+
}
|
|
3769
|
+
} catch (err) {
|
|
3770
|
+
console.error("Error creating category:", err);
|
|
3771
|
+
showToast("Erro de rede ao criar categoria.", "error");
|
|
3772
|
+
} finally {
|
|
3773
|
+
listLoading.classList.remove('active');
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
// Create Subcategory handler (Inline Input)
|
|
3778
|
+
async function saveSubcategory(categoryId) {
|
|
3779
|
+
const input = document.getElementById(`subcat-input-${categoryId}`);
|
|
3780
|
+
const name = input.value.trim();
|
|
3781
|
+
|
|
3782
|
+
if (!name) {
|
|
3783
|
+
showToast("Digite o nome da subcategoria.", "error");
|
|
3784
|
+
return;
|
|
3785
|
+
}
|
|
3786
|
+
|
|
3787
|
+
listLoading.classList.add('active');
|
|
3788
|
+
try {
|
|
3789
|
+
const res = await fetch('/api/sub-categories', {
|
|
3790
|
+
method: 'POST',
|
|
3791
|
+
headers: { 'Content-Type': 'application/json' },
|
|
3792
|
+
body: JSON.stringify({ categoryId, name })
|
|
3793
|
+
});
|
|
3794
|
+
|
|
3795
|
+
if (res.status === 201 || res.status === 200) {
|
|
3796
|
+
showToast(`Subcategoria "${name}" adicionada!`);
|
|
3797
|
+
input.value = '';
|
|
3798
|
+
toggleAddSubcatForm(categoryId);
|
|
3799
|
+
await loadData();
|
|
3800
|
+
} else {
|
|
3801
|
+
const errData = await res.json();
|
|
3802
|
+
const errMsg = errData.error?.code === 'duplicate_name'
|
|
3803
|
+
? 'Esta subcategoria já existe nesta categoria.'
|
|
3804
|
+
: 'Erro ao criar subcategoria.';
|
|
3805
|
+
showToast(errMsg, 'error');
|
|
3806
|
+
}
|
|
3807
|
+
} catch (err) {
|
|
3808
|
+
console.error("Error creating subcategory:", err);
|
|
3809
|
+
showToast("Erro de rede ao criar subcategoria.", "error");
|
|
3810
|
+
} finally {
|
|
3811
|
+
listLoading.classList.remove('active');
|
|
3812
|
+
}
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
// Delete Category handler
|
|
3816
|
+
async function handleDeleteCategory(name) {
|
|
3817
|
+
if (!confirm(`Deseja realmente excluir a categoria "${name}"?\
|
|
3818
|
+
(Esta operação é irreversível e requer que nenhuma transação ou subcategoria esteja vinculada a ela).`)) {
|
|
3819
|
+
return;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
listLoading.classList.add('active');
|
|
3823
|
+
try {
|
|
3824
|
+
const res = await fetch(`/api/categories/${encodeURIComponent(name)}`, {
|
|
3825
|
+
method: 'DELETE'
|
|
3826
|
+
});
|
|
3827
|
+
|
|
3828
|
+
if (res.ok) {
|
|
3829
|
+
showToast(`Categoria "${name}" excluída!`);
|
|
3830
|
+
await loadData();
|
|
3831
|
+
} else {
|
|
3832
|
+
const errData = await res.json();
|
|
3833
|
+
let errMsg = "Não foi possível excluir a categoria.";
|
|
3834
|
+
if (errData.error?.code === 'in_use') {
|
|
3835
|
+
errMsg = `A categoria está em uso por transações ou subcategorias.`;
|
|
3836
|
+
}
|
|
3837
|
+
showToast(errMsg, 'error');
|
|
3838
|
+
}
|
|
3839
|
+
} catch (err) {
|
|
3840
|
+
console.error("Error deleting category:", err);
|
|
3841
|
+
showToast("Erro de rede ao excluir categoria.", "error");
|
|
3842
|
+
} finally {
|
|
3843
|
+
listLoading.classList.remove('active');
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
|
|
3847
|
+
// Delete Subcategory handler
|
|
3848
|
+
async function handleDeleteSubcategory(name) {
|
|
3849
|
+
if (!confirm(`Deseja realmente excluir a subcategoria "${name}"?\
|
|
3850
|
+
(Esta operação é irreversível e requer que nenhuma transação esteja vinculada a ela).`)) {
|
|
3851
|
+
return;
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
listLoading.classList.add('active');
|
|
3855
|
+
try {
|
|
3856
|
+
const res = await fetch(`/api/sub-categories/${encodeURIComponent(name)}`, {
|
|
3857
|
+
method: 'DELETE'
|
|
3858
|
+
});
|
|
3859
|
+
|
|
3860
|
+
if (res.ok) {
|
|
3861
|
+
showToast(`Subcategoria "${name}" excluída!`);
|
|
3862
|
+
await loadData();
|
|
3863
|
+
} else {
|
|
3864
|
+
const errData = await res.json();
|
|
3865
|
+
let errMsg = "Não foi possível excluir a subcategoria.";
|
|
3866
|
+
if (errData.error?.code === 'in_use') {
|
|
3867
|
+
errMsg = `A subcategoria está em uso por transações.`;
|
|
3868
|
+
}
|
|
3869
|
+
showToast(errMsg, 'error');
|
|
3870
|
+
}
|
|
3871
|
+
} catch (err) {
|
|
3872
|
+
console.error("Error deleting subcategory:", err);
|
|
3873
|
+
showToast("Erro de rede ao excluir subcategoria.", "error");
|
|
3874
|
+
} finally {
|
|
3875
|
+
listLoading.classList.remove('active');
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3879
|
+
// HTML escaping
|
|
3880
|
+
function escapeHtml(str) {
|
|
3881
|
+
if (!str) return '';
|
|
3882
|
+
return str.replace(/&/g, "&")
|
|
3883
|
+
.replace(/</g, "<")
|
|
3884
|
+
.replace(/>/g, ">")
|
|
3885
|
+
.replace(/"/g, """)
|
|
3886
|
+
.replace(/'/g, "'");
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3889
|
+
// Escapes a value for safe embedding as a single-quoted JS string literal *inside* an
|
|
3890
|
+
// HTML attribute (e.g. onclick="fn('${escapeJsAttr(value)}')"). escapeHtml() alone is not
|
|
3891
|
+
// enough here: the browser HTML-decodes the attribute before the JS parser reads it, so an
|
|
3892
|
+
// HTML-escaped quote round-trips back into a real quote and still breaks out of the string.
|
|
3893
|
+
// Escaping backslash+quote for the JS layer first, then HTML-escaping the result for the
|
|
3894
|
+
// attribute layer, survives that decode step correctly for both layers.
|
|
3895
|
+
function escapeJsAttr(str) {
|
|
3896
|
+
if (!str) return '';
|
|
3897
|
+
return escapeHtml(String(str).replace(/\\/g, '\\\\').replace(/'/g, "\\'"));
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
// Bootstrap load
|
|
3901
|
+
|
|
3902
|
+
// Translation engine and dictionaries
|
|
3903
|
+
var TRANSLATIONS = {
|
|
3904
|
+
en: {
|
|
3905
|
+
// Sidebar Menu
|
|
3906
|
+
tooltip_overview: "Overview",
|
|
3907
|
+
tooltip_pending: "Pending",
|
|
3908
|
+
tooltip_comparative: "Comparative",
|
|
3909
|
+
tooltip_projections: "Projections",
|
|
3910
|
+
tooltip_accounts: "Bank Accounts",
|
|
3911
|
+
tooltip_cards: "Credit Cards",
|
|
3912
|
+
menu_categories: "Categories",
|
|
3913
|
+
menu_dashboards: "Dashboards",
|
|
3914
|
+
|
|
3915
|
+
// Month names
|
|
3916
|
+
january: "January", february: "February", march: "March", april: "April", may: "May", june: "June",
|
|
3917
|
+
july: "July", august: "August", september: "September", october: "October", november: "November", december: "December",
|
|
3918
|
+
|
|
3919
|
+
// General UI terms
|
|
3920
|
+
reference_label: "Reference:",
|
|
3921
|
+
day_sun: "Sun", day_mon: "Mon", day_tue: "Tue", day_wed: "Wed", day_thu: "Thu", day_fri: "Fri", day_sat: "Sat",
|
|
3922
|
+
paid: "Paid", unpaid: "Unpaid", active: "Active", inactive: "Inactive",
|
|
3923
|
+
|
|
3924
|
+
// Overview Dashboard
|
|
3925
|
+
overview_title: "Overview",
|
|
3926
|
+
overview_subtitle: "Monthly financial summary, calendar, and quick shortcuts",
|
|
3927
|
+
accounts_balance: "Accounts Balance",
|
|
3928
|
+
expenses_month: "Expenses this Month",
|
|
3929
|
+
card_bills: "Credit Card Bills",
|
|
3930
|
+
incomes_month: "Incomes this Month",
|
|
3931
|
+
final_projection: "Final Projection:",
|
|
3932
|
+
recent_transactions: "Recent Transactions",
|
|
3933
|
+
due_calendar: "Daily Flow & Dues",
|
|
3934
|
+
expenses_distribution: "Expenses Distribution",
|
|
3935
|
+
quick_shortcuts: "Quick Shortcuts",
|
|
3936
|
+
new_transaction: "New Transaction",
|
|
3937
|
+
new_transfer: "New Transfer",
|
|
3938
|
+
new_category: "New Category",
|
|
3939
|
+
new_card: "New Card",
|
|
3940
|
+
new_account: "New Account",
|
|
3941
|
+
no_expenses_month: "No expenses recorded this month.",
|
|
3942
|
+
no_recent_transactions: "No recent transactions found.",
|
|
3943
|
+
no_dues_period: "No transactions due in this period.",
|
|
3944
|
+
income: "Income",
|
|
3945
|
+
expense: "Expense",
|
|
3946
|
+
paid_reconciled: "Paid / Reconciled",
|
|
3947
|
+
|
|
3948
|
+
// Projections / Heatmap Dashboard
|
|
3949
|
+
projections_title: "Recurring & Installment Projections",
|
|
3950
|
+
projections_subtitle: "Advanced visual mapping and projection of active recurrences and installments for the next months",
|
|
3951
|
+
projection_label: "Projection:",
|
|
3952
|
+
months_3: "3 Months",
|
|
3953
|
+
months_6: "6 Months",
|
|
3954
|
+
months_9: "9 Months",
|
|
3955
|
+
months_12: "12 Months",
|
|
3956
|
+
heatmap_income_title: "Recurrent / Installment Incomes",
|
|
3957
|
+
heatmap_expense_title: "Recurrent / Installment Expenses",
|
|
3958
|
+
total: "Total",
|
|
3959
|
+
no_recurrent_incomes: "No active recurrent or installment incomes in the selected semester.",
|
|
3960
|
+
no_recurrent_expenses: "No active recurrent or installment expenses in the selected semester.",
|
|
3961
|
+
modal_details_title: "Projection Breakdown",
|
|
3962
|
+
modal_details_subtitle: "Details of projected transactions for the category and month",
|
|
3963
|
+
col_date: "Date",
|
|
3964
|
+
col_desc: "Description",
|
|
3965
|
+
col_value: "Value",
|
|
3966
|
+
col_status: "Status",
|
|
3967
|
+
btn_close: "Close",
|
|
3968
|
+
|
|
3969
|
+
// Comparative Dashboard
|
|
3970
|
+
comparative_title: "Comparative Dashboard",
|
|
3971
|
+
comparative_subtitle: "Analysis and comparison of monthly incomes vs expenses, and category limits",
|
|
3972
|
+
month_summary_title: "Month Summary",
|
|
3973
|
+
cat_spending_title: "Spending by Category",
|
|
3974
|
+
card_limits_title: "Category Budgets & Limits",
|
|
3975
|
+
col_category: "Category",
|
|
3976
|
+
col_limit: "Budget Limit",
|
|
3977
|
+
col_spent: "Spent",
|
|
3978
|
+
col_status_limit: "Status",
|
|
3979
|
+
col_percentage: "Percentage",
|
|
3980
|
+
within_limit: "Within Limit",
|
|
3981
|
+
exceeded: "Exceeded",
|
|
3982
|
+
reception: "Incomes",
|
|
3983
|
+
deduction: "Expenses",
|
|
3984
|
+
net_balance: "Net Balance",
|
|
3985
|
+
performance: "Financial Health",
|
|
3986
|
+
no_spending_month: "No category spend recorded this month.",
|
|
3987
|
+
|
|
3988
|
+
// Accounts Dashboard
|
|
3989
|
+
accounts_title: "Bank Accounts",
|
|
3990
|
+
accounts_subtitle: "Manage accounts, checking balances, and reviewing statements",
|
|
3991
|
+
active_account_statement: "Account Statement",
|
|
3992
|
+
btn_new_transaction: "New Transaction",
|
|
3993
|
+
btn_new_transfer: "New Transfer",
|
|
3994
|
+
search_description_placeholder: "Type to search...",
|
|
3995
|
+
filter_type_label: "Type",
|
|
3996
|
+
filter_type_all: "All",
|
|
3997
|
+
filter_type_income: "Incomes",
|
|
3998
|
+
filter_type_expense: "Expenses",
|
|
3999
|
+
col_actions: "Actions",
|
|
4000
|
+
action_confirm: "Confirm",
|
|
4001
|
+
action_edit: "Edit",
|
|
4002
|
+
action_delete: "Delete",
|
|
4003
|
+
no_transactions_account: "No transactions recorded for this account in the selected month.",
|
|
4004
|
+
confirm_delete_title: "Are you sure you want to permanently delete this transaction?",
|
|
4005
|
+
modal_new_tx_title: "New Transaction",
|
|
4006
|
+
modal_new_transfer_title: "New Transfer",
|
|
4007
|
+
label_account: "Account",
|
|
4008
|
+
label_description: "Description",
|
|
4009
|
+
label_value: "Value",
|
|
4010
|
+
label_date: "Date",
|
|
4011
|
+
label_category: "Category / Subcategory",
|
|
4012
|
+
label_type: "Type",
|
|
4013
|
+
label_status: "Status",
|
|
4014
|
+
status_pending: "Pending",
|
|
4015
|
+
status_confirmed: "Paid / Confirmed",
|
|
4016
|
+
btn_cancel: "Cancel",
|
|
4017
|
+
btn_save: "Save",
|
|
4018
|
+
label_origin: "Origin Account",
|
|
4019
|
+
label_destination: "Destination Account",
|
|
4020
|
+
|
|
4021
|
+
// Pending Dashboard
|
|
4022
|
+
pending_title: "Pending Transactions",
|
|
4023
|
+
pending_subtitle: "Monitoring and quick confirmation of pending or future transactions",
|
|
4024
|
+
pending_kpi_total: "Total Pending",
|
|
4025
|
+
pending_kpi_incomes: "Pending Incomes",
|
|
4026
|
+
pending_kpi_expenses: "Pending Expenses",
|
|
4027
|
+
pending_chart_incomes: "Pending Incomes Trend",
|
|
4028
|
+
pending_chart_expenses: "Pending Expenses Trend",
|
|
4029
|
+
btn_confirm: "Confirm",
|
|
4030
|
+
btn_edit: "Edit",
|
|
4031
|
+
btn_delete: "Delete",
|
|
4032
|
+
no_pending_transactions: "No pending transactions found for this period.",
|
|
4033
|
+
toast_success_confirm: "Transaction confirmed successfully!",
|
|
4034
|
+
|
|
4035
|
+
// Categories Dashboard
|
|
4036
|
+
categories_title: "Category Management",
|
|
4037
|
+
categories_subtitle: "Visualize, search, and manage categories and subcategories in a clean tree list",
|
|
4038
|
+
btn_new_category: "New Category",
|
|
4039
|
+
search_category_placeholder: "Search categories...",
|
|
4040
|
+
col_type: "Type",
|
|
4041
|
+
col_actions_cat: "Actions",
|
|
4042
|
+
subcategories_label: "Subcategories",
|
|
4043
|
+
no_subcategories: "No subcategories registered.",
|
|
4044
|
+
modal_new_cat_title: "New Category",
|
|
4045
|
+
modal_new_subcat_title: "New Subcategory",
|
|
4046
|
+
label_name: "Name",
|
|
4047
|
+
label_color: "Color",
|
|
4048
|
+
label_parent_category: "Parent Category (Read-Only)",
|
|
4049
|
+
toast_success_cat: "Category created successfully!",
|
|
4050
|
+
toast_success_subcat: "Subcategory created successfully!",
|
|
4051
|
+
|
|
4052
|
+
// Cards Dashboard
|
|
4053
|
+
cards_title: "Credit Cards",
|
|
4054
|
+
cards_subtitle: "Manage credit cards, credit limits, and statement history",
|
|
4055
|
+
card_bill_details: "Card Bill Details",
|
|
4056
|
+
btn_pay_bill: "Pay Bill",
|
|
4057
|
+
btn_revert_payment: "Revert Payment",
|
|
4058
|
+
bill_status: "Bill Status:",
|
|
4059
|
+
status_open: "Open",
|
|
4060
|
+
status_closed: "Closed",
|
|
4061
|
+
status_paid: "Paid",
|
|
4062
|
+
no_card_transactions: "No transactions recorded for this card bill in the selected cycle.",
|
|
4063
|
+
|
|
4064
|
+
// Dashboards Manager Dashboard
|
|
4065
|
+
dashboards_title: "Dashboards Monitor",
|
|
4066
|
+
dashboards_subtitle: "List, view source, and upload patty dashboards",
|
|
4067
|
+
col_dashboard: "Dashboard",
|
|
4068
|
+
col_last_update: "Last Updated",
|
|
4069
|
+
btn_view_source: "View Source",
|
|
4070
|
+
btn_download: "Download",
|
|
4071
|
+
upload_new_dashboard: "Upload New Dashboard",
|
|
4072
|
+
placeholder_dashboard_name: "Dashboard Name (e.g. pending)",
|
|
4073
|
+
upload_instructions: "Select or drop HTML file here to upload",
|
|
4074
|
+
btn_upload: "Upload",
|
|
4075
|
+
modal_source_title: "HTML Source Code",
|
|
4076
|
+
|
|
4077
|
+
// Tags Management
|
|
4078
|
+
menu_tags: "Tags",
|
|
4079
|
+
tags_title: "Tag Management",
|
|
4080
|
+
tags_subtitle: "Manage tags to label and organize your transactions",
|
|
4081
|
+
panel_title_tags: "Active Tags",
|
|
4082
|
+
btn_new_tag: "New Tag",
|
|
4083
|
+
label_tag_name: "Tag Name",
|
|
4084
|
+
placeholder_tag_name: "E.g. work, travel, refund",
|
|
4085
|
+
empty_tags_message: "No tags registered.",
|
|
4086
|
+
btn_save: "Save",
|
|
4087
|
+
btn_cancel: "Cancel",
|
|
4088
|
+
toast_success_tag_created: 'Tag "{name}" created successfully!',
|
|
4089
|
+
toast_success_tag_deleted: 'Tag "{name}" deleted successfully!',
|
|
4090
|
+
confirm_delete_tag: 'Are you sure you want to delete tag "{name}"?\n(This action will remove the tag from all linked transactions)'
|
|
4091
|
+
},
|
|
4092
|
+
pt: {
|
|
4093
|
+
// Sidebar Menu
|
|
4094
|
+
tooltip_overview: "Visão Geral",
|
|
4095
|
+
tooltip_pending: "Pendentes",
|
|
4096
|
+
tooltip_comparative: "Comparativo",
|
|
4097
|
+
tooltip_projections: "Projeções",
|
|
4098
|
+
tooltip_accounts: "Contas Bancárias",
|
|
4099
|
+
tooltip_cards: "Cartões de Crédito",
|
|
4100
|
+
menu_categories: "Categorias",
|
|
4101
|
+
menu_dashboards: "Dashboards",
|
|
4102
|
+
|
|
4103
|
+
// Month names
|
|
4104
|
+
january: "Janeiro", february: "Fevereiro", march: "Março", april: "Abril", may: "Maio", june: "Junho",
|
|
4105
|
+
july: "Julho", august: "Agosto", september: "Setembro", october: "Outubro", november: "Novembro", december: "Dezembro",
|
|
4106
|
+
|
|
4107
|
+
// General UI terms
|
|
4108
|
+
reference_label: "Referência:",
|
|
4109
|
+
day_sun: "Dom", day_mon: "Seg", day_tue: "Ter", day_wed: "Qua", day_thu: "Qui", day_fri: "Sex", day_sat: "Sáb",
|
|
4110
|
+
paid: "Pago", unpaid: "Não Pago", active: "Ativo", inactive: "Inativo",
|
|
4111
|
+
|
|
4112
|
+
// Overview Dashboard
|
|
4113
|
+
overview_title: "Visão Geral",
|
|
4114
|
+
overview_subtitle: "Consolidado financeiro mensal, calendário e atalhos rápidos",
|
|
4115
|
+
accounts_balance: "Saldo em Contas",
|
|
4116
|
+
expenses_month: "Despesas do Mês",
|
|
4117
|
+
card_bills: "Faturas de Cartão",
|
|
4118
|
+
incomes_month: "Receitas do Mês",
|
|
4119
|
+
final_projection: "Projeção Final:",
|
|
4120
|
+
recent_transactions: "Lançamentos Recentes",
|
|
4121
|
+
due_calendar: "Fluxo Diário",
|
|
4122
|
+
expenses_distribution: "Distribuição de Despesas",
|
|
4123
|
+
quick_shortcuts: "Atalhos Rápidos",
|
|
4124
|
+
new_transaction: "Novo Lançamento",
|
|
4125
|
+
new_transfer: "Nova Transferência",
|
|
4126
|
+
new_category: "Nova Categoria",
|
|
4127
|
+
new_card: "Novo Cartão",
|
|
4128
|
+
new_account: "Nova Conta",
|
|
4129
|
+
no_expenses_month: "Sem despesas registradas neste mês.",
|
|
4130
|
+
no_recent_transactions: "Nenhuma transação recente encontrada.",
|
|
4131
|
+
no_dues_period: "Sem vencimentos neste período.",
|
|
4132
|
+
income: "Receita",
|
|
4133
|
+
expense: "Despesa",
|
|
4134
|
+
paid_reconciled: "Pago / Conciliado",
|
|
4135
|
+
|
|
4136
|
+
// Projections / Heatmap Dashboard
|
|
4137
|
+
projections_title: "Projeção de Recorrências e Parcelas",
|
|
4138
|
+
projections_subtitle: "Mapeamento visual avançado e projeção de recorrências e parcelas ativas para os próximos meses",
|
|
4139
|
+
projection_label: "Projeção:",
|
|
4140
|
+
months_3: "3 Meses",
|
|
4141
|
+
months_6: "6 Meses",
|
|
4142
|
+
months_9: "9 Meses",
|
|
4143
|
+
months_12: "12 Meses",
|
|
4144
|
+
heatmap_income_title: "Receitas Recorrentes / Parceladas",
|
|
4145
|
+
heatmap_expense_title: "Despesas Recorrentes / Parceladas",
|
|
4146
|
+
total: "Total",
|
|
4147
|
+
no_recurrent_incomes: "Nenhuma receita recorrente/parcelada ativa no semestre.",
|
|
4148
|
+
no_recurrent_expenses: "Nenhuma despesa recorrente/parcelada ativa no semestre.",
|
|
4149
|
+
modal_details_title: "Detalhamento de Projeções",
|
|
4150
|
+
modal_details_subtitle: "Detalhes das transações projetadas para a categoria e mês",
|
|
4151
|
+
col_date: "Data",
|
|
4152
|
+
col_desc: "Descrição",
|
|
4153
|
+
col_value: "Valor",
|
|
4154
|
+
col_status: "Status",
|
|
4155
|
+
btn_close: "Fechar",
|
|
4156
|
+
|
|
4157
|
+
// Comparative Dashboard
|
|
4158
|
+
comparative_title: "Dashboard Comparativo",
|
|
4159
|
+
comparative_subtitle: "Análise e comparação mensal de receitas vs despesas e limites por categoria",
|
|
4160
|
+
month_summary_title: "Resumo do Mês",
|
|
4161
|
+
cat_spending_title: "Gastos por Categoria",
|
|
4162
|
+
card_limits_title: "Orçamentos e Limites de Categorias",
|
|
4163
|
+
col_category: "Categoria",
|
|
4164
|
+
col_limit: "Limite de Orçamento",
|
|
4165
|
+
col_spent: "Gasto",
|
|
4166
|
+
col_status_limit: "Status",
|
|
4167
|
+
col_percentage: "Porcentagem",
|
|
4168
|
+
within_limit: "Dentro do Limite",
|
|
4169
|
+
exceeded: "Excedido",
|
|
4170
|
+
reception: "Receitas",
|
|
4171
|
+
deduction: "Despesas",
|
|
4172
|
+
net_balance: "Saldo Líquido",
|
|
4173
|
+
performance: "Saúde Financeira",
|
|
4174
|
+
no_spending_month: "Sem despesas registradas por categoria neste mês.",
|
|
4175
|
+
|
|
4176
|
+
// Accounts Dashboard
|
|
4177
|
+
accounts_title: "Minhas Contas",
|
|
4178
|
+
accounts_subtitle: "Gerencie contas, consulte saldos e revise extratos",
|
|
4179
|
+
active_account_statement: "Extrato de Conta",
|
|
4180
|
+
btn_new_transaction: "Novo Lançamento",
|
|
4181
|
+
btn_new_transfer: "Nova Transferência",
|
|
4182
|
+
search_description_placeholder: "Digite para filtrar...",
|
|
4183
|
+
filter_type_label: "Tipo",
|
|
4184
|
+
filter_type_all: "Todos",
|
|
4185
|
+
filter_type_income: "Receitas",
|
|
4186
|
+
filter_type_expense: "Despesas",
|
|
4187
|
+
col_actions: "Ações",
|
|
4188
|
+
action_confirm: "Confirmar",
|
|
4189
|
+
action_edit: "Editar",
|
|
4190
|
+
action_delete: "Excluir",
|
|
4191
|
+
no_transactions_account: "Nenhum lançamento nesta conta para o mês selecionado.",
|
|
4192
|
+
confirm_delete_title: "Deseja excluir definitivamente a transação?",
|
|
4193
|
+
modal_new_tx_title: "Novo Lançamento",
|
|
4194
|
+
modal_new_transfer_title: "Nova Transferência",
|
|
4195
|
+
label_account: "Conta",
|
|
4196
|
+
label_description: "Descrição",
|
|
4197
|
+
label_value: "Valor",
|
|
4198
|
+
label_date: "Data",
|
|
4199
|
+
label_category: "Categoria / Subcategoria",
|
|
4200
|
+
label_type: "Tipo",
|
|
4201
|
+
label_status: "Status",
|
|
4202
|
+
status_pending: "Pendente",
|
|
4203
|
+
status_confirmed: "Pago / Confirmado",
|
|
4204
|
+
btn_cancel: "Cancelar",
|
|
4205
|
+
btn_save: "Salvar",
|
|
4206
|
+
label_origin: "Conta Origem",
|
|
4207
|
+
label_destination: "Conta Destino",
|
|
4208
|
+
|
|
4209
|
+
// Pending Dashboard
|
|
4210
|
+
pending_title: "Transações Pendentes",
|
|
4211
|
+
pending_subtitle: "Monitoramento e confirmação rápida de lançamentos pendentes ou futuros",
|
|
4212
|
+
pending_kpi_total: "Total Pendente",
|
|
4213
|
+
pending_kpi_incomes: "Receitas Pendentes",
|
|
4214
|
+
pending_kpi_expenses: "Despesas Pendentes",
|
|
4215
|
+
pending_chart_incomes: "Tendência de Receitas Pendentes",
|
|
4216
|
+
pending_chart_expenses: "Tendência de Despesas Pendentes",
|
|
4217
|
+
btn_confirm: "Confirmar",
|
|
4218
|
+
btn_edit: "Editar",
|
|
4219
|
+
btn_delete: "Excluir",
|
|
4220
|
+
no_pending_transactions: "Nenhuma transação pendente encontrada para este período.",
|
|
4221
|
+
toast_success_confirm: "Transação confirmada com sucesso!",
|
|
4222
|
+
|
|
4223
|
+
// Categories Dashboard
|
|
4224
|
+
categories_title: "Gerenciamento de Categorias",
|
|
4225
|
+
categories_subtitle: "Visualize, pesquise e gerencie categorias e subcategorias em árvore",
|
|
4226
|
+
btn_new_category: "Nova Categoria",
|
|
4227
|
+
search_category_placeholder: "Pesquisar categorias...",
|
|
4228
|
+
col_type: "Tipo",
|
|
4229
|
+
col_actions_cat: "Ações",
|
|
4230
|
+
subcategories_label: "Subcategorias",
|
|
4231
|
+
no_subcategories: "Nenhuma subcategoria cadastrada.",
|
|
4232
|
+
modal_new_cat_title: "Nova Categoria",
|
|
4233
|
+
modal_new_subcat_title: "Nova Subcategoria",
|
|
4234
|
+
label_name: "Nome",
|
|
4235
|
+
label_color: "Cor",
|
|
4236
|
+
label_parent_category: "Categoria Pai (Somente Leitura)",
|
|
4237
|
+
toast_success_cat: "Categoria criada com sucesso!",
|
|
4238
|
+
toast_success_subcat: "Subcategoria criada com sucesso!",
|
|
4239
|
+
|
|
4240
|
+
// Cards Dashboard
|
|
4241
|
+
cards_title: "Cartões de Crédito",
|
|
4242
|
+
cards_subtitle: "Gerencie cartões de crédito, limites e histórico de faturas",
|
|
4243
|
+
card_bill_details: "Detalhamento de Fatura",
|
|
4244
|
+
btn_pay_bill: "Pagar Fatura",
|
|
4245
|
+
btn_revert_payment: "Estornar Pagamento",
|
|
4246
|
+
bill_status: "Status da Fatura:",
|
|
4247
|
+
status_open: "Aberta",
|
|
4248
|
+
status_closed: "Fechada",
|
|
4249
|
+
status_paid: "Paga",
|
|
4250
|
+
no_card_transactions: "Nenhuma transação registrada nesta fatura para o ciclo selecionado.",
|
|
4251
|
+
|
|
4252
|
+
// Dashboards Manager Dashboard
|
|
4253
|
+
dashboards_title: "Monitor de Dashboards",
|
|
4254
|
+
dashboards_subtitle: "Liste, visualize o código fonte e envie dashboards para o servidor do patty",
|
|
4255
|
+
col_dashboard: "Dashboard",
|
|
4256
|
+
col_last_update: "Última Atualização",
|
|
4257
|
+
btn_view_source: "Ver Código",
|
|
4258
|
+
btn_download: "Baixar HTML",
|
|
4259
|
+
upload_new_dashboard: "Enviar Novo Dashboard",
|
|
4260
|
+
placeholder_dashboard_name: "Nome do Dashboard (ex: pending)",
|
|
4261
|
+
upload_instructions: "Selecione ou solte o arquivo HTML aqui para upload",
|
|
4262
|
+
btn_upload: "Fazer Upload",
|
|
4263
|
+
modal_source_title: "Código Fonte HTML",
|
|
4264
|
+
|
|
4265
|
+
// Tags Management
|
|
4266
|
+
menu_tags: "Tags",
|
|
4267
|
+
tags_title: "Gerenciar Tags",
|
|
4268
|
+
tags_subtitle: "Gerencie as tags utilizadas para rotular e categorizar suas transações",
|
|
4269
|
+
panel_title_tags: "Tags Ativas",
|
|
4270
|
+
btn_new_tag: "Nova Tag",
|
|
4271
|
+
label_tag_name: "Nome da Tag",
|
|
4272
|
+
placeholder_tag_name: "Ex: trabalho, viagem, reembolso",
|
|
4273
|
+
empty_tags_message: "Nenhuma tag cadastrada.",
|
|
4274
|
+
btn_save: "Salvar",
|
|
4275
|
+
btn_cancel: "Cancelar",
|
|
4276
|
+
toast_success_tag_created: 'Tag "{name}" criada com sucesso!',
|
|
4277
|
+
toast_success_tag_deleted: 'Tag "{name}" excluída com sucesso!',
|
|
4278
|
+
confirm_delete_tag: 'Deseja realmente excluir a tag "{name}"?\n(Esta ação removerá a tag de todas as transações vinculadas)'
|
|
4279
|
+
},
|
|
4280
|
+
es: {
|
|
4281
|
+
// Sidebar Menu
|
|
4282
|
+
tooltip_overview: "Vista General",
|
|
4283
|
+
tooltip_pending: "Pendientes",
|
|
4284
|
+
tooltip_comparative: "Comparativo",
|
|
4285
|
+
tooltip_projections: "Proyecciones",
|
|
4286
|
+
tooltip_accounts: "Cuentas Bancárias",
|
|
4287
|
+
tooltip_cards: "Tarjetas de Crédito",
|
|
4288
|
+
menu_categories: "Categorías",
|
|
4289
|
+
menu_dashboards: "Dashboards",
|
|
4290
|
+
|
|
4291
|
+
// Month names
|
|
4292
|
+
january: "Enero", february: "Febrero", march: "Marzo", april: "Abril", may: "Mayo", june: "Junio",
|
|
4293
|
+
july: "Julio", august: "Agosto", september: "Septiembre", october: "Octubre", november: "Noviembre", december: "Diciembre",
|
|
4294
|
+
|
|
4295
|
+
// General UI terms
|
|
4296
|
+
reference_label: "Referencia:",
|
|
4297
|
+
day_sun: "Dom", day_mon: "Lun", day_tue: "Mar", day_wed: "Mié", day_thu: "Jue", day_fri: "Vie", day_sat: "Sáb",
|
|
4298
|
+
paid: "Pagado", unpaid: "No Pagado", active: "Activo", inactive: "Inactivo",
|
|
4299
|
+
|
|
4300
|
+
// Overview Dashboard
|
|
4301
|
+
overview_title: "Vista General",
|
|
4302
|
+
overview_subtitle: "Resumen financiero mensual, calendario y accesos rápidos",
|
|
4303
|
+
accounts_balance: "Saldo en Cuentas",
|
|
4304
|
+
expenses_month: "Gastos del Mes",
|
|
4305
|
+
card_bills: "Facturas de Tarjeta",
|
|
4306
|
+
incomes_month: "Ingresos del Mes",
|
|
4307
|
+
final_projection: "Proyección Final:",
|
|
4308
|
+
recent_transactions: "Transacciones Recientes",
|
|
4309
|
+
due_calendar: "Calendario de Pagos",
|
|
4310
|
+
expenses_distribution: "Distribución de Gastos",
|
|
4311
|
+
quick_shortcuts: "Accesos Rápidos",
|
|
4312
|
+
new_transaction: "Nueva Transacción",
|
|
4313
|
+
new_transfer: "Nueva Transferencia",
|
|
4314
|
+
new_category: "Nueva Categoría",
|
|
4315
|
+
new_card: "Nueva Tarjeta",
|
|
4316
|
+
new_account: "Nueva Cuenta",
|
|
4317
|
+
no_expenses_month: "No hay gastos registrados este mes.",
|
|
4318
|
+
no_recent_transactions: "No se encontraron transacciones recientes.",
|
|
4319
|
+
no_dues_period: "Sin vencimientos en este período.",
|
|
4320
|
+
income: "Ingreso",
|
|
4321
|
+
expense: "Gasto",
|
|
4322
|
+
paid_reconciled: "Pagado / Conciliado",
|
|
4323
|
+
|
|
4324
|
+
// Projections / Heatmap Dashboard
|
|
4325
|
+
projections_title: "Proyección de Recurrencias y Cuotas",
|
|
4326
|
+
projections_subtitle: "Mapeo visual avanzado y proyección de recurrencias y cuotas activas para los próximos meses",
|
|
4327
|
+
projection_label: "Proyección:",
|
|
4328
|
+
months_3: "3 Meses",
|
|
4329
|
+
months_6: "6 Meses",
|
|
4330
|
+
months_9: "9 Meses",
|
|
4331
|
+
months_12: "12 Meses",
|
|
4332
|
+
heatmap_income_title: "Ingresos Recurrentes / Cuotas",
|
|
4333
|
+
heatmap_expense_title: "Gastos Recurrentes / Cuotas",
|
|
4334
|
+
total: "Total",
|
|
4335
|
+
no_recurrent_incomes: "Ningún ingreso recurrente o en cuotas activo en el semestre seleccionado.",
|
|
4336
|
+
no_recurrent_expenses: "Ningún gasto recurrente o en cuotas activo en el semestre seleccionado.",
|
|
4337
|
+
modal_details_title: "Detalle de Proyecciones",
|
|
4338
|
+
modal_details_subtitle: "Detalles de transacciones proyectadas para la categoría y mes",
|
|
4339
|
+
col_date: "Fecha",
|
|
4340
|
+
col_desc: "Descripción",
|
|
4341
|
+
col_value: "Valor",
|
|
4342
|
+
col_status: "Estado",
|
|
4343
|
+
btn_close: "Cerrar",
|
|
4344
|
+
|
|
4345
|
+
// Comparative Dashboard
|
|
4346
|
+
comparative_title: "Dashboard Comparativo",
|
|
4347
|
+
comparative_subtitle: "Análisis y comparación mensual de ingresos vs gastos y límites por categoría",
|
|
4348
|
+
month_summary_title: "Resumen del Mes",
|
|
4349
|
+
cat_spending_title: "Gastos por Categoría",
|
|
4350
|
+
card_limits_title: "Presupuestos y Límites de Categorías",
|
|
4351
|
+
col_category: "Categoría",
|
|
4352
|
+
col_limit: "Límite de Presupuesto",
|
|
4353
|
+
col_spent: "Gastado",
|
|
4354
|
+
col_status_limit: "Estado",
|
|
4355
|
+
col_percentage: "Porcentaje",
|
|
4356
|
+
within_limit: "Dentro del Límite",
|
|
4357
|
+
exceeded: "Excedido",
|
|
4358
|
+
reception: "Ingresos",
|
|
4359
|
+
deduction: "Gastos",
|
|
4360
|
+
net_balance: "Saldo Neto",
|
|
4361
|
+
performance: "Salud Financiera",
|
|
4362
|
+
no_spending_month: "No hay gastos registrados por categoría este mes.",
|
|
4363
|
+
|
|
4364
|
+
// Accounts Dashboard
|
|
4365
|
+
accounts_title: "Cuentas Bancarias",
|
|
4366
|
+
accounts_subtitle: "Administre cuentas, consulte saldos y revise extractos",
|
|
4367
|
+
active_account_statement: "Extracto de Cuenta",
|
|
4368
|
+
btn_new_transaction: "Nueva Transacción",
|
|
4369
|
+
btn_new_transfer: "Nueva Transferencia",
|
|
4370
|
+
search_description_placeholder: "Escriba para filtrar...",
|
|
4371
|
+
filter_type_label: "Tipo",
|
|
4372
|
+
filter_type_all: "Todos",
|
|
4373
|
+
filter_type_income: "Ingresos",
|
|
4374
|
+
filter_type_expense: "Gastos",
|
|
4375
|
+
col_actions: "Acciones",
|
|
4376
|
+
action_confirm: "Confirmar",
|
|
4377
|
+
action_edit: "Editar",
|
|
4378
|
+
action_delete: "Eliminar",
|
|
4379
|
+
no_transactions_account: "No hay transacciones registradas en esta cuenta en el mes seleccionado.",
|
|
4380
|
+
confirm_delete_title: "¿Está seguro de eliminar definitivamente esta transacción?",
|
|
4381
|
+
modal_new_tx_title: "Nueva Transacción",
|
|
4382
|
+
modal_new_transfer_title: "Nueva Transferencia",
|
|
4383
|
+
label_account: "Cuenta",
|
|
4384
|
+
label_description: "Descripción",
|
|
4385
|
+
label_value: "Valor",
|
|
4386
|
+
label_date: "Fecha",
|
|
4387
|
+
label_category: "Categoría / Subcategoría",
|
|
4388
|
+
label_type: "Tipo",
|
|
4389
|
+
label_status: "Estado",
|
|
4390
|
+
status_pending: "Pendiente",
|
|
4391
|
+
status_confirmed: "Pagado / Confirmado",
|
|
4392
|
+
btn_cancel: "Cancelar",
|
|
4393
|
+
btn_save: "Guardar",
|
|
4394
|
+
label_origin: "Cuenta Origen",
|
|
4395
|
+
label_destination: "Cuenta Destino",
|
|
4396
|
+
|
|
4397
|
+
// Pending Dashboard
|
|
4398
|
+
pending_title: "Transacciones Pendientes",
|
|
4399
|
+
pending_subtitle: "Monitoreo y confirmación rápida de transacciones pendientes o futuras",
|
|
4400
|
+
pending_kpi_total: "Total Pendiente",
|
|
4401
|
+
pending_kpi_incomes: "Ingresos Pendientes",
|
|
4402
|
+
pending_kpi_expenses: "Gastos Pendientes",
|
|
4403
|
+
pending_chart_incomes: "Tendencia de Ingresos Pendientes",
|
|
4404
|
+
pending_chart_expenses: "Tendencia de Gastos Pendientes",
|
|
4405
|
+
btn_confirm: "Confirmar",
|
|
4406
|
+
btn_edit: "Editar",
|
|
4407
|
+
btn_delete: "Eliminar",
|
|
4408
|
+
no_pending_transactions: "No se encontraron transacciones pendientes en este período.",
|
|
4409
|
+
toast_success_confirm: "¡Transacción confirmada con éxito!",
|
|
4410
|
+
|
|
4411
|
+
// Categories Dashboard
|
|
4412
|
+
categories_title: "Gestión de Categorías",
|
|
4413
|
+
categories_subtitle: "Visualice, busque y gestione categorías y subcategorías en árbol",
|
|
4414
|
+
btn_new_category: "Nueva Categoría",
|
|
4415
|
+
search_category_placeholder: "Buscar categorías...",
|
|
4416
|
+
col_type: "Tipo",
|
|
4417
|
+
col_actions_cat: "Acciones",
|
|
4418
|
+
subcategories_label: "Subcategorías",
|
|
4419
|
+
no_subcategories: "Ninguna subcategoría registrada.",
|
|
4420
|
+
modal_new_cat_title: "Nueva Categoría",
|
|
4421
|
+
modal_new_subcat_title: "Nueva Subcategoría",
|
|
4422
|
+
label_name: "Nombre",
|
|
4423
|
+
label_color: "Color",
|
|
4424
|
+
label_parent_category: "Categoría Padre (Solo Lectura)",
|
|
4425
|
+
toast_success_cat: "¡Categoría creada con éxito!",
|
|
4426
|
+
toast_success_subcat: "¡Subcategoría creada con éxito!",
|
|
4427
|
+
|
|
4428
|
+
// Cards Dashboard
|
|
4429
|
+
cards_title: "Tarjetas de Crédito",
|
|
4430
|
+
cards_subtitle: "Gestione tarjetas de crédito, límites y facturas",
|
|
4431
|
+
card_bill_details: "Detalle de Factura",
|
|
4432
|
+
btn_pay_bill: "Pagar Factura",
|
|
4433
|
+
btn_revert_payment: "Revertir Pago",
|
|
4434
|
+
bill_status: "Estado de la Factura:",
|
|
4435
|
+
status_open: "Abierta",
|
|
4436
|
+
status_closed: "Cerrada",
|
|
4437
|
+
status_paid: "Pagada",
|
|
4438
|
+
no_card_transactions: "Ninguna transacción registrada en esta factura para el ciclo seleccionado.",
|
|
4439
|
+
|
|
4440
|
+
// Dashboards Manager Dashboard
|
|
4441
|
+
dashboards_title: "Gestor de Dashboards",
|
|
4442
|
+
dashboards_subtitle: "Liste, vea el código fuente y suba dashboards al servidor de patty",
|
|
4443
|
+
col_dashboard: "Dashboard",
|
|
4444
|
+
col_last_update: "Última Actualización",
|
|
4445
|
+
btn_view_source: "Ver Código",
|
|
4446
|
+
btn_download: "Descargar HTML",
|
|
4447
|
+
upload_new_dashboard: "Subir Nuevo Dashboard",
|
|
4448
|
+
placeholder_dashboard_name: "Nombre del Dashboard (ej: pending)",
|
|
4449
|
+
upload_instructions: "Seleccione o arrastre el archivo HTML aquí para subir",
|
|
4450
|
+
btn_upload: "Subir Dashboard",
|
|
4451
|
+
modal_source_title: "Código Fuente HTML",
|
|
4452
|
+
|
|
4453
|
+
// Tags Management
|
|
4454
|
+
menu_tags: "Etiquetas",
|
|
4455
|
+
tags_title: "Administrar Etiquetas",
|
|
4456
|
+
tags_subtitle: "Administre las etiquetas utilizadas para etiquetar y organizar sus transacciones",
|
|
4457
|
+
panel_title_tags: "Etiquetas Activas",
|
|
4458
|
+
btn_new_tag: "Nueva Etiqueta",
|
|
4459
|
+
label_tag_name: "Nombre de la Etiqueta",
|
|
4460
|
+
placeholder_tag_name: "Ej: trabajo, viaje, reembolso",
|
|
4461
|
+
empty_tags_message: "No hay etiquetas registradas.",
|
|
4462
|
+
btn_save: "Guardar",
|
|
4463
|
+
btn_cancel: "Cancelar",
|
|
4464
|
+
toast_success_tag_created: '¡Etiqueta "{name}" creada con éxito!',
|
|
4465
|
+
toast_success_tag_deleted: '¡Etiqueta "{name}" eliminada con éxito!',
|
|
4466
|
+
confirm_delete_tag: '¿Realmente deseja eliminar la etiqueta "{name}"?\n(Esta acción eliminará la etiqueta de todas las transacciones vinculadas)'
|
|
4467
|
+
}
|
|
4468
|
+
};
|
|
4469
|
+
|
|
4470
|
+
var currentLocale = 'en'; // English as default
|
|
4471
|
+
|
|
4472
|
+
// Helper to translate in JS
|
|
4473
|
+
function t(key) {
|
|
4474
|
+
const tDict = TRANSLATIONS[currentLocale] || TRANSLATIONS['en'];
|
|
4475
|
+
return tDict[key] || key;
|
|
4476
|
+
}
|
|
4477
|
+
|
|
4478
|
+
async function checkLocale() {
|
|
4479
|
+
try {
|
|
4480
|
+
const res = await fetch('/api/status');
|
|
4481
|
+
if (res.ok) {
|
|
4482
|
+
const data = await res.json();
|
|
4483
|
+
if (data.locale && TRANSLATIONS[data.locale]) {
|
|
4484
|
+
currentLocale = data.locale;
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
} catch (err) {
|
|
4488
|
+
console.error("Failed to read locale preferences:", err);
|
|
4489
|
+
}
|
|
4490
|
+
translatePage();
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4493
|
+
function translatePage() {
|
|
4494
|
+
const tDict = TRANSLATIONS[currentLocale] || TRANSLATIONS['en'];
|
|
4495
|
+
|
|
4496
|
+
// 1. Static texts
|
|
4497
|
+
document.querySelectorAll('[data-i18n]').forEach(el => {
|
|
4498
|
+
const key = el.getAttribute('data-i18n');
|
|
4499
|
+
if (tDict[key]) {
|
|
4500
|
+
const icon = el.querySelector('i');
|
|
4501
|
+
if (icon) {
|
|
4502
|
+
const iconOuter = icon.outerHTML;
|
|
4503
|
+
el.innerHTML = iconOuter + ' ' + tDict[key];
|
|
4504
|
+
} else {
|
|
4505
|
+
el.textContent = tDict[key];
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
4508
|
+
});
|
|
4509
|
+
|
|
4510
|
+
// 2. Placeholders
|
|
4511
|
+
document.querySelectorAll('[data-i18n-placeholder]').forEach(el => {
|
|
4512
|
+
const key = el.getAttribute('data-i18n-placeholder');
|
|
4513
|
+
if (tDict[key]) {
|
|
4514
|
+
el.placeholder = tDict[key];
|
|
4515
|
+
}
|
|
4516
|
+
});
|
|
4517
|
+
|
|
4518
|
+
// 3. Tooltips
|
|
4519
|
+
document.querySelectorAll('[data-i18n-tooltip]').forEach(el => {
|
|
4520
|
+
const key = el.getAttribute('data-i18n-tooltip');
|
|
4521
|
+
if (tDict[key]) {
|
|
4522
|
+
el.setAttribute('data-tooltip', tDict[key]);
|
|
4523
|
+
}
|
|
4524
|
+
});
|
|
4525
|
+
|
|
4526
|
+
// 4. Document title translation
|
|
4527
|
+
if (tDict['overview_title'] && document.title.includes("Overview") || document.title.includes("Visão")) {
|
|
4528
|
+
// dynamic title update fallback if needed
|
|
4529
|
+
}
|
|
4530
|
+
|
|
4531
|
+
// 5. Translate select months
|
|
4532
|
+
const monthSelects = [
|
|
4533
|
+
document.getElementById('month-select'),
|
|
4534
|
+
document.getElementById('start-month-select')
|
|
4535
|
+
];
|
|
4536
|
+
monthSelects.forEach(monthSelect => {
|
|
4537
|
+
if (monthSelect) {
|
|
4538
|
+
const monthKeys = ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];
|
|
4539
|
+
Array.from(monthSelect.options).forEach((opt, idx) => {
|
|
4540
|
+
const key = monthKeys[idx];
|
|
4541
|
+
if (tDict[key]) {
|
|
4542
|
+
opt.textContent = tDict[key];
|
|
4543
|
+
}
|
|
4544
|
+
});
|
|
4545
|
+
}
|
|
4546
|
+
});
|
|
4547
|
+
|
|
4548
|
+
// 6. Translate projection months select options (3, 6, 9, 12 months)
|
|
4549
|
+
const hmSelect = document.getElementById('heatmap-months-select');
|
|
4550
|
+
if (hmSelect) {
|
|
4551
|
+
Array.from(hmSelect.options).forEach(opt => {
|
|
4552
|
+
const val = opt.value;
|
|
4553
|
+
const key = `months_${val}`;
|
|
4554
|
+
if (tDict[key]) {
|
|
4555
|
+
opt.textContent = tDict[key];
|
|
4556
|
+
}
|
|
4557
|
+
});
|
|
4558
|
+
}
|
|
4559
|
+
|
|
4560
|
+
// Automatically initialize/refresh custom selects on all pages
|
|
4561
|
+
if (typeof initCustomSelects === 'function') {
|
|
4562
|
+
initCustomSelects();
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4566
|
+
// Custom Select Component implementation
|
|
4567
|
+
function initCustomSelects() {
|
|
4568
|
+
document.querySelectorAll('select.select-custom').forEach(select => {
|
|
4569
|
+
if (select.nextElementSibling && select.nextElementSibling.classList.contains('select-container-custom')) {
|
|
4570
|
+
// Already initialized, just sync selected value
|
|
4571
|
+
const container = select.nextElementSibling;
|
|
4572
|
+
const triggerSpan = container.querySelector('.select-trigger-custom span');
|
|
4573
|
+
const selectedOpt = select.options[select.selectedIndex];
|
|
4574
|
+
if (selectedOpt && triggerSpan) {
|
|
4575
|
+
triggerSpan.textContent = selectedOpt.textContent;
|
|
4576
|
+
}
|
|
4577
|
+
return;
|
|
4578
|
+
}
|
|
4579
|
+
select.style.display = 'none';
|
|
4580
|
+
const container = document.createElement('div');
|
|
4581
|
+
container.className = 'select-container-custom';
|
|
4582
|
+
|
|
4583
|
+
// Match specific element custom min-widths
|
|
4584
|
+
if (select.id === 'heatmap-months-select') {
|
|
4585
|
+
container.style.minWidth = '110px';
|
|
4586
|
+
} else if (select.id === 'year-select') {
|
|
4587
|
+
container.style.minWidth = '90px';
|
|
4588
|
+
} else if (select.id === 'filter-type') {
|
|
4589
|
+
container.style.minWidth = '130px';
|
|
4590
|
+
}
|
|
4591
|
+
|
|
4592
|
+
const trigger = document.createElement('div');
|
|
4593
|
+
trigger.className = 'select-trigger-custom';
|
|
4594
|
+
const triggerSpan = document.createElement('span');
|
|
4595
|
+
trigger.appendChild(triggerSpan);
|
|
4596
|
+
container.appendChild(trigger);
|
|
4597
|
+
const optionsContainer = document.createElement('div');
|
|
4598
|
+
optionsContainer.className = 'select-options-custom';
|
|
4599
|
+
container.appendChild(optionsContainer);
|
|
4600
|
+
|
|
4601
|
+
function syncSelected() {
|
|
4602
|
+
const selectedOpt = select.options[select.selectedIndex] || select.options[0];
|
|
4603
|
+
if (selectedOpt) {
|
|
4604
|
+
triggerSpan.textContent = selectedOpt.textContent;
|
|
4605
|
+
Array.from(optionsContainer.children).forEach(child => {
|
|
4606
|
+
if (child.getAttribute('data-value') === select.value) {
|
|
4607
|
+
child.classList.add('selected');
|
|
4608
|
+
} else {
|
|
4609
|
+
child.classList.remove('selected');
|
|
4610
|
+
}
|
|
4611
|
+
});
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4615
|
+
function populateOptions() {
|
|
4616
|
+
optionsContainer.innerHTML = '';
|
|
4617
|
+
Array.from(select.options).forEach(opt => {
|
|
4618
|
+
const optDiv = document.createElement('div');
|
|
4619
|
+
optDiv.className = 'select-option-custom';
|
|
4620
|
+
optDiv.textContent = opt.textContent;
|
|
4621
|
+
optDiv.setAttribute('data-value', opt.value);
|
|
4622
|
+
optDiv.addEventListener('click', (e) => {
|
|
4623
|
+
e.stopPropagation();
|
|
4624
|
+
select.value = opt.value;
|
|
4625
|
+
select.dispatchEvent(new Event('change'));
|
|
4626
|
+
syncSelected();
|
|
4627
|
+
container.classList.remove('open');
|
|
4628
|
+
});
|
|
4629
|
+
optionsContainer.appendChild(optDiv);
|
|
4630
|
+
});
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4633
|
+
populateOptions();
|
|
4634
|
+
syncSelected();
|
|
4635
|
+
|
|
4636
|
+
trigger.addEventListener('click', (e) => {
|
|
4637
|
+
e.stopPropagation();
|
|
4638
|
+
const isOpen = container.classList.contains('open');
|
|
4639
|
+
document.querySelectorAll('.select-container-custom').forEach(el => {
|
|
4640
|
+
el.classList.remove('open');
|
|
4641
|
+
});
|
|
4642
|
+
if (!isOpen) {
|
|
4643
|
+
populateOptions();
|
|
4644
|
+
syncSelected();
|
|
4645
|
+
container.classList.add('open');
|
|
4646
|
+
setTimeout(() => {
|
|
4647
|
+
const selectedEl = optionsContainer.querySelector('.select-option-custom.selected');
|
|
4648
|
+
if (selectedEl) {
|
|
4649
|
+
const itemHeight = selectedEl.offsetHeight || 36;
|
|
4650
|
+
optionsContainer.scrollTop = Math.max(0, selectedEl.offsetTop - itemHeight);
|
|
4651
|
+
}
|
|
4652
|
+
}, 10);
|
|
4653
|
+
}
|
|
4654
|
+
});
|
|
4655
|
+
|
|
4656
|
+
select.parentNode.insertBefore(container, select.nextSibling);
|
|
4657
|
+
select.addEventListener('change', syncSelected);
|
|
4658
|
+
|
|
4659
|
+
// Watch for dynamic options updates
|
|
4660
|
+
const observer = new MutationObserver(() => {
|
|
4661
|
+
syncSelected();
|
|
4662
|
+
});
|
|
4663
|
+
observer.observe(select, { childList: true, subtree: true });
|
|
4664
|
+
|
|
4665
|
+
setTimeout(syncSelected, 200);
|
|
4666
|
+
setTimeout(syncSelected, 1000);
|
|
4667
|
+
});
|
|
4668
|
+
|
|
4669
|
+
// Global click listener to close options dropdowns when clicking outside
|
|
4670
|
+
if (!window.customSelectGlobalBound) {
|
|
4671
|
+
window.customSelectGlobalBound = true;
|
|
4672
|
+
document.addEventListener('click', () => {
|
|
4673
|
+
document.querySelectorAll('.select-container-custom').forEach(el => {
|
|
4674
|
+
el.classList.remove('open');
|
|
4675
|
+
});
|
|
4676
|
+
});
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4679
|
+
|
|
4680
|
+
loadData();
|
|
4681
|
+
checkLocale();
|
|
4682
|
+
|
|
4683
|
+
// ADR-027 Live-update listener
|
|
4684
|
+
window.onAppDataChanged = function(entities) {
|
|
4685
|
+
var affected = entities.some(function(tag) {
|
|
4686
|
+
return ['category'].indexOf(tag) !== -1;
|
|
4687
|
+
});
|
|
4688
|
+
if (affected) {
|
|
4689
|
+
console.log("categories refetching due to entity change:", entities);
|
|
4690
|
+
loadData();
|
|
4691
|
+
}
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4694
|
+
</script>
|