:root {
    --primary-color: #1d4ed8;
    --secondary-color: #475569;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0284c7;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --text-muted: #475569;
    --text-secondary: #334155;
    --body-background: #f5f7fb;
    --body-text-color: #0f172a;
    --surface-color: #ffffff;
    --surface-border-color: #e2e8f0;
    --surface-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --navbar-background: #ffffff;
    --navbar-border-color: rgba(15, 23, 42, 0.08);
    --navbar-link-color: #1f2937;
    --navbar-link-active-color: #1d4ed8;
    --toast-background: #ffffff;
    --of-bg: #050918;
    --of-panel: #0c1226;
    --of-card: #111a33;
    --of-panel-muted: rgba(5, 9, 24, 0.75);
    --of-accent: #5c7cfa;
    --of-accent-2: #18d6b0;
    --of-text: #f5f6fb;
    --of-muted: #a4b1d6;
    --of-border: rgba(255, 255, 255, 0.08);
    --of-shadow-soft: 0 35px 65px rgba(5, 9, 24, 0.35);
    --of-cta-gradient: linear-gradient(135deg, rgba(92, 124, 250, 0.9), rgba(24, 214, 176, 0.9));
}

body {
    background-color: var(--body-background, var(--light-color));
    color: var(--body-text-color, var(--dark-color));
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body[data-route="crypto_index"] .crypto-header,
body[data-route="legal_crypto_index"] .crypto-header,
.theme-cta-header,
.page-header,
.section-header,
.dashboard-header,
.hero-panel,
.stats-header,
.patrimoine-header,
.portfolio-header,
.crypto-header,
.import-header,
.connection-header,
.mobile-header,
.wealth-header,
.bank-header,
.cta-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 18px;
    padding: clamp(1.5rem, 2vw, 2.5rem);
    margin-bottom: 2rem;
    color: #ffffff !important;
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body[data-route="crypto_index"] .crypto-header::before,
body[data-route="legal_crypto_index"] .crypto-header::before,
.theme-cta-header::before,
.page-header::before,
.section-header::before,
.dashboard-header::before,
.hero-panel::before,
.stats-header::before,
.patrimoine-header::before,
.portfolio-header::before,
.crypto-header::before,
.import-header::before,
.connection-header::before,
.mobile-header::before,
.wealth-header::before,
.bank-header::before,
.cta-header::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -5%;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
}

body[data-route="crypto_index"] .crypto-header::after,
body[data-route="legal_crypto_index"] .crypto-header::after,
.theme-cta-header::after,
.page-header::after,
.section-header::after,
.dashboard-header::after,
.hero-panel::after,
.stats-header::after,
.patrimoine-header::after,
.portfolio-header::after,
.crypto-header::after,
.import-header::after,
.connection-header::after,
.mobile-header::after,
.wealth-header::after,
.bank-header::after,
.cta-header::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -10%;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.16) !important;
    border-radius: 50%;
}

body[data-route="crypto_index"] .crypto-header h1,
body[data-route="crypto_index"] .crypto-header h2,
body[data-route="crypto_index"] .crypto-header p,
body[data-route="legal_crypto_index"] .crypto-header h1,
body[data-route="legal_crypto_index"] .crypto-header h2,
body[data-route="legal_crypto_index"] .crypto-header p,
.theme-cta-header h1,
.theme-cta-header h2,
.theme-cta-header p,
.page-header h1,
.page-header h2,
.page-header p,
.section-header h1,
.section-header h2,
.section-header p,
.dashboard-header h1,
.dashboard-header h2,
.dashboard-header p,
.hero-panel h1,
.hero-panel h2,
.hero-panel p,
.stats-header h1,
.stats-header h2,
.stats-header p,
.patrimoine-header h1,
.patrimoine-header h2,
.patrimoine-header p,
.portfolio-header h1,
.portfolio-header h2,
.portfolio-header p,
.crypto-header h1,
.crypto-header h2,
.crypto-header p,
.import-header h1,
.import-header h2,
.import-header p,
.connection-header h1,
.connection-header h2,
.connection-header p,
.mobile-header h1,
.mobile-header h2,
.mobile-header p,
.wealth-header h1,
.wealth-header h2,
.wealth-header p,
.bank-header h1,
.bank-header h2,
.bank-header p,
.cta-header h1,
.cta-header h2,
.cta-header p {
    position: relative;
    z-index: 1;
    color: #ffffff !important;
    text-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.cta-header.mobile-header {
    padding: clamp(1.5rem, 2vw, 2.5rem);
    border-radius: 18px;
    margin-bottom: 2rem;
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.25);
    position: relative;
    top: auto;
    z-index: auto;
}

.cta-header.mobile-header .mobile-title {
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-header.mobile-header .mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-header.mobile-header .mobile-actions .btn,
.cta-header.mobile-header .mobile-actions button {
    border-radius: 999px;
    box-shadow: none;
}

.navbar {
    background-color: var(--navbar-background, #ffffff) !important;
    border-bottom: 1px solid var(--navbar-border-color, rgba(15, 23, 42, 0.08));
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar .nav-link {
    color: var(--navbar-link-color, #1f2937) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--navbar-link-active-color, var(--primary-color)) !important;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-brand .brand-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.navbar-brand .brand-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navbar-link-color, #1f2937);
}

.theme-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--surface-border-color, #e2e8f0);
    background-color: var(--surface-color, #ffffff);
    color: var(--navbar-link-color, #1f2937);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.card {
    border: 1px solid var(--surface-border-color, #e2e8f0);
    background-color: var(--surface-color, #ffffff);
    color: var(--body-text-color, var(--dark-color));
    border-radius: 12px;
    box-shadow: var(--surface-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease-in-out, background-color 0.2s ease, color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.stat-card {
    background: var(--surface-color, var(--light-color));
    color: var(--body-text-color, var(--dark-color));
    border: 1px solid var(--surface-border-color, #e2e8f0);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
}

.stat-card.success::before {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

.stat-card.danger::before {
    background: linear-gradient(135deg, var(--danger-color), #ef4444);
}

.stat-card.warning::before {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
}

.stat-card .fas {
    color: var(--primary-color);
}

.stat-card.success .fas {
    color: var(--success-color);
}

.stat-card.danger .fas {
    color: var(--danger-color);
}

.stat-card.warning .fas {
    color: var(--warning-color);
}

.stat-card h5 {
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-card h3 {
    color: var(--body-text-color, var(--dark-color));
    font-weight: 700;
}

.stat-card .text-success {
    color: var(--success-color) !important;
}

.stat-card .text-danger {
    color: var(--danger-color) !important;
}

.stat-card small {
    color: var(--text-muted);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.table {
    background-color: var(--surface-color, #ffffff);
    border-radius: 8px;
    overflow: hidden;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar {
    background-color: var(--surface-color, #ffffff);
    border-radius: 12px;
    box-shadow: var(--surface-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar .nav-link {
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.alert {
    border: none;
    border-radius: 8px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--surface-border-color, #e2e8f0);
    padding: 0.75rem;
    background-color: var(--surface-color, #ffffff);
    color: var(--body-text-color, var(--dark-color));
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    background-color: var(--surface-color, #ffffff);
    color: var(--body-text-color, var(--dark-color));
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

small,
.small {
    color: var(--text-muted);
}

.category-badge {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-badge[style*="background-color"] {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.category-badge.light-bg {
    color: #0f172a !important;
    text-shadow: none;
}

.card-header[style*="background-color"] {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-header[style*="background-color"] h5,
.card-header[style*="background-color"] .mb-0 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-header[style*="background-color"] small {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-header[style*="background-color"] i {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-header.light-bg {
    color: #0f172a !important;
    text-shadow: none !important;
}

.card-header.light-bg h5,
.card-header.light-bg .mb-0 {
    color: #0f172a !important;
    text-shadow: none !important;
}

.card-header.light-bg small {
    color: rgba(15, 23, 42, 0.7) !important;
    text-shadow: none !important;
}

.card-header.light-bg i {
    color: rgba(15, 23, 42, 0.8) !important;
    text-shadow: none !important;
}

.pull-to-refresh {
    position: relative;
    overflow: hidden;
}

.pull-to-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: top 0.3s ease;
    z-index: 1000;
}

.pull-to-refresh-indicator.active {
    top: 0;
}

.pull-to-refresh-indicator .spinner,
.pull-to-refresh-indicator .icon {
    margin-right: 10px;
}

.pull-to-refresh-indicator .icon {
    font-size: 18px;
}

.pull-to-refresh-indicator.pulling {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
}

.pull-to-refresh-indicator.success {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

.pull-to-refresh-indicator.error {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.pull-to-refresh-indicator .spinner {
    animation: spin 1s linear infinite;
}

.sync-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--toast-background, #ffffff);
    border-radius: 8px;
    box-shadow: var(--surface-shadow, 0 4px 12px rgba(0, 0, 0, 0.15));
    padding: 16px;
    max-width: 300px;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border: 1px solid var(--surface-border-color, #e2e8f0);
}

.sync-toast.show {
    transform: translateX(0);
}

.sync-toast.success {
    border-left: 4px solid var(--success-color);
}

.sync-toast.error {
    border-left: 4px solid var(--danger-color);
}

.sync-toast-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.sync-toast-icon {
    margin-right: 8px;
    font-size: 18px;
}

.sync-toast-title {
    font-weight: 600;
    margin: 0;
    color: var(--body-text-color, var(--dark-color));
}

.sync-toast-message {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    white-space: pre-line;
    line-height: 1.4;
}

.impersonation-banner {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: #0f172a;
}

.impersonation-banner .btn {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #0f172a;
}

.impersonation-banner .btn:hover {
    opacity: 0.9;
}

/* Inline style utility classes (auto-generated) */
.inline-style-001 {
    background-color: #10b981;
}

.inline-style-002 {
    background-color: #6366f1;
}

.inline-style-003 {
    background-color: #6c757d;
}

.inline-style-004 {
    background-color: #6c757d; width: 10px; height: 10px; display: inline-block; border-radius: 50%; margin-right: 4px;
}

.inline-style-005 {
    background: #9b59b6; color: white; padding: 4px 8px; border-radius: 4px;
}

.inline-style-006 {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6); color: white; border: none;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.25);
}

.loan-management-card .btn-white {
    background: #ffffff;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.loan-management-card .btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.loan-management-card .btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    transition: all 0.2s ease;
}

.loan-management-card .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.inline-style-007 {
    background: linear-gradient(135deg, var(--light-color), #f1f5f9); border-radius: 12px; margin: 0.5rem;
}

.inline-style-008 {
    background: linear-gradient(135deg, var(--light-color), #f8fafc); border-bottom: 2px solid #e2e8f0;
}

.inline-style-009 {
    background: white; border: 1px solid rgba(255,255,255,0.3);
}

.inline-style-010 {
    border-left-color: #10b981;
}

.inline-style-011 {
    border-left-color: #ef4444;
}

.inline-style-012 {
    border-left-color: #f59e0b;
}

.inline-style-013 {
    border-radius: 12px; background: linear-gradient(135deg, var(--light-color), #e0f2fe);
}

.inline-style-014 {
    border-width: 2px;
}

.inline-style-015 {
    border: none; background: transparent;
}

.inline-style-016 {
    border: none; background: transparent; color: #94a3b8;
}

.inline-style-017 {
    color: #1d4ed8;
}

.inline-style-018 {
    color: #6c757d;
}

.inline-style-019 {
    color: #d97706;
}

.inline-style-020 {
    color: #dc2626;
}

.inline-style-021 {
    color: var(--dark-color);
}

.inline-style-022 {
    color: var(--dark-color); font-weight: 700;
}

.inline-style-023 {
    color: var(--info-color);
}

.inline-style-024 {
    color: var(--primary-color);
}

.inline-style-025 {
    color: var(--text-muted); opacity: 0.5;
}

.inline-style-026 {
    color: var(--text-secondary);
}

.inline-style-027 {
    color: var(--text-secondary); font-weight: 600;
}

.inline-style-028 {
    cursor: pointer;
}

.inline-style-029 {
    display: inline;
}

.inline-style-030 {
    display: none;
}

.inline-style-031 {
    font-family: monospace; font-size: 12px; background: #f5f5f5; padding: 8px; border-radius: 4px; max-height: 150px; overflow-y: auto;
}

.inline-style-032 {
    font-size: 0.75rem;
}

.inline-style-033 {
    font-size: 0.7rem;
}

.inline-style-034 {
    font-size: 1.2em; letter-spacing: 0.1em;
}

.inline-style-035 {
    font-size: 1.2rem;
}

.inline-style-036 {
    font-size: 12px; color: #666; margin-top: 5px; margin-left: 30px;
}

.inline-style-037 {
    font-weight: 600; font-size: 0.75rem; letter-spacing: 0.5px;
}

.inline-style-038 {
    height: 200px;
}

.inline-style-039 {
    height: 20px;
}

.inline-style-040 {
    height: 20px; min-width: 100px;
}

.inline-style-041 {
    height: 300px;
}

.inline-style-042 {
    height: 30px;
}

.inline-style-043 {
    height: 4px;
}

.inline-style-044 {
    height: 5px;
}

.inline-style-045 {
    height: 6px;
}

.inline-style-046 {
    height: 8px;
}

.inline-style-047 {
    height: 8px; width: 300px;
}

.inline-style-048 {
    justify-content: flex-end; margin-top: 20px;
}

.inline-style-049 {
    letter-spacing: 0.5em; font-size: 2em;
}

.inline-style-050 {
    margin-bottom: 20px;
}

.inline-style-051 {
    max-height: 150px; overflow-y: auto;
}

.inline-style-052 {
    max-height: 200px; object-fit: contain;
}

.inline-style-053 {
    max-height: 300px;
}

.inline-style-054 {
    max-height: 400px; overflow-y: auto;
}

.inline-style-055 {
    max-height: 500px; overflow-y: auto;
}

.inline-style-056 {
    max-width: 120px; max-height: 120px;
}

.inline-style-057 {
    max-width: 200px;
}

.inline-style-058 {
    max-width: 600px;
}

.inline-style-059 {
    min-height: 600px;
}

.inline-style-060 {
    min-width: 120px; background-color: #007bff;
}

.inline-style-061 {
    min-width: 150px;
}

.inline-style-062 {
    min-width: 260px;
}

.inline-style-063 {
    overflow: visible;
}

.inline-style-064 {
    position: relative; height: 400px;
}

.inline-style-065 {
    width: 0%;
}

.inline-style-066 {
    width: 100px; height: 14px; display: inline-block;
}

.inline-style-067 {
    width: 120px; height: 28px; display: inline-block;
}

.inline-style-068 {
    width: 200px;
}

.inline-style-069 {
    width: 250px;
}

.inline-style-070 {
    width: 30%;
}

.inline-style-071 {
    width: 75%;
}

.inline-style-072 {
    width: 90px; height: 14px; display: inline-block;
}

.dynamic-bg {
    background-color: var(--dynamic-bg-color, inherit) !important;
}

.dynamic-text {
    color: var(--dynamic-text-color, inherit) !important;
}

.dynamic-border-color {
    border-color: var(--dynamic-border-color, inherit) !important;
}

.dynamic-progress {
    width: var(--dynamic-progress, 0%);
}

.dynamic-width {
    width: var(--dynamic-width, auto) !important;
}

.dynamic-height {
    height: var(--dynamic-height, auto) !important;
}

.dynamic-margin-left {
    margin-left: var(--dynamic-margin-left, 0) !important;
}

.dynamic-animation-delay {
    animation-delay: var(--dynamic-animation-delay, 0ms);
}

.color-picker-control {
    width: 80px;
    height: 38px;
    cursor: pointer;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.transaction-icon-xs,
.transaction-icon-sm {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon-xs {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
}

.transaction-icon-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

.allocation-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Template: dashboard/index.html.twig */
body[data-route="app_dashboard"] .pull-to-refresh {
    position: relative;
    overflow: hidden;
}

body[data-route="app_dashboard"] .pull-to-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: top 0.3s ease;
    z-index: 1000;
}

body[data-route="app_dashboard"] .pull-to-refresh-indicator.active {
    top: 0;
}

body[data-route="app_dashboard"] .pull-to-refresh-indicator .spinner {
    margin-right: 10px;
}

body[data-route="app_dashboard"] .pull-to-refresh-indicator.pulling {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
}

body[data-route="app_dashboard"] .pull-to-refresh-indicator.success {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

body[data-route="app_dashboard"] .pull-to-refresh-indicator.error {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
}

@keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

body[data-route="app_dashboard"] .pull-to-refresh-indicator .spinner {
    animation: spin 1s linear infinite;
}

body[data-route="app_dashboard"] .stat-card {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body[data-route="app_dashboard"] .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
}

body[data-route="app_dashboard"] .stat-card.success::before {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

body[data-route="app_dashboard"] .stat-card.warning::before {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
}

body[data-route="app_dashboard"] .stat-card.danger::before {
    background: linear-gradient(135deg, var(--danger-color), #ef4444);
}

body[data-route="app_dashboard"] .account-item {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 0.5rem;
}

body[data-route="app_dashboard"] .account-item:hover {
    background-color: var(--light-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body[data-route="app_dashboard"] .account-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

body[data-route="app_dashboard"] .nav-pills .nav-link {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    border: 2px solid transparent;
}

body[data-route="app_dashboard"] .nav-pills .nav-link:hover:not(.active) {
    background: var(--light-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body[data-route="app_dashboard"] .nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    box-shadow: 0 4px 8px rgba(29, 78, 216, 0.3);
}

body[data-route="app_dashboard"] .card-header {
    border-radius: 15px 15px 0 0 !important;
}

body[data-route="app_dashboard"] .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body[data-route="app_dashboard"] .transaction-item {
    min-height: 60px;
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0.75rem;
}

body[data-route="app_dashboard"] .transaction-item:last-child {
    border-bottom: none;
}

body[data-route="app_dashboard"] .transaction-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

body[data-route="app_dashboard"] .transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

body[data-route="app_dashboard"] .transaction-content {
    flex: 1;
    min-width: 0;
}

body[data-route="app_dashboard"] .transaction-description {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-route="app_dashboard"] .transaction-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

body[data-route="app_dashboard"] .transaction-category {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

body[data-route="app_dashboard"] .transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

body[data-route="app_dashboard"] .transaction-amount.positive {
    color: #28a745;
}

body[data-route="app_dashboard"] .transaction-amount.negative {
    color: #dc3545;
}

body[data-route="app_dashboard"] .bank-group-card {
    transition: all 0.3s ease;
}

body[data-route="app_dashboard"] .bank-group-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

body[data-route="app_dashboard"] .bank-group-header {
    border-radius: 15px 15px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body[data-route="app_dashboard"] .btn-outline-primary {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

body[data-route="app_dashboard"] .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(29, 78, 216, 0.3);
}

@media (max-width: 768px) {
    body[data-route="app_dashboard"] .stat-card .display-4 {
        font-size: 2rem !important;
    }

    body[data-route="app_dashboard"] .stat-card .card-body {
        padding: 1rem !important;
    }

    body[data-route="app_dashboard"] .stat-card p {
        font-size: 0.75rem;
    }

    body[data-route="app_dashboard"] .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    body[data-route="app_dashboard"] .nav-pills .nav-link i {
        font-size: 0.9rem;
    }

    body[data-route="app_dashboard"] .card {
        margin-bottom: 0.75rem !important;
    }

    body[data-route="app_dashboard"] .bank-group-card {
        margin-bottom: 0.75rem !important;
    }

    body[data-route="app_dashboard"] .bank-group-header {
        padding: 0.75rem !important;
    }

    body[data-route="app_dashboard"] .bank-group-header h5 {
        font-size: 1rem;
    }

    body[data-route="app_dashboard"] .bank-group-header small {
        font-size: 0.7rem;
    }

    body[data-route="app_dashboard"] .account-item {
        padding: 0.75rem !important;
    }

    body[data-route="app_dashboard"] .account-item h6 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem !important;
    }

    body[data-route="app_dashboard"] .account-item small {
        font-size: 0.7rem;
    }

    body[data-route="app_dashboard"] .account-item .h5 {
        font-size: 1rem !important;
    }

    body[data-route="app_dashboard"] .transaction-item {
        padding: 0.5rem !important;
        min-height: 50px;
    }

    body[data-route="app_dashboard"] .transaction-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    body[data-route="app_dashboard"] .transaction-description {
        font-size: 0.9rem;
    }

    body[data-route="app_dashboard"] .transaction-meta {
        font-size: 0.75rem;
    }

    body[data-route="app_dashboard"] .transaction-category {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }

    body[data-route="app_dashboard"] .transaction-amount {
        font-size: 0.95rem;
    }

    body[data-route="app_dashboard"] .card-header {
        padding: 0.5rem 0.75rem !important;
    }

    body[data-route="app_dashboard"] .card-header h5 {
        font-size: 1rem;
        margin-bottom: 0 !important;
    }

    body[data-route="app_dashboard"] .card-header .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    body[data-route="app_dashboard"] .stat-card.success .card-body h2, body[data-route="app_dashboard"] .stat-card.warning .card-body h2, body[data-route="app_dashboard"] .stat-card.danger .card-body h2 {
        font-size: 1.5rem !important;
    }

    body[data-route="app_dashboard"] .stat-card.success .card-body p, body[data-route="app_dashboard"] .stat-card.warning .card-body p, body[data-route="app_dashboard"] .stat-card.danger .card-body p {
        font-size: 0.75rem;
    }

    body[data-route="app_dashboard"] .row.mb-4 {
        margin-bottom: 1rem !important;
    }

    body[data-route="app_dashboard"] .mb-4 {
        margin-bottom: 1rem !important;
    }

    body[data-route="app_dashboard"] .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    body[data-route="app_dashboard"] .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Template: budget/recommendations.html.twig */
.recommendation-card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.recommendation-card.high {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

.recommendation-card.medium {
    border-left: 5px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.recommendation-card.low {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.priority-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.rule-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.action-button {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: scale(1.05);
}

/* Template: budget/view.html.twig */
body[data-route="budget_view"] .budget-header-card, body[data-route="legal_budget_view"] .budget-header-card {
    border: 1px solid var(--bs-gray-200);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--bs-body-bg) 0%, #f9fafc 100%);
    padding: 1.5rem;
    min-height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

body[data-route="budget_view"] .budget-header-card:hover, body[data-route="legal_budget_view"] .budget-header-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
}

body[data-route="budget_view"] .budget-header-card small, body[data-route="legal_budget_view"] .budget-header-card small {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--bs-gray-600);
}

body[data-route="budget_view"] .budget-header-value, body[data-route="legal_budget_view"] .budget-header-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--bs-gray-900);
}

body[data-route="budget_view"] .category-board, body[data-route="legal_budget_view"] .category-board {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    body[data-route="budget_view"] .category-board, body[data-route="legal_budget_view"] .category-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    body[data-route="budget_view"] .category-board, body[data-route="legal_budget_view"] .category-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body[data-route="budget_view"] .category-tile, body[data-route="legal_budget_view"] .category-tile {
    border: 1px solid var(--bs-gray-200);
    border-radius: 1rem;
    padding: 1.25rem;
    background: var(--bs-white);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

body[data-route="budget_view"] .category-tile--income, body[data-route="legal_budget_view"] .category-tile--income {
    border-color: rgba(25, 135, 84, .35);
    background: linear-gradient(180deg, rgba(25, 135, 84, .08) 0%, rgba(25, 135, 84, .02) 100%);
}

body[data-route="budget_view"] .category-tile--expense, body[data-route="legal_budget_view"] .category-tile--expense {
    border-color: rgba(13, 110, 253, .15);
    background: linear-gradient(180deg, rgba(13, 110, 253, .06) 0%, var(--bs-white) 100%);
}

body[data-route="budget_view"] .category-tile:hover, body[data-route="legal_budget_view"] .category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

body[data-route="budget_view"] .category-tile__header, body[data-route="legal_budget_view"] .category-tile__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

body[data-route="budget_view"] .category-tile__name, body[data-route="legal_budget_view"] .category-tile__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bs-gray-900);
}

body[data-route="budget_view"] .category-tile__meta, body[data-route="legal_budget_view"] .category-tile__meta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    background-color: var(--bs-gray-100);
    font-size: .75rem;
    color: var(--bs-gray-600);
}

body[data-route="budget_view"] .category-tile__tag, body[data-route="legal_budget_view"] .category-tile__tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

body[data-route="budget_view"] .category-tile__tag--income, body[data-route="legal_budget_view"] .category-tile__tag--income {
    background-color: rgba(25, 135, 84, .18);
    color: var(--bs-success);
}

body[data-route="budget_view"] .category-tile__tag--expense, body[data-route="legal_budget_view"] .category-tile__tag--expense {
    background-color: rgba(13, 110, 253, .18);
    color: var(--bs-primary);
}

body[data-route="budget_view"] .category-tile__figures, body[data-route="legal_budget_view"] .category-tile__figures {
    font-size: .95rem;
    margin-bottom: .75rem;
}

body[data-route="budget_view"] .progress-track, body[data-route="legal_budget_view"] .progress-track {
    height: 6px;
    border-radius: 999px;
    background-color: var(--bs-gray-200);
    overflow: hidden;
    margin-bottom: .6rem;
}

body[data-route="budget_view"] .progress-track > span, body[data-route="legal_budget_view"] .progress-track > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease;
}

body[data-route="budget_view"] .progress-track__ok, body[data-route="legal_budget_view"] .progress-track__ok {
    background-image: linear-gradient(90deg, var(--bs-primary) 0%, #1d7bfd 100%);
}

body[data-route="budget_view"] .progress-track__alert, body[data-route="legal_budget_view"] .progress-track__alert {
    background-image: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%);
}

body[data-route="budget_view"] .category-tile__tips, body[data-route="legal_budget_view"] .category-tile__tips {
    font-size: .8rem;
    color: var(--bs-gray-500);
}

body[data-route="budget_view"] .category-tile__tips i, body[data-route="legal_budget_view"] .category-tile__tips i {
    font-size: .65rem;
}

/* Template: budget/forecast.html.twig */
body[data-route="budget_forecast"] .forecast-card, body[data-route="legal_budget_forecast"] .forecast-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

body[data-route="budget_forecast"] .forecast-card:hover, body[data-route="legal_budget_forecast"] .forecast-card:hover {
    transform: translateY(-5px);
}

body[data-route="budget_forecast"] .confidence-indicator, body[data-route="legal_budget_forecast"] .confidence-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin: 0 auto 1rem;
}

body[data-route="budget_forecast"] .confidence-indicator.high, body[data-route="legal_budget_forecast"] .confidence-indicator.high {
    background: linear-gradient(135deg, #28a745, #20c997);
}

body[data-route="budget_forecast"] .confidence-indicator.medium, body[data-route="legal_budget_forecast"] .confidence-indicator.medium {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

body[data-route="budget_forecast"] .confidence-indicator.low, body[data-route="legal_budget_forecast"] .confidence-indicator.low {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

body[data-route="budget_forecast"] .trend-indicator, body[data-route="legal_budget_forecast"] .trend-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

body[data-route="budget_forecast"] .trend-indicator.up, body[data-route="legal_budget_forecast"] .trend-indicator.up {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

body[data-route="budget_forecast"] .trend-indicator.down, body[data-route="legal_budget_forecast"] .trend-indicator.down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

body[data-route="budget_forecast"] .trend-indicator.neutral, body[data-route="legal_budget_forecast"] .trend-indicator.neutral {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

body[data-route="budget_forecast"] .scenario-card, body[data-route="legal_budget_forecast"] .scenario-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

body[data-route="budget_forecast"] .scenario-card:hover, body[data-route="legal_budget_forecast"] .scenario-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

body[data-route="budget_forecast"] .scenario-card.selected, body[data-route="legal_budget_forecast"] .scenario-card.selected {
    border-color: #007bff;
    background: rgba(0,123,255,0.05);
}

/* Template: budget/alerts.html.twig */
body[data-route="budget_alerts"] .alert-card, body[data-route="legal_budget_alerts"] .alert-card {
    border-left: 4px solid;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body[data-route="budget_alerts"] .alert-card:hover, body[data-route="legal_budget_alerts"] .alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body[data-route="budget_alerts"] .alert-card.critical, body[data-route="legal_budget_alerts"] .alert-card.critical {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

body[data-route="budget_alerts"] .alert-card.warning, body[data-route="legal_budget_alerts"] .alert-card.warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

body[data-route="budget_alerts"] .alert-card.info, body[data-route="legal_budget_alerts"] .alert-card.info {
    border-left-color: #17a2b8;
    background: rgba(23, 162, 184, 0.05);
}

body[data-route="budget_alerts"] .alert-card.success, body[data-route="legal_budget_alerts"] .alert-card.success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

body[data-route="budget_alerts"] .filter-chip, body[data-route="legal_budget_alerts"] .filter-chip {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body[data-route="budget_alerts"] .filter-chip.active, body[data-route="legal_budget_alerts"] .filter-chip.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

body[data-route="budget_alerts"] .filter-chip:hover, body[data-route="legal_budget_alerts"] .filter-chip:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

body[data-route="budget_alerts"] .alert-icon, body[data-route="legal_budget_alerts"] .alert-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

body[data-route="budget_alerts"] .alert-icon.critical, body[data-route="legal_budget_alerts"] .alert-icon.critical {
    background: #dc3545;
}

body[data-route="budget_alerts"] .alert-icon.warning, body[data-route="legal_budget_alerts"] .alert-icon.warning {
    background: #ffc107;
}

body[data-route="budget_alerts"] .alert-icon.info, body[data-route="legal_budget_alerts"] .alert-icon.info {
    background: #17a2b8;
}

body[data-route="budget_alerts"] .alert-icon.success, body[data-route="legal_budget_alerts"] .alert-icon.success {
    background: #28a745;
}

/* Template: budget/dashboard.html.twig */
body[data-route="budget_dashboard"] .budget-summary-card, body[data-route="legal_budget_dashboard"] .budget-summary-card {
    border: 1px solid var(--bs-gray-200);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--bs-body-bg) 0%, #f9fafc 100%);
    transition: transform .2s ease, box-shadow .2s ease;
    min-height: 100%;
    padding: 1.5rem;
}

body[data-route="budget_dashboard"] .budget-summary-card:hover, body[data-route="legal_budget_dashboard"] .budget-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
}

body[data-route="budget_dashboard"] .budget-summary-card small, body[data-route="legal_budget_dashboard"] .budget-summary-card small {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--bs-gray-600);
}

body[data-route="budget_dashboard"] .budget-summary-value, body[data-route="legal_budget_dashboard"] .budget-summary-value {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--bs-gray-900);
}

body[data-route="budget_dashboard"] .section-heading, body[data-route="legal_budget_dashboard"] .section-heading {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--bs-gray-600);
}

body[data-route="budget_dashboard"] .category-card, body[data-route="legal_budget_dashboard"] .category-card {
    position: relative;
    border: 1px solid var(--bs-gray-200);
    border-radius: 1rem;
    padding: 1.25rem;
    background: var(--bs-white);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

body[data-route="budget_dashboard"] .category-card--income, body[data-route="legal_budget_dashboard"] .category-card--income {
    border-color: rgba(25, 135, 84, .35);
    background: linear-gradient(180deg, rgba(25, 135, 84, .08) 0%, rgba(25, 135, 84, .02) 100%);
}

body[data-route="budget_dashboard"] .category-card--expense, body[data-route="legal_budget_dashboard"] .category-card--expense {
    border-color: rgba(13, 110, 253, .15);
    background: linear-gradient(180deg, rgba(13, 110, 253, .06) 0%, var(--bs-white) 100%);
}

body[data-route="budget_dashboard"] .category-card:hover, body[data-route="legal_budget_dashboard"] .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

body[data-route="budget_dashboard"] .category-card__budget, body[data-route="legal_budget_dashboard"] .category-card__budget {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--bs-gray-500);
}

body[data-route="budget_dashboard"] .category-card__name, body[data-route="legal_budget_dashboard"] .category-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-gray-900);
}

body[data-route="budget_dashboard"] .category-card__figures, body[data-route="legal_budget_dashboard"] .category-card__figures {
    font-size: .9rem;
    color: var(--bs-gray-600);
}

body[data-route="budget_dashboard"] .progress-mini, body[data-route="legal_budget_dashboard"] .progress-mini {
    height: 6px;
    border-radius: 999px;
    background-color: var(--bs-gray-200);
    overflow: hidden;
}

body[data-route="budget_dashboard"] .progress-mini > span, body[data-route="legal_budget_dashboard"] .progress-mini > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease;
}

body[data-route="budget_dashboard"] .progress-mini__completed, body[data-route="legal_budget_dashboard"] .progress-mini__completed {
    background-image: linear-gradient(90deg, var(--bs-primary) 0%, #1d7bfd 100%);
}

body[data-route="budget_dashboard"] .progress-mini__over, body[data-route="legal_budget_dashboard"] .progress-mini__over {
    background-image: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%);
}

body[data-route="budget_dashboard"] .category-card__chip, body[data-route="legal_budget_dashboard"] .category-card__chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background-color: var(--bs-gray-100);
    font-size: .75rem;
    color: var(--bs-gray-600);
}

body[data-route="budget_dashboard"] .category-card__chip--positive, body[data-route="legal_budget_dashboard"] .category-card__chip--positive {
    background-color: rgba(25, 135, 84, .12);
    color: var(--bs-success);
}

body[data-route="budget_dashboard"] .category-card__chip--negative, body[data-route="legal_budget_dashboard"] .category-card__chip--negative {
    background-color: rgba(220, 53, 69, .12);
    color: var(--bs-danger);
}

body[data-route="budget_dashboard"] .category-card__chip--income, body[data-route="legal_budget_dashboard"] .category-card__chip--income {
    background-color: rgba(25, 135, 84, .16);
    color: var(--bs-success);
}

body[data-route="budget_dashboard"] .category-card__chip i, body[data-route="legal_budget_dashboard"] .category-card__chip i {
    font-size: .7rem;
}

body[data-route="budget_dashboard"] .category-card__assist, body[data-route="legal_budget_dashboard"] .category-card__assist {
    font-size: .75rem;
    color: var(--bs-gray-500);
}

body[data-route="budget_dashboard"] .category-card__assist i, body[data-route="legal_budget_dashboard"] .category-card__assist i {
    font-size: .65rem;
}

body[data-route="budget_dashboard"] .category-card__tag, body[data-route="legal_budget_dashboard"] .category-card__tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

body[data-route="budget_dashboard"] .category-card__tag--income, body[data-route="legal_budget_dashboard"] .category-card__tag--income {
    background-color: rgba(25, 135, 84, .15);
    color: var(--bs-success);
}

body[data-route="budget_dashboard"] .category-card__tag--expense, body[data-route="legal_budget_dashboard"] .category-card__tag--expense {
    background-color: rgba(13, 110, 253, .15);
    color: var(--bs-primary);
}

body[data-route="budget_dashboard"] .category-grid, body[data-route="legal_budget_dashboard"] .category-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    body[data-route="budget_dashboard"] .category-grid, body[data-route="legal_budget_dashboard"] .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    body[data-route="budget_dashboard"] .category-grid, body[data-route="legal_budget_dashboard"] .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    body[data-route="budget_dashboard"] .category-grid, body[data-route="legal_budget_dashboard"] .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Template: budget/categories.html.twig */
body[data-route="budget_categories"] .category-card, body[data-route="legal_budget_categories"] .category-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

body[data-route="budget_categories"] .category-card:hover, body[data-route="legal_budget_categories"] .category-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

body[data-route="budget_categories"] .category-card.selected, body[data-route="legal_budget_categories"] .category-card.selected {
    border-color: #007bff;
    background: rgba(0,123,255,0.05);
}

body[data-route="budget_categories"] .category-icon, body[data-route="legal_budget_categories"] .category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

body[data-route="budget_categories"] .category-form, body[data-route="legal_budget_categories"] .category-form {
    background: #ffffff;
    color: #1f2937;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body[data-route="budget_categories"] .icon-picker, body[data-route="legal_budget_categories"] .icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

body[data-route="budget_categories"] .icon-option, body[data-route="legal_budget_categories"] .icon-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.05);
    color: #1f2937;
}

body[data-route="budget_categories"] .icon-option:hover, body[data-route="legal_budget_categories"] .icon-option:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.08);
}

body[data-route="budget_categories"] .icon-option.selected, body[data-route="legal_budget_categories"] .icon-option.selected {
    background: rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
}

/* Template: budget/analysis.html.twig */
.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.performance-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.performance-indicator.excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.performance-indicator.good {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.performance-indicator.average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.performance-indicator.poor {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.category-analysis {
    border-left: 4px solid #007bff;
    background: rgba(0,123,255,0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

.trend-neutral {
    color: #6c757d;
}

/* Template: budget/sync.html.twig */
.sync-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.sync-step {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.sync-step.pending {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.sync-step.in-progress {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid #007bff;
}

.sync-step.completed {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
}

.sync-step.failed {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-icon.pending {
    background: #e9ecef;
    color: #6c757d;
}

.step-icon.in-progress {
    background: #007bff;
    color: white;
    animation: pulse 2s infinite;
}

.step-icon.completed {
    background: #28a745;
    color: white;
}

.step-icon.failed {
    background: #dc3545;
    color: white;
}

.progress-ring {
    width: 120px;
    height: 120px;
}

.progress-ring circle {
    fill: transparent;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring .progress-ring-circle {
    stroke: #4ade80;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.35s;
}

.progress-ring .progress-ring-background {
    stroke: rgba(255,255,255,0.3);
}

.log-entry {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0 5px 5px 0;
}

.log-entry.success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.log-entry.error {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.log-entry.warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

@keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

/* Template: registration/register.html.twig */
body[data-route="app_register"] {
    background: radial-gradient(circle at top, rgba(92, 124, 250, 0.25), rgba(5, 9, 24, 0.95) 45%), var(--of-bg, #050918);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--of-text, #f5f6fb);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body[data-route="app_register"] .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

body[data-route="app_register"] .registration-card {
    background: color-mix(in srgb, var(--of-card, #111a33) 94%, transparent);
    border: 1px solid var(--of-border, rgba(255, 255, 255, 0.08));
    border-radius: 24px;
    box-shadow: var(--of-shadow-soft, 0 35px 65px rgba(5, 9, 24, 0.35));
    overflow: hidden;
    position: relative;
}

body[data-route="app_register"] .registration-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

body[data-route="app_register"] .registration-header {
    background: linear-gradient(135deg, var(--of-accent-2, #18d6b0), var(--of-accent, #5c7cfa));
    color: var(--of-text, #f5f6fb);
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

body[data-route="app_register"] .registration-header h3,
body[data-route="app_register"] .registration-header p {
    color: var(--of-text, #f5f6fb);
}

body[data-route="app_register"] .registration-header p {
    color: color-mix(in srgb, var(--of-text, #f5f6fb) 80%, transparent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

body[data-route="app_register"] .navbar {
    display: none;
}

body[data-route="app_register"] .card-body {
    background: color-mix(in srgb, var(--of-panel, #0c1226) 92%, transparent);
    color: var(--of-text, #f5f6fb);
    border: none;
}

body[data-route="app_register"] label,
body[data-route="app_register"] .form-label,
body[data-route="app_register"] .text-muted,
body[data-route="app_register"] small {
    color: var(--of-muted, #a4b1d6);
}

body[data-route="app_register"] .form-control {
    background: color-mix(in srgb, var(--of-card, #111a33) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--of-accent, #5c7cfa) 35%, transparent);
    color: var(--of-text, #f5f6fb);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body[data-route="app_register"] .form-control::placeholder {
    color: color-mix(in srgb, var(--of-muted, #a4b1d6) 65%, transparent);
}

body[data-route="app_register"] .form-control:focus {
    border-color: var(--of-accent-2, #18d6b0);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--of-accent-2, #18d6b0) 25%, transparent);
    background: color-mix(in srgb, var(--of-panel, #0c1226) 96%, transparent);
    color: var(--of-text, #f5f6fb);
}

body[data-route="app_register"] .form-check-input {
    background-color: color-mix(in srgb, var(--of-panel, #0c1226) 90%, transparent);
    border-color: color-mix(in srgb, var(--of-muted, #a4b1d6) 50%, transparent);
}

body[data-route="app_register"] .form-check-input:checked {
    background-color: var(--of-accent-2, #18d6b0);
    border-color: var(--of-accent-2, #18d6b0);
}

body[data-route="app_register"] .btn-primary {
    background: linear-gradient(135deg, var(--of-accent-2, #18d6b0), var(--of-accent, #5c7cfa));
    border: none;
    box-shadow: 0 20px 35px rgba(24, 214, 176, 0.25);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.9rem 1rem;
}

body[data-route="app_register"] .btn-primary:focus,
body[data-route="app_register"] .btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 25px 40px rgba(92, 124, 250, 0.35);
}

body[data-route="app_register"] .btn-outline-secondary {
    border-color: color-mix(in srgb, var(--of-accent, #5c7cfa) 55%, transparent);
    color: var(--of-text, #f5f6fb);
    padding: 0.85rem 1rem;
}

body[data-route="app_register"] .btn-outline-secondary:hover {
    background: color-mix(in srgb, var(--of-accent, #5c7cfa) 15%, transparent);
    border-color: var(--of-accent-2, #18d6b0);
    color: var(--of-text, #f5f6fb);
}

body[data-route="app_register"] a.text-decoration-none {
    color: var(--of-accent-2, #18d6b0);
}

body[data-route="app_register"] .alert-warning,
body[data-route="app_register"] .alert-info {
    background: color-mix(in srgb, #18d6b0 12%, transparent);
    border-color: color-mix(in srgb, #18d6b0 30%, transparent);
    color: var(--of-text, #f5f6fb);
}

/* Template: portfolio/index.html.twig */
body[data-route="legal_portfolio_index"] .portfolio-card, body[data-route="portfolio_index"] .portfolio-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

body[data-route="legal_portfolio_index"] .portfolio-card:hover, body[data-route="portfolio_index"] .portfolio-card:hover {
    transform: translateY(-2px);
}

body[data-route="legal_portfolio_index"] .portfolio-header, body[data-route="portfolio_index"] .portfolio-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

body[data-route="legal_portfolio_index"] .value-display, body[data-route="portfolio_index"] .value-display {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

body[data-route="legal_portfolio_index"] .profit-loss, body[data-route="portfolio_index"] .profit-loss {
    font-size: 1.2rem;
    font-weight: 600;
}

body[data-route="legal_portfolio_index"] .profit-loss.positive, body[data-route="portfolio_index"] .profit-loss.positive {
    color: var(--success-color);
}

body[data-route="legal_portfolio_index"] .profit-loss.negative, body[data-route="portfolio_index"] .profit-loss.negative {
    color: var(--danger-color);
}

body[data-route="legal_portfolio_index"] .asset-item, body[data-route="portfolio_index"] .asset-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

body[data-route="legal_portfolio_index"] .asset-item:hover, body[data-route="portfolio_index"] .asset-item:hover {
    background-color: #f8f9fa;
}

body[data-route="legal_portfolio_index"] .asset-item:last-child, body[data-route="portfolio_index"] .asset-item:last-child {
    border-bottom: none;
}

/* Template: portfolio/global_index.html.twig */
.portfolio-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.portfolio-card:hover {
    transform: translateY(-2px);
}

.portfolio-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.value-display {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.profit-loss {
    font-size: 1.2rem;
    font-weight: 600;
}

.profit-loss.positive {
    color: var(--success-color);
}

.profit-loss.negative {
    color: var(--danger-color);
}

.asset-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.asset-item:hover {
    background-color: #f8f9fa;
}

.asset-item:last-child {
    border-bottom: none;
}

.entity-badge {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
}

/* Template: portfolio/show.html.twig */
body[data-route="legal_portfolio_show"] .portfolio-header, body[data-route="portfolio_show"] .portfolio-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

body[data-route="legal_portfolio_show"] .value-display, body[data-route="portfolio_show"] .value-display {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

body[data-route="legal_portfolio_show"] .profit-loss, body[data-route="portfolio_show"] .profit-loss {
    font-size: 1.5rem;
    font-weight: 600;
}

body[data-route="legal_portfolio_show"] .profit-loss.positive, body[data-route="portfolio_show"] .profit-loss.positive {
    color: var(--success-color);
}

body[data-route="legal_portfolio_show"] .profit-loss.negative, body[data-route="portfolio_show"] .profit-loss.negative {
    color: var(--danger-color);
}

body[data-route="legal_portfolio_show"] .asset-card, body[data-route="portfolio_show"] .asset-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

body[data-route="legal_portfolio_show"] .asset-card:hover, body[data-route="portfolio_show"] .asset-card:hover {
    transform: translateY(-2px);
}

body[data-route="legal_portfolio_show"] .allocation-chart, body[data-route="portfolio_show"] .allocation-chart {
    height: 300px;
}

body[data-route="legal_portfolio_show"] .asset-item, body[data-route="portfolio_show"] .asset-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

body[data-route="legal_portfolio_show"] .asset-item:hover, body[data-route="portfolio_show"] .asset-item:hover {
    background-color: #f8f9fa;
}

body[data-route="legal_portfolio_show"] .asset-item:last-child, body[data-route="portfolio_show"] .asset-item:last-child {
    border-bottom: none;
}

body[data-route="legal_portfolio_show"] .stat-card, body[data-route="portfolio_show"] .stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body[data-route="legal_portfolio_show"] .stat-value, body[data-route="portfolio_show"] .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

body[data-route="legal_portfolio_show"] .stat-label, body[data-route="portfolio_show"] .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body[data-route="app_login"] .biometric-panel {
    background: color-mix(in srgb, var(--of-panel, #0c1226) 92%, transparent);
    border: 1px solid var(--of-border, rgba(255, 255, 255, 0.08));
    border-radius: 1.25rem;
    padding: 1.5rem;
    position: relative;
}

body[data-route="app_login"] .biometric-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

body[data-route="app_login"] .biometric-panel h5 {
    color: var(--of-text, #f5f6fb);
}

body[data-route="app_login"] .biometric-help {
    color: var(--of-muted, #a4b1d6);
    margin-bottom: 1rem;
}

body[data-route="app_login"] .fingerprint-icon {
    font-size: 3.5rem;
    color: var(--of-accent-2, #18d6b0);
    display: inline-block;
    margin-bottom: 0.75rem;
}

body[data-route="app_login"] #biometricStatus .alert {
    text-align: left;
}

/* Template: security/login.html.twig */
body[data-route="app_login"] {
    background: radial-gradient(circle at top, rgba(92, 124, 250, 0.25), rgba(5, 9, 24, 0.95) 45%), var(--of-bg, #050918);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--of-text, #f5f6fb);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body[data-route="app_login"] .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

body[data-route="app_login"] .login-header {
    background: var(--of-cta-gradient, linear-gradient(135deg, rgba(92, 124, 250, 0.9), rgba(24, 214, 176, 0.9)));
    color: var(--of-text, #f5f6fb);
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

body[data-route="app_login"] .navbar {
    display: none;
}

body[data-route="app_login"] .login-card {
    background: color-mix(in srgb, var(--of-card, #111a33) 94%, transparent);
    border: 1px solid var(--of-border, rgba(255, 255, 255, 0.08));
    border-radius: 24px;
    box-shadow: var(--of-shadow-soft, 0 35px 65px rgba(5, 9, 24, 0.35));
    overflow: hidden;
    position: relative;
}

body[data-route="app_login"] .login-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

body[data-route="app_login"] .login-header h3,
body[data-route="app_login"] .login-header p {
    color: var(--of-text, #f5f6fb);
}

body[data-route="app_login"] .login-header p {
    color: color-mix(in srgb, var(--of-text, #f5f6fb) 80%, transparent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

body[data-route="app_login"] .card-body,
body[data-route="app_login"] .card-footer {
    background: color-mix(in srgb, var(--of-panel, #0c1226) 92%, transparent);
    color: var(--of-text, #f5f6fb);
    border: none;
}

body[data-route="app_login"] .card-footer {
    border-top: 1px solid var(--of-border, rgba(255, 255, 255, 0.08));
}

body[data-route="app_login"] label,
body[data-route="app_login"] .form-check-label,
body[data-route="app_login"] .text-muted,
body[data-route="app_login"] small {
    color: var(--of-muted, #a4b1d6);
}

body[data-route="app_login"] .form-control {
    background: color-mix(in srgb, var(--of-card, #111a33) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--of-accent, #5c7cfa) 35%, transparent);
    color: var(--of-text, #f5f6fb);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body[data-route="app_login"] .form-control::placeholder {
    color: color-mix(in srgb, var(--of-muted, #a4b1d6) 65%, transparent);
}

body[data-route="app_login"] .form-control:focus {
    border-color: var(--of-accent-2, #18d6b0);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--of-accent-2, #18d6b0) 25%, transparent);
    background: color-mix(in srgb, var(--of-panel, #0c1226) 96%, transparent);
    color: var(--of-text, #f5f6fb);
}

body[data-route="app_login"] .form-check-input {
    background-color: color-mix(in srgb, var(--of-panel, #0c1226) 90%, transparent);
    border-color: color-mix(in srgb, var(--of-muted, #a4b1d6) 50%, transparent);
}

body[data-route="app_login"] .form-check-input:checked {
    background-color: var(--of-accent-2, #18d6b0);
    border-color: var(--of-accent-2, #18d6b0);
}

body[data-route="app_login"] .btn-primary {
    background: linear-gradient(135deg, var(--of-accent, #5c7cfa), var(--of-accent-2, #18d6b0));
    border: none;
    box-shadow: 0 20px 35px rgba(24, 214, 176, 0.25);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.9rem 1rem;
}

body[data-route="app_login"] .btn-primary:focus,
body[data-route="app_login"] .btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 25px 40px rgba(92, 124, 250, 0.35);
}

body[data-route="app_login"] .btn-outline-primary {
    border-color: color-mix(in srgb, var(--of-accent, #5c7cfa) 55%, transparent);
    color: var(--of-text, #f5f6fb);
    padding: 0.85rem 1rem;
}

body[data-route="app_login"] .btn-outline-primary:hover {
    background: color-mix(in srgb, var(--of-accent, #5c7cfa) 15%, transparent);
    border-color: var(--of-accent-2, #18d6b0);
    color: var(--of-text, #f5f6fb);
}

body[data-route="app_login"] .card-footer a {
    color: var(--of-accent-2, #18d6b0);
}

body[data-route="app_login"] .alert-danger {
    background: color-mix(in srgb, #ff6b6b 18%, transparent);
    border-color: color-mix(in srgb, #ff6b6b 45%, transparent);
    color: var(--of-text, #f5f6fb);
}

/* Template: security/two_factor_backup_codes.html.twig */
@media print {
    body[data-route="app_profile_2fa_regenerate_backup_codes"] .btn, body[data-route="app_two_factor_enable"] .btn, body[data-route="app_profile_2fa_regenerate_backup_codes"] .alert, body[data-route="app_two_factor_enable"] .alert, body[data-route="app_profile_2fa_regenerate_backup_codes"] .card-header, body[data-route="app_two_factor_enable"] .card-header {
        display: none !important;
    }
}

/* Template: collectibles/index.html.twig */
body[data-route="collectibles_index"] .collectibles-header, body[data-route="legal_collectibles_index"] .collectibles-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

body[data-route="collectibles_index"] .collectibles-header::before, body[data-route="legal_collectibles_index"] .collectibles-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

body[data-route="collectibles_index"] .collectibles-header h1, body[data-route="legal_collectibles_index"] .collectibles-header h1, body[data-route="collectibles_index"] .collectibles-header p, body[data-route="legal_collectibles_index"] .collectibles-header p {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-route="collectibles_index"] .collectible-card, body[data-route="legal_collectibles_index"] .collectible-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow:
                    0 4px 20px rgba(0, 0, 0, 0.08),
                    0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: visible;
    height: 100%;
    backdrop-filter: blur(10px);
}

body[data-route="collectibles_index"] .collectible-card::before, body[data-route="legal_collectibles_index"] .collectible-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #ea580c 100%);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

body[data-route="collectibles_index"] .collectible-card::after, body[data-route="legal_collectibles_index"] .collectible-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, #f59e0b, #d97706, #ea580c);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body[data-route="collectibles_index"] .collectible-card:hover, body[data-route="legal_collectibles_index"] .collectible-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
                    0 20px 40px rgba(245, 158, 11, 0.15),
                    0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
}

body[data-route="collectibles_index"] .collectible-card:hover::after, body[data-route="legal_collectibles_index"] .collectible-card:hover::after {
    opacity: 0.3;
}

body[data-route="collectibles_index"] .collectible-icon, body[data-route="legal_collectibles_index"] .collectible-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow:
                    0 8px 16px rgba(245, 158, 11, 0.3),
                    inset 0 -2px 8px rgba(0, 0, 0, 0.2),
                    inset 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

body[data-route="collectibles_index"] .collectible-icon::before, body[data-route="legal_collectibles_index"] .collectible-icon::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 8px;
}

body[data-route="collectibles_index"] .collectible-card:hover .collectible-icon, body[data-route="legal_collectibles_index"] .collectible-card:hover .collectible-icon {
    transform: rotate(-5deg) scale(1.05);
}

body[data-route="collectibles_index"] .card-body, body[data-route="legal_collectibles_index"] .card-body {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

body[data-route="collectibles_index"] .collectible-name, body[data-route="legal_collectibles_index"] .collectible-name {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

body[data-route="collectibles_index"] .collectible-category, body[data-route="legal_collectibles_index"] .collectible-category {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

body[data-route="collectibles_index"] .value-display, body[data-route="legal_collectibles_index"] .value-display {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

body[data-route="collectibles_index"] .profit-loss, body[data-route="legal_collectibles_index"] .profit-loss {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

body[data-route="collectibles_index"] .profit-loss.positive, body[data-route="legal_collectibles_index"] .profit-loss.positive {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

body[data-route="collectibles_index"] .profit-loss.negative, body[data-route="legal_collectibles_index"] .profit-loss.negative {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

body[data-route="collectibles_index"] .collectible-metric, body[data-route="legal_collectibles_index"] .collectible-metric {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

body[data-route="collectibles_index"] .collectible-card:hover .collectible-metric, body[data-route="legal_collectibles_index"] .collectible-card:hover .collectible-metric {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
}

body[data-route="collectibles_index"] .collectible-metric-value, body[data-route="legal_collectibles_index"] .collectible-metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

body[data-route="collectibles_index"] .collectible-metric-label, body[data-route="legal_collectibles_index"] .collectible-metric-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body[data-route="collectibles_index"] .condition-badge, body[data-route="legal_collectibles_index"] .condition-badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body[data-route="collectibles_index"] .condition-badge.mint, body[data-route="legal_collectibles_index"] .condition-badge.mint {
    background: #d1fae5;
    color: #065f46;
}

body[data-route="collectibles_index"] .condition-badge.excellent, body[data-route="legal_collectibles_index"] .condition-badge.excellent {
    background: #dbeafe;
    color: #1e40af;
}

body[data-route="collectibles_index"] .btn-primary, body[data-route="legal_collectibles_index"] .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

body[data-route="collectibles_index"] .btn-primary:hover, body[data-route="legal_collectibles_index"] .btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

body[data-route="collectibles_index"] .dropdown-menu, body[data-route="legal_collectibles_index"] .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
}

body[data-route="collectibles_index"] .dropdown-item, body[data-route="legal_collectibles_index"] .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

body[data-route="collectibles_index"] .dropdown-item:hover, body[data-route="legal_collectibles_index"] .dropdown-item:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

body[data-route="collectibles_index"] .stat-card-collectible, body[data-route="legal_collectibles_index"] .stat-card-collectible {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

body[data-route="collectibles_index"] .stat-card-collectible::before, body[data-route="legal_collectibles_index"] .stat-card-collectible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

body[data-route="collectibles_index"] .stat-icon, body[data-route="legal_collectibles_index"] .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    margin-bottom: 1rem;
}

/* Template: mobile/base.html.twig */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

:root {
    --mobile-primary: #1d4ed8;
    --mobile-primary-light: #3b82f6;
    --mobile-secondary: #475569;
    --mobile-success: #059669;
    --mobile-danger: #dc2626;
    --mobile-warning: #d97706;
    --mobile-info: #0284c7;
    --mobile-light: #f8fafc;
    --mobile-dark: #0f172a;
    --mobile-text-muted: #64748b;
    --mobile-text-secondary: #334155;
    --mobile-border: #e2e8f0;
    --mobile-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --mobile-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--mobile-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.mobile-header {
    background: linear-gradient(135deg, var(--mobile-primary) 0%, var(--mobile-primary-light) 100%);
    color: white;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--mobile-shadow);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-back-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.mobile-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-action-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.mobile-container {
    padding: 16px;
    padding-bottom: 80px;
    max-width: 100%;
    margin: 0 auto;
}

.pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-primary-light));
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.pull-to-refresh-indicator.show {
    display: flex;
    transform: translateY(0);
}

.pull-to-refresh-indicator .spinner {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

.mobile-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    border-radius: 12px;
    box-shadow: var(--mobile-shadow-lg);
    padding: 16px 20px;
    max-width: calc(100% - 32px);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.mobile-toast.show {
    transform: translateX(-50%) translateY(0);
}

.mobile-toast.success {
    border-left: 4px solid var(--mobile-success);
}

.mobile-toast.error {
    border-left: 4px solid var(--mobile-danger);
}

.mobile-toast.warning {
    border-left: 4px solid var(--mobile-warning);
}

.mobile-toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-toast.success .mobile-toast-icon {
    color: var(--mobile-success);
}

.mobile-toast.error .mobile-toast-icon {
    color: var(--mobile-danger);
}

.mobile-toast.warning .mobile-toast-icon {
    color: var(--mobile-warning);
}

.mobile-toast-message {
    font-size: 0.9rem;
    color: var(--mobile-dark);
    font-weight: 500;
}

.mobile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.mobile-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--mobile-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--mobile-text-muted);
    font-size: 0.75rem;
    transition: color 0.2s;
    flex: 1;
    max-width: 100px;
}

.mobile-nav-item i {
    font-size: 1.5rem;
}

.mobile-nav-item.active {
    color: var(--mobile-primary);
}

.mobile-nav-item:active {
    color: var(--mobile-primary-light);
}

@supports (padding: max(0px)) {
    .mobile-header {
        padding-top: max(16px, env(safe-area-inset-top));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .mobile-container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(80px, env(safe-area-inset-bottom) + 80px);
    }

    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Template: stats/index.html.twig */
body[data-route="app_stats_index"] .date-preset.active, body[data-route="legal_stats_index"] .date-preset.active, body[data-route="stats_index"] .date-preset.active {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
}

body[data-route="app_stats_index"] .date-preset:hover, body[data-route="legal_stats_index"] .date-preset:hover, body[data-route="stats_index"] .date-preset:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

body[data-route="app_stats_index"] .btn-group.flex-wrap, body[data-route="legal_stats_index"] .btn-group.flex-wrap, body[data-route="stats_index"] .btn-group.flex-wrap {
    gap: 0.25rem;
}

body[data-route="app_stats_index"] .btn-group.flex-wrap .btn, body[data-route="legal_stats_index"] .btn-group.flex-wrap .btn, body[data-route="stats_index"] .btn-group.flex-wrap .btn {
    margin-bottom: 0.25rem;
}

body[data-route="app_stats_index"] .transaction-row, body[data-route="legal_stats_index"] .transaction-row, body[data-route="stats_index"] .transaction-row {
    transition: background-color 0.2s ease;
}

body[data-route="app_stats_index"] .transaction-row:hover, body[data-route="legal_stats_index"] .transaction-row:hover, body[data-route="stats_index"] .transaction-row:hover {
    background-color: #f8f9fa;
}

body[data-route="app_stats_index"] .transaction-date, body[data-route="legal_stats_index"] .transaction-date, body[data-route="stats_index"] .transaction-date {
    font-size: 0.9rem;
    color: #6c757d;
}

body[data-route="app_stats_index"] .date-text, body[data-route="legal_stats_index"] .date-text, body[data-route="stats_index"] .date-text {
    font-weight: 500;
}

body[data-route="app_stats_index"] .transaction-description, body[data-route="legal_stats_index"] .transaction-description, body[data-route="stats_index"] .transaction-description {
    min-width: 200px;
}

body[data-route="app_stats_index"] .description-text, body[data-route="legal_stats_index"] .description-text, body[data-route="stats_index"] .description-text {
    font-weight: 500;
    color: #212529;
}

body[data-route="app_stats_index"] .transaction-icon, body[data-route="legal_stats_index"] .transaction-icon, body[data-route="stats_index"] .transaction-icon {
    font-size: 1.1rem;
}

body[data-route="app_stats_index"] .transaction-type, body[data-route="legal_stats_index"] .transaction-type, body[data-route="stats_index"] .transaction-type {
    min-width: 100px;
}

body[data-route="app_stats_index"] .type-badge, body[data-route="legal_stats_index"] .type-badge, body[data-route="stats_index"] .type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

body[data-route="app_stats_index"] .type-income, body[data-route="legal_stats_index"] .type-income, body[data-route="stats_index"] .type-income {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

body[data-route="app_stats_index"] .type-expense, body[data-route="legal_stats_index"] .type-expense, body[data-route="stats_index"] .type-expense {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body[data-route="app_stats_index"] .category-badge, body[data-route="legal_stats_index"] .category-badge, body[data-route="stats_index"] .category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

body[data-route="app_stats_index"] .amount-display, body[data-route="legal_stats_index"] .amount-display, body[data-route="stats_index"] .amount-display {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
    min-width: 100px;
    text-align: right;
}

body[data-route="app_stats_index"] .amount-positive, body[data-route="legal_stats_index"] .amount-positive, body[data-route="stats_index"] .amount-positive {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

body[data-route="app_stats_index"] .amount-negative, body[data-route="legal_stats_index"] .amount-negative, body[data-route="stats_index"] .amount-negative {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body[data-route="app_stats_index"] .stat-card, body[data-route="legal_stats_index"] .stat-card, body[data-route="stats_index"] .stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-route="app_stats_index"] .stat-card:hover, body[data-route="legal_stats_index"] .stat-card:hover, body[data-route="stats_index"] .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body[data-route="app_stats_index"] .stat-card-header, body[data-route="legal_stats_index"] .stat-card-header, body[data-route="stats_index"] .stat-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

body[data-route="app_stats_index"] .stat-icon, body[data-route="legal_stats_index"] .stat-icon, body[data-route="stats_index"] .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

body[data-route="app_stats_index"] .stat-card-income .stat-icon, body[data-route="legal_stats_index"] .stat-card-income .stat-icon, body[data-route="stats_index"] .stat-card-income .stat-icon {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}

body[data-route="app_stats_index"] .stat-card-expense .stat-icon, body[data-route="legal_stats_index"] .stat-card-expense .stat-icon, body[data-route="stats_index"] .stat-card-expense .stat-icon {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

body[data-route="app_stats_index"] .stat-card-balance .stat-icon, body[data-route="legal_stats_index"] .stat-card-balance .stat-icon, body[data-route="stats_index"] .stat-card-balance .stat-icon {
    background-color: rgba(71, 85, 105, 0.1);
    color: #475569;
}

body[data-route="app_stats_index"] .stat-card-transactions .stat-icon, body[data-route="legal_stats_index"] .stat-card-transactions .stat-icon, body[data-route="stats_index"] .stat-card-transactions .stat-icon {
    background-color: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

body[data-route="app_stats_index"] .stat-card-positive .stat-icon, body[data-route="legal_stats_index"] .stat-card-positive .stat-icon, body[data-route="stats_index"] .stat-card-positive .stat-icon {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}

body[data-route="app_stats_index"] .stat-card-negative .stat-icon, body[data-route="legal_stats_index"] .stat-card-negative .stat-icon, body[data-route="stats_index"] .stat-card-negative .stat-icon {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

body[data-route="app_stats_index"] .stat-title, body[data-route="legal_stats_index"] .stat-title, body[data-route="stats_index"] .stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

body[data-route="app_stats_index"] .stat-value, body[data-route="legal_stats_index"] .stat-value, body[data-route="stats_index"] .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

body[data-route="app_stats_index"] .stat-value.amount-positive, body[data-route="legal_stats_index"] .stat-value.amount-positive, body[data-route="stats_index"] .stat-value.amount-positive {
    color: #065f46;
}

body[data-route="app_stats_index"] .stat-value.amount-negative, body[data-route="legal_stats_index"] .stat-value.amount-negative, body[data-route="stats_index"] .stat-value.amount-negative {
    color: #991b1b;
}

body[data-route="app_stats_index"] .stat-subtitle, body[data-route="legal_stats_index"] .stat-subtitle, body[data-route="stats_index"] .stat-subtitle {
    font-size: 0.75rem;
    color: #475569;
}

body[data-route="app_stats_index"] .table-card, body[data-route="legal_stats_index"] .table-card, body[data-route="stats_index"] .table-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
}

body[data-route="app_stats_index"] .table-header, body[data-route="legal_stats_index"] .table-header, body[data-route="stats_index"] .table-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: between;
    align-items: center;
}

body[data-route="app_stats_index"] .table-header h3, body[data-route="legal_stats_index"] .table-header h3, body[data-route="stats_index"] .table-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

body[data-route="app_stats_index"] .table-responsive, body[data-route="legal_stats_index"] .table-responsive, body[data-route="stats_index"] .table-responsive {
    border-radius: 0 0 0.75rem 0.75rem;
}

body[data-route="app_stats_index"] .table th, body[data-route="legal_stats_index"] .table th, body[data-route="stats_index"] .table th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 1rem 0.75rem;
}

body[data-route="app_stats_index"] .table td, body[data-route="legal_stats_index"] .table td, body[data-route="stats_index"] .table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #f1f3f4;
}

body[data-route="app_stats_index"] .amount-value.positive, body[data-route="legal_stats_index"] .amount-value.positive, body[data-route="stats_index"] .amount-value.positive {
    color: #059669;
}

body[data-route="app_stats_index"] .amount-value.negative, body[data-route="legal_stats_index"] .amount-value.negative, body[data-route="stats_index"] .amount-value.negative {
    color: #dc2626;
}

@media (max-width: 768px) {
    body[data-route="app_stats_index"] .transaction-description, body[data-route="legal_stats_index"] .transaction-description, body[data-route="stats_index"] .transaction-description {
        min-width: 150px;
    }

    body[data-route="app_stats_index"] .description-text, body[data-route="legal_stats_index"] .description-text, body[data-route="stats_index"] .description-text {
        font-size: 0.875rem;
    }

    body[data-route="app_stats_index"] .type-badge, body[data-route="legal_stats_index"] .type-badge, body[data-route="stats_index"] .type-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }

    body[data-route="app_stats_index"] .amount-display, body[data-route="legal_stats_index"] .amount-display, body[data-route="stats_index"] .amount-display {
        font-size: 0.875rem;
        min-width: 80px;
    }
}

/* Template: precious_metals/index.html.twig */
body[data-route="legal_precious_metals_index"] .metals-header, body[data-route="precious_metals_index"] .metals-header {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body[data-route="legal_precious_metals_index"] .metal-card, body[data-route="precious_metals_index"] .metal-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow:
                    0 4px 20px rgba(0, 0, 0, 0.08),
                    0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: visible;
    height: 100%;
    backdrop-filter: blur(10px);
}

body[data-route="legal_precious_metals_index"] .metal-card::before, body[data-route="precious_metals_index"] .metal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b 0%, #eab308 50%, #ca8a04 100%);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

body[data-route="legal_precious_metals_index"] .metal-card::after, body[data-route="precious_metals_index"] .metal-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, #f59e0b, #eab308, #ca8a04);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body[data-route="legal_precious_metals_index"] .metal-card:hover, body[data-route="precious_metals_index"] .metal-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
                    0 20px 40px rgba(234, 179, 8, 0.15),
                    0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #eab308;
}

body[data-route="legal_precious_metals_index"] .metal-card:hover::after, body[data-route="precious_metals_index"] .metal-card:hover::after {
    opacity: 0.3;
}

body[data-route="legal_precious_metals_index"] .card-body, body[data-route="precious_metals_index"] .card-body {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

body[data-route="legal_precious_metals_index"] .metal-icon, body[data-route="precious_metals_index"] .metal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow:
                    0 8px 16px rgba(234, 179, 8, 0.3),
                    inset 0 -2px 8px rgba(0, 0, 0, 0.2),
                    inset 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

body[data-route="legal_precious_metals_index"] .metal-icon::before, body[data-route="precious_metals_index"] .metal-icon::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 8px;
}

body[data-route="legal_precious_metals_index"] .metal-card:hover .metal-icon, body[data-route="precious_metals_index"] .metal-card:hover .metal-icon {
    transform: rotate(-5deg) scale(1.05);
}

body[data-route="legal_precious_metals_index"] .metal-icon.gold, body[data-route="precious_metals_index"] .metal-icon.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow:
                    0 8px 20px rgba(251, 191, 36, 0.4),
                    inset 0 -2px 8px rgba(0, 0, 0, 0.2),
                    inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

body[data-route="legal_precious_metals_index"] .metal-icon.silver, body[data-route="precious_metals_index"] .metal-icon.silver {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 50%, #64748b 100%);
    box-shadow:
                    0 8px 20px rgba(148, 163, 184, 0.4),
                    inset 0 -2px 8px rgba(0, 0, 0, 0.2),
                    inset 0 2px 8px rgba(255, 255, 255, 0.5);
}

body[data-route="legal_precious_metals_index"] .metal-icon.platinum, body[data-route="precious_metals_index"] .metal-icon.platinum {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
    box-shadow:
                    0 8px 20px rgba(203, 213, 225, 0.4),
                    inset 0 -2px 8px rgba(0, 0, 0, 0.15),
                    inset 0 2px 8px rgba(255, 255, 255, 0.6);
}

body[data-route="legal_precious_metals_index"] .metal-card h3, body[data-route="precious_metals_index"] .metal-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

body[data-route="legal_precious_metals_index"] .profit-loss, body[data-route="precious_metals_index"] .profit-loss {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

body[data-route="legal_precious_metals_index"] .profit-loss.positive, body[data-route="precious_metals_index"] .profit-loss.positive {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

body[data-route="legal_precious_metals_index"] .profit-loss.negative, body[data-route="precious_metals_index"] .profit-loss.negative {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

body[data-route="legal_precious_metals_index"] .metal-card .bg-light, body[data-route="precious_metals_index"] .metal-card .bg-light {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

body[data-route="legal_precious_metals_index"] .metal-card:hover .bg-light, body[data-route="precious_metals_index"] .metal-card:hover .bg-light {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-color: #fbbf24;
}

body[data-route="legal_precious_metals_index"] .fw-bold.small, body[data-route="precious_metals_index"] .fw-bold.small {
    font-weight: 700;
    color: #1f2937;
}

body[data-route="legal_precious_metals_index"] .badge, body[data-route="precious_metals_index"] .badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body[data-route="legal_precious_metals_index"] .btn-primary, body[data-route="precious_metals_index"] .btn-primary {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}

body[data-route="legal_precious_metals_index"] .btn-primary:hover, body[data-route="precious_metals_index"] .btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.35);
}

body[data-route="legal_precious_metals_index"] .dropdown-menu, body[data-route="precious_metals_index"] .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
}

body[data-route="legal_precious_metals_index"] .dropdown-item, body[data-route="precious_metals_index"] .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

body[data-route="legal_precious_metals_index"] .dropdown-item:hover, body[data-route="precious_metals_index"] .dropdown-item:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

/* Template: bank_account/loan_details.html.twig */
body[data-route="app_bank_account_loan_details"] {
    font-family: Arial, sans-serif;
    margin: 20px;
}

body[data-route="app_bank_account_loan_details"] h1 {
    color: #333;
}

body[data-route="app_bank_account_loan_details"] table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

body[data-route="app_bank_account_loan_details"] th, body[data-route="app_bank_account_loan_details"] td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}

body[data-route="app_bank_account_loan_details"] th {
    background-color: #343a40;
    color: white;
}

body[data-route="app_bank_account_loan_details"] .table-secondary {
    background-color: #e9ecef;
}

body[data-route="app_bank_account_loan_details"] .text-danger {
    color: #dc3545;
}

body[data-route="app_bank_account_loan_details"] .text-success {
    color: #28a745;
}

body[data-route="app_bank_account_loan_details"] .fw-bold {
    font-weight: bold;
}

@media print {
    body[data-route="app_bank_account_loan_details"] .no-print {
        display: none;
    }
}

body[data-route="app_bank_account_loan_details"] @page {
    margin: 2cm;
}

body[data-route="app_bank_account_loan_details"] {
    font-family: Arial, sans-serif;
    font-size: 10pt;
}

body[data-route="app_bank_account_loan_details"] h1 {
    color: #333;
    font-size: 18pt;
    margin-bottom: 10px;
}

body[data-route="app_bank_account_loan_details"] .header-info {
    margin-bottom: 20px;
    font-size: 9pt;
}

body[data-route="app_bank_account_loan_details"] .summary {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

body[data-route="app_bank_account_loan_details"] .summary h3 {
    font-size: 12pt;
    margin-bottom: 10px;
}

body[data-route="app_bank_account_loan_details"] .summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

body[data-route="app_bank_account_loan_details"] .summary-item {
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] .summary-item small {
    display: block;
    color: #666;
}

body[data-route="app_bank_account_loan_details"] .summary-item strong {
    display: block;
    font-size: 14pt;
    margin-top: 5px;
}

body[data-route="app_bank_account_loan_details"] table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 9pt;
}

body[data-route="app_bank_account_loan_details"] th, body[data-route="app_bank_account_loan_details"] td {
    border: 1px solid #ddd;
    padding: 6px;
}

body[data-route="app_bank_account_loan_details"] th {
    background-color: #343a40;
    color: white;
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] td {
    text-align: right;
}

body[data-route="app_bank_account_loan_details"] td:first-child, body[data-route="app_bank_account_loan_details"] td:nth-child(2) {
    text-align: left;
}

body[data-route="app_bank_account_loan_details"] .past-payment {
    background-color: #e9ecef;
}

body[data-route="app_bank_account_loan_details"] .text-danger {
    color: #dc3545;
}

body[data-route="app_bank_account_loan_details"] .text-success {
    color: #28a745;
}

body[data-route="app_bank_account_loan_details"] .footer {
    margin-top: 20px;
    font-size: 8pt;
    color: #666;
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] tfoot {
    font-weight: bold;
    background-color: #f8f9fa;
}

body[data-route="app_bank_account_loan_details"] #amortizationTableContainer {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

body[data-route="app_bank_account_loan_details"] #amortizationTable thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

body[data-route="app_bank_account_loan_details"] .past-payment {
    opacity: 0.7;
}

body[data-route="app_bank_account_loan_details"] .future-payment {
    background-color: #fff;
}

@media print {
    body[data-route="app_bank_account_loan_details"] .no-print {
        display: none !important;
    }
}

/* Template: bank_account/loan_details.html.twig */
body[data-route="app_bank_account_loan_details"] {
    font-family: Arial, sans-serif;
    margin: 20px;
}

body[data-route="app_bank_account_loan_details"] h1 {
    color: #333;
}

body[data-route="app_bank_account_loan_details"] table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

body[data-route="app_bank_account_loan_details"] th, body[data-route="app_bank_account_loan_details"] td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}

body[data-route="app_bank_account_loan_details"] th {
    background-color: #343a40;
    color: white;
}

body[data-route="app_bank_account_loan_details"] .table-secondary {
    background-color: #e9ecef;
}

body[data-route="app_bank_account_loan_details"] .text-danger {
    color: #dc3545;
}

body[data-route="app_bank_account_loan_details"] .text-success {
    color: #28a745;
}

body[data-route="app_bank_account_loan_details"] .fw-bold {
    font-weight: bold;
}

@media print {
    body[data-route="app_bank_account_loan_details"] .no-print {
        display: none;
    }
}

body[data-route="app_bank_account_loan_details"] @page {
    margin: 2cm;
}

body[data-route="app_bank_account_loan_details"] {
    font-family: Arial, sans-serif;
    font-size: 10pt;
}

body[data-route="app_bank_account_loan_details"] h1 {
    color: #333;
    font-size: 18pt;
    margin-bottom: 10px;
}

body[data-route="app_bank_account_loan_details"] .header-info {
    margin-bottom: 20px;
    font-size: 9pt;
}

body[data-route="app_bank_account_loan_details"] .summary {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

body[data-route="app_bank_account_loan_details"] .summary h3 {
    font-size: 12pt;
    margin-bottom: 10px;
}

body[data-route="app_bank_account_loan_details"] .summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

body[data-route="app_bank_account_loan_details"] .summary-item {
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] .summary-item small {
    display: block;
    color: #666;
}

body[data-route="app_bank_account_loan_details"] .summary-item strong {
    display: block;
    font-size: 14pt;
    margin-top: 5px;
}

body[data-route="app_bank_account_loan_details"] table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 9pt;
}

body[data-route="app_bank_account_loan_details"] th, body[data-route="app_bank_account_loan_details"] td {
    border: 1px solid #ddd;
    padding: 6px;
}

body[data-route="app_bank_account_loan_details"] th {
    background-color: #343a40;
    color: white;
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] td {
    text-align: right;
}

body[data-route="app_bank_account_loan_details"] td:first-child, body[data-route="app_bank_account_loan_details"] td:nth-child(2) {
    text-align: left;
}

body[data-route="app_bank_account_loan_details"] .past-payment {
    background-color: #e9ecef;
}

body[data-route="app_bank_account_loan_details"] .text-danger {
    color: #dc3545;
}

body[data-route="app_bank_account_loan_details"] .text-success {
    color: #28a745;
}

body[data-route="app_bank_account_loan_details"] .footer {
    margin-top: 20px;
    font-size: 8pt;
    color: #666;
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] tfoot {
    font-weight: bold;
    background-color: #f8f9fa;
}

body[data-route="app_bank_account_loan_details"] #amortizationTableContainer {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

body[data-route="app_bank_account_loan_details"] #amortizationTable thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

body[data-route="app_bank_account_loan_details"] .past-payment {
    opacity: 0.7;
}

body[data-route="app_bank_account_loan_details"] .future-payment {
    background-color: #fff;
}

@media print {
    body[data-route="app_bank_account_loan_details"] .no-print {
        display: none !important;
    }
}

/* Template: bank_account/loan_details.html.twig */
body[data-route="app_bank_account_loan_details"] {
    font-family: Arial, sans-serif;
    margin: 20px;
}

body[data-route="app_bank_account_loan_details"] h1 {
    color: #333;
}

body[data-route="app_bank_account_loan_details"] table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

body[data-route="app_bank_account_loan_details"] th, body[data-route="app_bank_account_loan_details"] td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}

body[data-route="app_bank_account_loan_details"] th {
    background-color: #343a40;
    color: white;
}

body[data-route="app_bank_account_loan_details"] .table-secondary {
    background-color: #e9ecef;
}

body[data-route="app_bank_account_loan_details"] .text-danger {
    color: #dc3545;
}

body[data-route="app_bank_account_loan_details"] .text-success {
    color: #28a745;
}

body[data-route="app_bank_account_loan_details"] .fw-bold {
    font-weight: bold;
}

@media print {
    body[data-route="app_bank_account_loan_details"] .no-print {
        display: none;
    }
}

body[data-route="app_bank_account_loan_details"] @page {
    margin: 2cm;
}

body[data-route="app_bank_account_loan_details"] {
    font-family: Arial, sans-serif;
    font-size: 10pt;
}

body[data-route="app_bank_account_loan_details"] h1 {
    color: #333;
    font-size: 18pt;
    margin-bottom: 10px;
}

body[data-route="app_bank_account_loan_details"] .header-info {
    margin-bottom: 20px;
    font-size: 9pt;
}

body[data-route="app_bank_account_loan_details"] .summary {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

body[data-route="app_bank_account_loan_details"] .summary h3 {
    font-size: 12pt;
    margin-bottom: 10px;
}

body[data-route="app_bank_account_loan_details"] .summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

body[data-route="app_bank_account_loan_details"] .summary-item {
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] .summary-item small {
    display: block;
    color: #666;
}

body[data-route="app_bank_account_loan_details"] .summary-item strong {
    display: block;
    font-size: 14pt;
    margin-top: 5px;
}

body[data-route="app_bank_account_loan_details"] table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 9pt;
}

body[data-route="app_bank_account_loan_details"] th, body[data-route="app_bank_account_loan_details"] td {
    border: 1px solid #ddd;
    padding: 6px;
}

body[data-route="app_bank_account_loan_details"] th {
    background-color: #343a40;
    color: white;
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] td {
    text-align: right;
}

body[data-route="app_bank_account_loan_details"] td:first-child, body[data-route="app_bank_account_loan_details"] td:nth-child(2) {
    text-align: left;
}

body[data-route="app_bank_account_loan_details"] .past-payment {
    background-color: #e9ecef;
}

body[data-route="app_bank_account_loan_details"] .text-danger {
    color: #dc3545;
}

body[data-route="app_bank_account_loan_details"] .text-success {
    color: #28a745;
}

body[data-route="app_bank_account_loan_details"] .footer {
    margin-top: 20px;
    font-size: 8pt;
    color: #666;
    text-align: center;
}

body[data-route="app_bank_account_loan_details"] tfoot {
    font-weight: bold;
    background-color: #f8f9fa;
}

body[data-route="app_bank_account_loan_details"] #amortizationTableContainer {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

body[data-route="app_bank_account_loan_details"] #amortizationTable thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

body[data-route="app_bank_account_loan_details"] .past-payment {
    opacity: 0.7;
}

body[data-route="app_bank_account_loan_details"] .future-payment {
    background-color: #fff;
}

@media print {
    body[data-route="app_bank_account_loan_details"] .no-print {
        display: none !important;
    }
}

/* Template: bank_account/edit.html.twig */
body[data-route="app_bank_account_edit"] .bg-light-info, body[data-route="bank_account_edit"] .bg-light-info, body[data-route="legal_bank_account_edit"] .bg-light-info {
    background-color: #e7f3ff !important;
}

body[data-route="app_bank_account_edit"] .form-section-header, body[data-route="bank_account_edit"] .form-section-header, body[data-route="legal_bank_account_edit"] .form-section-header {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
}

body[data-route="app_bank_account_edit"] #loan-fields, body[data-route="bank_account_edit"] #loan-fields, body[data-route="legal_bank_account_edit"] #loan-fields {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

body[data-route="app_bank_account_edit"] .form-control-color, body[data-route="bank_account_edit"] .form-control-color, body[data-route="legal_bank_account_edit"] .form-control-color {
    padding: 2px;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

body[data-route="app_bank_account_edit"] .form-control-color:hover, body[data-route="bank_account_edit"] .form-control-color:hover, body[data-route="legal_bank_account_edit"] .form-control-color:hover {
    border-color: #86b7fe;
}

body[data-route="app_bank_account_edit"] .form-control-color:focus, body[data-route="bank_account_edit"] .form-control-color:focus, body[data-route="legal_bank_account_edit"] .form-control-color:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body[data-route="app_bank_account_edit"] #color-preview, body[data-route="bank_account_edit"] #color-preview, body[data-route="legal_bank_account_edit"] #color-preview {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Template: bank_account/show.html.twig */
body[data-route="app_bank_account_show"] .date-preset.active, body[data-route="bank_account_show"] .date-preset.active, body[data-route="legal_bank_account_show"] .date-preset.active {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

body[data-route="app_bank_account_show"] .tab-content, body[data-route="bank_account_show"] .tab-content, body[data-route="legal_bank_account_show"] .tab-content {
    position: relative;
    z-index: 1;
}

body[data-route="app_bank_account_show"] .period-selector, body[data-route="bank_account_show"] .period-selector, body[data-route="legal_bank_account_show"] .period-selector {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body[data-route="app_bank_account_show"] .period-display, body[data-route="bank_account_show"] .period-display, body[data-route="legal_bank_account_show"] .period-display {
    flex: 1;
    font-weight: 500;
    font-size: 1.1rem;
}

body[data-route="app_bank_account_show"] .transactions-container, body[data-route="bank_account_show"] .transactions-container, body[data-route="legal_bank_account_show"] .transactions-container {
    margin-top: 1rem;
}

body[data-route="app_bank_account_show"] .transaction-item, body[data-route="bank_account_show"] .transaction-item, body[data-route="legal_bank_account_show"] .transaction-item, body[data-route="app_bank_account_show"] .date-group, body[data-route="bank_account_show"] .date-group, body[data-route="legal_bank_account_show"] .date-group, body[data-route="app_bank_account_show"] .date-group-items, body[data-route="bank_account_show"] .date-group-items, body[data-route="legal_bank_account_show"] .date-group-items {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body[data-route="app_bank_account_show"] .modal-backdrop, body[data-route="bank_account_show"] .modal-backdrop, body[data-route="legal_bank_account_show"] .modal-backdrop {
    z-index: 1040 !important;
}

body[data-route="app_bank_account_show"] .modal, body[data-route="bank_account_show"] .modal, body[data-route="legal_bank_account_show"] .modal {
    z-index: 1050 !important;
}

body[data-route="app_bank_account_show"] #transactionTabsContent, body[data-route="bank_account_show"] #transactionTabsContent, body[data-route="legal_bank_account_show"] #transactionTabsContent {
    position: relative;
    z-index: 1;
}

body[data-route="app_bank_account_show"] .date-group, body[data-route="bank_account_show"] .date-group, body[data-route="legal_bank_account_show"] .date-group {
    margin-bottom: 1rem;
    min-height: 50px;
    background: white;
}

body[data-route="app_bank_account_show"] .date-group-header, body[data-route="bank_account_show"] .date-group-header, body[data-route="legal_bank_account_show"] .date-group-header {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

body[data-route="app_bank_account_show"] .transaction-item, body[data-route="bank_account_show"] .transaction-item, body[data-route="legal_bank_account_show"] .transaction-item {
    min-height: 60px;
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0.75rem;
}

body[data-route="app_bank_account_show"] .transaction-main, body[data-route="bank_account_show"] .transaction-main, body[data-route="legal_bank_account_show"] .transaction-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

body[data-route="app_bank_account_show"] .transaction-icon, body[data-route="bank_account_show"] .transaction-icon, body[data-route="legal_bank_account_show"] .transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

body[data-route="app_bank_account_show"] .transaction-content, body[data-route="bank_account_show"] .transaction-content, body[data-route="legal_bank_account_show"] .transaction-content {
    flex: 1;
    min-width: 0;
}

body[data-route="app_bank_account_show"] .transaction-amount, body[data-route="bank_account_show"] .transaction-amount, body[data-route="legal_bank_account_show"] .transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

body[data-route="app_bank_account_show"] .transaction-amount.positive, body[data-route="bank_account_show"] .transaction-amount.positive, body[data-route="legal_bank_account_show"] .transaction-amount.positive {
    color: #28a745;
}

body[data-route="app_bank_account_show"] .transaction-amount.negative, body[data-route="bank_account_show"] .transaction-amount.negative, body[data-route="legal_bank_account_show"] .transaction-amount.negative {
    color: #dc3545;
}

body[data-route="app_bank_account_show"] .account-info-card, body[data-route="bank_account_show"] .account-info-card, body[data-route="legal_bank_account_show"] .account-info-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body[data-route="app_bank_account_show"] .info-section, body[data-route="bank_account_show"] .info-section, body[data-route="legal_bank_account_show"] .info-section {
    margin-bottom: 0.5rem;
}

body[data-route="app_bank_account_show"] .info-label, body[data-route="bank_account_show"] .info-label, body[data-route="legal_bank_account_show"] .info-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

body[data-route="app_bank_account_show"] .info-value, body[data-route="bank_account_show"] .info-value, body[data-route="legal_bank_account_show"] .info-value {
    font-weight: 500;
    margin-bottom: 0;
}

body[data-route="app_bank_account_show"] .account-balance, body[data-route="bank_account_show"] .account-balance, body[data-route="legal_bank_account_show"] .account-balance {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0d6efd;
    margin-top: 0.25rem;
}

/* Template: bank_account/new.html.twig */
body[data-route="app_bank_account_new"] .bg-light-info, body[data-route="bank_account_new"] .bg-light-info, body[data-route="legal_bank_account_new"] .bg-light-info {
    background-color: #e7f3ff !important;
}

body[data-route="app_bank_account_new"] .form-section-header, body[data-route="bank_account_new"] .form-section-header, body[data-route="legal_bank_account_new"] .form-section-header {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
}

body[data-route="app_bank_account_new"] #loan-fields, body[data-route="bank_account_new"] #loan-fields, body[data-route="legal_bank_account_new"] #loan-fields {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

body[data-route="app_bank_account_new"] .form-control-color, body[data-route="bank_account_new"] .form-control-color, body[data-route="legal_bank_account_new"] .form-control-color {
    padding: 2px;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

body[data-route="app_bank_account_new"] .form-control-color:hover, body[data-route="bank_account_new"] .form-control-color:hover, body[data-route="legal_bank_account_new"] .form-control-color:hover {
    border-color: #86b7fe;
}

body[data-route="app_bank_account_new"] .form-control-color:focus, body[data-route="bank_account_new"] .form-control-color:focus, body[data-route="legal_bank_account_new"] .form-control-color:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body[data-route="app_bank_account_new"] #color-preview, body[data-route="bank_account_new"] #color-preview, body[data-route="legal_bank_account_new"] #color-preview {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Template: financial_management/dashboard.html.twig */
body[data-route="financial_management_dashboard"] .health-score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body[data-route="financial_management_dashboard"] .health-score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

body[data-route="financial_management_dashboard"] .score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

body[data-route="financial_management_dashboard"] .score-circle.excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
}

body[data-route="financial_management_dashboard"] .score-circle.good {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    box-shadow: 0 0 30px rgba(23, 162, 184, 0.3);
}

body[data-route="financial_management_dashboard"] .score-circle.average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
}

body[data-route="financial_management_dashboard"] .score-circle.poor {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.3);
}

body[data-route="financial_management_dashboard"] .metric-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid;
}

body[data-route="financial_management_dashboard"] .metric-card:hover {
    transform: translateY(-2px);
}

body[data-route="financial_management_dashboard"] .metric-card.success {
    border-left-color: #28a745;
}

body[data-route="financial_management_dashboard"] .metric-card.warning {
    border-left-color: #ffc107;
}

body[data-route="financial_management_dashboard"] .metric-card.danger {
    border-left-color: #dc3545;
}

body[data-route="financial_management_dashboard"] .metric-card.info {
    border-left-color: #17a2b8;
}

body[data-route="financial_management_dashboard"] .trend-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

body[data-route="financial_management_dashboard"] .trend-indicator.up {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

body[data-route="financial_management_dashboard"] .trend-indicator.down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

body[data-route="financial_management_dashboard"] .trend-indicator.neutral {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

body[data-route="financial_management_dashboard"] .cash-flow-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
}

body[data-route="financial_management_dashboard"] .debt-payoff-card {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
}

@keyframes pulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

/* Template: life_insurance/index.html.twig */
body[data-route="legal_life_insurance_index"] .hover-shadow, body[data-route="life_insurance_index"] .hover-shadow {
    transition: all 0.3s ease;
}

body[data-route="legal_life_insurance_index"] .hover-shadow:hover, body[data-route="life_insurance_index"] .hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

body[data-route="crypto_index"] .crypto-card, body[data-route="legal_crypto_index"] .crypto-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
    height: 100%;
}

body[data-route="crypto_index"] .crypto-card::before, body[data-route="legal_crypto_index"] .crypto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

body[data-route="crypto_index"] .crypto-card.border-warning, body[data-route="legal_crypto_index"] .crypto-card.border-warning {
    border: 1px solid #fbbf24;
}

body[data-route="crypto_index"] .crypto-card.border-warning::before, body[data-route="legal_crypto_index"] .crypto-card.border-warning::before {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

body[data-route="crypto_index"] .crypto-card:hover, body[data-route="legal_crypto_index"] .crypto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

body[data-route="crypto_index"] .crypto-card .card-body, body[data-route="legal_crypto_index"] .crypto-card .card-body {
    padding: 1.5rem;
}

body[data-route="crypto_index"] .crypto-symbol, body[data-route="legal_crypto_index"] .crypto-symbol {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

body[data-route="crypto_index"] .crypto-name, body[data-route="legal_crypto_index"] .crypto-name {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.25rem;
}

body[data-route="crypto_index"] .price-display, body[data-route="legal_crypto_index"] .price-display {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0f172a;
    line-height: 1.2;
}

body[data-route="crypto_index"] .profit-loss, body[data-route="legal_crypto_index"] .profit-loss {
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

body[data-route="crypto_index"] .profit-loss.positive, body[data-route="legal_crypto_index"] .profit-loss.positive {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

body[data-route="crypto_index"] .profit-loss.negative, body[data-route="legal_crypto_index"] .profit-loss.negative {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

body[data-route="crypto_index"] .crypto-icon, body[data-route="legal_crypto_index"] .crypto-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
    position: relative;
    overflow: hidden;
}

body[data-route="crypto_index"] .crypto-icon::before, body[data-route="legal_crypto_index"] .crypto-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}

body[data-route="crypto_index"] .crypto-icon.bitcoin, body[data-route="legal_crypto_index"] .crypto-icon.bitcoin {
    background: linear-gradient(135deg, #f7931a, #ff9933);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.25);
}

body[data-route="crypto_index"] .crypto-icon.ethereum, body[data-route="legal_crypto_index"] .crypto-icon.ethereum {
    background: linear-gradient(135deg, #627eea, #8a9ff5);
    box-shadow: 0 4px 12px rgba(98, 126, 234, 0.25);
}

body[data-route="crypto_index"] .crypto-metric, body[data-route="legal_crypto_index"] .crypto-metric {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: background 0.2s ease;
}

body[data-route="crypto_index"] .crypto-metric:hover, body[data-route="legal_crypto_index"] .crypto-metric:hover {
    background: #f1f5f9;
}

body[data-route="crypto_index"] .crypto-metric-value, body[data-route="legal_crypto_index"] .crypto-metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

body[data-route="crypto_index"] .crypto-metric-label, body[data-route="legal_crypto_index"] .crypto-metric-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body[data-route="crypto_index"] .crypto-card .portfolio-badge, body[data-route="legal_crypto_index"] .crypto-card .portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

body[data-route="crypto_index"] .crypto-divider, body[data-route="legal_crypto_index"] .crypto-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 1rem 0;
}

body[data-route="crypto_index"] .stat-card-crypto, body[data-route="legal_crypto_index"] .stat-card-crypto {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

body[data-route="crypto_index"] .stat-card-crypto::before, body[data-route="legal_crypto_index"] .stat-card-crypto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

body[data-route="crypto_index"] .stat-card-crypto.primary::before, body[data-route="legal_crypto_index"] .stat-card-crypto.primary::before {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

body[data-route="crypto_index"] .stat-card-crypto.success::before, body[data-route="legal_crypto_index"] .stat-card-crypto.success::before {
    background: linear-gradient(135deg, #059669, #34d399);
}

body[data-route="crypto_index"] .stat-card-crypto.danger::before, body[data-route="legal_crypto_index"] .stat-card-crypto.danger::before {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

body[data-route="crypto_index"] .stat-card-crypto:hover, body[data-route="legal_crypto_index"] .stat-card-crypto:hover {
    transform: translateY(-2px);
}

body[data-route="crypto_index"] .stat-icon, body[data-route="legal_crypto_index"] .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

body[data-route="crypto_index"] .stat-icon.primary, body[data-route="legal_crypto_index"] .stat-icon.primary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
}

body[data-route="crypto_index"] .stat-icon.success, body[data-route="legal_crypto_index"] .stat-icon.success {
    background: linear-gradient(135deg, #059669, #34d399);
    color: white;
}

body[data-route="crypto_index"] .stat-icon.danger, body[data-route="legal_crypto_index"] .stat-icon.danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

body[data-route="crypto_index"] .badge-crypto, body[data-route="legal_crypto_index"] .badge-crypto {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

body[data-route="crypto_index"] .empty-state, body[data-route="legal_crypto_index"] .empty-state {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body[data-route="crypto_index"] .empty-state-icon, body[data-route="legal_crypto_index"] .empty-state-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

body[data-route="crypto_index"] .empty-state-icon i, body[data-route="legal_crypto_index"] .empty-state-icon i {
    opacity: 0.5;
}

body[data-route="crypto_index"] .action-buttons .btn, body[data-route="legal_crypto_index"] .action-buttons .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

body[data-route="crypto_index"] .action-buttons .btn:hover, body[data-route="legal_crypto_index"] .action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body[data-route="crypto_index"] .crypto-card .btn-primary, body[data-route="legal_crypto_index"] .crypto-card .btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

body[data-route="crypto_index"] .crypto-card .btn-primary:hover, body[data-route="legal_crypto_index"] .crypto-card .btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
}

body[data-route="crypto_index"] .spinner-border-sm, body[data-route="legal_crypto_index"] .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

@keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

body[data-route="crypto_index"] .syncing, body[data-route="legal_crypto_index"] .syncing {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Template: crypto/import_csv.html.twig */
body[data-route="crypto_import"] .import-header, body[data-route="legal_crypto_import"] .import-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body[data-route="crypto_import"] .csv-example, body[data-route="legal_crypto_import"] .csv-example {
    background: #f8fafc;
    border-left: 4px solid #1d4ed8;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

body[data-route="crypto_import"] .file-upload-area, body[data-route="legal_crypto_import"] .file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

body[data-route="crypto_import"] .file-upload-area:hover, body[data-route="legal_crypto_import"] .file-upload-area:hover {
    border-color: #1d4ed8;
    background: #f8fafc;
}

body[data-route="crypto_import"] .file-upload-area.dragover, body[data-route="legal_crypto_import"] .file-upload-area.dragover {
    border-color: #1d4ed8;
    background: #eff6ff;
}

body[data-route="crypto_import"] .icon-upload, body[data-route="legal_crypto_import"] .icon-upload {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* Template: wealth/amortizations.html.twig */
body[data-route="legal_wealth_amortizations"] .patrimoine-header, body[data-route="wealth_amortizations"] .patrimoine-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

body[data-route="legal_wealth_amortizations"] .patrimoine-header h1, body[data-route="wealth_amortizations"] .patrimoine-header h1 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

body[data-route="legal_wealth_amortizations"] .patrimoine-header p, body[data-route="wealth_amortizations"] .patrimoine-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-route="legal_wealth_amortizations"] .patrimoine-card, body[data-route="wealth_amortizations"] .patrimoine-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body[data-route="legal_wealth_amortizations"] .patrimoine-card:hover, body[data-route="wealth_amortizations"] .patrimoine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

/* Template: wealth/market_orders.html.twig */
body[data-route="legal_wealth_market_orders"] .patrimoine-header, body[data-route="legal_wealth_market_orders_by_state"] .patrimoine-header, body[data-route="wealth_market_orders"] .patrimoine-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

body[data-route="legal_wealth_market_orders"] .patrimoine-header h1, body[data-route="legal_wealth_market_orders_by_state"] .patrimoine-header h1, body[data-route="wealth_market_orders"] .patrimoine-header h1 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

body[data-route="legal_wealth_market_orders"] .patrimoine-header p, body[data-route="legal_wealth_market_orders_by_state"] .patrimoine-header p, body[data-route="wealth_market_orders"] .patrimoine-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-route="legal_wealth_market_orders"] .patrimoine-card, body[data-route="legal_wealth_market_orders_by_state"] .patrimoine-card, body[data-route="wealth_market_orders"] .patrimoine-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body[data-route="legal_wealth_market_orders"] .patrimoine-card:hover, body[data-route="legal_wealth_market_orders_by_state"] .patrimoine-card:hover, body[data-route="wealth_market_orders"] .patrimoine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

/* Template: wealth/investments.html.twig */
body[data-route="legal_wealth_account_investments"] .patrimoine-header, body[data-route="legal_wealth_investments"] .patrimoine-header, body[data-route="wealth_investments"] .patrimoine-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

body[data-route="legal_wealth_account_investments"] .patrimoine-header h1, body[data-route="legal_wealth_investments"] .patrimoine-header h1, body[data-route="wealth_investments"] .patrimoine-header h1 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

body[data-route="legal_wealth_account_investments"] .patrimoine-header p, body[data-route="legal_wealth_investments"] .patrimoine-header p, body[data-route="wealth_investments"] .patrimoine-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-route="legal_wealth_account_investments"] .patrimoine-card, body[data-route="legal_wealth_investments"] .patrimoine-card, body[data-route="wealth_investments"] .patrimoine-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body[data-route="legal_wealth_account_investments"] .patrimoine-card:hover, body[data-route="legal_wealth_investments"] .patrimoine-card:hover, body[data-route="wealth_investments"] .patrimoine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

/* Template: wealth/pockets.html.twig */
body[data-route="legal_wealth_pockets"] .patrimoine-header, body[data-route="legal_wealth_pockets_by_condition"] .patrimoine-header, body[data-route="wealth_pockets"] .patrimoine-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

body[data-route="legal_wealth_pockets"] .patrimoine-header h1, body[data-route="legal_wealth_pockets_by_condition"] .patrimoine-header h1, body[data-route="wealth_pockets"] .patrimoine-header h1 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

body[data-route="legal_wealth_pockets"] .patrimoine-header p, body[data-route="legal_wealth_pockets_by_condition"] .patrimoine-header p, body[data-route="wealth_pockets"] .patrimoine-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-route="legal_wealth_pockets"] .patrimoine-card, body[data-route="legal_wealth_pockets_by_condition"] .patrimoine-card, body[data-route="wealth_pockets"] .patrimoine-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body[data-route="legal_wealth_pockets"] .patrimoine-card:hover, body[data-route="legal_wealth_pockets_by_condition"] .patrimoine-card:hover, body[data-route="wealth_pockets"] .patrimoine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

/* Template: categorization_rules/index.html.twig */
body[data-route="categorization_rules_index"] .rules-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body[data-route="categorization_rules_index"] .rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

body[data-route="categorization_rules_index"] .rules-header h1 {
    color: #2c3e50;
    margin: 0;
}

body[data-route="categorization_rules_index"] .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-route="categorization_rules_index"] .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body[data-route="categorization_rules_index"] .btn-primary {
    background: #3498db;
    color: white;
}

body[data-route="categorization_rules_index"] .btn-primary:hover {
    background: #2980b9;
}

body[data-route="categorization_rules_index"] .btn-success {
    background: #27ae60;
    color: white;
}

body[data-route="categorization_rules_index"] .btn-success:hover {
    background: #219a52;
}

body[data-route="categorization_rules_index"] .btn-warning {
    background: #f39c12;
    color: white;
}

body[data-route="categorization_rules_index"] .btn-warning:hover {
    background: #e67e22;
}

body[data-route="categorization_rules_index"] .btn-danger {
    background: #e74c3c;
    color: white;
}

body[data-route="categorization_rules_index"] .btn-danger:hover {
    background: #c0392b;
}

body[data-route="categorization_rules_index"] .btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

body[data-route="categorization_rules_index"] .btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

body[data-route="categorization_rules_index"] .btn-outline-primary:hover {
    background: #3498db;
    color: white;
}

body[data-route="categorization_rules_index"] .btn-outline-danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

body[data-route="categorization_rules_index"] .btn-outline-danger:hover {
    background: #e74c3c;
    color: white;
}

body[data-route="categorization_rules_index"] .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

body[data-route="categorization_rules_index"] .rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

body[data-route="categorization_rules_index"] .rule-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-route="categorization_rules_index"] .rule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

body[data-route="categorization_rules_index"] .rule-card.complex {
    border-left-color: #9b59b6;
}

body[data-route="categorization_rules_index"] .rule-card.auto-generated {
    border-left-color: #95a5a6;
    background: #f8f9fa;
}

body[data-route="categorization_rules_index"] .rule-card.inactive {
    opacity: 0.6;
    border-left-color: #e74c3c;
}

body[data-route="categorization_rules_index"] .rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

body[data-route="categorization_rules_index"] .rule-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

body[data-route="categorization_rules_index"] .rule-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

body[data-route="categorization_rules_index"] .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

body[data-route="categorization_rules_index"] .badge-complex {
    background: #9b59b6;
    color: white;
}

body[data-route="categorization_rules_index"] .badge-auto {
    background: #95a5a6;
    color: white;
}

body[data-route="categorization_rules_index"] .badge-inactive {
    background: #e74c3c;
    color: white;
}

body[data-route="categorization_rules_index"] .badge-confidence {
    background: #f39c12;
    color: white;
}

body[data-route="categorization_rules_index"] .rule-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
}

body[data-route="categorization_rules_index"] .rule-details {
    margin-bottom: 15px;
}

body[data-route="categorization_rules_index"] .rule-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

body[data-route="categorization_rules_index"] .rule-detail-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

body[data-route="categorization_rules_index"] .rule-detail-value {
    color: #2c3e50;
    font-weight: 500;
}

body[data-route="categorization_rules_index"] .rule-category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

body[data-route="categorization_rules_index"] .category-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ecf0f1;
}

body[data-route="categorization_rules_index"] .category-name {
    color: #2c3e50;
    font-weight: 500;
}

body[data-route="categorization_rules_index"] .rule-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

body[data-route="categorization_rules_index"] .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

body[data-route="categorization_rules_index"] .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-route="categorization_rules_index"] .modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

body[data-route="categorization_rules_index"] .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

body[data-route="categorization_rules_index"] .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

body[data-route="categorization_rules_index"] .close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #7f8c8d;
}

body[data-route="categorization_rules_index"] .close:hover {
    color: #e74c3c;
}

body[data-route="categorization_rules_index"] .form-group {
    margin-bottom: 20px;
}

body[data-route="categorization_rules_index"] .form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

body[data-route="categorization_rules_index"] .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

body[data-route="categorization_rules_index"] .form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

body[data-route="categorization_rules_index"] .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

body[data-route="categorization_rules_index"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

body[data-route="categorization_rules_index"] .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

body[data-route="categorization_rules_index"] .form-check-input {
    margin: 0;
}

body[data-route="categorization_rules_index"] .rule-type-toggle {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

body[data-route="categorization_rules_index"] .rule-type-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

body[data-route="categorization_rules_index"] .rule-type-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

body[data-route="categorization_rules_index"] .condition-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

body[data-route="categorization_rules_index"] .condition-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

body[data-route="categorization_rules_index"] .condition-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-route="categorization_rules_index"] .logical-operator-section {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

body[data-route="categorization_rules_index"] .logical-operator-section label {
    font-weight: 600;
    color: #1976d2;
}

body[data-route="categorization_rules_index"] .rule-group {
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
}

body[data-route="categorization_rules_index"] .rule-group.root-group {
    border-color: #2c3e50;
    background: #ffffff;
}

body[data-route="categorization_rules_index"] .rule-group.nested-group {
    border-color: #9b59b6;
    margin-left: 20px;
    background: #f3e5f5;
}

body[data-route="categorization_rules_index"] .group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

body[data-route="categorization_rules_index"] .operator-label {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

body[data-route="categorization_rules_index"] .group-operator {
    width: auto;
    min-width: 250px;
}

body[data-route="categorization_rules_index"] .group-actions {
    display: flex;
    gap: 8px;
}

body[data-route="categorization_rules_index"] .group-components {
    min-height: 50px;
}

body[data-route="categorization_rules_index"] .rule-condition {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
}

body[data-route="categorization_rules_index"] .condition-fields {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr auto;
    gap: 10px;
    align-items: center;
}

body[data-route="categorization_rules_index"] .advanced-rule-toggle {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

body[data-route="categorization_rules_index"] .advanced-rule-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2e7d32;
    cursor: pointer;
}

body[data-route="categorization_rules_index"] .advanced-rule-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

body[data-route="categorization_rules_index"] .test-results {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

body[data-route="categorization_rules_index"] .test-results h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

body[data-route="categorization_rules_index"] .test-transactions {
    max-height: 200px;
    overflow-y: auto;
}

body[data-route="categorization_rules_index"] .test-transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

body[data-route="categorization_rules_index"] .test-transaction:last-child {
    border-bottom: none;
}

body[data-route="categorization_rules_index"] .transaction-info {
    flex: 1;
}

body[data-route="categorization_rules_index"] .transaction-description {
    font-weight: 500;
    color: #2c3e50;
}

body[data-route="categorization_rules_index"] .transaction-details {
    font-size: 12px;
    color: #7f8c8d;
}

body[data-route="categorization_rules_index"] .loading {
    display: none;
    text-align: center;
    padding: 20px;
}

body[data-route="categorization_rules_index"] .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

body[data-route="categorization_rules_index"] .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid;
}

body[data-route="categorization_rules_index"] .alert-success {
    background: #d4edda;
    border-color: #27ae60;
    color: #155724;
}

body[data-route="categorization_rules_index"] .alert-danger {
    background: #f8d7da;
    border-color: #e74c3c;
    color: #721c24;
}

body[data-route="categorization_rules_index"] .alert-info {
    background: #d1ecf1;
    border-color: #3498db;
    color: #0c5460;
}

@media (max-width: 768px) {
    body[data-route="categorization_rules_index"] .rules-grid {
        grid-template-columns: 1fr;
    }

    body[data-route="categorization_rules_index"] .rules-header {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-route="categorization_rules_index"] .btn-group {
        justify-content: center;
    }

    body[data-route="categorization_rules_index"] .form-row {
        grid-template-columns: 1fr;
    }

    body[data-route="categorization_rules_index"] .condition-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body[data-route="categorization_rules_index"] .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Template: transaction/index.html.twig */
body[data-route="legal_transaction_index"] .date-preset.active, body[data-route="transaction_index"] .date-preset.active {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

body[data-route="legal_transaction_index"] .tab-content, body[data-route="transaction_index"] .tab-content {
    position: relative;
    z-index: 1;
}

body[data-route="legal_transaction_index"] .period-selector, body[data-route="transaction_index"] .period-selector {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body[data-route="legal_transaction_index"] .period-display, body[data-route="transaction_index"] .period-display {
    flex: 1;
    font-weight: 500;
    font-size: 1.1rem;
}

body[data-route="legal_transaction_index"] .transactions-container, body[data-route="transaction_index"] .transactions-container {
    margin-top: 1rem;
}

body[data-route="legal_transaction_index"] .transaction-item, body[data-route="transaction_index"] .transaction-item, body[data-route="legal_transaction_index"] .date-group, body[data-route="transaction_index"] .date-group, body[data-route="legal_transaction_index"] .date-group-items, body[data-route="transaction_index"] .date-group-items {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body[data-route="legal_transaction_index"] .modal-backdrop, body[data-route="transaction_index"] .modal-backdrop {
    z-index: 1040 !important;
}

body[data-route="legal_transaction_index"] .modal, body[data-route="transaction_index"] .modal {
    z-index: 1050 !important;
}

body[data-route="legal_transaction_index"] #transactionTabsContent, body[data-route="transaction_index"] #transactionTabsContent {
    position: relative;
    z-index: 1;
}

body[data-route="legal_transaction_index"] .date-group, body[data-route="transaction_index"] .date-group {
    margin-bottom: 1rem;
    min-height: 50px;
    background: white;
}

body[data-route="legal_transaction_index"] .date-group-header, body[data-route="transaction_index"] .date-group-header {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

body[data-route="legal_transaction_index"] .transaction-item, body[data-route="transaction_index"] .transaction-item {
    min-height: 60px;
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0.75rem;
}

body[data-route="legal_transaction_index"] .transaction-main, body[data-route="transaction_index"] .transaction-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

body[data-route="legal_transaction_index"] .transaction-icon, body[data-route="transaction_index"] .transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

body[data-route="legal_transaction_index"] .transaction-content, body[data-route="transaction_index"] .transaction-content {
    flex: 1;
    min-width: 0;
}

body[data-route="legal_transaction_index"] .transaction-amount, body[data-route="transaction_index"] .transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

body[data-route="legal_transaction_index"] .transaction-amount.positive, body[data-route="transaction_index"] .transaction-amount.positive {
    color: #28a745;
}

body[data-route="legal_transaction_index"] .transaction-amount.negative, body[data-route="transaction_index"] .transaction-amount.negative {
    color: #dc3545;
}

/* Template: patrimoine/snapshots.html.twig */
body[data-route="legal_patrimoine_snapshots"] .snapshots-header, body[data-route="patrimoine_snapshots_index"] .snapshots-header {
    background: linear-gradient(135deg, #0d6efd, #2563eb);
    border-radius: 12px;
    padding: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}

body[data-route="legal_patrimoine_snapshots"] .snapshots-header .btn-outline-light.active, body[data-route="patrimoine_snapshots_index"] .snapshots-header .btn-outline-light.active, body[data-route="legal_patrimoine_snapshots"] .snapshots-header .btn-outline-light:hover, body[data-route="patrimoine_snapshots_index"] .snapshots-header .btn-outline-light:hover {
    background: #fff;
    color: #0d6efd;
}

body[data-route="legal_patrimoine_snapshots"] .summary-card, body[data-route="patrimoine_snapshots_index"] .summary-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body[data-route="legal_patrimoine_snapshots"] .summary-card .card-body, body[data-route="patrimoine_snapshots_index"] .summary-card .card-body {
    padding: 1.5rem;
}

body[data-route="legal_patrimoine_snapshots"] .summary-card h6, body[data-route="patrimoine_snapshots_index"] .summary-card h6 {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

body[data-route="legal_patrimoine_snapshots"] .summary-card h3, body[data-route="patrimoine_snapshots_index"] .summary-card h3 {
    font-weight: 700;
    color: #0f172a;
}

body[data-route="legal_patrimoine_snapshots"] .snapshots-table td, body[data-route="patrimoine_snapshots_index"] .snapshots-table td, body[data-route="legal_patrimoine_snapshots"] .snapshots-table th, body[data-route="patrimoine_snapshots_index"] .snapshots-table th {
    vertical-align: middle;
}

body[data-route="legal_patrimoine_snapshots"] .snapshots-table tr:hover, body[data-route="patrimoine_snapshots_index"] .snapshots-table tr:hover {
    background: #f8fafc;
}

/* Template: patrimoine/index.html.twig */
body[data-route="legal_patrimoine_index"] .patrimoine-header, body[data-route="patrimoine_index"] .patrimoine-header {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header::before, body[data-route="patrimoine_index"] .patrimoine-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header::after, body[data-route="patrimoine_index"] .patrimoine-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header h1, body[data-route="patrimoine_index"] .patrimoine-header h1 {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header p, body[data-route="patrimoine_index"] .patrimoine-header p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header .entity-selector, body[data-route="patrimoine_index"] .patrimoine-header .entity-selector {
    position: relative;
    z-index: 1;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header .btn-outline-primary, body[data-route="patrimoine_index"] .patrimoine-header .btn-outline-primary {
    border-color: white;
    color: white;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header .btn-outline-primary:hover, body[data-route="patrimoine_index"] .patrimoine-header .btn-outline-primary:hover, body[data-route="legal_patrimoine_index"] .patrimoine-header .btn-outline-primary.active, body[data-route="patrimoine_index"] .patrimoine-header .btn-outline-primary.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header .form-label, body[data-route="patrimoine_index"] .patrimoine-header .form-label {
    color: white !important;
    font-weight: 600;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header .form-select, body[data-route="patrimoine_index"] .patrimoine-header .form-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
}

body[data-route="legal_patrimoine_index"] .patrimoine-header .form-select:focus, body[data-route="patrimoine_index"] .patrimoine-header .form-select:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

body[data-route="legal_patrimoine_index"] .patrimoine-header .form-select option, body[data-route="patrimoine_index"] .patrimoine-header .form-select option {
    color: var(--dark-color);
    background: white;
}

body[data-route="legal_patrimoine_index"] .stat-card, body[data-route="patrimoine_index"] .stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

body[data-route="legal_patrimoine_index"] .stat-card:hover, body[data-route="patrimoine_index"] .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

body[data-route="legal_patrimoine_index"] .stat-card .card-body, body[data-route="patrimoine_index"] .stat-card .card-body {
    padding: 1.25rem;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon, body[data-route="patrimoine_index"] .stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 0.875rem;
    color: white !important;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon i,
body[data-route="legal_patrimoine_index"] .stat-card .stat-icon svg,
body[data-route="patrimoine_index"] .stat-card .stat-icon i,
body[data-route="patrimoine_index"] .stat-card .stat-icon svg {
    color: white !important;
    fill: white !important;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.primary, body[data-route="patrimoine_index"] .stat-card .stat-icon.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.primary i,
body[data-route="patrimoine_index"] .stat-card .stat-icon.primary i {
    color: white !important;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.success, body[data-route="patrimoine_index"] .stat-card .stat-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.success i,
body[data-route="patrimoine_index"] .stat-card .stat-icon.success i {
    color: white !important;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.danger, body[data-route="patrimoine_index"] .stat-card .stat-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.danger i,
body[data-route="patrimoine_index"] .stat-card .stat-icon.danger i {
    color: white !important;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.warning, body[data-route="patrimoine_index"] .stat-card .stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.warning i,
body[data-route="patrimoine_index"] .stat-card .stat-icon.warning i {
    color: white !important;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.info, body[data-route="patrimoine_index"] .stat-card .stat-icon.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-icon.info i,
body[data-route="patrimoine_index"] .stat-card .stat-icon.info i {
    color: white !important;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-content, body[data-route="patrimoine_index"] .stat-card .stat-content {
    flex-grow: 1;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-label, body[data-route="patrimoine_index"] .stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-value, body[data-route="patrimoine_index"] .stat-card .stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

body[data-route="legal_patrimoine_index"] .stat-card .stat-subtitle, body[data-route="patrimoine_index"] .stat-card .stat-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

body[data-route="legal_patrimoine_index"] .stat-card.success .stat-value, body[data-route="patrimoine_index"] .stat-card.success .stat-value {
    color: var(--success-color);
}

body[data-route="legal_patrimoine_index"] .stat-card.danger .stat-value, body[data-route="patrimoine_index"] .stat-card.danger .stat-value {
    color: var(--danger-color);
}

body[data-route="legal_patrimoine_index"] .patrimoine-card, body[data-route="patrimoine_index"] .patrimoine-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

body[data-route="legal_patrimoine_index"] .patrimoine-card:hover, body[data-route="patrimoine_index"] .patrimoine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

body[data-route="legal_patrimoine_index"] .patrimoine-card .card-header, body[data-route="patrimoine_index"] .patrimoine-card .card-header {
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

body[data-route="legal_patrimoine_index"] .entity-selector select, body[data-route="patrimoine_index"] .entity-selector select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-secondary);
}

body[data-route="legal_patrimoine_index"] .entity-selector select:focus, body[data-route="patrimoine_index"] .entity-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.25);
}

body[data-route="legal_patrimoine_index"] .entity-selector select option, body[data-route="patrimoine_index"] .entity-selector select option {
    color: var(--text-secondary);
    background: white;
}

body[data-route="legal_patrimoine_index"] .asset-item, body[data-route="patrimoine_index"] .asset-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

body[data-route="legal_patrimoine_index"] .asset-item:hover, body[data-route="patrimoine_index"] .asset-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px -2px rgba(29, 78, 216, 0.15);
    transform: translateY(-2px);
}

body[data-route="legal_patrimoine_index"] .profit-loss, body[data-route="patrimoine_index"] .profit-loss {
    font-weight: 600;
}

body[data-route="legal_patrimoine_index"] .profit-loss.positive, body[data-route="patrimoine_index"] .profit-loss.positive {
    color: var(--success-color);
}

body[data-route="legal_patrimoine_index"] .profit-loss.negative, body[data-route="patrimoine_index"] .profit-loss.negative {
    color: var(--danger-color);
}

body[data-route="legal_patrimoine_index"] .chart-container, body[data-route="patrimoine_index"] .chart-container {
    position: relative;
    height: 300px;
}

body[data-route="legal_patrimoine_index"] .legend-item, body[data-route="patrimoine_index"] .legend-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

body[data-route="legal_patrimoine_index"] .legend-item:hover, body[data-route="patrimoine_index"] .legend-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px -2px rgba(29, 78, 216, 0.15);
    transform: translateY(-2px);
}

body[data-route="legal_patrimoine_index"] .legend-color, body[data-route="patrimoine_index"] .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

body[data-route="legal_patrimoine_index"] .legend-item .category-header, body[data-route="patrimoine_index"] .legend-item .category-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.625rem;
}

body[data-route="legal_patrimoine_index"] .legend-item .category-name, body[data-route="patrimoine_index"] .legend-item .category-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

body[data-route="legal_patrimoine_index"] .legend-item .category-value, body[data-route="patrimoine_index"] .legend-item .category-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

body[data-route="legal_patrimoine_index"] .legend-item .category-percentage, body[data-route="patrimoine_index"] .legend-item .category-percentage {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.625rem;
}

body[data-route="legal_patrimoine_index"] .legend-item .percentage-bar, body[data-route="patrimoine_index"] .legend-item .percentage-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

body[data-route="legal_patrimoine_index"] .legend-item .percentage-fill, body[data-route="patrimoine_index"] .legend-item .percentage-fill {
    height: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: width 0.6s ease;
}

body[data-route="legal_patrimoine_index"] .loading-spinner, body[data-route="patrimoine_index"] .loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

body[data-route="legal_patrimoine_index"] .skeleton, body[data-route="patrimoine_index"] .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

body[data-route="legal_patrimoine_index"] .skeleton-item, body[data-route="patrimoine_index"] .skeleton-item {
    opacity: 0.7;
    animation: fadeInSkeleton 0.3s ease-in-out forwards;
}

@keyframes fadeInSkeleton {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 0.7; transform: translateY(0); }
        }

body[data-route="legal_patrimoine_index"] .skeleton-title, body[data-route="patrimoine_index"] .skeleton-title {
    background: linear-gradient(90deg, #e8e8e8 25%, #d0d0d0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

body[data-route="legal_patrimoine_index"] .skeleton-text, body[data-route="patrimoine_index"] .skeleton-text {
    background: linear-gradient(90deg, #f5f5f5 25%, #e5e5e5 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

body[data-route="legal_patrimoine_index"] .skeleton-value, body[data-route="patrimoine_index"] .skeleton-value {
    background: linear-gradient(90deg, #ebebeb 25%, #d8d8d8 50%, #ebebeb 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

/* Template: patrimoine/allocation.html.twig */
body[data-route="legal_patrimoine_allocation"] .allocation-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid;
}

body[data-route="legal_patrimoine_allocation"] .allocation-card:hover {
    transform: translateY(-2px);
}

body[data-route="legal_patrimoine_allocation"] .allocation-card.current {
    border-left-color: var(--primary-color);
}

body[data-route="legal_patrimoine_allocation"] .allocation-card.recommended {
    border-left-color: var(--success-color);
}

body[data-route="legal_patrimoine_allocation"] .allocation-card.difference {
    border-left-color: var(--warning-color);
}

body[data-route="legal_patrimoine_allocation"] .asset-class {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

body[data-route="legal_patrimoine_allocation"] .asset-class:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.1);
    transform: translateY(-2px);
}

body[data-route="legal_patrimoine_allocation"] .progress-ring {
    width: 120px;
    height: 120px;
}

body[data-route="legal_patrimoine_allocation"] .progress-ring circle {
    fill: transparent;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

body[data-route="legal_patrimoine_allocation"] .progress-ring .progress-ring-circle {
    stroke: #4ade80;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.35s;
}

body[data-route="legal_patrimoine_allocation"] .progress-ring .progress-ring-background {
    stroke: rgba(0,0,0,0.1);
}

body[data-route="legal_patrimoine_allocation"] .recommendation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

body[data-route="legal_patrimoine_allocation"] .risk-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

body[data-route="legal_patrimoine_allocation"] .risk-indicator.low {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

body[data-route="legal_patrimoine_allocation"] .risk-indicator.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

body[data-route="legal_patrimoine_allocation"] .risk-indicator.high {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Template: powens/user_wizard_connect.html.twig */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.wizard-step {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wizard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.connection-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.connection-info h3 {
    color: var(--info-color);
    margin-bottom: 1rem;
}

.webview-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.webview-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-wizard {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0.5rem;
}

.btn-wizard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-wizard {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border: none;
    color: white;
}

.btn-success-wizard {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    border: none;
    color: white;
}

.btn-secondary-wizard {
    background: linear-gradient(135deg, var(--secondary-color), #64748b);
    border: none;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.loading-spinner {
    display: none;
    margin: 1rem auto;
}

.loading-spinner.show {
    display: block;
}

.connection-types {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.connection-type-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.connection-type-btn:hover,
        .connection-type-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.security-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
}

.security-notice h5 {
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.security-notice p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Template: powens/connection_transactions.html.twig */
.transactions-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.filters-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.transactions-table {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.transaction-row {
    display: grid;
    grid-template-columns: 120px 1fr 200px 150px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.transaction-row:hover {
    background: #f8fafc;
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-date {
    font-weight: 600;
    color: #64748b;
}

.transaction-description {
    font-weight: 500;
    color: #1e293b;
}

.transaction-account {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.transaction-amount {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: right;
}

.transaction-amount.credit {
    color: #10b981;
}

.transaction-amount.debit {
    color: #ef4444;
}

.transaction-type {
    text-align: center;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.type-badge.credit {
    background: #dcfce7;
    color: #166534;
}

.type-badge.debit {
    background: #fee2e2;
    color: #991b1b;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.table-header {
    display: grid;
    grid-template-columns: 120px 1fr 200px 150px;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

@media (max-width: 768px) {
    .transaction-row,
                .table-header {
        grid-template-columns: 1fr;
    }

    .transaction-amount {
        text-align: left;
    }

    .transaction-type {
        text-align: left;
    }
}

/* Template: powens/user_wizard.html.twig */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.wizard-step {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wizard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.status-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.status-card.configured {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: var(--success-color);
}

.status-card.not-configured {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: var(--warning-color);
}

.status-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.status-icon.configured {
    color: var(--success-color);
}

.status-icon.not-configured {
    color: var(--warning-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-wizard {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-wizard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-wizard {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border: none;
    color: white;
}

.btn-success-wizard {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    border: none;
    color: white;
}

.btn-warning-wizard {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    border: none;
    color: white;
}

.info-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-section ul {
    margin-bottom: 0;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.connections-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.connections-list h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.connection-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    cursor: pointer;
}

.connection-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

a:has(.connection-card) {
    color: inherit;
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.connection-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    border-radius: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.connection-icon img.bank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.connection-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.connection-info small {
    color: #64748b;
    font-size: 0.85rem;
}

.connection-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.connection-status .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
}

.connection-status small {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .connection-card {
        margin-bottom: 1rem;
    }

    .connection-status {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Template: powens/user_wizard_complete.html.twig */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.wizard-step {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h1 {
    color: var(--success-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wizard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.success-card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-title {
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.next-steps {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.next-steps h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps ul {
    margin-bottom: 0;
}

.next-steps li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.next-steps li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 20px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-wizard {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-wizard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-wizard {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border: none;
    color: white;
}

.btn-success-wizard {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    border: none;
    color: white;
}

.btn-secondary-wizard {
    background: linear-gradient(135deg, var(--secondary-color), #64748b);
    border: none;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.celebration {
    animation: celebrate 2s ease-in-out;
}

@keyframes celebrate {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

/* Template: powens/connection_manage.html.twig */
.connection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.connection-header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.connection-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.connection-header .connection-meta {
    margin-top: 1rem;
    opacity: 0.9;
}

.connection-header .bank-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
}

.actions-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.actions-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.account-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.account-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.account-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.account-balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.account-balance.negative {
    color: var(--danger-color);
}

.account-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
    color: #1e293b;
}

.sync-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sync-status.synced {
    background: #dcfce7;
    color: #166534;
}

.sync-status.not-synced {
    background: #fef3c7;
    color: #92400e;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.state-badge.valid {
    background: #dcfce7;
    color: #166534;
}

.state-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.state-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Template: admin/market_prices/collectibles_wizard.html.twig */
body[data-route="admin_market_prices_collectibles_wizard"] .product-result-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

body[data-route="admin_market_prices_collectibles_wizard"] .product-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--bs-primary) !important;
}

body[data-route="admin_market_prices_collectibles_wizard"] .product-result-card:has(input:checked) {
    border-color: var(--bs-success) !important;
    background-color: rgba(25, 135, 84, 0.05);
}

/* Template: admin/market_prices/collectibles_bulk_link.html.twig */
body[data-route="admin_collectibles_bulk_link"] .hover-bg-light:hover {
    background-color: #f8f9fa;
}

/* Template: admin/crypto_exchange_rates/index.html.twig */
body[data-route="admin_crypto_exchange_rates_index"] .crypto-price-card {
    transition: transform 0.2s ease;
}

body[data-route="admin_crypto_exchange_rates_index"] .crypto-price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body[data-route="admin_crypto_exchange_rates_index"] .price-positive {
    color: #28a745;
}

body[data-route="admin_crypto_exchange_rates_index"] .price-negative {
    color: #dc3545;
}

body[data-route="admin_crypto_exchange_rates_index"] .price-stale {
    opacity: 0.6;
    background-color: #fff3cd;
}

/* Template: crypto/providers/edit.html.twig */
body[data-route="app_crypto_providers_edit"] .provider-type-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: rgba(13, 110, 253, 0.04);
}

body[data-route="app_crypto_providers_edit"] .provider-type-card .avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

body[data-route="app_crypto_providers_edit"] .provider-type-card.active {
    border-color: var(--bs-primary);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
}

/* Template: crypto/providers/index.html.twig */
body[data-route="app_crypto_providers_index"] .provider-card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--bs-border-color-translucent);
}

body[data-route="app_crypto_providers_index"] .provider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

body[data-route="app_crypto_providers_index"] .provider-meta {
    font-size: 0.85rem;
    color: var(--bs-secondary);
}

body[data-route="app_crypto_providers_index"] .sync-status.success {
    color: #198754;
}

body[data-route="app_crypto_providers_index"] .sync-status.error {
    color: #dc3545;
}

body[data-route="app_crypto_providers_index"] .archived-card {
    border-radius: 1rem;
    background: var(--bs-light);
}

body[data-route="app_crypto_providers_index"] .stat-card {
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color-translucent);
    background: var(--bs-body-bg);
}

/* Template: crypto/providers/new.html.twig */
body[data-route="app_crypto_providers_new"] .wizard-progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

body[data-route="app_crypto_providers_new"] .wizard-step-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: var(--bs-body-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-route="app_crypto_providers_new"] .wizard-step-card.active {
    border-color: var(--bs-primary);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.15);
}

body[data-route="app_crypto_providers_new"] .wizard-step-card.completed {
    border-color: var(--bs-success);
}

body[data-route="app_crypto_providers_new"] .wizard-step-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.75rem;
}

body[data-route="app_crypto_providers_new"] .provider-type-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

body[data-route="app_crypto_providers_new"] .provider-type-card.active {
    border-color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.06);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.12);
}

body[data-route="app_crypto_providers_new"] .wizard-actions {
    gap: 0.75rem;
}


/* Imported from css/api-styles.css */
/* Loading states */
.loading {
    position: relative;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error messages */
.error-message {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}

/* Dashboard specific styles */
#dashboard-stats {
    min-height: 200px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stat-value.positive {
    color: #059669;
}

.stat-value.negative {
    color: #dc2626;
}

/* Category statistics */
.category-stat {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 500;
}

.category-total {
    font-weight: bold;
}

.category-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    transition: width 0.3s ease;
}

/* Bank accounts - Ultra compact list design */
.bank-account-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease;
}

.bank-account-card:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.account-main-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.account-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-right: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.account-balance {
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
    white-space: nowrap;
}

.account-balance.positive {
    color: #059669;
}

.account-balance.negative {
    color: #dc2626;
}

.account-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.account-details span {
    white-space: nowrap;
}

.account-actions {
    display: flex;
    gap: 0.125rem;
    flex-shrink: 0;
}

.account-actions .btn {
    padding: 0.125rem 0.25rem;
    font-size: 0.625rem;
    line-height: 1;
    border-radius: 3px;
}

/* Bank accounts list layout */
#bank-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 768px) {
    .bank-account-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0.375rem;
    }

    .account-main-info {
        margin-bottom: 0.25rem;
    }

    .account-details {
        margin-bottom: 0.25rem;
        justify-content: space-between;
    }

    .account-actions {
        justify-content: flex-end;
    }

    .account-name {
        max-width: none;
    }
}

/* Transaction items */
.transaction-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.transaction-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.transaction-info {
    flex: 1;
}

.transaction-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-buttons {
    display: flex;
    gap: 0.5rem;
}

.transaction-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.transaction-description {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.transaction-date {
    margin: 0 0 0.25rem 0;
    color: #475569;
    font-size: 0.875rem;
}

.transaction-category {
    font-size: 0.875rem;
    font-weight: 500;
}

.transaction-amount {
    font-size: 1.125rem;
    font-weight: bold;
    text-align: right;
}

.transaction-amount.positive {
    color: #059669;
}

.transaction-amount.negative {
    color: #dc2626;
}

.transaction-amount.neutral {
    color: #475569;
}

.transaction-notes {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    color: #475569;
    font-size: 0.875rem;
}

/* Infinite loading specific styles */
#loading-trigger {
    margin: 1rem 0;
    min-height: 20px;
}

#loading-trigger .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Transaction bank account info */
.transaction-bank {
    font-size: 0.875rem;
    color: #475569;
    margin-left: 0.5rem;
}

/* Filter section styles */
.filter-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* Date preset buttons */
.date-preset {
    margin: 0.25rem;
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
}

.date-preset:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-preset.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Filter form styles */
.filter-form .form-control,
.filter-form .form-select {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease-in-out;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Filter button group */
.btn-group.flex-wrap {
    gap: 0.25rem;
}

/* Responsive filter layout */
@media (max-width: 768px) {
    .date-preset {
        margin: 0.125rem;
        font-size: 0.875rem;
    }

    .filter-form .col-md-2 {
        margin-bottom: 1rem;
    }
}

/* Stats cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    text-align: center;
}

.stat-card .fa-2x {
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stat-value.positive {
    color: #059669;
}

.stat-value.negative {
    color: #dc2626;
}

/* Transaction count indicator */
#transaction-count {
    font-size: 0.875rem;
    color: #475569;
}

/* Smooth transitions for infinite loading */
.transaction-item {
    transition: opacity 0.3s ease-in-out;
}

.transaction-item.loading {
    opacity: 0.6;
}

/* Loading states for infinite scroll */
.infinite-loading {
    text-align: center;
    padding: 1rem;
    color: #475569;
}

.infinite-loading .spinner-border {
    margin-bottom: 0.5rem;
}

/* No more data indicator */
.no-more-data {
    text-align: center;
    padding: 1rem;
    color: #475569;
    font-style: italic;
}

/* Recurring transaction icon */
.recurring-icon {
    color: #059669;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.recurring-icon:hover {
    opacity: 1;
}

/* Manual categorization icon */
.manual-categorization-icon {
    color: #0284c7;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.manual-categorization-icon:hover {
    opacity: 1;
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid #059669;
}

.toast-notification.error {
    border-left: 4px solid #dc2626;
}

.toast-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.toast-header i {
    font-size: 1.125rem;
}

.toast-header .fa-check-circle {
    color: #059669;
}

.toast-header .fa-exclamation-circle {
    color: #dc2626;
}

.toast-body {
    padding: 0.5rem 1rem 0.75rem;
    color: #475569;
}

/* Sync toast styles */
.sync-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.sync-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.sync-toast.success {
    border-left: 4px solid #059669;
}

.sync-toast.error {
    border-left: 4px solid #dc2626;
}

.sync-toast-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.sync-toast-icon {
    font-size: 1.125rem;
    margin-right: 0.5rem;
}

.sync-toast-title {
    margin: 0;
    font-weight: 600;
}

.sync-toast-message {
    padding: 0.5rem 1rem 0.75rem;
    margin: 0;
    color: #475569;
}


/* Imported from css/stats.css */
/* ==========================================================================
   STATISTIQUES - STYLES PROFESSIONNELS
   ========================================================================== */

/* Variables CSS personnalisées - Accessibilité améliorée */
:root {
    /* Couleurs principales avec contraste élevé */
    --stats-primary: #1e293b;
    --stats-secondary: #475569;
    --stats-success: #059669;
    --stats-danger: #dc2626;
    --stats-warning: #d97706;
    --stats-info: #0284c7;
    --stats-light: #f8fafc;
    --stats-dark: #0f172a;

    /* Couleurs de texte avec contraste optimal */
    --stats-text-primary: #0f172a;
    --stats-text-secondary: #334155;
    --stats-text-light: #475569;
    --stats-text-white: #ffffff;

    /* Backgrounds avec contraste suffisant */
    --stats-bg-primary: #ffffff;
    --stats-bg-secondary: #f1f5f9;
    --stats-bg-success: #ecfdf5;
    --stats-bg-danger: #fef2f2;
    --stats-bg-warning: #fffbeb;
    --stats-bg-info: #eff6ff;

    /* Gradients avec contraste optimisé */
    --stats-gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --stats-gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --stats-gradient-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --stats-gradient-warning: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --stats-gradient-info: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);

    /* Ombres et bordures */
    --stats-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --stats-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --stats-border-radius: 12px;
    --stats-border-radius-sm: 8px;
    --stats-border-color: #e2e8f0;

    --stats-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.stats-container {
    padding: 2rem 0;
    background: var(--stats-bg-secondary);
    min-height: 100vh;
    font-family: var(--stats-font-family);
}

.stats-header {
    margin-bottom: 2rem;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--stats-text-primary);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-actions {
    display: flex;
    gap: 0.75rem;
}

.stats-actions .btn {
    border-radius: var(--stats-border-radius-sm);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--stats-shadow);
}

.stats-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--stats-shadow-hover);
}

/* ==========================================================================
   FILTRES ACTIFS
   ========================================================================== */

.active-filters {
    margin-top: 1rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--stats-gradient-primary);
    color: var(--stats-text-white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--stats-shadow);
    transition: all 0.3s ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--stats-shadow-hover);
}

.filter-chip .btn-close {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.filter-chip .btn-close:hover {
    opacity: 1;
}

/* ==========================================================================
   CARTES DE STATISTIQUES
   ========================================================================== */

.stats-overview {
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--stats-bg-primary);
    border-radius: var(--stats-border-radius);
    padding: 1.5rem;
    box-shadow: var(--stats-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stats-border-color);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--stats-gradient-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--stats-shadow-hover);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--stats-text-white);
    background: var(--stats-gradient-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stats-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--stats-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-subtitle {
    font-size: 0.875rem;
    color: var(--stats-text-light);
    margin: 0;
}

/* Variantes des cartes */
.stat-card-income::before {
    background: var(--stats-gradient-success);
}

.stat-card-income .stat-icon {
    background: var(--stats-gradient-success);
}

.stat-card-expense::before {
    background: var(--stats-gradient-danger);
}

.stat-card-expense .stat-icon {
    background: var(--stats-gradient-danger);
}

.stat-card-balance::before {
    background: var(--stats-gradient-primary);
}

.stat-card-balance .stat-icon {
    background: var(--stats-gradient-primary);
}

.stat-card-positive .stat-value {
    color: var(--stats-success);
}

.stat-card-negative .stat-value {
    color: var(--stats-danger);
}

.stat-card-transactions::before {
    background: var(--stats-gradient-warning);
}

.stat-card-transactions .stat-icon {
    background: var(--stats-gradient-warning);
}

/* ==========================================================================
   GRAPHIQUES
   ========================================================================== */

.charts-section {
    margin-bottom: 3rem;
}

.chart-card {
    background: var(--stats-bg-primary);
    border-radius: var(--stats-border-radius);
    padding: 1.5rem;
    box-shadow: var(--stats-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--stats-border-color);
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--stats-shadow-hover);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--stats-light);
}

.chart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--stats-text-primary);
    margin: 0;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-actions .btn {
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.chart-actions .btn:hover {
    transform: scale(1.05);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ==========================================================================
   TABLEAUX
   ========================================================================== */

.tables-section {
    margin-bottom: 2rem;
}

.table-card {
    background: var(--stats-bg-primary);
    border-radius: var(--stats-border-radius);
    padding: 1.5rem;
    box-shadow: var(--stats-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--stats-border-color);
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--stats-shadow-hover);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--stats-light);
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--stats-text-primary);
    margin: 0;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    border-bottom: 2px solid var(--stats-border-color);
    font-weight: 600;
    color: var(--stats-text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    background-color: var(--stats-bg-secondary);
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid var(--stats-border-color);
    color: var(--stats-text-primary);
}

.table tbody tr:hover {
    background-color: var(--stats-bg-secondary);
}

/* ==========================================================================
   COMPOSANTS SPÉCIFIQUES
   ========================================================================== */

.transaction-description {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transaction-icon {
    font-size: 0.875rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: var(--stats-text-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 0.5rem;
    display: inline-block;
}

.account-icon {
    margin-right: 0.5rem;
}

.amount {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* ==========================================================================
   MODAL DES FILTRES
   ========================================================================== */

.modal-content {
    border-radius: var(--stats-border-radius);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid var(--stats-light);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--stats-text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid var(--stats-light);
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--stats-text-secondary);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--stats-border-color);
    border-radius: var(--stats-border-radius-sm);
    padding: 0.75rem;
    transition: all 0.3s ease;
    background-color: var(--stats-bg-primary);
    color: var(--stats-text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--stats-info);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.categories-filter,
.accounts-filter {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid var(--stats-border-color);
    border-radius: var(--stats-border-radius-sm);
    padding: 1rem;
    background-color: var(--stats-bg-primary);
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--stats-text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .stats-container {
        padding: 1rem 0;
    }

    .stats-title {
        font-size: 2rem;
    }

    .stats-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .stats-actions .btn {
        width: 100%;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 250px;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .filter-chips {
        flex-direction: column;
    }

    .filter-chip {
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .stats-title {
        font-size: 1.75rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .chart-container {
        height: 200px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .categories-filter,
    .accounts-filter {
        max-height: 150px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.chart-card,
.table-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================================================
   CHARGEMENT
   ========================================================================== */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--stats-text-secondary);
    font-weight: 500;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--stats-light);
    border-top: 4px solid var(--stats-info);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   UTILITAIRES
   ========================================================================== */

.text-gradient {
    background: var(--stats-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: var(--stats-shadow);
}

.shadow-lg {
    box-shadow: var(--stats-shadow-hover);
}

.border-radius {
    border-radius: var(--stats-border-radius);
}

.border-radius-sm {
    border-radius: var(--stats-border-radius-sm);
}

/* ==========================================================================
   ACCESSIBILITÉ ET CONTRASTES
   ========================================================================== */

/* Focus visible pour tous les éléments interactifs */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
    outline: 3px solid var(--stats-info);
    outline-offset: 2px;
}

/* Amélioration du contraste pour les badges de catégorie */
.category-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Contraste amélioré pour les montants */
.amount {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Amélioration des contrastes pour les états de survol */
.stat-card:hover .stat-value,
.stat-card:hover .stat-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Contraste amélioré pour les liens et boutons */
.btn-outline-primary {
    border-color: var(--stats-info);
    color: var(--stats-info);
}

.btn-outline-primary:hover {
    background-color: var(--stats-info);
    border-color: var(--stats-info);
    color: var(--stats-text-white);
}

.btn-primary {
    background-color: var(--stats-info);
    border-color: var(--stats-info);
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

/* Amélioration des contrastes pour les alertes */
.alert {
    border: 2px solid transparent;
}

.alert-success {
    background-color: var(--stats-bg-success);
    border-color: var(--stats-success);
    color: var(--stats-success);
}

.alert-danger {
    background-color: var(--stats-bg-danger);
    border-color: var(--stats-danger);
    color: var(--stats-danger);
}

.alert-warning {
    background-color: var(--stats-bg-warning);
    border-color: var(--stats-warning);
    color: var(--stats-warning);
}

.alert-info {
    background-color: var(--stats-bg-info);
    border-color: var(--stats-info);
    color: var(--stats-info);
}


/* Imported from css/mobile-styles.css */
/* Mobile-First Styles for OpenFinancy */

/* Variables CSS */
:root {
    --mobile-primary: #1d4ed8;
    --mobile-secondary: #475569;
    --mobile-success: #059669;
    --mobile-danger: #dc2626;
    --mobile-warning: #d97706;
    --mobile-info: #0284c7;
    --mobile-light: #f8fafc;
    --mobile-dark: #0f172a;
    --mobile-text-muted: #475569;
    --mobile-text-secondary: #334155;
    --mobile-border-radius: 12px;
    --mobile-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile-first styles */
.mobile-header {
    background: white;
    padding: 1rem;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
    margin-bottom: 1rem;
}

.mobile-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.mobile-actions .btn {
    padding: 0.375rem 0.75rem;
}

/* Navigation par onglets mobile */
.mobile-tabs {
    background: white;
    padding: 1rem;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
}

.mobile-tabs .nav-pills .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--mobile-text-muted);
    background: transparent;
    border: 1px solid #e9ecef;
}

.mobile-tabs .nav-pills .nav-link.active {
    background-color: var(--mobile-primary);
    color: white;
    border-color: var(--mobile-primary);
}

/* Filtres mobiles */
.mobile-filters {
    background: white;
    padding: 1rem;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
}

.period-selector {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.period-month {
    font-weight: 600;
    font-size: 1rem;
}

.quick-filters .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

/* Statistiques compactes */
.mobile-stats {
    background: white;
    padding: 1rem;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
}

.stat-card-compact {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.stat-card-compact.stat-income {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border-color: #c3e6cb;
}

.stat-card-compact.stat-expense {
    background: linear-gradient(135deg, #ffeaea, #f8d7da);
    border-color: #f5c6cb;
}

.stat-card-compact.stat-balance {
    background: linear-gradient(135deg, #e3f2fd, #d1ecf1);
    border-color: #bee5eb;
}

.stat-card-compact .stat-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.stat-card-compact.stat-income .stat-icon {
    background: var(--mobile-success);
    color: white;
}

.stat-card-compact.stat-expense .stat-icon {
    background: var(--mobile-danger);
    color: white;
}

.stat-card-compact.stat-balance .stat-icon {
    background: var(--mobile-info);
    color: white;
}

.stat-card-compact .stat-info {
    flex: 1;
}

.stat-card-compact .stat-label {
    font-size: 0.75rem;
    color: var(--mobile-text-muted);
    font-weight: 500;
}

.stat-card-compact .stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mobile-dark);
}

/* Transactions mobiles */
.transactions-container {
    background: white;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
    padding: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.transaction-item:hover {
    background-color: #f8f9fa;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-main {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.transaction-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.transaction-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Transaction icon styles for headers and mobile */
.transaction-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

/* Header transaction icon (larger for desktop) */
.transaction-icon.me-3 {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    margin-right: 1rem;
}

/* Mobile transaction icon (smaller for mobile) */
.transaction-item .transaction-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    margin-right: 1rem;
}

.transaction-content {
    flex: 1;
    min-width: 0;
}

.transaction-description {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--mobile-dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--mobile-text-muted);
}

.transaction-category {
    background: #e9ecef;
    color: #495057;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.transaction-date {
    font-size: 0.75rem;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
}

.transaction-amount.positive {
    color: var(--mobile-success);
}

.transaction-amount.negative {
    color: var(--mobile-danger);
}

/* Groupement par date */
.date-group {
    margin-bottom: 1.5rem;
}

.date-group-header {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
}

.date-group-items {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Statistiques de catégories mobile */
.category-stats-container {
    background: white;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
    padding: 1rem;
}

.category-stat-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.clickable-category {
    cursor: pointer;
}

.clickable-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.category-stat-item:last-child {
    margin-bottom: 0;
}

.category-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: white;
}

.category-info {
    flex: 1;
    min-width: 0;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.category-details {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-top: 0.25rem;
    align-self: flex-start;
}

.category-amount {
    text-align: right;
    margin-left: 1rem;
}

.amount-value {
    font-weight: 700;
    font-size: 1rem;
}

.amount-value.positive {
    color: #059669;
}

.amount-value.negative {
    color: #dc2626;
}

.category-click-hint {
    font-size: 0.625rem;
    color: #6b7280;
    margin-top: 0.25rem;
    text-align: right;
    opacity: 0.7;
}

.category-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--mobile-text-muted);
}

.category-percentage {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.category-count {
    font-size: 0.75rem;
}

.category-amount {
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    color: var(--mobile-danger);
}

/* Styles pour les statistiques mobiles */
.mobile-stats-container {
    padding: 0;
}

.mobile-stats-container .mobile-header,
.mobile-stats-container .mobile-tabs,
.mobile-stats-container .period-selector,
.mobile-stats-container .mobile-stats,
.mobile-stats-container .category-stats-container {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 0;
}

/* Styles pour les cartes d'informations de compte */
.account-info-card {
    background: white;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
    padding: 1rem;
}

.info-section {
    margin-bottom: 1rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mobile-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mobile-dark);
    margin: 0;
}

.account-balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mobile-dark);
    margin-top: 0.25rem;
}

/* Animations */
.transaction-item,
.category-stat-item {
    transition: all 0.2s ease;
}

.transaction-item:hover,
.category-stat-item:hover {
    transform: translateX(4px);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert styles */
.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Button styles */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Form styles */
.form-control-sm,
.form-select-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 0.375em 0.5em;
    font-weight: 600;
}

/* Text utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spacing utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Removed conflicting margin rule that was breaking Bootstrap grid layout */


/* Imported from css/mobile-budget.css */
/* Mobile Budget Styles */
/* Touch-optimized, mobile-first design for budget features */

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-budget-container {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 70px; /* Space for floating buttons */
}

/* Header */
.mobile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 16px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: center;
}

.back-btn, .scan-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:active, .scan-btn:active {
    background: rgba(255,255,255,0.3);
    transform: scale(0.95);
}

/* Navigation Tabs */
.mobile-nav-tabs {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-tab i {
    font-size: 1.2rem;
}

.nav-tab.active {
    background: rgba(255,255,255,0.25);
    color: white;
    font-weight: 600;
}

/* Cards */
.mobile-card {
    background: white;
    margin: 16px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

/* Period Selector */
.period-selector {
    display: flex;
    gap: 8px;
    background: #f5f7fa;
    padding: 4px;
    border-radius: 8px;
}

.period-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.period-btn.active {
    background: white;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}

.summary-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.income-card .card-icon {
    background: #d1fae5;
    color: #10b981;
}

.expense-card .card-icon {
    background: #fee2e2;
    color: #ef4444;
}

.balance-card .card-icon {
    background: #dbeafe;
    color: #3b82f6;
}

.savings-card .card-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
}

.card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

/* Category Items */
.category-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-item:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.category-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.category-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
}

/* Category Row (Simpler layout) */
.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-row:last-child {
    border-bottom: none;
}

/* Cashflow Summary */
.cashflow-summary {
    padding: 8px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.summary-row .label {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row .value {
    font-size: 1.125rem;
    font-weight: 600;
}

.summary-row.income .value {
    color: #10b981;
}

.summary-row.expenses .value {
    color: #ef4444;
}

.summary-row.balance.positive .value {
    color: #10b981;
}

.summary-row.balance.negative .value {
    color: #ef4444;
}

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Fees */
.fees-summary-card {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.fees-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-meta {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Fee Type Cards */
.fee-type-card {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.fee-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fee-type-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
}

.fee-type-badge {
    background: #e5e7eb;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fee-type-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
}

/* Fee Items */
.fee-item {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease-out;
}

.fee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fee-type-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.fee-type-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.fee-type-badge.info {
    background: #dbeafe;
    color: #3b82f6;
}

.fee-type-badge.primary {
    background: #e0e7ff;
    color: #6366f1;
}

.fee-date {
    font-size: 0.75rem;
    color: #999;
}

.fee-description {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fee-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #ef4444;
}

.fee-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confidence-bar {
    width: 60px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: 2px;
}

.confidence-fill.success {
    background: #10b981;
}

.confidence-fill.warning {
    background: #f59e0b;
}

.confidence-fill.danger {
    background: #ef4444;
}

.confidence-text {
    font-size: 0.75rem;
    color: #999;
}

/* Subscriptions */
.subs-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.summary-mini-card {
    background: white;
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mini-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.mini-card-label {
    font-size: 0.75rem;
    color: #999;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #666;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Subscription Cards */
.subscription-card {
    background: white;
    margin: 16px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    animation: slideIn 0.3s ease-out;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.sub-info {
    flex: 1;
}

.sub-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.sub-frequency {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.sub-frequency.monthly {
    background: #dbeafe;
    color: #3b82f6;
}

.sub-frequency.yearly {
    background: #d1fae5;
    color: #10b981;
}

.sub-frequency.weekly {
    background: #fef3c7;
    color: #f59e0b;
}

.sub-confidence {
    margin-left: 12px;
}

.confidence-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.confidence-circle.success {
    background: #d1fae5;
    color: #10b981;
}

.confidence-circle.warning {
    background: #fef3c7;
    color: #f59e0b;
}

.confidence-circle.danger {
    background: #fee2e2;
    color: #ef4444;
}

.sub-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.amount-item {
    text-align: center;
}

.amount-label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 4px;
}

.amount-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.sub-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #666;
}

.sub-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.sub-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn.confirm {
    background: #d1fae5;
    color: #10b981;
}

.action-btn.confirm:active {
    background: #a7f3d0;
}

.action-btn.dismiss {
    background: #fee2e2;
    color: #ef4444;
}

.action-btn.dismiss:active {
    background: #fecaca;
}

.sub-status.confirmed {
    text-align: center;
    padding: 10px;
    background: #d1fae5;
    color: #10b981;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 12px;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 50;
    transition: all 0.3s;
}

.floating-btn:active {
    transform: scale(0.95);
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 32px;
    color: #999;
}

.loading-spinner i {
    font-size: 2rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.loading-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.loading-content i {
    color: #667eea;
    margin-bottom: 16px;
}

.loading-content p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #999;
    font-size: 0.875rem;
}

/* Mobile Modal */
.mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    z-index: 200;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    width: 100%;
    animation: slideUpModal 0.3s ease-out;
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #333;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.savings-total {
    background: #f0fdf4;
    color: #166534;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 16px;
}

.savings-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.savings-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #333;
}

.savings-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 12px;
}

.savings-reasons {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.875rem;
}

.savings-reasons li {
    margin-bottom: 4px;
}

/* Toast Notifications */
.mobile-toast {
    position: fixed;
    bottom: -100px;
    left: 16px;
    right: 16px;
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 250;
    transition: bottom 0.3s ease-out;
}

.mobile-toast.show {
    bottom: 24px;
}

.mobile-toast.success {
    background: #10b981;
}

.mobile-toast.error {
    background: #ef4444;
}

/* Utility Classes */
.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.text-warning {
    color: #f59e0b;
}

.text-info {
    color: #3b82f6;
}

/* Responsive */
@media (min-width: 768px) {
    .mobile-budget-container {
        max-width: 480px;
    }
}

/* Pull to refresh hint */
@supports (-webkit-overflow-scrolling: touch) {
    .mobile-budget-container {
        -webkit-overflow-scrolling: touch;
    }
}


/* Imported from css/budget-cashflow.css */
/* Budget Cashflow Styles */

.stat-item {
    padding: 1rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.category-item {
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.category-name {
    vertical-align: middle;
}

/* Sankey Diagram Styles */
#sankey-container {
    position: relative;
}

.sankey-tooltip {
    position: absolute;
    visibility: hidden;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
}

.links path {
    transition: opacity 0.3s;
}

.links path:hover {
    opacity: 0.7 !important;
}

.nodes rect {
    cursor: pointer;
    transition: opacity 0.3s;
}

.nodes rect:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.25rem;
    }

    #sankey-container {
        min-height: 400px !important;
    }
}

/* Fee Scanner Styles */
.fee-item {
    transition: background-color 0.2s;
}

.fee-item:hover {
    background-color: #f8f9fa;
}

/* Subscription Styles */
.subscription-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.subscription-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Progress bars */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Quick Links on Cashflow Page */
.card.bg-warning a, .card.bg-info a, .card.bg-success a {
    color: inherit;
}

.card.bg-warning:hover, .card.bg-info:hover, .card.bg-success:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Chart container */
#trends-chart {
    max-height: 300px;
}

/* Loading states */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error states */
.alert-danger {
    border-radius: 8px;
}

/* Category breakdown enhancement */
.category-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Imported from css/patrimoine-styles.css */
/* ==========================================================================
   PATRIMOINE - STYLES PROFESSIONNELS
   ========================================================================== */

/* Variables CSS personnalisées */
:root {
    /* Couleurs principales avec contraste élevé */
    --patrimoine-primary: #1d4ed8;
    --patrimoine-secondary: #475569;
    --patrimoine-success: #059669;
    --patrimoine-danger: #dc2626;
    --patrimoine-warning: #d97706;
    --patrimoine-info: #0284c7;
    --patrimoine-light: #f8fafc;
    --patrimoine-dark: #0f172a;

    /* Couleurs de texte avec contraste optimal */
    --patrimoine-text-primary: #0f172a;
    --patrimoine-text-secondary: #334155;
    --patrimoine-text-light: #475569;
    --patrimoine-text-white: #ffffff;

    /* Backgrounds avec contraste suffisant */
    --patrimoine-bg-primary: #ffffff;
    --patrimoine-bg-secondary: #f1f5f9;
    --patrimoine-bg-success: #ecfdf5;
    --patrimoine-bg-danger: #fef2f2;
    --patrimoine-bg-warning: #fffbeb;
    --patrimoine-bg-info: #eff6ff;

    /* Gradients avec contraste optimisé */
    --patrimoine-gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --patrimoine-gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --patrimoine-gradient-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --patrimoine-gradient-warning: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);

    /* Ombres et bordures */
    --patrimoine-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --patrimoine-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --patrimoine-border-radius: 12px;
    --patrimoine-border-radius-sm: 8px;
    --patrimoine-border-color: #e2e8f0;

    --patrimoine-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   COMPOSANTS PATRIMOINE
   ========================================================================== */

.patrimoine-header {
    background: var(--patrimoine-bg-primary);
    border: 2px solid var(--patrimoine-primary);
    border-radius: var(--patrimoine-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--patrimoine-shadow);
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.patrimoine-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--patrimoine-gradient-primary);
}

.patrimoine-header:hover {
    box-shadow: var(--patrimoine-shadow-hover);
}

.patrimoine-header h1 {
    color: var(--patrimoine-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.patrimoine-header p {
    color: var(--patrimoine-text-secondary);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Cards patrimoine */
.patrimoine-card {
    background: var(--patrimoine-bg-primary);
    border-radius: var(--patrimoine-border-radius);
    box-shadow: var(--patrimoine-shadow);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.patrimoine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--patrimoine-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.patrimoine-card:hover::before {
    opacity: 1;
}

.patrimoine-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--patrimoine-shadow-hover);
}

.patrimoine-card .card-header {
    background: var(--patrimoine-bg-secondary);
    border-bottom: 1px solid var(--patrimoine-border-color);
    border-radius: var(--patrimoine-border-radius) var(--patrimoine-border-radius) 0 0;
    padding: 1.25rem;
}

.patrimoine-card .card-header h5 {
    color: var(--patrimoine-text-primary);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Stat cards améliorées */
.stat-card {
    background: var(--patrimoine-bg-primary);
    border-radius: var(--patrimoine-border-radius);
    box-shadow: var(--patrimoine-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--patrimoine-border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--patrimoine-shadow-hover);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--patrimoine-gradient-primary);
}

.stat-card.success::before {
    background: var(--patrimoine-gradient-success);
}

.stat-card.danger::before {
    background: var(--patrimoine-gradient-danger);
}

.stat-card.warning::before {
    background: var(--patrimoine-gradient-warning);
}

.stat-card.info::before {
    background: linear-gradient(135deg, var(--patrimoine-info), #06b6d4);
}

.stat-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.stat-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--patrimoine-text-primary);
}

.stat-card .card-text {
    color: var(--patrimoine-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Asset items */
.asset-item {
    border: 1px solid var(--patrimoine-border-color);
    border-radius: var(--patrimoine-border-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--patrimoine-bg-primary);
}

.asset-item:hover {
    border-color: var(--patrimoine-primary);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
    transform: translateY(-2px);
}

/* Profit/Loss indicators */
.profit-loss {
    font-weight: 600;
}

.profit-loss.positive {
    color: var(--patrimoine-success);
}

.profit-loss.negative {
    color: var(--patrimoine-danger);
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
    background: var(--patrimoine-bg-secondary);
    border-radius: var(--patrimoine-border-radius-sm);
}

.chart-container canvas {
    border-radius: var(--patrimoine-border-radius-sm);
}

/* Legend items */
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: var(--patrimoine-bg-secondary);
    border-radius: var(--patrimoine-border-radius-sm);
    transition: background-color 0.3s ease;
}

.legend-item:hover {
    background: var(--patrimoine-bg-primary);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Entity selector */
.entity-selector {
    margin-bottom: 1rem;
}

.entity-selector select {
    border-radius: var(--patrimoine-border-radius-sm);
    border: 1px solid var(--patrimoine-border-color);
    background: var(--patrimoine-bg-primary);
    color: var(--patrimoine-text-secondary);
    transition: border-color 0.3s ease;
}

.entity-selector select:focus {
    border-color: var(--patrimoine-primary);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.25);
}

/* Allocation cards */
.allocation-card {
    background: var(--patrimoine-bg-primary);
    border-radius: var(--patrimoine-border-radius);
    box-shadow: var(--patrimoine-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid;
    border: 1px solid var(--patrimoine-border-color);
}

.allocation-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--patrimoine-shadow-hover);
}

.allocation-card.current {
    border-left-color: var(--patrimoine-primary);
}

.allocation-card.recommended {
    border-left-color: var(--patrimoine-success);
}

.allocation-card.difference {
    border-left-color: var(--patrimoine-warning);
}

/* Asset classes */
.asset-class {
    border: 1px solid var(--patrimoine-border-color);
    border-radius: var(--patrimoine-border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: var(--patrimoine-bg-primary);
}

.asset-class:hover {
    border-color: var(--patrimoine-primary);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.1);
    transform: translateY(-2px);
}

/* Risk indicators */
.risk-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.risk-indicator.low {
    background: rgba(5, 150, 105, 0.1);
    color: var(--patrimoine-success);
}

.risk-indicator.medium {
    background: rgba(217, 119, 6, 0.1);
    color: var(--patrimoine-warning);
}

.risk-indicator.high {
    background: rgba(220, 38, 38, 0.1);
    color: var(--patrimoine-danger);
}

/* Recommendation badges */
.recommendation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

/* Enhanced table styling */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(29, 78, 216, 0.05);
    transform: scale(1.01);
}

.table thead th {
    background-color: var(--patrimoine-bg-secondary);
    border-bottom: 2px solid var(--patrimoine-border-color);
    font-weight: 600;
    color: var(--patrimoine-text-primary);
}

/* Enhanced form styling */
.form-label {
    font-weight: 600;
    color: var(--patrimoine-text-primary);
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: var(--patrimoine-primary);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.25);
}

/* Enhanced button styling */
.btn {
    border-radius: var(--patrimoine-border-radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--patrimoine-gradient-primary);
    border: none;
}

.btn-success {
    background: var(--patrimoine-gradient-success);
    border: none;
}

.btn-danger {
    background: var(--patrimoine-gradient-danger);
    border: none;
}

.btn-warning {
    background: var(--patrimoine-gradient-warning);
    border: none;
}

/* Enhanced alert styling */
.alert {
    border-radius: var(--patrimoine-border-radius-sm);
    border: none;
    box-shadow: var(--patrimoine-shadow);
}

.alert-success {
    background: var(--patrimoine-bg-success);
    color: var(--patrimoine-success);
}

.alert-danger {
    background: var(--patrimoine-bg-danger);
    color: var(--patrimoine-danger);
}

.alert-warning {
    background: var(--patrimoine-bg-warning);
    color: var(--patrimoine-warning);
}

.alert-info {
    background: var(--patrimoine-bg-info);
    color: var(--patrimoine-info);
}

/* Enhanced badge styling */
.badge {
    border-radius: var(--patrimoine-border-radius-sm);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .patrimoine-header h1 {
        font-size: 1.75rem;
    }

    .stat-card .card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 992px) {
    .patrimoine-header {
        padding: 1.5rem;
    }

    .patrimoine-header h1 {
        font-size: 1.5rem;
    }

    .patrimoine-header p {
        font-size: 1rem;
    }

    .chart-container {
        height: 250px;
    }

    .asset-item {
        padding: 0.75rem;
    }

    .legend-item {
        padding: 0.5rem;
    }

    .stat-card .card-body {
        padding: 1.25rem;
    }

    .stat-card .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .patrimoine-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .patrimoine-header h1 {
        font-size: 1.25rem;
    }

    .patrimoine-header p {
        font-size: 0.9rem;
    }

    .chart-container {
        height: 200px;
        padding: 0.5rem;
    }

    .asset-item {
        padding: 0.5rem;
    }

    .legend-item {
        padding: 0.4rem;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .stat-card .card-title {
        font-size: 1rem;
    }

    .stat-card .card-text {
        font-size: 0.8rem;
    }

    .patrimoine-card .card-header {
        padding: 1rem;
    }

    .patrimoine-card .card-header h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .patrimoine-header {
        padding: 0.75rem;
    }

    .patrimoine-header h1 {
        font-size: 1.1rem;
    }

    .patrimoine-header p {
        font-size: 0.85rem;
    }

    .chart-container {
        height: 180px;
        padding: 0.25rem;
    }

    .stat-card .card-body {
        padding: 0.75rem;
    }

    .stat-card .card-title {
        font-size: 0.9rem;
    }

    .stat-card .card-text {
        font-size: 0.75rem;
    }

    .patrimoine-card .card-header {
        padding: 0.75rem;
    }

    .patrimoine-card .card-header h5 {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.patrimoine-card {
    animation: fadeInUp 0.5s ease-out;
}

.stat-card {
    animation: fadeInUp 0.5s ease-out;
}

.asset-item {
    animation: fadeInUp 0.5s ease-out;
}

.patrimoine-header {
    animation: slideInLeft 0.6s ease-out;
}

/* Staggered animations for stat cards */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-patrimoine-primary { color: var(--patrimoine-primary) !important; }
.text-patrimoine-secondary { color: var(--patrimoine-secondary) !important; }
.text-patrimoine-success { color: var(--patrimoine-success) !important; }
.text-patrimoine-danger { color: var(--patrimoine-danger) !important; }
.text-patrimoine-warning { color: var(--patrimoine-warning) !important; }
.text-patrimoine-info { color: var(--patrimoine-info) !important; }

.bg-patrimoine-primary { background-color: var(--patrimoine-primary) !important; }
.bg-patrimoine-secondary { background-color: var(--patrimoine-secondary) !important; }
.bg-patrimoine-success { background-color: var(--patrimoine-success) !important; }
.bg-patrimoine-danger { background-color: var(--patrimoine-danger) !important; }
.bg-patrimoine-warning { background-color: var(--patrimoine-warning) !important; }
.bg-patrimoine-info { background-color: var(--patrimoine-info) !important; }

.border-patrimoine-primary { border-color: var(--patrimoine-primary) !important; }
.border-patrimoine-secondary { border-color: var(--patrimoine-secondary) !important; }
.border-patrimoine-success { border-color: var(--patrimoine-success) !important; }
.border-patrimoine-danger { border-color: var(--patrimoine-danger) !important; }
.border-patrimoine-warning { border-color: var(--patrimoine-warning) !important; }
.border-patrimoine-info { border-color: var(--patrimoine-info) !important; }

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--patrimoine-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    .patrimoine-header,
    .patrimoine-card,
    .stat-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn {
        display: none;
    }

    .chart-container {
        height: 200px;
    }
}

/* Amortization Table Styles - Modern Design */
body[data-route="app_bank_account_loan_details"] .amortization-table-container {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--surface-border-color);
    background: var(--surface-color);
    box-shadow: var(--surface-shadow);
}

body[data-route="app_bank_account_loan_details"] .amortization-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

body[data-route="app_bank_account_loan_details"] .amortization-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6) !important;
    color: #ffffff !important;
}

body[data-route="app_bank_account_loan_details"] .amortization-table-header th {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 12px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body[data-route="app_bank_account_loan_details"] .amortization-table-header th.text-end {
    text-align: right;
}

body[data-route="app_bank_account_loan_details"] .amortization-table-row {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--surface-border-color);
}

body[data-route="app_bank_account_loan_details"] .amortization-table-row:hover {
    background-color: rgba(29, 78, 216, 0.05) !important;
}

body[data-route="app_bank_account_loan_details"] .amortization-table-row td {
    padding: 12px;
    border: none;
    border-bottom: 1px solid var(--surface-border-color);
    color: var(--body-text-color);
    font-size: 0.875rem;
}

body[data-route="app_bank_account_loan_details"] .amortization-past-payment {
    background-color: rgba(148, 163, 184, 0.1) !important;
    opacity: 0.85;
}

body[data-route="app_bank_account_loan_details"] .amortization-past-payment:hover {
    background-color: rgba(148, 163, 184, 0.15) !important;
}

body[data-route="app_bank_account_loan_details"] .amortization-future-payment {
    background-color: var(--surface-color);
}

body[data-route="app_bank_account_loan_details"] .amortization-paid {
    color: var(--success-color) !important;
    font-weight: 600;
}

body[data-route="app_bank_account_loan_details"] .amortization-remaining {
    color: var(--danger-color) !important;
    font-weight: 600;
}

body[data-route="app_bank_account_loan_details"] .amortization-table-footer {
    background-color: var(--light-color);
    border-top: 2px solid var(--primary-color);
}

body[data-route="app_bank_account_loan_details"] .amortization-table-footer td {
    padding: 14px 12px;
    font-weight: 600;
    color: var(--body-text-color);
    border: none;
    border-top: 1px solid var(--surface-border-color);
}

body[data-route="app_bank_account_loan_details"] .amortization-table-footer td:first-child {
    color: var(--text-muted);
    font-size: 0.875rem;
}
