@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes gooeyIn{0%{opacity:0;transform:translateY(30px) scale(.6)}60%{opacity:1;transform:translateY(-4px) scale(1.03)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes gooeyOut{0%{opacity:1;transform:translateY(0) scale(1)}30%{transform:translateY(-6px) scale(1.02)}to{opacity:0;transform:translateY(20px) scale(.7)}}@keyframes pillPop{0%{transform:scale(.3)}60%{transform:scale(1.15)}to{transform:scale(1)}}@keyframes bodySlide{0%{opacity:0;transform:translateX(-20px) scaleX(.5)}60%{transform:translateX(4px) scaleX(1.02)}to{opacity:1;transform:translateX(0) scaleX(1)}}@keyframes shimmer{0%{background-position:200%0}to{background-position:-200%0}}@font-face{font-family:"Inter";font-weight:300;font-style:normal;font-display:swap;src:url(../fonts/inter-300.ttf)format("truetype")}@font-face{font-family:"Inter";font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/inter-400.ttf)format("truetype")}@font-face{font-family:"Inter";font-weight:500;font-style:normal;font-display:swap;src:url(../fonts/inter-500.ttf)format("truetype")}@font-face{font-family:"Inter";font-weight:600;font-style:normal;font-display:swap;src:url(../fonts/inter-600.ttf)format("truetype")}@font-face{font-family:"Inter";font-weight:700;font-style:normal;font-display:swap;src:url(../fonts/inter-700.ttf)format("truetype")}@font-face{font-family:"Inter";font-weight:800;font-style:normal;font-display:swap;src:url(../fonts/inter-800.ttf)format("truetype")}@font-face{font-family:"Sarabun";font-weight:300;font-style:normal;font-display:swap;src:url(../fonts/sarabun-300.ttf)format("truetype")}@font-face{font-family:"Sarabun";font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/sarabun-400.ttf)format("truetype")}@font-face{font-family:"Sarabun";font-weight:500;font-style:normal;font-display:swap;src:url(../fonts/sarabun-500.ttf)format("truetype")}@font-face{font-family:"Sarabun";font-weight:600;font-style:normal;font-display:swap;src:url(../fonts/sarabun-600.ttf)format("truetype")}@font-face{font-family:"Sarabun";font-weight:700;font-style:normal;font-display:swap;src:url(../fonts/sarabun-700.ttf)format("truetype")}@font-face{font-family:"Noto Sans Thai";font-weight:300;font-style:normal;font-display:swap;src:url(../fonts/noto-thai-300.ttf)format("truetype")}@font-face{font-family:"Noto Sans Thai";font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/noto-thai-400.ttf)format("truetype")}@font-face{font-family:"Noto Sans Thai";font-weight:500;font-style:normal;font-display:swap;src:url(../fonts/noto-thai-500.ttf)format("truetype")}@font-face{font-family:"Noto Sans Thai";font-weight:600;font-style:normal;font-display:swap;src:url(../fonts/noto-thai-600.ttf)format("truetype")}@font-face{font-family:"Noto Sans Thai";font-weight:700;font-style:normal;font-display:swap;src:url(../fonts/noto-thai-700.ttf)format("truetype")}*,::after,::before{margin:0;padding:0;box-sizing:border-box}:root{--bg-primary:#f4f5f7;--bg-secondary:#ffffff;--bg-card:#ffffff;--bg-card-hover:#fafafa;--bg-input:#f7f8fa;--border:#e8e8ee;--border-hover:#d0d0da;--text-primary:#1a1a2e;--text-secondary:#6b7280;--text-muted:#9ca3af;--accent-orange:#f26522;--accent-orange-light:#fff4ed;--accent-orange-border:rgba(242, 101, 34, 0.2);--accent-green:#0d9488;--accent-green-bg:#f0fdfa;--accent-green-border:rgba(13, 148, 136, 0.2);--accent-red:#e06666;--accent-red-bg:#fef2f2;--accent-red-border:rgba(224, 102, 102, 0.2);--accent-blue:#3b82f6;--accent-blue-bg:#eff6ff;--accent-blue-border:rgba(59, 130, 246, 0.2);--radius:12px;--radius-sm:8px;--radius-lg:16px;--shadow-sm:0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);--shadow:0 2px 8px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);--shadow-lg:0 4px 16px rgba(0,0,0,0.08);--sidebar-width:240px;--transition:0.15s ease}.nav-btn:hover,body{color:var(--text-primary)}body{font-family:"Inter","Sarabun","Noto Sans Thai",-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg-primary);display:flex;min-height:100vh;overflow-x:hidden}.sidebar{width:var(--sidebar-width);background:var(--bg-secondary);border-right:1px solid var(--border);display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;z-index:100;padding:24px 14px}.brand-icon,.sidebar-brand{display:flex;align-items:center}.sidebar-brand{gap:10px;padding:0 10px 22px;border-bottom:1px solid var(--border);margin-bottom:20px}.brand-icon{width:34px;height:34px;background:var(--accent-orange);border-radius:50%;justify-content:center;color:#fff;flex-shrink:0}.brand-icon svg{width:20px;height:20px}.brand-name,.page-header h1{font-size:17px;font-weight:700;letter-spacing:-.3px;color:var(--text-primary)}.nav-links{display:flex;flex-direction:column;gap:6px;flex:1}.month-filter select,.nav-btn{font-family:inherit;cursor:pointer}.nav-btn{display:flex;align-items:center;gap:14px;padding:13px 18px;border:0;background:0 0;color:var(--text-secondary);font-size:15px;font-weight:500;border-radius:999px;transition:all var(--transition);text-align:left}.nav-btn:hover{background:var(--bg-input)}.nav-btn.active{background:var(--accent-orange);color:#fff;border:0;font-weight:600;box-shadow:0 4px 14px rgba(242,101,34,.3)}.nav-btn.active svg{stroke:#fff}.sidebar-footer{padding-top:16px;border-top:1px solid var(--border);text-align:center}.version-badge{display:inline-block;padding:3px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:999px;font-size:11px;color:var(--text-muted);font-weight:500;margin-bottom:6px}.credit{font-size:12px;color:var(--text-muted)}.main-content{margin-left:var(--sidebar-width);flex:1;padding:28px 32px;min-height:100vh}.tab-content{display:none;animation:fadeIn .25s ease;content-visibility:hidden}.tab-content.active{display:block;content-visibility:visible}.page-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px;flex-wrap:wrap;gap:16px}.page-header h1{font-size:24px}.subtitle{color:var(--text-muted);font-size:13px;margin-top:2px}.month-filter{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary)}.month-filter select{background:var(--bg-card);border:1px solid var(--border);color:var(--text-primary);padding:7px 12px;border-radius:var(--radius-sm);font-size:13px;outline:0;transition:border-color var(--transition)}.month-filter select:focus{border-color:var(--accent-orange)}.dash-row-1{display:grid;grid-template-columns:1fr 3fr;gap:16px;margin-bottom:16px}.dash-goals{display:flex;flex-direction:column;gap:16px}.goal-card{padding:20px 20px 26px}.goal-header,.goal-icon{display:flex;align-items:center}.goal-header{gap:12px;margin-bottom:16px}.goal-icon{width:40px;height:40px;border-radius:10px;justify-content:center;flex-shrink:0}.spending-goal-icon{background:var(--accent-orange-light);color:var(--accent-orange)}.saving-goal-icon{background:var(--accent-blue-bg);color:var(--accent-blue)}.goal-header .goal-title{font-size:14px;font-weight:600;color:var(--text-primary);margin:0 0 5px}.goal-subtitle{font-size:12px;color:var(--text-muted);margin:0}.goal-body{display:flex;flex-direction:column;gap:8px;margin-top:7px}.goal-amounts{display:flex;align-items:baseline;gap:4px}.goal-current{font-size:20px;font-weight:700;color:var(--text-primary)}.empty-state span,.goal-target{font-size:13px;color:var(--text-muted)}.goal-progress-bar{width:100%;height:8px;background:var(--bg-input);border-radius:4px;overflow:hidden}.goal-progress-fill{height:100%;border-radius:4px;transition:width .5s ease}.spending-fill{background:var(--accent-orange)}.saving-fill{background:var(--accent-blue)}.goal-footer{display:flex;justify-content:space-between;font-size:12px}.goal-pct{font-weight:600;color:var(--text-primary)}.goal-remaining{color:var(--text-muted)}.summary-section{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:20px}.summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.tx-summary-cards{margin-bottom:16px}.tx-summary-cards .card{background:var(--bg-card);border:1px solid var(--border);box-shadow:var(--shadow-sm)}#proportion-bar-wrapper{min-height:140px;padding-top:4px;flex:1;display:flex;flex-direction:column;justify-content:center}.summary-breakdown h3{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:12px;padding-top:16px;border-top:1px solid var(--border)}.card{background:var(--bg-input);border-radius:var(--radius);padding:16px 18px;display:flex;align-items:flex-start;gap:14px;transition:all var(--transition)}.card:hover{background:var(--bg-card-hover)}.card-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.income-icon{background:var(--accent-orange);color:#fff}.expense-icon{background:var(--accent-red);color:#fff}.saving-icon{background:var(--accent-blue);color:#fff}.card-label{font-size:12px;color:var(--text-muted);margin-bottom:2px;font-weight:500}.card-value{font-size:22px;font-weight:700;letter-spacing:-.3px;margin-bottom:6px}.card-change{display:flex;align-items:center;gap:6px}.change-badge{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:600;padding:2px 6px;border-radius:4px}.change-badge.up{background:var(--accent-green-bg);color:var(--accent-green)}.change-badge.down{background:var(--accent-red-bg);color:var(--accent-red)}.change-badge.neutral{background:var(--bg-input);color:var(--text-muted)}.change-text{font-size:11px;color:var(--text-muted)}.card-income .card-value{color:var(--accent-orange)}.card-expense .card-value{color:var(--accent-red)}.card-saving .card-value{color:var(--accent-blue)}.chart-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column}.chart-card h3{font-size:14px;font-weight:600;margin-bottom:16px;color:var(--text-primary)}.chart-container{position:relative;flex:1;contain:layout style}.line-container{height:260px}.dash-row-3{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.recent-tx{margin-top:0}.recent-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.recent-header h3{margin-bottom:0}.recent-tabs{display:flex;gap:4px;background:var(--bg-input);border-radius:8px;padding:3px}.recent-tab{padding:5px 14px;border:0;background:0 0;border-radius:6px;font-size:12px;font-weight:500;color:var(--text-muted);cursor:pointer;transition:all .15s ease;font-family:inherit}.recent-tab.active{background:#fff;color:var(--text-primary);box-shadow:0 1px 3px rgba(0,0,0,.08)}.recent-tab:hover:not(.active){color:var(--text-secondary)}.detail-panel,.detail-stats{display:flex;flex-direction:column}.detail-stats{gap:10px;margin-bottom:16px;min-height:120px}.detail-stat-item{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border)}.detail-stat-item:last-child,.recent-table tbody tr:last-child{border-bottom:none}.detail-stat-left{display:flex;align-items:center;gap:10px}.detail-stat-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.detail-stat-label{font-size:13px;color:var(--text-secondary)}.detail-stat-amount{font-size:13px;font-weight:600;color:var(--text-primary)}.detail-chart-container{position:relative;height:180px;margin-top:auto}.proportion-labels{display:flex;margin-bottom:8px}.proportion-label-item{display:flex;flex-direction:column;align-items:flex-start;padding:0 2px;min-width:0;overflow:hidden}.proportion-label-pct{font-size:14px;font-weight:700;color:var(--text-primary);white-space:nowrap}.proportion-label-amt{font-size:12px;color:var(--text-muted);white-space:nowrap}.proportion-bar{display:flex;height:64px;border-radius:10px;overflow:hidden;gap:3px;margin-bottom:20px}.proportion-segment{height:100%;transition:flex .4s ease;min-width:4px}.proportion-segment:first-child{border-radius:8px 0 0 8px}.proportion-segment:last-child{border-radius:0 8px 8px 0}.proportion-segment:only-child{border-radius:8px}.proportion-legend{display:flex;flex-wrap:wrap;gap:8px 20px}.proportion-legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary)}.proportion-legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.recent-list{max-height:420px;min-height:180px;overflow-y:auto}.recent-table,table{width:100%;border-collapse:collapse}.recent-table thead th{font-size:11px;font-weight:500;color:var(--text-muted);text-align:center;padding:8px 10px;border-bottom:1px solid var(--border);white-space:nowrap}.recent-table tbody tr{border-bottom:1px solid var(--border);transition:background var(--transition)}.recent-table tbody tr:hover{background:var(--bg-input)}.recent-table td{padding:12px 10px;vertical-align:middle}.recent-icon-cell{width:44px}.recent-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center}.recent-icon.income{background:var(--accent-green-bg);color:var(--accent-green)}.recent-icon.expense{background:var(--accent-red-bg);color:var(--accent-red)}.recent-type-label{font-size:13px;font-weight:500;color:var(--text-primary)}.recent-type-sub{font-size:11px;color:var(--text-muted);margin-top:1px}.date-main{font-size:12px;color:var(--text-secondary);white-space:nowrap}.date-time{font-size:11px;color:var(--text-muted);margin-top:2px}.recent-amount{font-size:13px;font-weight:600;white-space:nowrap;text-align:right}.recent-amount.income{color:var(--accent-green)}.recent-amount.expense{color:var(--accent-red)}.form-group label,.recent-note-cell{font-size:12px;color:var(--text-secondary)}.recent-note-cell{max-width:160px}.empty-state{text-align:center;color:var(--text-muted);padding:40px 20px;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:10px}.empty-state svg{opacity:.35}.empty-state-center{position:relative}.empty-state-center>.empty-state{position:absolute;inset:0;justify-content:center;padding:0}.form-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-bottom:16px;box-shadow:var(--shadow-sm)}.form-card h3{font-size:14px;font-weight:600;margin-bottom:16px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.form-group{display:flex;flex-direction:column;gap:5px}.form-group label{font-weight:500}.form-group:has(:required) label::after{content:" *";color:var(--accent-red);font-weight:600}.form-group input,.form-group select{background:var(--bg-input);border:1px solid var(--border);color:var(--text-primary);padding:9px 12px;border-radius:var(--radius-sm);font-family:inherit;font-size:13px;outline:0;transition:border-color var(--transition)}.form-group input:focus,.form-group select:focus{border-color:var(--accent-orange);box-shadow:0 0 0 3px rgba(242,101,34,.08)}.category-form input::placeholder,.form-group input::placeholder{color:var(--text-muted)}.form-group input:invalid:not(:focus):not(:placeholder-shown),.form-group select:invalid:not(:focus).touched{border-color:var(--accent-red);background-color:var(--accent-red-bg)}.form-group .validation-msg{display:none;font-size:11px;color:var(--accent-red);margin-top:2px}.form-group.invalid .validation-msg{display:block}.form-group.invalid input,.form-group.invalid select{border-color:var(--accent-red);background-color:var(--accent-red-bg)}.form-action{grid-column:1/-1}.form-action .btn-primary{width:100%;justify-content:center}.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 32px;background:var(--accent-orange);color:#fff;border:0;border-radius:999px;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:all var(--transition);white-space:nowrap}.btn-primary:hover{background:#e05a1a;transform:translateY(-1px);box-shadow:0 4px 12px rgba(242,101,34,.35)}.btn-sm{padding:10px 20px;font-size:13px}.btn-danger,.btn-delete{cursor:pointer;border-radius:999px;transition:all var(--transition);display:inline-flex;align-items:center;justify-content:center}.btn-danger{gap:8px;padding:10px 24px;background:var(--accent-red-bg);color:var(--accent-red);border:1px solid var(--accent-red-border);font-family:inherit;font-size:13px;font-weight:600}.btn-danger:hover{background:var(--accent-red);color:#fff;border-color:var(--accent-red);transform:translateY(-1px);box-shadow:0 4px 12px rgba(224,102,102,.35)}.btn-delete{background:0 0;border:0;color:var(--text-muted);padding:8px}.btn-delete:hover{color:var(--accent-red);background:var(--accent-red-bg)}.table-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.table-header-left,.table-header-right{display:flex;align-items:center;gap:16px}.table-header-left h3{margin-bottom:0}.table-header-right{gap:10px}.export-wrapper{position:relative}.btn-export{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 24px;background:var(--accent-orange);color:#fff;border:1px solid var(--accent-orange);border-radius:999px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:all var(--transition)}.btn-export:hover{background:#e05a1a;transform:translateY(-1px);box-shadow:0 4px 12px rgba(242,101,34,.35)}.export-dropdown{display:none;position:absolute;top:calc(100% + 6px);right:0;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 8px 24px rgba(0,0,0,.12);padding:14px;min-width:220px;z-index:50}.export-dropdown.open{display:block}.export-actions,.export-filter{display:flex;flex-direction:column;gap:4px}.export-filter{margin-bottom:12px}.export-filter label{font-size:11px;font-weight:600;color:var(--text-muted)}.export-filter select{padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;background:var(--bg-input)}.export-actions{border-top:1px solid var(--border);padding-top:10px}.export-btn,.export-filter select,.page-size-select select{font-family:inherit;color:var(--text-primary);cursor:pointer}.export-btn,.page-size-select{display:flex;align-items:center}.export-btn{gap:8px;width:100%;padding:9px 14px;border:0;background:0 0;border-radius:999px;font-size:13px;transition:background .15s}.export-btn:hover,tbody tr:hover,thead th{background:var(--bg-input)}.page-size-select{gap:6px;font-size:12px;color:var(--text-secondary)}.page-size-select select{padding:4px 8px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;background:var(--bg-card)}.table-wrapper{overflow-x:auto}thead th{text-align:center;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);font-weight:600;padding:10px 14px;border-bottom:1px solid var(--border)}thead th:first-child{border-radius:var(--radius-sm)0 0 0}thead th:last-child{border-radius:0 var(--radius-sm)0 0}tbody td{padding:11px 14px;font-size:13px;border-bottom:1px solid var(--border);color:var(--text-primary)}.type-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:600}.type-badge.income{background:var(--accent-green-bg);color:var(--accent-green)}.type-badge.expense{background:var(--accent-red-bg);color:var(--accent-red)}.amount-cell{white-space:nowrap}.amount-cell.income{color:var(--accent-green);font-weight:600}.amount-cell.expense{color:var(--accent-red);font-weight:600}.tx-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:16px;background:var(--bg-input);border-radius:var(--radius);margin-bottom:16px}.tx-filter-group{display:flex;flex-direction:column;gap:4px;flex:1;min-width:140px}.tx-filter-group label{font-size:12px;font-weight:600;color:var(--text-muted)}.tx-filter-group input,.tx-filter-group select{padding:9px 12px;border:1px solid var(--border);border-radius:999px;font-family:inherit;font-size:13px;background-color:var(--bg-card);color:var(--text-primary);transition:border-color var(--transition)}.tx-filter-group select{padding-right:32px;background-image:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236b7280%22%20stroke-width%3D%222.5%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%2F%3E%3C%2Fsvg%3E);background-repeat:no-repeat;background-position:right 12px center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.tx-filter-group input:focus,.tx-filter-group select:focus{outline:0;border-color:var(--accent-orange)}.tx-filter-actions{flex:0;min-width:auto;justify-content:flex-end}.btn-filter-clear{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:1px solid var(--border);border-radius:999px;background:var(--bg-card);color:var(--text-secondary);font-family:inherit;font-size:13px;font-weight:500;cursor:pointer;transition:all var(--transition);white-space:nowrap}.btn-filter-clear:hover{border-color:var(--accent-red);color:var(--accent-red);background:var(--accent-red-bg)}.tx-full-table .recent-note-cell{max-width:none}.pagination{display:flex;align-items:center;justify-content:center;gap:12px}.btn-page{background:var(--bg-input);border:1px solid var(--border);color:var(--text-secondary);padding:10px 20px;border-radius:999px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:all var(--transition)}.btn-page:hover:not(:disabled){border-color:var(--accent-orange);color:var(--accent-orange);transform:translateY(-1px)}.btn-page:disabled{opacity:.35;cursor:default}.page-info{font-size:12px;color:var(--text-muted)}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.setup-title{display:flex;align-items:center;gap:8px}.income-title svg{stroke:var(--accent-orange)}.expense-title svg{stroke:var(--accent-red)}.category-form{display:flex;gap:8px;margin-bottom:14px}.category-form input{flex:1;background:var(--bg-input);border:1px solid var(--border);color:var(--text-primary);padding:8px 12px;border-radius:var(--radius-sm);font-family:inherit;font-size:13px;outline:0;transition:border-color var(--transition)}.category-form input:focus{border-color:var(--accent-orange);box-shadow:0 0 0 3px rgba(242,101,34,.08)}.category-list{list-style:none;display:flex;flex-direction:column;gap:4px}.category-item{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;background:var(--bg-input);border-radius:var(--radius-sm);font-size:13px;border:1px solid transparent;transition:all var(--transition);cursor:grab;user-select:none}.category-item:hover{border-color:var(--border)}.category-item.dragging{opacity:.4}.category-item.drag-over{border-color:var(--accent-orange);background:var(--accent-orange-light)}.cat-left{gap:8px}.cat-actions,.cat-left,.drag-handle{display:flex;align-items:center}.drag-handle{color:var(--text-muted);cursor:grab;line-height:0}.cat-actions{gap:2px}.btn-move{background:0 0;border:0;color:var(--text-muted);cursor:pointer;padding:4px 8px;border-radius:999px;font-size:10px;line-height:1;transition:all var(--transition)}.btn-move:hover:not(.disabled){color:var(--accent-orange);background:var(--accent-orange-light)}.btn-move.disabled{opacity:.25;cursor:default}.helper-text{color:var(--text-secondary);font-size:13px}.howto-steps{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.step-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;display:flex;align-items:flex-start;gap:16px;box-shadow:var(--shadow-sm);transition:all var(--transition)}.step-card:hover{box-shadow:var(--shadow)}.note-list li::before,.step-number{border-radius:50%;background:var(--accent-orange)}.step-number{width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#fff;flex-shrink:0}.step-content h3{font-size:14px;font-weight:600;margin-bottom:4px;color:var(--text-primary)}.note-list li,.step-content p{color:var(--text-secondary);line-height:1.6}.step-content p{font-size:13px}.howto-note h3{margin-bottom:12px}.note-list{list-style:none;display:flex;flex-direction:column;gap:8px}.note-list li{padding-left:16px;position:relative}.note-list li::before{content:"";position:absolute;left:0;top:8px;width:5px;height:5px}.loading-overlay{position:fixed;inset:0;background:rgba(244,245,247,.7);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity .2s ease}.loading-overlay.active{opacity:1;pointer-events:auto}.loading-spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--accent-orange);border-radius:50%;animation:spin .6s linear infinite}.gooey-toast-wrapper{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:10000;filter:url(#gooey-filter);pointer-events:none}.gooey-pill,.gooey-toast{display:flex;align-items:center;position:relative}.gooey-toast{gap:0;pointer-events:auto;animation:gooeyIn .5s cubic-bezier(.34,1.56,.64,1) forwards}.gooey-toast.exit{animation:gooeyOut .45s cubic-bezier(.55,0,1,.45) forwards}.gooey-pill{width:38px;height:38px;border-radius:50%;justify-content:center;flex-shrink:0;z-index:2;animation:pillPop .4s cubic-bezier(.34,1.56,.64,1) .05s both}.gooey-pill svg{width:18px;height:18px}.gooey-body{background:#1a1a2e;color:#fff;padding:10px 20px 10px 28px;border-radius:24px;font-size:13px;font-weight:500;font-family:inherit;white-space:nowrap;margin-left:-16px;position:relative;z-index:1;animation:bodySlide .45s cubic-bezier(.34,1.56,.64,1) .08s both}.gooey-toast-success .gooey-pill{background:#0d9488}.gooey-toast-success .gooey-body{background:#0f766e}.gooey-toast-error .gooey-pill{background:#e06666}.gooey-toast-error .gooey-body{background:#c45555}.gooey-toast-info .gooey-pill{background:#f26522}.gooey-toast-info .gooey-body{background:#1a1a2e}.gooey-toast-warning .gooey-pill{background:#eab308}.gooey-toast-warning .gooey-body{background:#ca8a04}.gooey-toast-wrapper .gooey-toast+.gooey-toast{margin-top:10px}.form-group-upload{grid-column:1/-1}.upload-zone{border:2px dashed var(--border);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;transition:border-color .2s,background .2s;color:var(--text-muted);position:relative}.upload-zone.dragover,.upload-zone:hover{border-color:var(--accent-green);background:var(--accent-green-bg);color:var(--accent-green)}.upload-zone input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.note-list li,.upload-zone span{font-size:13px}.upload-previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.upload-previews:empty{display:none}.upload-preview-item{position:relative;width:80px;height:80px;border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;background:var(--bg-input)}.upload-preview-item img{width:100%;height:100%;object-fit:cover}.upload-preview-item .file-icon{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--text-muted);font-size:10px;padding:4px;text-align:center;word-break:break-all}.upload-preview-item .file-icon svg{flex-shrink:0}.upload-preview-remove{position:absolute;top:2px;right:2px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1}.upload-preview-remove:hover{background:var(--accent-red)}.tx-attachment-badge{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:var(--text-muted);cursor:pointer;padding:2px 6px;border-radius:4px;background:var(--bg-input)}.tx-attachment-badge:hover{color:var(--accent-green);background:var(--accent-green-bg)}@media (max-width:768px){.gooey-toast-wrapper{bottom:80px;left:50%;right:auto}.gooey-body{font-size:12px;padding:9px 16px 9px 24px}.gooey-pill{width:34px;height:34px}}.skeleton{background:linear-gradient(90deg,var(--bg-input) 25%,var(--border) 50%,var(--bg-input) 75%);background-size:200% 100%;animation:shimmer 1.2s ease-in-out infinite;border-radius:var(--radius-sm)}.skeleton-card{height:80px}.skeleton-chart{height:260px}.skeleton-row{height:42px;margin-bottom:6px}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-hover)}@media (max-width:1024px){.dash-row-1{grid-template-columns:1fr}.summary-cards{grid-template-columns:repeat(3,1fr)}.dash-row-3,.setup-grid{grid-template-columns:1fr}.main-content{padding:20px}.form-grid{grid-template-columns:repeat(2,1fr)}.table-header{flex-wrap:wrap;gap:10px}.tx-filters{gap:10px}.tx-filter-group{min-width:120px}}@media (max-width:768px){.sidebar{position:fixed;bottom:0;left:0;top:auto;width:100%;height:60px;flex-direction:row;border-right:none;border-top:1px solid var(--border);padding:0;z-index:100;box-shadow:0-2px 10px rgba(0,0,0,.05)}.sidebar-brand{display:none}.nav-links{flex-direction:row;justify-content:space-around;align-items:center;width:100%;padding:0 4px;gap:0}.nav-btn,.nav-btn.active{border-radius:0;box-shadow:none}.nav-btn{flex-direction:column;gap:3px;padding:8px 6px;flex:1;justify-content:center;align-items:center}.nav-btn.active{background:var(--accent-orange-light);color:var(--accent-orange)}.nav-btn.active svg{stroke:var(--accent-orange)}.nav-btn,.nav-btn span{font-size:10px}.nav-btn svg{width:18px;height:18px}.sidebar-footer{display:none}.main-content{margin-left:0;padding:16px 14px 76px}.dash-row-1,.dash-row-3,.summary-cards,.tx-summary-cards{grid-template-columns:1fr}.card{padding:14px;gap:12px}.card-icon{width:40px;height:40px}.card-value,.page-header h1{font-size:20px}.chart-card,.form-card{padding:14px}.page-header{flex-direction:column;align-items:flex-start}.month-filter{flex-wrap:wrap;gap:6px}.month-filter select{flex:1;min-width:0}.form-grid{grid-template-columns:1fr}.tx-filters{flex-direction:column;gap:10px}.tx-filter-group{min-width:auto;flex:auto}.tx-filter-actions{flex:auto}.btn-filter-clear,.category-form .btn-sm{width:100%;justify-content:center}.table-header{flex-direction:column;align-items:flex-start;gap:10px}.table-header-left{flex-wrap:wrap;width:100%}.table-header-right{width:100%;justify-content:flex-end}.recent-header{flex-direction:column;align-items:flex-start;gap:10px}.recent-list{overflow-x:auto}.recent-table{min-width:500px}.recent-table td,.recent-table th{padding:10px 8px}.recent-note-cell{max-width:100px}.table-wrapper{margin:0-14px;padding:0 14px;overflow-x:auto}.category-form{flex-direction:column}.proportion-bar{height:48px}.proportion-labels{flex-direction:column;gap:6px}.goal-card{padding:16px 16px 20px}.upload-zone{padding:18px}.upload-preview-item{width:64px;height:64px}.btn-row{flex-direction:column}.btn-danger,.btn-export,.btn-primary{width:100%;justify-content:center}.export-wrapper{width:100%}.export-dropdown{left:0;right:0}}@media (max-width:480px){.main-content{padding:12px 8px 76px}.page-header h1{font-size:18px}.card-value{font-size:16px}.card-label{font-size:11px}.card{padding:12px;gap:10px}.card-icon{width:36px;height:36px}.chart-card,.form-card{padding:12px}.step-card{flex-direction:column;gap:10px}.proportion-bar{height:36px}.proportion-label-pct{font-size:12px}.proportion-label-amt{font-size:10px}.proportion-legend{gap:8px}.proportion-legend-item{font-size:11px}.goal-header{gap:10px;margin-bottom:12px}.goal-icon{width:36px;height:36px}.recent-table{min-width:440px}.recent-icon{width:30px;height:30px}.recent-type-label{font-size:12px}.recent-type-sub{font-size:10px}.recent-amount{font-size:13px}.page-size-select{font-size:11px}.btn-danger,.btn-export,.btn-primary{padding:12px 20px;font-size:13px}.btn-page{padding:8px 14px;font-size:12px}.nav-btn{padding:6px 4px;font-size:9px}.nav-btn svg{width:16px;height:16px}.howto-steps{gap:12px}}.mb-10{margin-bottom:10px!important}.mb-16{margin-bottom:16px}.ml-12{margin-left:12px}.text-center{text-align:center}.text-right{text-align:right}.col-action{width:20px}.pagination-cell{padding:14px 0}.btn-row{display:flex;gap:12px;margin-top:25px}