:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1e293b;background:#f1f5f9;font-synthesis:none;--navy: #1b365d;--blue: #1d4ed8;--blue-bright: #2563eb;--border: #e2e8f0;--muted: #64748b;--green: #16a34a;--red: #dc2626;--amber: #d97706}*{box-sizing:border-box}body{margin:0;font-size:12px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,input,select{border-radius:0}input,select{width:100%;min-width:0;padding:6px 8px;color:#334155;background:#fff;border:1px solid #cbd5e1;outline:none}input:focus,select:focus{border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f633}input[type=checkbox],input[type=radio]{width:auto;box-shadow:none}label{display:flex;flex-direction:column;gap:4px;color:#64748b;font-size:10px;font-weight:600;letter-spacing:.015em}button:focus-visible,a:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#f1f5f9}::-webkit-scrollbar-thumb{background:#cbd5e1}.mono{font-family:JetBrains Mono,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums}.muted{color:var(--muted);line-height:1.5}.oms-shell{height:100vh;min-width:1180px;display:flex;flex-direction:column;overflow:hidden}.app-header{height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 1px 2px #0f172a08;z-index:20}.header-left,.header-right{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-mark{width:25px;height:25px;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:800;font-size:14px}.brand-name{color:#1e293b;font-size:13px;font-weight:800;letter-spacing:-.015em}.version-badge{margin-left:6px;padding:2px 6px;color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;font-size:10px;font-weight:600}.header-divider{height:17px;width:1px;background:#dbe2ea;margin:0 2px}.market-status{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border:1px solid;font-size:10px;font-weight:600}.market-open{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.market-closed{color:#64748b;background:#f8fafc;border-color:#e2e8f0}.status-dot{display:inline-block;width:6px;height:6px;background:#10b981;flex:0 0 auto}.market-closed .status-dot{background:#94a3b8}.market-clock{color:#64748b;font:10px JetBrains Mono,monospace}.flags-badge{padding:3px 6px;color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;font:9px JetBrains Mono,monospace}.user-avatar{width:22px;height:22px;display:grid;place-items:center;color:#475569;background:#e2e8f0;font-size:10px;font-weight:700}.header-user{font-weight:600;color:#475569}.link-button{padding:2px;border:0;background:transparent;color:#2563eb;font-size:10px;font-weight:600}.link-button:hover{text-decoration:underline}.workspace{flex:1;min-height:0;display:flex;gap:8px;padding:8px}.left-workspace{flex:1;min-width:0;display:grid;grid-template-rows:minmax(220px,1fr) minmax(220px,1fr);gap:8px}.panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dbe2ea;overflow:hidden}.panel-tabs{min-height:35px;display:flex;align-items:stretch;justify-content:space-between;gap:8px;padding:0 8px;border-bottom:1px solid var(--border);background:#fff}.tab-scroll{display:flex;align-items:stretch;gap:16px;min-width:0;overflow-x:auto}.tab{flex:0 0 auto;display:flex;align-items:center;gap:5px;padding:0;color:#64748b;background:none;border:0;border-bottom:2px solid transparent;font-size:11px;font-weight:500;white-space:nowrap}.tab:hover{color:#1e293b}.tab.active{color:#2563eb;border-bottom-color:#2563eb;font-weight:700}.tab-placeholder{align-self:center;color:#64748b;font-weight:600}.count-badge{padding:1px 4px;background:#f1f5f9;color:#64748b;font:9px JetBrains Mono,monospace}.tab.active .count-badge{color:#1d4ed8;background:#dbeafe}.panel-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}.small-button{padding:4px 7px;color:#475569;background:#fff;border:1px solid #dbe2ea;font-size:10px;font-weight:500;white-space:nowrap}.small-button:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.danger-outline{color:#b91c1c;border-color:#fecaca}.toolbar{display:flex;align-items:center;gap:12px;padding:5px 8px;background:#fafbfc;border-bottom:1px solid #edf2f7}.search-input{width:240px;padding:4px 7px;font-size:10px}.feed-label{margin-left:auto;display:flex;align-items:center;gap:5px;color:#64748b;font-size:9px}.table-container{flex:1;min-height:0;overflow:auto;background:#fff}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:10px;white-space:nowrap}.data-table th{position:sticky;top:0;z-index:2;padding:6px 7px;color:#64748b;background:#f8fafc;border-bottom:1px solid #dbe2ea;font-size:9px;font-weight:600;letter-spacing:.035em;text-transform:uppercase}.data-table td{max-width:210px;padding:5px 7px;color:#475569;border-bottom:1px solid #edf2f7;overflow:hidden;text-overflow:ellipsis}.data-table tbody tr:hover td{background:#f8fbff}.data-table .numeric{text-align:right}.data-table .center{text-align:center}.sort-button{display:inline-flex;align-items:center;gap:4px;padding:0;color:inherit;background:none;border:0;font:inherit;text-transform:inherit;letter-spacing:inherit}.sort-button span{color:#94a3b8;font-size:8px}.numeric .sort-button{margin-left:auto}.action-column{width:80px;text-align:center!important}.row-actions{text-align:center}.buy-button,.sell-button{padding:2px 5px;border:1px solid;font-size:9px;font-weight:600}.buy-button{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}.sell-button{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.isin-cell{color:#1d4ed8!important;font-weight:600}.not-temple{display:inline-block;margin-left:5px;padding:1px 3px;color:#b45309;background:#fffbeb;border:1px solid #fde68a;font:8px Inter,sans-serif}.empty-table{height:70px;text-align:center;color:#94a3b8!important}.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 9px;color:#64748b;background:#f8fafc;border-top:1px solid var(--border);font-size:9px}.panel-footer strong{color:#334155;font-family:JetBrains Mono,monospace;font-weight:600}.order-id{font-weight:600}.side-badge{padding:2px 5px;font-size:8px;font-weight:800}.side-badge.buy{color:#15803d;background:#dcfce7}.side-badge.sell{color:#b91c1c;background:#fee2e2}.stage-badge{padding:2px 4px;border:1px solid #e2e8f0;color:#64748b;background:#f8fafc;font-size:8px;font-weight:600}.stage-working{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.stage-executed,.stage-confirmed,.stage-blottered{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.stage-cancelled,.stage-rejected,.stage-expired{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.audit-table .json-view{max-width:650px;max-height:300px}.ticket-dock{width:390px;flex:0 0 390px;min-height:0;display:flex;flex-direction:column;gap:5px}.ticket-dock-toolbar{display:flex;align-items:end;justify-content:space-between;gap:6px;padding:0 1px}.ticket-dock-toolbar label{flex:1;flex-direction:row;align-items:center;gap:5px;white-space:nowrap}.ticket-dock-toolbar select{width:105px;padding:3px 5px}.order-ticket{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dbe2ea;overflow:hidden;position:relative}.ticket-header{padding:10px 12px;color:#fff;background:#1e293b;border-bottom:1px solid #334155}.ticket-title{display:flex;align-items:center;justify-content:space-between;color:#e2e8f0;font-size:10px;font-weight:700;letter-spacing:.04em}.ticket-title>span:first-child{display:flex;align-items:center;gap:6px}.ticket-id{color:#94a3b8;font:9px JetBrains Mono,monospace}.ticket-actions-top{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px}.ticket-header-button{padding:2px 6px;color:#bfdbfe;background:#334155;border:1px solid #475569;font-size:9px}.settlement-badge{padding:2px 5px;color:#dbeafe;background:#1d4ed8;font-size:8px;font-weight:600}.ticket-security{display:flex;justify-content:space-between;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid #475569}.ticket-security strong{display:block;max-width:260px;font-size:12px;line-height:1.35}.ticket-security-meta{display:flex;align-items:center;gap:7px;margin-top:4px;color:#93c5fd;font:9px JetBrains Mono,monospace}.rating-badge{padding:1px 3px;color:#fcd34d;background:#334155}.ticket-quote{flex:0 0 auto;text-align:right}.ticket-quote span{display:block;color:#94a3b8;font-size:8px;text-transform:uppercase}.ticket-quote strong{margin-top:3px;color:#34d399;font:12px JetBrains Mono,monospace}.ticket-empty-security{margin-top:8px;padding-top:8px;color:#94a3b8;border-top:1px solid #475569;font-size:10px;line-height:1.4}.ticket-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px 12px 12px;overflow-y:auto}.ticket-section{display:flex;flex-direction:column;gap:5px}.field-label{color:#64748b;font-size:9px;text-transform:uppercase;letter-spacing:.045em}.field-label-row{display:flex;align-items:center;justify-content:space-between;color:#94a3b8;font-size:9px}.side-selector{display:grid;grid-template-columns:1fr 1fr;gap:7px}.side-selector button{padding:7px;color:#475569;background:#fff;border:1px solid #cbd5e1;font-size:11px;font-weight:800}.side-selector .selected-buy{color:#fff;background:#16a34a;border-color:#15803d}.side-selector .selected-sell{color:#fff;background:#dc2626;border-color:#b91c1c}.two-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.quantity-control{display:flex}.quantity-control input{border-right:0;font-family:JetBrains Mono,monospace;font-weight:600}.quantity-control button{width:31px;flex:0 0 31px;color:#475569;background:#f8fafc;border:1px solid #cbd5e1;border-right:0;font-weight:700}.quantity-control button:last-child{border-right:1px solid #cbd5e1}.quantity-pills{display:grid;grid-template-columns:repeat(6,1fr);gap:3px}.quantity-pills button{padding:3px 1px;color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;font:8px JetBrains Mono,monospace}.quantity-pills button.active{color:#fff;background:#2563eb;border-color:#1d4ed8}.field-hint,.field-warning{font-size:9px;line-height:1.4}.field-hint{color:#64748b}.field-warning{color:#b45309}.quote-copy{display:flex;gap:4px}.quote-copy button{padding:0;color:#2563eb;background:none;border:0;font-size:9px}.cash-summary{display:flex;flex-direction:column;gap:5px;padding:9px;background:#f8fafc;border:1px solid #e2e8f0;font-size:9px}.cash-summary>div{display:flex;justify-content:space-between;gap:10px;color:#64748b}.cash-summary strong{color:#334155;font:9px JetBrains Mono,monospace}.cash-summary .consideration{margin-top:2px;padding-top:6px;border-top:1px solid #dbe2ea;color:#334155;font-size:11px;font-weight:700}.cash-summary .consideration strong{color:#1d4ed8;font-size:12px}.ticket-submit{display:flex;flex-direction:column;gap:6px;padding-top:9px;border-top:1px solid #e2e8f0}.execute-button{padding:8px;color:#fff;border:1px solid;font-weight:800}.execute-button.buy{background:#16a34a;border-color:#15803d}.execute-button.sell{background:#dc2626;border-color:#b91c1c}.allocation-section{padding-top:2px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px;color:#64748b;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.empty-compact{padding:7px;color:#94a3b8;background:#f8fafc;border:1px dashed #dbe2ea;font-size:9px;line-height:1.4}.allocation-grid{display:grid;grid-template-columns:minmax(110px,1.2fr) 65px minmax(110px,1fr) minmax(95px,1fr) 22px;gap:3px;align-items:center}.allocation-grid-head{color:#94a3b8;font-size:8px}.allocation-row{display:contents}.allocation-row input,.allocation-row select{padding:4px;font-size:9px}.allocation-quantity{display:grid;grid-template-columns:1fr 45px;gap:2px}.allocation-row.breach-row input,.allocation-row.breach-row select{background:#fef2f2;border-color:#f87171}.allocation-total{margin-top:4px;text-align:right;font:8px JetBrains Mono,monospace}.allocation-total.valid{color:#15803d}.allocation-total.invalid{color:#b91c1c}.icon-button{padding:2px 5px;color:#64748b;background:transparent;border:0;font-size:14px;line-height:1}.icon-button:hover{color:#1e293b;background:#f1f5f9}.compliance-section{display:flex;flex-direction:column;gap:6px}.compliance-heading{display:flex;align-items:center;justify-content:space-between}.checkbox-label{flex-direction:row;align-items:center;gap:5px;color:#475569;font-size:10px;font-weight:500;letter-spacing:0}.compliance-result{padding:7px;border:1px solid;font-size:9px}.compliance-result>strong{margin-right:7px}.compliance-result.passed{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.compliance-result.has-breaches{color:#991b1b;background:#fff7f7;border-color:#fecaca}.compliance-result>span{color:#64748b;font-size:8px}.breach-line{display:grid;grid-template-columns:1fr 2fr auto;gap:5px;margin-top:5px;padding:5px;color:#991b1b;background:#fee2e2}.override-label{color:#b91c1c}.stale-banner{padding:7px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;font-size:10px;font-weight:600;line-height:1.4}.error-banner{padding:6px 8px;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;font-size:10px;line-height:1.4}.info-note,.warning-note{margin:0 0 10px;padding:7px 8px;line-height:1.45;font-size:10px}.info-note{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.warning-note{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.context-menu{position:fixed;z-index:1000;width:220px;padding:4px;background:#fff;border:1px solid #cbd5e1;box-shadow:0 8px 24px #0f172a26}.context-menu button{display:block;width:100%;padding:7px 9px;text-align:left;color:#334155;background:#fff;border:0;font-size:11px}.context-menu button:hover:not(:disabled){background:#eff6ff;color:#1d4ed8}.context-menu .context-danger{color:#b91c1c}.context-menu button:disabled{color:#94a3b8;background:#fafafa}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;display:grid;place-items:center;padding:20px;background:#0f172a66}.modal{width:min(480px,95vw);max-height:90vh;display:flex;flex-direction:column;background:#fff;border:1px solid #94a3b8;box-shadow:0 18px 50px #0f172a40}.modal-wide{width:min(850px,95vw)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.modal-header h2{margin:0;color:#1e293b;font-size:13px}.modal-body{display:flex;flex-direction:column;gap:11px;padding:12px;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:7px;padding-top:5px}.primary-button,.secondary-button{padding:7px 11px;border:1px solid;font-size:11px;font-weight:600}.primary-button{color:#fff;background:#2563eb;border-color:#1d4ed8}.primary-button:hover:not(:disabled){background:#1d4ed8}.secondary-button{color:#475569;background:#fff;border-color:#cbd5e1}.secondary-button:hover:not(:disabled){background:#f8fafc}.form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.form-row:has(.align-end){grid-template-columns:1fr auto}.align-end{align-self:end}.search-results{max-height:220px;overflow:auto;border:1px solid #e2e8f0}.search-results label{flex-direction:row;align-items:flex-start;padding:7px;color:#475569;border-bottom:1px solid #edf2f7;font-weight:400}.search-results label.selected{background:#eff6ff}.column-picker{display:flex;flex-direction:column}.column-picker>div{display:flex;align-items:center;justify-content:space-between;padding:4px 0;border-bottom:1px solid #f1f5f9}.column-picker label{flex-direction:row;align-items:center;color:#475569;font-size:11px;font-weight:400}.json-view{max-height:420px;margin:0;padding:10px;overflow:auto;color:#dbeafe;background:#0f172a;font:10px/1.5 JetBrains Mono,monospace;white-space:pre-wrap;word-break:break-word}.toast{position:fixed;right:18px;bottom:18px;z-index:1200;max-width:390px;display:flex;align-items:flex-start;gap:14px;padding:11px 13px;color:#fff;background:#0f172a;border-left:3px solid #3b82f6;box-shadow:0 10px 30px #0f172a40;font-size:10px;line-height:1.45}.toast strong{display:block;margin-bottom:2px;font-size:11px}.toast-success{border-left-color:#22c55e}.toast-error{border-left-color:#ef4444}.toast-close{padding:0;color:#94a3b8;background:none;border:0;font-size:16px}.login-page,.centered-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:#eef2f7}.login-card{position:relative;width:390px;padding:28px;background:#fff;border:1px solid #dbe2ea;box-shadow:0 12px 35px #1b365d14}.login-brand{display:flex;align-items:center;gap:12px}.login-brand .brand-mark{width:36px;height:36px;font-size:20px}.login-brand h1{margin:0;color:#1b365d;font-size:22px;letter-spacing:-.03em}.login-brand span{color:#64748b;font-size:10px}.login-version{position:absolute;top:28px;right:28px;color:#2563eb;font:10px JetBrains Mono,monospace}.login-card>p{margin:24px 0 18px;color:#64748b;font-size:11px;line-height:1.6}.login-card form{display:flex;flex-direction:column;gap:13px}.login-card form label{font-size:11px}.login-card form input{padding:9px}.login-button{padding:10px;margin-top:3px}.login-footnote{margin-top:18px;padding-top:14px;color:#94a3b8;border-top:1px solid #edf2f7;font-size:9px}.loading-card{padding:16px 20px;color:#475569;background:#fff;border:1px solid #dbe2ea}.detached-page{height:100vh;background:#f1f5f9}.detached-ticket{width:100%;height:100vh;border:0}.detached-ticket .ticket-body{padding:12px 16px 18px}@media (max-width: 1350px){.ticket-dock{width:360px;flex-basis:360px}.tab-scroll{gap:11px}.panel-actions{gap:3px}.small-button{padding:4px 5px}}
