/* Styles belong only to the read-only special-type ranking workbench. */
#specialLossWorkbench { min-width:0; }
#specialLossWorkbench h2 { margin:0 0 10px; }
#specialLossWorkbench .sl-note { margin:10px 0; font-size:13px; line-height:1.7; color:#607087; overflow-wrap:anywhere; }
#specialLossWorkbench .sl-controls { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin:18px 0; }
#specialLossWorkbench label { display:flex; flex-direction:column; gap:6px; font-size:13px; min-width:0; color:#475569; }
#specialLossWorkbench input, #specialLossWorkbench select { box-sizing:border-box; min-width:0; max-width:100%; width:145px; padding:10px; background:white; border:1px solid #dce2ea; border-radius:8px; font:inherit; color:#172536; }
#specialLossWorkbench select { width:220px; }
#specialLossWorkbench button { box-sizing:border-box; max-width:100%; min-width:0; padding:10px 13px; border:1px solid #dce2ea; border-radius:8px; background:#fff; color:#25364a; white-space:normal; line-height:1.4; }
#specialLossWorkbench button:disabled { opacity:.45; cursor:default; }
#specialLossWorkbench button:not(:disabled) { cursor:pointer; }
#specialLossWorkbench [data-sl=apply] { background:#243d59; color:white; border-color:#243d59; }
#specialLossWorkbench .sl-rule { padding:13px; border-radius:10px; background:#f4f7fa; }
#specialLossWorkbench .sl-priority-rule { padding:13px; border-left:3px solid #d17a2c; background:#fff7ed; color:#694322; }
#specialLossWorkbench .sl-api { margin:16px 0; padding:14px; min-width:0; border:1px solid #dce2ea; border-radius:10px; }
#specialLossWorkbench .sl-api h3 { margin:0 0 10px; font-size:14px; color:#243d59; }
#specialLossWorkbench .sl-api-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
#specialLossWorkbench .sl-api a { font-size:13px; color:#1476ac; overflow-wrap:anywhere; }
#specialLossWorkbench .sl-api a[aria-disabled=true] { color:#8491a2; pointer-events:none; }
#specialLossWorkbench [data-sl=api-url] { display:block; line-height:1.7; }
#specialLossWorkbench [data-error=true] { color:#b42318; }
#specialLossWorkbench .sl-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; }
#specialLossWorkbench .sl-fact { min-width:0; padding:14px; border:1px solid #e0e6ec; border-radius:11px; background:#fafcfe; color:#52657b; font-size:12px; line-height:1.7; }
#specialLossWorkbench .sl-fact strong { display:block; color:#213952; font-size:21px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#specialLossWorkbench .sl-fact small { display:block; overflow-wrap:anywhere; }
#specialLossWorkbench .sl-fact.sl-peak { background:#fff4eb; border-color:#ffd0ad; }
#specialLossWorkbench .sl-fact.sl-peak strong { color:#ac4d14; }
#specialLossWorkbench .sl-scroll { width:100%; overflow:auto; border:1px solid #e3e8ef; border-radius:10px; }
#specialLossWorkbench table { width:100%; min-width:1990px; border-collapse:collapse; font-size:13px; }
#specialLossWorkbench th, #specialLossWorkbench td { text-align:left; padding:12px 11px; border-bottom:1px solid #e6ebf1; vertical-align:middle; }
#specialLossWorkbench th { color:#475a70; background:#f6f8fb; }
#specialLossWorkbench .sl-highest { background:#fff7ee; }
#specialLossWorkbench .sl-highest td:first-child { box-shadow:inset 3px 0 #de7a27; }
#specialLossWorkbench .sl-badge { display:inline-block; padding:2px 6px; margin-top:5px; border-radius:5px; font-size:11px; color:#924316; background:#ffead2; }
#specialLossWorkbench .sl-digits { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:16px; letter-spacing:.08em; font-weight:700; color:#213952; white-space:nowrap; }
#specialLossWorkbench td small { display:block; color:#66788e; margin-top:5px; font-variant-numeric:tabular-nums; }
#specialLossWorkbench .sl-capital { min-width:150px; font-variant-numeric:tabular-nums; }
#specialLossWorkbench .sl-capital b { white-space:nowrap; }
#specialLossWorkbench .sl-capital small { color:inherit; }
#specialLossWorkbench .sl-loss { color:#b42318; }
#specialLossWorkbench .sl-profit { color:#168346; }
#specialLossWorkbench .sl-even { color:#607087; }
#specialLossWorkbench .sl-hit { color:#168346; font-weight:700; }
#specialLossWorkbench .sl-pager { display:flex; align-items:center; justify-content:space-between; gap:9px; margin:13px 0; }
#specialLossWorkbench .sl-empty { padding:24px; text-align:center; color:#64748b; }
@media(max-width:700px) { #specialLossWorkbench .sl-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) {
  #specialLossWorkbench .sl-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #specialLossWorkbench .sl-controls input, #specialLossWorkbench .sl-controls select, #specialLossWorkbench .sl-controls button { width:100%; }
  #specialLossWorkbench .sl-controls label:first-child { grid-column:1/-1; }
  #specialLossWorkbench .sl-fact { padding:10px; }
  #specialLossWorkbench .sl-fact strong { font-size:17px; }
  #specialLossWorkbench .sl-pager { font-size:12px; }
}

#specialLossWorkbench .sl-types { display:flex; flex-wrap:wrap; gap:12px 20px; margin:14px 0; padding:13px; border:1px solid #dce2ea; border-radius:10px; }
#specialLossWorkbench .sl-types legend { padding:0 6px; color:#475569; font-size:13px; }
#specialLossWorkbench .sl-types label { flex-direction:row; align-items:center; gap:6px; }
#specialLossWorkbench .sl-types input { width:auto; margin:0; }
#specialLossWorkbench .sl-type-counts { min-width:170px; line-height:1.8; }
#specialLossWorkbench .sl-detail-row td { padding:16px; background:#f5f8fc; }
#specialLossWorkbench .sl-detail-list { width:min(850px,var(--sl-detail-width,850px)); max-width:100%; white-space:normal; scroll-margin-top:80px; }
#specialLossWorkbench .sl-event { margin:8px 0; padding:10px; border:1px solid #dce2ea; border-radius:8px; background:white; line-height:1.8; overflow-wrap:anywhere; }
#specialLossWorkbench .sl-event b { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
#specialLossWorkbench .sl-event-types span { display:inline-block; margin:3px 4px 0 0; padding:1px 7px; border-radius:4px; background:#e7edf5; color:#425875; }
