.layout{display:flex;min-height:100vh}.sidebar{width:240px;min-width:240px;background:#0f172a;display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;overflow-y:auto;z-index:100;box-shadow:2px 0 20px #0000004d}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:22px 20px;border-bottom:1px solid rgba(255,255,255,.07);flex-shrink:0}.brand-logo{font-size:26px}.brand-name{font-size:19px;font-weight:700;color:#f1f5f9;letter-spacing:-.3px}.sidebar-user{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.07);flex-shrink:0}.sidebar-avatar{width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#fff;flex-shrink:0}.sidebar-user-info{display:flex;flex-direction:column;gap:3px;overflow:hidden}.sidebar-username{font-size:13px;font-weight:600;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-role-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:20px;width:fit-content}.sidebar-role-badge.admin{background:#fbbf2426;color:#fbbf24}.sidebar-role-badge.user{background:#667eea26;color:#818cf8}.sidebar-nav{flex:1;padding:8px 10px;overflow-y:auto}.nav-section{margin-bottom:6px}.nav-section-label{display:block;font-size:10px;font-weight:700;color:#3f4f6a;letter-spacing:1.2px;padding:14px 10px 6px}.nav-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:#8a9ab5;text-decoration:none;font-size:13.5px;font-weight:500;transition:background .12s,color .12s;margin-bottom:1px}.nav-link:hover{background:#ffffff0f;color:#e2e8f0}.nav-link.active{background:#667eea2e;color:#a5b4fc}.nav-icon{font-size:15px;width:20px;text-align:center;flex-shrink:0}.sidebar-logout{display:flex;align-items:center;gap:10px;padding:14px 20px;background:transparent;border:none;border-top:1px solid rgba(255,255,255,.07);color:#4f6180;font-size:13.5px;font-weight:500;cursor:pointer;transition:background .15s,color .15s;width:100%;text-align:left;flex-shrink:0}.sidebar-logout:hover{background:#ef44441a;color:#f87171}.layout-main{margin-left:240px;flex:1;min-height:100vh;background:#f1f5f9}@media (max-width: 900px){.sidebar{width:200px;min-width:200px}.layout-main{margin-left:200px}}@media (max-width: 600px){.sidebar{display:none}.layout-main{margin-left:0}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-card{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;padding:40px;width:100%;max-width:420px;animation:slideUp .5s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:28px;font-weight:700;color:#1a202c;margin-bottom:8px}.login-header p{font-size:14px;color:#718096}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:600;color:#2d3748}.form-group input{padding:12px 16px;border:2px solid #e2e8f0;border-radius:8px;font-size:16px;transition:all .2s;outline:none}.form-group input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.error-message{padding:12px;background-color:#fed7d7;color:#c53030;border-radius:8px;font-size:14px;text-align:center}.login-button{padding:14px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:8px}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px #667eea4d}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.6;cursor:not-allowed}.dash-container{padding:36px 32px;max-width:1080px}.dash-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:60vh;gap:16px;color:#64748b;font-size:15px}.dash-spinner{width:42px;height:42px;border:3px solid #e2e8f0;border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dash-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:32px}.dash-greeting{font-size:26px;font-weight:700;color:#0f172a;margin:0 0 5px}.dash-date{font-size:14px;color:#64748b;margin:0}.dash-admin-badge{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;white-space:nowrap}.dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:36px}.stat-card{background:#fff;border-radius:14px;padding:20px 18px;display:flex;align-items:center;gap:14px;box-shadow:0 1px 4px #00000012;border:1px solid #e9eef5}.stat-card.total{border-left:4px solid #6366f1}.stat-card.success{border-left:4px solid #10b981}.stat-card.pending{border-left:4px solid #f59e0b}.stat-card.failed{border-left:4px solid #ef4444}.stat-icon{font-size:26px}.stat-info{display:flex;flex-direction:column;gap:2px}.stat-value{font-size:24px;font-weight:700;color:#0f172a;line-height:1}.stat-label{font-size:12px;color:#64748b;font-weight:500}.dash-section{margin-bottom:36px}.dash-section-title{font-size:17px;font-weight:700;color:#1e293b;margin:0 0 16px}.dash-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px}.dash-action-card{background:#fff;border:1px solid #e9eef5;border-top:3px solid var(--accent);border-radius:14px;padding:20px 16px 16px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:5px;transition:transform .18s,box-shadow .18s;text-align:left;box-shadow:0 1px 3px #0000000f}.dash-action-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px #0000001a}.action-emoji{font-size:26px;margin-bottom:6px}.action-label{font-size:14px;font-weight:700;color:#0f172a}.action-desc{font-size:12px;color:#64748b}.dash-admin-row{display:flex;flex-wrap:wrap;gap:12px}.admin-quick-btn{display:flex;align-items:center;gap:8px;padding:10px 22px;background:#fff;border:1px solid #e9eef5;border-radius:10px;font-size:14px;font-weight:600;color:#374151;cursor:pointer;transition:background .15s,border-color .15s,color .15s;box-shadow:0 1px 3px #0000000f}.admin-quick-btn:hover{background:#f0f4ff;border-color:#667eea;color:#4f46e5}@media (max-width: 880px){.dash-stats{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.dash-container{padding:20px 16px}.dash-greeting{font-size:20px}.dash-stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat-value{font-size:20px}}.users-container{padding:28px;max-width:1200px;margin:0 auto}.users-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.users-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.add-user-button{padding:9px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s}.add-user-button:hover{opacity:.92}.users-table-container{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;overflow:hidden}.no-users{text-align:center;color:#94a3b8;padding:40px 20px}.role-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;text-transform:uppercase}.role-badge.admin{background:#dcfce7;color:#166534}.role-badge.user{background:#dbeafe;color:#1e40af}.user-form{padding:20px 24px}.user-tokens-container{padding:28px;max-width:1400px;margin:0 auto}.tokens-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.tokens-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.add-token-button{padding:9px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s}.add-token-button:hover{opacity:.92}.tokens-section,.associations-section{margin-bottom:32px}.tokens-section h2,.associations-section h2{color:#1a202c;font-size:20px;font-weight:600;margin-bottom:16px}.tokens-table-container{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;overflow-x:auto}.tokens-table td:last-child{white-space:nowrap;min-width:200px}.action-buttons{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.associate-button{padding:7px 14px;background:#667eea;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s}.associate-button:hover{background:#5558d3}.token-form{padding:20px 24px}.disabled-input{background:#f8fafc;cursor:not-allowed}.access-token-container{padding:28px;max-width:820px;margin:0 auto}.token-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.token-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.no-tokens-card,.token-card{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:32px}.no-tokens-card{text-align:center;margin-bottom:20px}.card-header{margin-bottom:28px;text-align:center}.card-header h2{color:#1a202c;font-size:24px;margin-bottom:8px}.card-header p{color:#64748b;font-size:14px}.token-form{margin-bottom:28px}.token-select,.token-input{width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1a202c;background:#fff;transition:border-color .15s,box-shadow .15s;outline:none}.token-select:focus,.token-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.generate-button{width:100%;padding:12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:opacity .15s,transform .15s;margin-top:8px}.generate-button:hover:not(:disabled){opacity:.92;transform:translateY(-1px)}.generate-button:disabled{opacity:.6;cursor:not-allowed}.access-token-result{margin-top:28px;padding:20px;background:#f8fafc;border-radius:10px;border:1px solid #bbf7d0}.access-token-result h3{color:#166534;margin-bottom:14px;font-size:18px}.token-display{display:flex;gap:10px;align-items:center;margin-bottom:10px}.token-display code{flex:1;padding:10px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;font-family:Courier New,monospace;font-size:13px;word-break:break-all;color:#374151}.copy-button{padding:10px 18px;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s;white-space:nowrap}.copy-button:hover{background:#2563eb}.token-note{color:#166534;font-size:13px;margin:0;font-weight:500}.info-section{margin-top:32px;padding:20px;background:#f8fafc;border-radius:10px;border:1px solid #e9eef5}.info-section h3{color:#1a202c;margin-bottom:14px;font-size:18px}.info-section ol{color:#475569;line-height:1.8;padding-left:20px}.info-section ol li{margin-bottom:6px;font-size:14px}.info-section a{color:#667eea;text-decoration:none}.info-section a:hover{text-decoration:underline}.auth-method-tabs{display:flex;gap:0;margin-bottom:28px;border-bottom:2px solid #e2e8f0}.tab-button{padding:10px 20px;background:transparent;border:none;border-bottom:3px solid transparent;font-size:14px;font-weight:600;color:#64748b;cursor:pointer;transition:color .15s;margin-bottom:-2px}.tab-button:hover{color:#667eea}.tab-button.active{color:#667eea;border-bottom-color:#667eea}.oauth-form{display:flex;flex-direction:column;gap:20px}.oauth-button{padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s,transform .15s;align-self:flex-start}.oauth-button:hover:not(:disabled){opacity:.92;transform:translateY(-1px)}.oauth-button:disabled{opacity:.6;cursor:not-allowed}.oauth-info{margin-top:24px;padding:16px 20px;background:#f8fafc;border-radius:8px;border-left:3px solid #667eea}.oauth-info h3{margin:0 0 12px;color:#1a202c;font-size:16px}.oauth-info ol{margin:0;padding-left:18px;color:#475569}.oauth-info li{margin-bottom:6px;line-height:1.6;font-size:14px}.positions-container{padding:28px;max-width:1400px;margin:0 auto}.positions-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.positions-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.no-tokens-card{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:40px;text-align:center;margin-bottom:20px}.no-tokens-card h2{color:#1a202c;margin-bottom:16px}.no-tokens-card p{color:#475569;line-height:1.6;margin-bottom:12px}.link-button{background:none;border:none;color:#667eea;text-decoration:underline;cursor:pointer;font-size:inherit;padding:0}.link-button:hover{color:#764ba2}.positions-controls{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:24px;margin-bottom:24px}.token-selection h3{color:#1a202c;margin-bottom:16px;font-size:18px}.token-buttons{display:flex;gap:10px;margin-bottom:16px}.select-all-button,.deselect-all-button{padding:7px 14px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.select-all-button:hover,.deselect-all-button:hover{background:#e2e8f0}.token-checkboxes{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}.token-checkbox{display:flex;align-items:center;gap:8px;cursor:pointer;padding:7px 12px;background:#f8fafc;border-radius:8px;border:1px solid #e9eef5;transition:background .15s}.token-checkbox:hover{background:#edf2f7}.token-checkbox input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#667eea}.token-checkbox span{font-weight:500;color:#374151;font-size:14px}.selection-hint{color:#64748b;font-size:13px;margin:0}.fetch-button{width:100%;padding:12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:opacity .15s,transform .15s;margin-top:20px}.fetch-button:hover:not(:disabled){opacity:.92;transform:translateY(-1px)}.fetch-button:disabled{opacity:.6;cursor:not-allowed}.positions-results{margin-top:0}.token-positions-section{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:24px;margin-bottom:24px}.token-positions-section h2{color:#1a202c;margin-bottom:20px;font-size:20px;border-bottom:1px solid #e2e8f0;padding-bottom:12px}.positions-table-container{overflow-x:auto}.positions-table{width:100%;border-collapse:collapse;font-size:14px}.positions-table thead{background:#f8fafc}.positions-table th{padding:12px 16px;text-align:left;font-weight:600;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e9eef5;white-space:nowrap}.positions-table td{padding:12px 16px;border-bottom:1px solid #f1f5f9;color:#374151}.positions-table tbody tr:last-child td{border-bottom:none}.positions-table tbody tr:hover{background:#f8fafc}.product-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;text-transform:uppercase}.product-badge.mis{background:#dbeafe;color:#1e40af}.product-badge.nrml{background:#dcfce7;color:#166534}.product-badge.cnc{background:#fef3c7;color:#92400e}.positive,.profit{color:#16a34a;font-weight:600}.negative,.loss{color:#ef4444;font-weight:600}.no-positions{text-align:center;padding:40px 20px;color:#94a3b8;font-size:14px}.strategies-container{padding:28px;max-width:1400px;margin:0 auto}.strategies-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.strategies-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.add-strategy-button{padding:9px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s}.add-strategy-button:hover{opacity:.92}.strategies-list{display:flex;flex-direction:column;gap:20px}.no-strategies-card p{color:#475569;margin-bottom:24px}.strategy-card{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:24px}.strategy-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.strategy-card-header h3{color:#1a202c;font-size:20px;margin:0 0 6px}.strategy-description{color:#64748b;margin:6px 0;font-size:14px}.strategy-status{margin-top:10px}.strategy-actions{display:flex;gap:8px}.strategy-section{margin-bottom:20px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-header h4{color:#1a202c;font-size:16px;margin:0}.no-items{color:#94a3b8;font-style:italic;padding:16px;text-align:center;background:#f8fafc;border-radius:8px;font-size:14px}.tokens-list{display:flex;flex-wrap:wrap;gap:8px}.token-item{display:flex;align-items:center;gap:8px;padding:6px 12px;background:#f8fafc;border-radius:8px;border:1px solid #e9eef5}.token-item span{color:#374151;font-size:14px;font-weight:500}.remove-button{background:#fee2e2;color:#ef4444;border:none;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;line-height:1;padding:0;transition:background .15s}.quantity-configs-list{display:flex;flex-direction:column;gap:10px}.quantity-config-item{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#f8fafc;border-radius:8px;border:1px solid #e9eef5}.config-info{flex:1;color:#475569;line-height:1.6;font-size:14px}.config-info strong{color:#374151}.edit-button-small,.delete-button-small{padding:5px 10px;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s}.edit-button-small{background:#3b82f6;color:#fff}.edit-button-small:hover{background:#2563eb}.delete-button-small{background:#ef4444;color:#fff}.delete-button-small:hover{background:#dc2626}.loading-details{text-align:center;padding:20px;color:#64748b;font-size:14px}.strategy-form,.token-form,.quantity-form{padding:20px 24px}.checkbox-group label{display:flex;align-items:center;gap:8px;cursor:pointer}.checkbox-group input[type=checkbox]{width:auto;cursor:pointer}.my-strategy-config-container{padding:28px;max-width:1200px;margin:0 auto}.my-strategy-config-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.my-strategy-config-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.no-strategies-card{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:60px;text-align:center}.no-strategies-card h2{color:#1a202c;margin-bottom:16px}.no-strategies-card p{color:#475569}.config-content{display:flex;flex-direction:column;gap:20px}.strategy-selector{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:24px}.strategy-selector label{display:block;margin-bottom:10px;font-weight:600;color:#374151;font-size:15px}.strategy-selector select{width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1a202c;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}.strategy-selector select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.strategy-description{margin-top:10px;color:#64748b;font-size:13px;font-style:italic}.quantity-configs-section{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:24px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.section-header h2{color:#1a202c;font-size:20px;margin:0}.no-configs{padding:32px;text-align:center;color:#94a3b8;font-style:italic;background:#f8fafc;border-radius:8px;font-size:14px}.configs-list{display:flex;flex-direction:column;gap:12px}.config-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#f8fafc;border-radius:8px;border:1px solid #e9eef5}.config-info{flex:1}.config-row{margin-bottom:6px;color:#475569;line-height:1.6;font-size:14px}.config-row strong{color:#374151;margin-right:6px}.config-row:last-child{margin-bottom:0}.config-actions{display:flex;gap:8px}.quantity-form{padding:20px 24px}.disabled-input{background:#f8fafc;color:#94a3b8;cursor:not-allowed}.order-details-container{padding:28px;max-width:1400px;margin:0 auto}.order-details-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.header-content h1{margin:0;color:#1a202c;font-size:26px;font-weight:700}.header-content p{margin:4px 0 0;color:#64748b;font-size:14px}.clear-logs-button{padding:8px 16px;background:#ef4444;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .15s}.clear-logs-button:hover{background:#dc2626}.bulk-actions-bar{background:#fff;padding:14px 20px;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}.bulk-actions-left{display:flex;align-items:center}.select-all-checkbox{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:500;color:#374151;font-size:14px}.bulk-actions-right{display:flex;gap:10px}.bulk-delete-button{padding:8px 18px;background:#ef4444;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600;transition:background .15s}.bulk-delete-button:hover{background:#dc2626}.orders-table-container{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;overflow-x:auto}.orders-table th:first-child,.orders-table td:first-child{width:40px;text-align:center}.orders-table th:first-child input[type=checkbox],.orders-table td:first-child input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#667eea}.status-badge.success{background:#dcfce7;color:#166534}.status-badge.failed{background:#fee2e2;color:#991b1b}.status-badge.pending{background:#fef3c7;color:#92400e}.status-badge.completed{background:#dbeafe;color:#1e40af}.action-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;text-transform:uppercase}.action-badge.exit_buy,.action-badge.exit_sell{background:#fef3c7;color:#92400e}.action-buttons{display:flex;gap:8px}.view-button,.delete-button{padding:6px 10px;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:background .15s;background:transparent}.view-button:hover{background:#dbeafe;color:#1e40af}.delete-button:hover{background:#fee2e2;color:#991b1b}.no-orders{text-align:center;padding:40px 20px;color:#94a3b8;font-style:italic;font-size:14px}.order-details-container .filters-section{background:#fff;padding:20px 24px;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;margin-bottom:20px}.order-details-container .filters-section h3{margin:0 0 14px;color:#1a202c;font-size:16px;font-weight:600}.order-details-container .filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.order-details-container .filter-group{display:flex;flex-direction:column;gap:5px}.order-details-container .filter-group label{font-size:13px;font-weight:500;color:#374151}.order-details-container .filter-group select,.order-details-container .filter-group input{padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1a202c;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}.order-details-container .filter-group select:focus,.order-details-container .filter-group input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.change-password-container{padding:28px;max-width:520px;margin:0 auto}.change-password-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.change-password-header h1{margin:0;color:#1a202c;font-size:26px;font-weight:700}.change-password-card{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:32px}.password-requirements{display:block;margin-top:4px;font-size:12px;color:#94a3b8}.submit-button{width:100%;padding:11px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:opacity .15s,transform .15s}.submit-button:hover:not(:disabled){opacity:.92;transform:translateY(-1px)}.submit-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.webhook-logs-container{padding:28px;max-width:1280px;margin:0 auto}.webhook-logs-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.webhook-logs-header h1{margin:0;font-size:26px;font-weight:700;color:#1a202c}.filters-section{background:#fff;padding:20px 24px;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;margin-bottom:20px}.filters-section h3{margin:0 0 14px;color:#1a202c;font-size:16px;font-weight:600}.filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;align-items:end}.filter-group{display:flex;flex-direction:column;gap:5px}.filter-group label{font-size:13px;font-weight:500;color:#374151}.filter-input,.filter-select{padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1a202c;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}.filter-input:focus,.filter-select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.clear-filters-button{padding:9px 16px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .15s;align-self:flex-end}.clear-filters-button:hover{background:#e2e8f0}.selection-actions{background:#fff;padding:14px 20px;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.selection-info{display:flex;align-items:center}.select-all-checkbox{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;font-weight:500;color:#374151}.select-all-checkbox input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#667eea}.delete-selected-button{padding:8px 18px;background:#ef4444;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .15s}.delete-selected-button:hover:not(:disabled){background:#dc2626}.delete-selected-button:disabled{background:#94a3b8;cursor:not-allowed;opacity:.7}.webhook-logs-table th:first-child,.webhook-logs-table td:first-child{text-align:center;width:44px}.webhook-logs-table th:first-child input[type=checkbox],.webhook-logs-table td:first-child input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:#667eea}.row-selected{background:#667eea0f!important}.row-selected:hover{background:#667eea1a!important}.logs-summary{margin-top:12px;padding:8px;text-align:right;color:#64748b;font-size:13px}.webhook-logs-content{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;overflow:hidden}.no-logs-card{text-align:center;padding:48px 20px;color:#94a3b8}.status-success{background:#dcfce7;color:#166534}.status-error{background:#fee2e2;color:#991b1b}.status-processing{background:#fef3c7;color:#92400e}.status-unknown{background:#f1f5f9;color:#64748b}.authcode-cell{font-family:monospace;font-size:12px}.view-button{padding:5px 12px;background:#3b82f6;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;transition:background .15s}.view-button:hover{background:#2563eb}.modal-body{padding:20px 24px}.detail-section{margin-bottom:24px}.detail-section h3{margin:0 0 12px;color:#1a202c;font-size:16px;font-weight:600;border-bottom:2px solid #667eea;padding-bottom:6px}.detail-row{margin-bottom:8px;padding:8px 12px;background:#f8fafc;border-radius:6px;font-size:14px}.detail-row strong{color:#374151;margin-right:8px}.authcode-display{display:block;background:#f8fafc;padding:8px 12px;border-radius:6px;font-family:monospace;font-size:12px;margin-top:6px;word-break:break-all;border:1px solid #e9eef5}.signal-data-display{background:#f8fafc;padding:14px;border-radius:8px;overflow-x:auto;font-family:monospace;font-size:12px;line-height:1.6;max-height:400px;overflow-y:auto;border:1px solid #e9eef5}.response-message{background:#f8fafc;padding:12px 14px;border-radius:8px;border-left:3px solid #667eea;font-size:14px}.modal-footer{padding:16px 24px;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end}.refresh-button{padding:8px 16px;background:#16a34a;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .15s}.refresh-button:hover{background:#15803d}.market-container{padding:28px;max-width:1280px;margin:0 auto}.market-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.market-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.connection-status{display:flex;align-items:center;gap:8px;padding:7px 14px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;color:#475569;font-size:14px;font-weight:500}.update-info{font-size:12px;color:#94a3b8;margin-left:6px}.status-indicator{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.status-indicator.connected{background:#16a34a;box-shadow:0 0 6px #16a34a80}.status-indicator.disconnected{background:#ef4444;box-shadow:0 0 6px #ef444480}.market-content{max-width:100%}.market-card{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;overflow:hidden;margin-bottom:20px}.market-grid-header{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px;padding:12px 20px;background:#f8fafc;border-bottom:1px solid #e9eef5;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.market-grid{max-height:600px;overflow-y:auto}.market-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px;padding:14px 20px;border-bottom:1px solid #f1f5f9;transition:background .15s}.market-row:hover{background:#f8fafc}.market-row:last-child{border-bottom:none}.grid-col-symbol{display:flex;align-items:center}.symbol-name{font-weight:600;color:#1a202c;font-size:14px}.grid-col-price{display:flex;align-items:center;font-weight:600;color:#1a202c;font-size:14px}.grid-col-change{display:flex;align-items:center;font-weight:600;font-size:14px}.grid-col-change.positive{color:#16a34a}.grid-col-change.negative{color:#ef4444}.grid-col-volume{display:flex;align-items:center;color:#64748b;font-size:13px}.add-instrument-section{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:20px;margin-bottom:20px}.add-instrument-button{padding:10px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s;width:100%}.add-instrument-button:hover{opacity:.92}.add-instrument-form{margin-top:20px;padding-top:20px;border-top:1px solid #e2e8f0}.search-box{display:flex;gap:10px;margin-bottom:16px}.search-input{flex:1;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;outline:none;color:#1a202c;transition:border-color .15s,box-shadow .15s}.search-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.search-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s}.search-button:hover:not(:disabled){background:#5558d3}.search-button:disabled{opacity:.6;cursor:not-allowed}.search-results{max-height:280px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px}.search-result-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #f1f5f9;transition:background .15s}.search-result-item:hover{background:#f8fafc}.search-result-item:last-child{border-bottom:none}.result-info{display:flex;flex-direction:column;gap:3px;flex:1}.result-info strong{color:#1a202c;font-size:14px}.result-exchange,.result-type{font-size:12px;color:#94a3b8;margin-right:8px}.add-button{padding:7px 14px;background:#667eea;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s}.add-button:hover:not(:disabled){background:#5558d3}.add-button:disabled{background:#cbd5e0;cursor:not-allowed}.custom-instruments-list{margin-top:20px;padding-top:20px;border-top:1px solid #e2e8f0}.custom-instruments-list h4{color:#1a202c;font-size:15px;margin-bottom:10px}.custom-instrument-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f8fafc;border-radius:8px;border:1px solid #e9eef5;margin-bottom:8px}.custom-instrument-item span{color:#374151;font-size:14px}.remove-button{padding:5px 12px;background:#fee2e2;color:#ef4444;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s}.remove-button:hover{background:#fecaca}.market-info{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;padding:24px}.market-info h3{color:#1a202c;font-size:18px;font-weight:600;margin-bottom:14px}.market-info ul{list-style:none;padding:0;margin:0}.market-info li{padding:7px 0 7px 20px;color:#475569;line-height:1.6;font-size:14px;position:relative}.market-info li:before{content:"•";color:#667eea;font-weight:700;position:absolute;left:0}@media (max-width: 768px){.market-grid-header,.market-row{grid-template-columns:2fr 1fr;gap:10px}.grid-col-volume,.market-grid-header .grid-col-volume{display:none}.market-header{flex-direction:column;align-items:flex-start}}.automanage-sl-modern{min-height:100%;background:#f1f5f9;color:#1a202c}.automanage-sl-header-modern{position:sticky;top:0;z-index:50;border-bottom:1px solid #e2e8f0;background:#fffffff2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content{max-width:1400px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between}.header-title-section{display:flex;align-items:center;gap:10px}.header-icon{font-size:1.75rem}.header-title-section h1{margin:0;font-size:22px;font-weight:700;color:#1a202c}.header-title-section p{margin:0;font-size:13px;color:#64748b}.header-actions-modern{display:flex;align-items:center;gap:8px}.automanage-sl-main{max-width:1400px;margin:0 auto;padding:24px}.automanage-sl-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.card-modern{background:#fff;border:1px solid #e9eef5;border-radius:12px;box-shadow:0 1px 4px #0000000f;overflow:hidden}.card-header-modern{background:#f8fafc;border-bottom:1px solid #e9eef5;padding:16px 20px}.card-title-modern{margin:0 0 4px;font-size:16px;font-weight:600;color:#1a202c;display:flex;align-items:center;gap:8px}.card-description{margin:0;font-size:13px;color:#64748b}.card-content-modern{padding:20px;display:flex;flex-direction:column;gap:16px}.form-group-modern{display:flex;flex-direction:column;gap:6px}.form-label{font-size:13px;font-weight:500;color:#374151}.text-danger{color:#ef4444}.form-input-modern,.form-select-modern{width:100%;padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#1a202c;font-size:14px;transition:border-color .15s,box-shadow .15s;outline:none}.form-input-modern:focus,.form-select-modern:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.form-hint-modern{font-size:12px;color:#94a3b8;margin:0}.search-box-modern{display:flex;gap:8px}.search-input-wrapper{position:relative;flex:1}.search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none;font-size:14px}.search-input-modern{width:100%;padding:9px 12px 9px 34px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#1a202c;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}.search-input-modern:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.search-results-modern{margin-top:8px;max-height:260px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:6px;display:flex;flex-direction:column;gap:2px;box-shadow:0 4px 12px #00000014}.search-result-item-modern{width:100%;padding:10px 12px;text-align:left;border:none;border-radius:6px;background:transparent;color:#374151;cursor:pointer;transition:background .15s;display:flex;align-items:center;justify-content:space-between}.search-result-item-modern:hover{background:#f1f5f9}.search-result-item-modern.selected{background:#667eea14;border:1px solid rgba(102,126,234,.3)}.result-info-modern{display:flex;align-items:center;gap:8px;flex:1}.result-symbol{font-weight:500;font-size:14px}.result-badges{display:flex;gap:6px}.badge-outline{padding:2px 8px;border:1px solid #e2e8f0;border-radius:4px;font-size:11px;color:#64748b}.badge-secondary{padding:2px 8px;background:#f1f5f9;border-radius:4px;font-size:11px;color:#475569}.selected-option-modern{margin-top:8px;padding:14px;background:#667eea0a;border:1px solid rgba(102,126,234,.2);border-radius:10px;animation:fadeIn .25s}.selected-option-content{display:flex;align-items:center;justify-content:space-between;gap:12px}.selected-option-info{flex:1;display:flex;flex-direction:column;gap:6px}.selected-symbol-section{display:flex;align-items:center;gap:8px}.selected-symbol{font-weight:600;font-size:14px;color:#1a202c}.live-price-modern{display:flex;align-items:center;gap:8px}.price-label-modern{font-size:12px;color:#64748b}.price-value-modern{font-size:18px;font-weight:700;color:#16a34a;display:flex;align-items:center;gap:6px}.price-value-modern.disconnected{color:#94a3b8}.live-indicator-modern{position:relative;display:inline-flex;align-items:center;justify-content:center}.pulse-dot{width:8px;height:8px;border-radius:50%;background:#16a34a;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.selected-option-actions-modern{display:flex;gap:8px;align-items:center}.action-buttons-modern{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action-btn{padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s}.action-btn:hover{border-color:#667eea;background:#667eea0f;color:#667eea}.action-btn.active-buy{background:#16a34a;border-color:#16a34a;color:#fff}.action-btn.active-sell{background:#ef4444;border-color:#ef4444;color:#fff}.checkbox-group-modern{display:flex;align-items:center}.checkbox-label-modern{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:#374151}.checkbox-input{width:16px;height:16px;cursor:pointer;accent-color:#667eea}.input-with-icon{position:relative}.input-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none}.input-with-icon .form-input-modern{padding-left:34px}.btn-primary,.btn-outline,.btn-destructive,.btn-ghost{padding:8px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s;border:1px solid transparent}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover:not(:disabled){opacity:.9}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-outline{background:transparent;border-color:#e2e8f0;color:#475569}.btn-outline:hover{background:#f1f5f9}.btn-destructive{background:#ef4444;color:#fff}.btn-destructive:hover{background:#dc2626}.btn-ghost{background:transparent;color:#475569}.btn-ghost:hover{background:#f1f5f9}.btn-sm{padding:6px 12px;font-size:13px}.btn-large{padding:10px 20px;font-size:15px;font-weight:600}.btn-full{width:100%}.right-section-modern{display:flex;flex-direction:column;gap:20px}.market-grid-container{overflow-x:auto;border-radius:8px;border:1px solid #e9eef5}.market-grid-table{width:100%;border-collapse:collapse;font-size:14px}.market-grid-table thead{background:#f8fafc;position:sticky;top:0;z-index:10}.market-grid-table th{padding:10px 12px;text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;border-bottom:1px solid #e9eef5}.market-grid-table td{padding:10px 12px;border-bottom:1px solid #f1f5f9}.market-grid-row{cursor:pointer;transition:background .15s;background:#fff}.market-grid-row:hover{background:#f8fafc}.market-grid-row.selected{background:#667eea0f;border-left:3px solid #667eea}.symbol-cell-grid{font-weight:600}.symbol-wrapper{display:flex;align-items:center;gap:8px}.symbol-text{color:#1a202c}.selected-indicator{color:#667eea;font-weight:700}.ltp-cell{font-weight:700}.ltp-value{color:#1a202c;display:inline-flex;align-items:center;gap:4px}.ltp-value.live{color:#16a34a}.pulse-dot-tiny{width:6px;height:6px;border-radius:50%;background:#16a34a;animation:pulse 1.5s ease-in-out infinite;display:inline-block}.change-cell{font-weight:600}.change-value.positive{color:#16a34a}.change-value.negative{color:#ef4444}.volume-cell{color:#94a3b8;font-size:12px}.lot-size-cell{padding:4px 8px!important}.lot-size-input{width:60px;padding:4px 8px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#1a202c;font-size:14px;text-align:center}.lot-size-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1f}.action-cell{padding:4px 8px!important}.btn-remove-grid{padding:3px 6px;border:none;border-radius:4px;background:#fee2e2;color:#ef4444;cursor:pointer;font-size:14px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;transition:background .15s}.btn-remove-grid:hover{background:#fecaca}.alert-modern{padding:14px 16px;background:#f8fafc;border:1px solid #e9eef5;border-radius:8px;color:#64748b}.alert-modern p{margin:0;font-size:14px}.info-list-modern{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.info-list-modern li{display:flex;gap:8px;font-size:14px;color:#475569;line-height:1.5}.info-bullet{color:#667eea;font-weight:600}.info-bullet.success{color:#16a34a}.info-bullet.danger{color:#ef4444}.info-list-modern li strong{color:#1a202c}.toast-modern{position:fixed;bottom:24px;right:24px;padding:14px 18px;border-radius:10px;box-shadow:0 8px 24px #00000026;display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:280px;max-width:440px;z-index:9999;animation:slideIn .25s ease-out}.toast-error{background:#ef4444;color:#fff}.toast-success{background:#16a34a;color:#fff}.toast-modern button{background:transparent;border:none;color:inherit;font-size:18px;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;opacity:.8;transition:opacity .15s}.toast-modern button:hover{opacity:1}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .25s}@media (max-width: 1024px){.automanage-sl-grid{grid-template-columns:1fr}}.active-positions-section,.closed-positions-section{margin-top:24px;width:100%;max-width:1400px;margin-left:auto;margin-right:auto;padding:0 24px 24px}.closure-reason-badge{padding:3px 8px;border-radius:6px;font-size:12px;font-weight:500;text-transform:uppercase}.closure-reason-badge.target{background:#dcfce7;color:#166534}.closure-reason-badge.sl{background:#fee2e2;color:#991b1b}.closure-reason-badge.other{background:#f1f5f9;color:#64748b}.closed-at-cell{font-size:12px;color:#94a3b8}.trailing-sl-badge{padding:3px 8px;border-radius:6px;font-size:12px;font-weight:600;text-transform:uppercase}.trailing-sl-badge.active{background:#dcfce7;color:#166534}.trailing-sl-badge.inactive{background:#f1f5f9;color:#94a3b8}.btn-close-position{padding:5px 12px;border:none;border-radius:6px;background:#fee2e2;color:#dc2626;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,transform .15s;white-space:nowrap}.btn-close-position:hover:not(:disabled){background:#fecaca;transform:translateY(-1px)}.btn-close-position:disabled{opacity:.5;cursor:not-allowed}.loading-indicator{color:#667eea;font-size:14px;margin-left:8px}.action-cell-wide{min-width:200px}.partial-close-row{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:5px}.btn-partial-close{padding:3px 7px;border:1px solid rgba(102,126,234,.4);border-radius:4px;background:#667eea14;color:#667eea;font-size:11px;font-weight:600;cursor:pointer;transition:background .12s}.btn-partial-close:hover:not(:disabled){background:#667eea2e}.btn-partial-close-full{border-color:#ef444466;background:#ef444412;color:#ef4444}.btn-partial-close-full:hover:not(:disabled){background:#ef444429}.btn-partial-close:disabled{opacity:.4;cursor:not-allowed}.lock-profit-row{margin-top:4px}.btn-lock-profit{padding:3px 8px;border:1px solid rgba(234,179,8,.5);border-radius:4px;background:#eab30814;color:#a16207;font-size:11px;font-weight:600;cursor:pointer;transition:background .12s;white-space:nowrap}.btn-lock-profit:hover{background:#eab3082e}.lock-modal-inline{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.lock-price-input{width:90px;padding:3px 6px;border:1px solid #e2e8f0;border-radius:4px;background:#fff;color:#1a202c;font-size:12px;outline:none}.lock-price-input:focus{border-color:#667eea}.btn-lock-confirm{padding:3px 8px;border:1px solid rgba(22,163,74,.4);border-radius:4px;background:#16a34a1a;color:#166534;font-size:12px;font-weight:600;cursor:pointer;transition:background .12s}.btn-lock-confirm:hover:not(:disabled){background:#16a34a33}.form-hint-preview{color:#667eea;font-weight:500}.positions-table{overflow-x:auto}.positions-table-modern{width:100%;border-collapse:collapse;font-size:14px}.positions-table-modern thead{background:#f8fafc;border-bottom:2px solid #667eea}.positions-table-modern th{padding:10px 12px;text-align:left;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;white-space:nowrap}.positions-table-modern td{padding:10px 12px;border-bottom:1px solid #f1f5f9;color:#475569}.positions-table-modern tbody tr:hover{background:#f8fafc}.symbol-cell{font-weight:600;color:#1a202c}.action-badge{padding:3px 8px;border-radius:6px;font-size:12px;font-weight:600;text-transform:uppercase}.action-badge.buy{background:#dcfce7;color:#166534}.action-badge.sell{background:#fee2e2;color:#991b1b}.price-cell{font-weight:600;color:#1a202c}.live-price-value{display:inline-flex;align-items:center;gap:6px;color:#1a202c}.live-price-value.live{color:#16a34a}.pulse-dot-small{width:6px;height:6px;border-radius:50%;background:#16a34a;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;display:inline-block}.change-badge{padding:3px 8px;border-radius:6px;font-size:12px;font-weight:600}.change-badge.positive{color:#16a34a;background:#dcfce7}.change-badge.negative{color:#ef4444;background:#fee2e2}.pnl-cell{font-weight:700;font-size:14px}.pnl-cell.positive{color:#16a34a}.pnl-cell.negative{color:#ef4444}.pnl-percent{font-size:12px;margin-left:4px;opacity:.75}.editable-cell{position:relative}.editable-value{display:flex;align-items:center;gap:6px;cursor:pointer;padding:4px 6px;border-radius:4px;transition:background .15s}.editable-value:hover{background:#f1f5f9}.edit-icon{font-size:11px;color:#94a3b8;opacity:0;transition:opacity .15s}.editable-value:hover .edit-icon{opacity:1}.edit-input-group{display:flex;align-items:center;gap:4px}.edit-input-small{width:80px;padding:4px 8px;border:1px solid #667eea;border-radius:4px;background:#fff;color:#1a202c;font-size:13px;outline:none}.btn-save-small,.btn-cancel-small{padding:4px 8px;border:none;border-radius:4px;font-size:12px;cursor:pointer;transition:background .15s;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center}.btn-save-small{background:#16a34a;color:#fff}.btn-save-small:hover{background:#15803d}.btn-cancel-small{background:#ef4444;color:#fff}.btn-cancel-small:hover{background:#dc2626}@media (max-width: 640px){.header-content{flex-direction:column;align-items:flex-start;gap:12px}.header-actions-modern{width:100%;justify-content:flex-end}.automanage-sl-main{padding:16px}.action-buttons-modern{grid-template-columns:1fr}.toast-modern{right:16px;left:16px;min-width:auto}.positions-table-modern{font-size:12px}.positions-table-modern th,.positions-table-modern td{padding:8px}}.configure-broker-container{padding:28px 20px;display:flex;justify-content:center;align-items:flex-start;min-height:calc(100vh - 80px)}.configure-broker-card{background:#fff;border-radius:12px;border:1px solid #e9eef5;box-shadow:0 1px 4px #0000000f;max-width:800px;width:100%;padding:32px}.broker-header{margin-bottom:24px}.broker-header h1{margin:0 0 6px;color:#1a202c;font-size:26px;font-weight:700}.broker-header .subtitle{color:#64748b;margin:0;font-size:14px}.broker-form,.broker-selection{margin-bottom:24px}.broker-label{display:block;font-weight:600;color:#374151;margin-bottom:12px;font-size:15px}.broker-options{display:flex;flex-direction:column;gap:12px}.broker-option{border:1px solid #e2e8f0;border-radius:10px;padding:16px 20px;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;background:#f8fafc}.broker-option:hover{border-color:#667eea;background:#eef2ff;box-shadow:0 0 0 3px #667eea14}.broker-option.selected{border-color:#667eea;background:#eef2ff;box-shadow:0 0 0 3px #667eea1f}.broker-option-content{display:flex;align-items:center;gap:16px}.broker-icon{font-size:2rem;flex-shrink:0}.broker-info{flex:1}.broker-info h3{margin:0 0 4px;color:#1a202c;font-size:16px}.broker-info p{margin:0;color:#64748b;font-size:13px}.broker-radio{flex-shrink:0}.broker-radio input[type=radio]{width:18px;height:18px;cursor:pointer;accent-color:#667eea}.info-message{margin-top:12px;padding:12px 14px;background:#dbeafe;border-radius:8px;border-left:3px solid #3b82f6}.info-message p{margin:0;color:#1e40af;font-size:13px}.broker-info-section{margin-top:24px;padding-top:20px;border-top:1px solid #e2e8f0}.broker-info-section h3{color:#374151;margin:0 0 10px;font-size:15px}.broker-info-section ul{margin:0;padding-left:18px;color:#475569}.broker-info-section li{margin-bottom:6px;line-height:1.6;font-size:14px}.broker-credentials-section{margin-top:20px;padding:20px;background:#f8fafc;border-radius:10px;border:1px solid #e9eef5}.credentials-title{margin:0 0 6px;color:#374151;font-size:16px;font-weight:600}.credentials-subtitle{margin:0 0 20px;color:#64748b;font-size:13px;line-height:1.5}.credentials-form{display:flex;flex-direction:column;gap:16px}.disabled-input{background:#f1f5f9;color:#64748b;cursor:not-allowed;opacity:.8}@media (max-width: 768px){.configure-broker-container{padding:16px}.configure-broker-card{padding:20px}.broker-option-content{flex-direction:column;align-items:flex-start;gap:12px}.broker-radio{align-self:flex-end}}.app{min-height:100vh;display:flex;align-items:center;justify-content:center}.loading-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;font-size:18px;color:#4a5568}.page-container{padding:28px;max-width:1280px;margin:0 auto}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px;flex-wrap:wrap}.page-header h1{font-size:26px;font-weight:700;color:#1a202c;margin:0}.header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 4px #0000000f,0 0 0 1px #e9eef5;margin-bottom:20px}.error-banner{background:#fee2e2;color:#991b1b;padding:12px 16px;border-radius:8px;margin-bottom:16px;border:1px solid #fecaca;font-size:14px}.success-banner,.success-message{background:#dcfce7;color:#166534;padding:12px 16px;border-radius:8px;margin-bottom:16px;border:1px solid #bbf7d0;font-size:14px}.info-banner{background:#dbeafe;color:#1e40af;padding:12px 16px;border-radius:8px;margin-bottom:16px;border:1px solid #bfdbfe;font-size:14px}.back-button{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;text-decoration:none;transition:background .15s,border-color .15s}.back-button:hover{background:#e2e8f0;border-color:#cbd5e1}.logout-button-header{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:transparent;color:#64748b;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .15s,color .15s,border-color .15s}.logout-button-header:hover{background:#fee2e2;color:#991b1b;border-color:#fecaca}.save-button{padding:9px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:opacity .15s,transform .15s}.save-button:hover:not(:disabled){opacity:.92;transform:translateY(-1px)}.save-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.cancel-button{padding:9px 20px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .15s}.cancel-button:hover{background:#e2e8f0}.edit-button{padding:7px 14px;background:#3b82f6;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;transition:background .15s}.edit-button:hover{background:#2563eb}.delete-button{padding:7px 14px;background:#ef4444;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;transition:background .15s}.delete-button:hover{background:#dc2626}.add-button{padding:7px 14px;background:#667eea;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;transition:background .15s}.add-button:hover{background:#5558d3}.status-badge,.associated-badge,.not-associated{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}.status-badge.active,.associated-badge{background:#dcfce7;color:#166534}.status-badge.inactive{background:#fee2e2;color:#991b1b}.not-associated{background:#f1f5f9;color:#94a3b8}.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.form-group label{font-size:14px;font-weight:500;color:#374151}.form-group input,.form-group select,.form-group textarea,.form-input{width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1a202c;background:#fff;transition:border-color .15s,box-shadow .15s;outline:none;font-family:inherit}.form-group input:focus,.form-group select:focus,.form-group textarea:focus,.form-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.form-group input::placeholder,.form-input::placeholder{color:#94a3b8}.form-group input:disabled,.form-group select:disabled{background:#f8fafc;cursor:not-allowed}.form-help-text,.form-hint,small.form-help-text{font-size:12px;color:#94a3b8;margin:0}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.error-message{background:#fee2e2;color:#991b1b;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px;border:1px solid #fecaca}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#fff;border-radius:12px;max-width:520px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000002e}.modal-content.large-modal{max-width:720px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e2e8f0}.modal-header h2{font-size:18px;font-weight:600;color:#1a202c;margin:0}.close-button{background:none;border:none;font-size:22px;cursor:pointer;color:#94a3b8;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;padding:0;transition:background .15s,color .15s}.close-button:hover{background:#f1f5f9;color:#1a202c}.table-section{background:#fff;border-radius:12px;border:1px solid #e9eef5;overflow:hidden;margin-bottom:20px}.tokens-table,.users-table,.webhook-logs-table,.orders-table{width:100%;border-collapse:collapse;font-size:14px}.tokens-table th,.users-table th,.webhook-logs-table th,.orders-table th{padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;background:#f8fafc;border-bottom:1px solid #e9eef5;white-space:nowrap}.tokens-table td,.users-table td,.webhook-logs-table td,.orders-table td{padding:12px 16px;border-bottom:1px solid #f1f5f9;color:#374151;font-size:14px}.tokens-table tbody tr:last-child td,.users-table tbody tr:last-child td,.webhook-logs-table tbody tr:last-child td,.orders-table tbody tr:last-child td{border-bottom:none}.tokens-table tbody tr:hover,.users-table tbody tr:hover,.webhook-logs-table tbody tr:hover,.orders-table tbody tr:hover{background:#f8fafc}.tokens-table-container,.logs-table-container,.orders-table-container{overflow-x:auto}.no-data{text-align:center;padding:40px 20px;color:#94a3b8;font-size:14px}.loading{display:flex;align-items:center;justify-content:center;padding:60px 20px;color:#64748b;font-size:15px}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.loading-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;color:#fff;font-size:16px}
