@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap";
:root{--bg-main:#0a0e17;--bg-panel:#14192399;--bg-panel-hover:#1e2634cc;--text-primary:#f0f4f8;--text-secondary:#94a3b8;--text-muted:#64748b;--accent-primary:#3b82f6;--accent-primary-hover:#2563eb;--accent-primary-alpha:#3b82f633;--profit-color:#10b981;--profit-bg:#10b98126;--loss-color:#ef4444;--loss-bg:#ef444426;--border-color:#ffffff14;--border-light:#ffffff0a;--glow-shadow:0 0 20px #3b82f626;--panel-shadow:0 8px 32px #0006;--radius-sm:6px;--radius-md:12px;--radius-lg:16px;--radius-xl:24px}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-main);color:var(--text-primary);-webkit-font-smoothing:antialiased;background-image:radial-gradient(circle at 15%,#3b82f614,#0000 25%),radial-gradient(circle at 85% 30%,#10b9810d,#0000 25%);background-attachment:fixed;min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5}h1,h2,h3,h4,h5,h6{color:var(--text-primary);font-family:Outfit,sans-serif;font-weight:600}.app-container{height:100vh;display:flex;overflow:hidden}.sidebar{-webkit-backdrop-filter:blur(12px);border-right:1px solid var(--border-color);z-index:10;background-color:#0a0e17cc;flex-direction:column;width:260px;transition:all .3s;display:flex}.sidebar-header{border-bottom:1px solid var(--border-light);letter-spacing:-.5px;color:#fff;align-items:center;height:70px;padding:0 24px;font-family:Outfit,sans-serif;font-size:1.25rem;font-weight:700;display:flex}.sidebar-header span{background:linear-gradient(135deg,#60a5fa,#3b82f6);-webkit-text-fill-color:transparent;-webkit-background-clip:text}.nav-menu{flex-direction:column;flex:1;gap:8px;padding:24px 16px;display:flex}.nav-item{border-radius:var(--radius-md);color:var(--text-secondary);cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;align-items:center;gap:12px;width:100%;padding:12px 16px;font-weight:500;text-decoration:none;transition:all .2s;display:flex}.nav-item:hover{background-color:var(--border-light);color:var(--text-primary)}.nav-item.active{background-color:var(--accent-primary-alpha);color:var(--accent-primary);border-color:#3b82f64d;box-shadow:inset 0 0 12px #3b82f61a}.main-content{flex-direction:column;flex:1;height:100vh;display:flex;position:relative;overflow:hidden}.top-header{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border-color);z-index:5;background-color:#0a0e1780;justify-content:space-between;align-items:center;height:70px;padding:0 32px;display:flex}.header-title{font-size:1.25rem;font-weight:600}.header-actions{align-items:center;gap:16px;display:flex}.select-input,.btn{background-color:var(--bg-panel);border:1px solid var(--border-color);color:var(--text-primary);border-radius:var(--radius-sm);cursor:pointer;outline:none;padding:8px 16px;font-family:inherit;font-size:.9rem;transition:all .2s}select.select-input{padding-right:36px}.select-input:hover,.select-input:focus{border-color:var(--accent-primary)}.btn{justify-content:center;align-items:center;gap:8px;font-weight:500;display:inline-flex}.btn:hover{background-color:var(--bg-panel-hover)}.btn-primary{background-color:var(--accent-primary);border-color:var(--accent-primary);color:#fff}.btn-primary:hover{background-color:var(--accent-primary-hover);border-color:var(--accent-primary-hover)}.checkbox-control{border:1px solid var(--border-color);border-radius:var(--radius-sm);background-color:var(--bg-panel);min-height:38px;color:var(--text-secondary);white-space:nowrap;cursor:pointer;align-items:center;gap:8px;padding:0 12px;font-size:.9rem;display:inline-flex}.checkbox-control input{width:16px;height:16px;accent-color:var(--accent-primary);cursor:pointer}.dashboard-scroll{flex:1;padding:32px;overflow-y:auto}.dashboard-scroll::-webkit-scrollbar{width:8px;height:8px}.dashboard-scroll::-webkit-scrollbar-track{background:0 0}.dashboard-scroll::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}.dashboard-scroll::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.glass-panel{background-color:var(--bg-panel);-webkit-backdrop-filter:blur(16px);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--panel-shadow);margin-bottom:24px;padding:24px;transition:transform .2s,box-shadow .2s}.glass-panel:hover{border-color:#ffffff1f;box-shadow:0 12px 40px #00000080}.panel-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.panel-title{align-items:center;gap:8px;font-size:1.1rem;display:flex}.transaction-totals{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;width:100%;display:flex}.transaction-panel-header{flex-flow:column wrap;align-items:flex-start;gap:16px}.transaction-filter-section{width:100%}.ea-panel-header{flex-direction:column;align-items:flex-start}.ea-filter-section{width:100%}.ea-filters{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;width:100%;margin-top:14px;display:flex}.overview-panel-header{flex-direction:column;align-items:flex-start}.overview-filter-section{width:100%}.overview-filters{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;width:100%;margin-top:14px;display:flex}.transaction-filters{flex-wrap:wrap;align-items:center;gap:10px;width:100%;margin-top:14px;display:flex}.date-filter-group{align-items:center;gap:10px;display:flex}.search-input-wrap{flex:320px;align-items:center;min-width:240px;display:flex;position:relative}.search-input-wrap>svg{color:var(--text-muted);pointer-events:none;position:absolute;left:12px}.search-input{cursor:text;width:100%;padding-left:36px;padding-right:34px}.icon-button{border-radius:var(--radius-sm);width:22px;height:22px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex;position:absolute;right:8px}.icon-button:hover{background:var(--border-light);color:var(--text-primary)}.sort-button{width:100%;color:inherit;font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;justify-content:flex-end;align-items:center;gap:6px;display:inline-flex}th:first-child .sort-button{justify-content:flex-start}.sort-button svg{color:var(--text-muted);opacity:.65;transition:color .15s,opacity .15s,transform .15s}.sort-button.active{color:var(--text-primary)}.sort-button.active svg{color:var(--accent-primary);opacity:1}.sort-button svg.asc{transform:rotate(180deg)}@media (max-width:980px){.transaction-panel-header{flex-direction:column}.transaction-totals{justify-content:flex-start}.date-filter-group,.search-input-wrap{width:100%}.date-filter-group .select-input{flex:1;min-width:0}}.transaction-total-item{border:1px solid var(--border-light);border-radius:var(--radius-sm);text-align:right;background:#0a0e1759;min-width:88px;padding:6px 10px}.transaction-total-item span{color:var(--text-secondary);text-transform:uppercase;font-size:.68rem;line-height:1;display:block}.transaction-total-item strong{margin-top:4px;font-size:.92rem;line-height:1.1;display:block}.transaction-total-item.net{background:var(--accent-primary-alpha);border-color:#3b82f647}.transaction-checkbox{min-height:54px}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-bottom:24px;display:grid}.stat-card{border:1px solid var(--border-light);border-radius:var(--radius-md);background:linear-gradient(#1e263480 0%,#14192380 100%);flex-direction:column;gap:12px;padding:20px;display:flex;position:relative;overflow:hidden}.stat-card:before{content:"";background:linear-gradient(90deg, var(--accent-primary), transparent);opacity:.5;height:2px;position:absolute;top:0;left:0;right:0}.stat-title{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;font-size:.85rem;font-weight:500}.stat-value{font-family:Outfit,sans-serif;font-size:2rem;font-weight:700;line-height:1.1}.stat-profit{color:var(--profit-color)}.stat-loss{color:var(--loss-color)}.table-container{border-radius:var(--radius-sm);border:1px solid var(--border-light);overflow-x:auto}.transaction-table-container{overflow-x:hidden}.overview-table-container{overflow-x:auto}table{border-collapse:collapse;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;width:100%}th,td{padding:10px 14px;font-size:.8rem}th{color:var(--text-secondary);border-bottom:1px solid var(--border-color);background-color:#0003;font-weight:500}th:first-child,td:first-child{text-align:left}tbody tr{border-bottom:1px solid var(--border-light);transition:background-color .15s}tbody tr:last-child{border-bottom:none}tbody tr:hover{background-color:#ffffff08}.transaction-table{table-layout:fixed;white-space:normal}.transaction-table th,.transaction-table td{padding:10px 8px;font-size:.76rem}.transaction-table th:first-child,.transaction-table td:first-child{width:16%}.transaction-table th:nth-child(2),.transaction-table td:nth-child(2){width:11%}.transaction-table th:nth-child(3),.transaction-table td:nth-child(3){width:14%}.transaction-table th:nth-child(4),.transaction-table td:nth-child(4),.transaction-table th:nth-child(5),.transaction-table td:nth-child(5){width:5%}.transaction-table th:nth-child(6),.transaction-table td:nth-child(6),.transaction-table th:nth-child(7),.transaction-table td:nth-child(7){width:10%}.transaction-table th:nth-child(8),.transaction-table td:nth-child(8),.transaction-table th:nth-child(9),.transaction-table td:nth-child(9),.transaction-table th:nth-child(10),.transaction-table td:nth-child(10){width:7%}.transaction-table th:nth-child(11),.transaction-table td:nth-child(11){width:8%}.transaction-table .sort-button{white-space:normal;gap:4px}.transaction-table .symbol-cell,.transaction-table .symbol-comment,.transaction-table .account-remark,.transaction-table .custom-tooltip{max-width:100%}.overview-table{table-layout:fixed;white-space:nowrap;min-width:1900px}.overview-table th,.overview-table td{vertical-align:middle;padding:10px 12px;font-size:.8rem;line-height:1.3}.overview-table th:first-child,.overview-table td:first-child{width:14%}.overview-table th:nth-child(2),.overview-table td:nth-child(2),.overview-table th:nth-child(14),.overview-table td:nth-child(14),.overview-table th:nth-child(15),.overview-table td:nth-child(15){width:5%}.overview-table th:nth-child(3),.overview-table td:nth-child(3),.overview-table th:nth-child(9),.overview-table td:nth-child(9),.overview-table th:nth-child(11),.overview-table td:nth-child(11){width:7%}.overview-table th:nth-child(4),.overview-table td:nth-child(4){width:4.5%}.overview-table th:nth-child(5),.overview-table td:nth-child(5){width:6.5%}.overview-table th:nth-child(6),.overview-table td:nth-child(6),.overview-table th:nth-child(7),.overview-table td:nth-child(7),.overview-table th:nth-child(8),.overview-table td:nth-child(8),.overview-table th:nth-child(10),.overview-table td:nth-child(10),.overview-table th:nth-child(12),.overview-table td:nth-child(12){width:6%}.overview-table th:nth-child(13),.overview-table td:nth-child(13){width:9%}.overview-table .sort-button{white-space:normal;gap:3px}.overview-table .bar-container{display:none}.profit-text{color:var(--profit-color);font-weight:500}.loss-text{color:var(--loss-color);font-weight:500}.bar-container{background-color:var(--border-light);vertical-align:middle;border-radius:3px;width:100px;height:6px;margin-left:8px;display:inline-block;overflow:hidden}.bar-fill{border-radius:3px;height:100%}.bar-profit{background-color:var(--profit-color)}.bar-loss{background-color:var(--loss-color)}.loader-container{justify-content:center;align-items:center;height:300px;display:flex}.spinner{border:3px solid var(--border-color);border-top-color:var(--accent-primary);border-radius:50%;width:24px;height:24px;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.custom-tooltip{cursor:help;flex-direction:column;align-items:flex-end;max-width:150px;display:inline-flex;position:relative}.account-number{border-bottom:1px dashed var(--text-muted);display:inline-block}.account-remark{color:#60a5fa;text-align:right;text-overflow:ellipsis;white-space:nowrap;max-width:150px;margin-top:2px;font-size:.75rem;display:block;overflow:hidden}.symbol-cell{flex-direction:column;align-items:flex-end;max-width:150px;display:inline-flex}.symbol-comment{color:#60a5fa;text-align:right;text-overflow:ellipsis;white-space:nowrap;max-width:150px;margin-top:2px;font-size:.75rem;display:block;overflow:hidden}.custom-tooltip .tooltip-text{visibility:hidden;color:#f8fafc;text-align:center;z-index:100;opacity:0;white-space:nowrap;background-color:#0f172a;border:1px solid #334155;border-radius:6px;padding:8px 12px;font-size:.75rem;transition:opacity .15s;position:absolute;bottom:125%;left:50%;transform:translate(-50%);box-shadow:0 4px 6px #0000004d}.custom-tooltip:hover .tooltip-text{visibility:visible;opacity:1}.badge{background-color:var(--border-light);border-radius:12px;padding:4px 8px;font-size:.75rem;font-weight:600;display:inline-flex}.badge-profit{background-color:var(--profit-bg);color:var(--profit-color)}.badge-loss{background-color:var(--loss-bg);color:var(--loss-color)}.flex-row{align-items:center;gap:8px;display:flex}.flex-col{flex-direction:column;gap:4px;display:flex}.text-xs{font-size:.75rem}.multi-select-container{position:relative}.multi-select-dropdown{border:1px solid var(--border-color);border-radius:var(--radius-md);width:max-content;min-width:100%;max-width:500px;max-height:240px;box-shadow:var(--panel-shadow);z-index:100;background-color:#141923;margin-top:4px;padding:4px 0;position:absolute;top:100%;left:auto;right:0;overflow-y:auto}.multi-select-option{cursor:pointer;color:var(--text-primary);align-items:center;padding:8px 12px;font-size:.875rem;transition:background-color .2s;display:flex}.multi-select-option:hover{background-color:var(--bg-panel-hover)}.multi-select-checkbox{border:1px solid var(--text-muted);border-radius:4px;justify-content:center;align-items:center;width:16px;height:16px;margin-right:8px;transition:all .2s;display:flex}.multi-select-checkbox.checked{background-color:var(--accent-primary);border-color:var(--accent-primary)}.multi-select-empty{color:var(--text-muted);padding:8px 12px;font-size:.875rem}input[type=date]::-webkit-calendar-picker-indicator{filter:invert();opacity:.7;cursor:pointer}input[type=date]::-webkit-calendar-picker-indicator:hover{opacity:1}
