.spending{background:white;border-radius:var(--radius-lg);box-shadow:var(--shadow);border:1px solid var(--gray-200);padding:1.5rem}.spending table{width:100%;border-collapse:collapse;margin-bottom:1.5rem}.spending table th,.spending table td.th{font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--gray-500);padding:0.75rem 0.5rem;text-align:center;border-bottom:2px solid var(--gray-200)}.spending table tr{border-bottom:1px solid var(--gray-100)}.spending table tr:last-child{border-bottom:none}.spending table tr:hover{background-color:var(--gray-50)}.spending table td{padding:0.875rem 0.5rem;text-align:center;color:var(--gray-700);font-size:0.9375rem}.spending table td:first-child{font-weight:500;color:var(--gray-900);text-align:left}.chart{width:100%;max-width:320px;height:auto;margin:1.5rem auto;display:block}div[id^="chart-"]{margin:0 auto;padding:1rem 0}.overall_spending .card-title{font-size:1.125rem;font-weight:600;color:var(--gray-900);margin-bottom:1rem}.category_spending table td:first-child{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 768px){.spending{padding:1rem;margin-bottom:1rem}.spending table{font-size:0.875rem}.spending table th,.spending table td.th{font-size:0.6875rem;padding:0.5rem 0.25rem}.spending table td{padding:0.625rem 0.25rem;font-size:0.8125rem}.chart{max-width:280px}}.budget-progress{width:100%;height:8px;background:var(--gray-200);border-radius:9999px;overflow:hidden;margin-top:0.5rem}.budget-progress .budget-progress-bar{height:100%;border-radius:9999px;transition:width 0.3s ease}.budget-progress .budget-progress-bar.safe{background:linear-gradient(90deg, var(--success), #34d399)}.budget-progress .budget-progress-bar.warning{background:linear-gradient(90deg, var(--warning), #fbbf24)}.budget-progress .budget-progress-bar.danger{background:linear-gradient(90deg, var(--danger), #f87171)}.header{position:sticky;top:0;z-index:100;background:white;border-bottom:1px solid var(--gray-200);padding:0.875rem 2rem;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-sm)}.header .logo{font-size:1.25rem;font-weight:700;color:var(--gray-900);text-decoration:none;display:flex;align-items:center;gap:0.5rem}.header .logo:hover{color:var(--primary)}.header .logo .logo-icon{width:32px;height:32px;background:linear-gradient(135deg, var(--primary), var(--primary-dark));border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:white;font-weight:700;font-size:1rem}.header .nav-actions{display:flex;align-items:center;gap:0.75rem}footer.footer{background:white;border-top:1px solid var(--gray-200);padding:1rem 2rem;display:flex;align-items:center;justify-content:center;gap:1rem;box-shadow:0 -1px 3px 0 rgba(0,0,0,0.05)}footer.footer a{text-decoration:none}@media (max-width: 768px){.header{padding:0.75rem 1rem}.header .logo{font-size:1.125rem}.header .logo .logo-icon{width:28px;height:28px;font-size:0.875rem}.header .nav-actions{gap:0.5rem}.header .nav-actions .btn{padding:0.5rem 0.75rem;font-size:0.8125rem}footer.footer{padding:0.75rem 1rem;flex-wrap:wrap;gap:0.5rem}footer.footer .btn{padding:0.5rem 0.75rem;font-size:0.8125rem}}.transactions{background:white;border-radius:var(--radius-lg);box-shadow:var(--shadow);border:1px solid var(--gray-200);overflow:hidden}.transactions .header_row{background:var(--gray-50);font-weight:600;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--gray-600);border-bottom:1px solid var(--gray-200)}.transactions .header_row .col,.transactions .header_row [class*="col-"]{padding:0.875rem 1rem}.transactions .row{border-bottom:1px solid var(--gray-100);transition:background-color 0.1s ease}.transactions .row:last-child{border-bottom:none}.transactions .row:hover{background-color:var(--gray-50)}.transactions .row .col,.transactions .row [class*="col-"]{padding:1rem;display:flex;align-items:center}.transactions .row:nth-child(odd),.transactions .row:nth-child(even){background-color:transparent}div.transaction{padding:1.5rem 0}.transaction-card{background:white;border-radius:var(--radius-lg);box-shadow:var(--shadow);border:1px solid var(--gray-200);padding:1rem 1.25rem;margin-bottom:0.75rem}.transactions_button{padding:1.5rem 0;width:100%;text-align:center}.transactions_button a,.transactions_button button{min-width:200px;margin:0 auto}#transactions .name{background:white;border-radius:var(--radius-lg);box-shadow:var(--shadow);border:1px solid var(--gray-200);padding:1rem 1.25rem;margin-bottom:0.75rem;display:flex;align-items:center;justify-content:space-between;transition:box-shadow 0.15s ease, transform 0.15s ease}#transactions .name:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}#transactions .name h3{margin:0;font-size:1rem;font-weight:500}#transactions .name h3 a{color:var(--gray-900)}#transactions .name h3 a:hover{color:var(--primary)}#transactions .name p{margin:0;font-weight:600;color:var(--gray-700)}#create_new_transaction{margin-top:1.5rem;text-align:center}.running-total{font-weight:600;color:var(--gray-900)}.running-total.positive{color:var(--success)}.running-total.negative{color:var(--danger)}.amount{font-weight:600;font-variant-numeric:tabular-nums}.amount-positive{color:var(--success)}.amount-negative{color:var(--danger)}:root{--primary: #6366f1;--primary-dark: #4f46e5;--primary-light: #818cf8;--gray-50: #f9fafb;--gray-100: #f3f4f6;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-400: #9ca3af;--gray-500: #6b7280;--gray-600: #4b5563;--gray-700: #374151;--gray-800: #1f2937;--gray-900: #111827;--success: #10b981;--success-light: #d1fae5;--warning: #f59e0b;--warning-light: #fef3c7;--danger: #ef4444;--danger-light: #fee2e2;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);--radius-sm: 0.375rem;--radius: 0.5rem;--radius-lg: 0.75rem;--radius-xl: 1rem}*{box-sizing:border-box}html,body{height:100%;margin:0;padding:0;font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;background:var(--gray-50);color:var(--gray-800);line-height:1.5}.content{min-height:100%;display:flex;flex-direction:column}.content-inside{padding:20px;padding-bottom:50px}.main{flex:1;padding:2rem;max-width:1400px;margin:0 auto;width:100%}.card{background:white;border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:1.5rem;margin-bottom:1.5rem;border:1px solid var(--gray-200)}.card-header{font-size:1.125rem;font-weight:600;color:var(--gray-900);margin-bottom:1rem;padding-bottom:0.75rem;border-bottom:1px solid var(--gray-100)}.btn,button,input[type="submit"]{display:inline-flex;align-items:center;justify-content:center;padding:0.625rem 1.25rem;font-size:0.875rem;font-weight:500;border-radius:var(--radius);border:none;cursor:pointer;transition:all 0.15s ease;text-decoration:none;gap:0.5rem}.btn:focus,button:focus,input[type="submit"]:focus{outline:2px solid var(--primary-light);outline-offset:2px}.btn-primary,button,input[type="submit"]{background:var(--primary);color:white}.btn-primary:hover,button:hover,input[type="submit"]:hover{background:var(--primary-dark);color:white}.btn-secondary{background:white;color:var(--gray-700);border:1px solid var(--gray-300)}.btn-secondary:hover{background:var(--gray-50);border-color:var(--gray-400)}.btn-success{background:var(--success);color:white}.btn-success:hover{background:#059669;color:white}.btn-danger{background:var(--danger);color:white}.btn-danger:hover{background:#dc2626;color:white}.btn-sm{padding:0.375rem 0.75rem;font-size:0.8125rem}input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="date"],textarea,select{width:100%;padding:0.625rem 0.875rem;font-size:0.875rem;border:1px solid var(--gray-300);border-radius:var(--radius);background:white;color:var(--gray-900);transition:border-color 0.15s ease, box-shadow 0.15s ease;margin-bottom:1rem}input[type="text"]:focus,input[type="email"]:focus,input[type="password"]:focus,input[type="number"]:focus,input[type="date"]:focus,textarea:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(99,102,241,0.1)}input[type="text"]::placeholder,input[type="email"]::placeholder,input[type="password"]::placeholder,input[type="number"]::placeholder,input[type="date"]::placeholder,textarea::placeholder,select::placeholder{color:var(--gray-400)}label{display:block;font-size:0.875rem;font-weight:500;color:var(--gray-700);margin-bottom:0.375rem}.notice{background:var(--success-light);color:#065f46;padding:0.875rem 1rem;border-radius:var(--radius);margin:1rem 2rem;font-size:0.875rem;border-left:4px solid var(--success)}.alert{background:var(--danger-light);color:#991b1b;padding:0.875rem 1rem;border-radius:var(--radius);margin:1rem 2rem;font-size:0.875rem;border-left:4px solid var(--danger)}h1{font-size:1.875rem;font-weight:700;color:var(--gray-900);margin-bottom:1.5rem}h2{font-size:1.5rem;font-weight:600;color:var(--gray-900);margin-bottom:1rem}h3{font-size:1.25rem;font-weight:600;color:var(--gray-900);margin-bottom:0.75rem}a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-dark)}.right{float:right}.text-center{text-align:center}.text-muted{color:var(--gray-500)}.text-success{color:var(--success)}.text-danger{color:var(--danger)}.mt-1{margin-top:0.25rem}.mt-2{margin-top:0.5rem}.mt-3{margin-top:1rem}.mt-4{margin-top:1.5rem}.mb-1{margin-bottom:0.25rem}.mb-2{margin-bottom:0.5rem}.mb-3{margin-bottom:1rem}.mb-4{margin-bottom:1.5rem}div[id^="chart-"]{margin:0 auto}.days_remaining{padding-top:1.5rem;text-align:center;color:var(--gray-600);font-size:0.9375rem}.stat{text-align:center;padding:1rem}.stat .stat-value{font-size:1.5rem;font-weight:700;color:var(--gray-900)}.stat .stat-label{font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--gray-500);margin-top:0.25rem}.badge{display:inline-flex;align-items:center;padding:0.25rem 0.625rem;font-size:0.75rem;font-weight:500;border-radius:9999px}.badge.badge-success{background:var(--success-light);color:#065f46}.badge.badge-warning{background:var(--warning-light);color:#92400e}.badge.badge-danger{background:var(--danger-light);color:#991b1b}.field_with_errors input,.field_with_errors select,.field_with_errors textarea{border-color:var(--danger)}.field_with_errors input:focus,.field_with_errors select:focus,.field_with_errors textarea:focus{box-shadow:0 0 0 3px rgba(239,68,68,0.1)}#error_explanation{background:var(--danger-light);border:1px solid #fca5a5;border-radius:var(--radius);padding:1rem;margin-bottom:1rem}#error_explanation h2{color:#991b1b;font-size:0.875rem;margin-bottom:0.5rem}#error_explanation ul{margin:0;padding-left:1.25rem;font-size:0.875rem;color:#991b1b}
