/* Stock Alerts: all rules are scoped to this page and its chart dialog. */
.sc-alerts-page { min-height: 100vh; background: var(--sc-bg); color: var(--sc-text); }
.sc-alerts-main { max-width: 1760px; margin: 0 auto; padding: 38px 38px 42px 103px; min-width: 0; }
.sc-alerts-page button, .sc-alerts-page input, .sc-alerts-page select, .sc-alerts-chart-dialog button { font-family: inherit; }
.sc-alerts-page button, .sc-alerts-chart-dialog button { cursor: pointer; }
.sc-alerts-page button:disabled { opacity: .4; cursor: default; }
.sc-alerts-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.sc-alerts-header p { font-size: 13px; line-height: 1.6; color: var(--sc-muted); margin: 0; }
.sc-alerts-header .sc-alerts-eyebrow { color: #75c9ed; font-size: 10px; font-weight: 700; letter-spacing: .15em; margin-bottom: 10px; }
.sc-alerts-header h1 { color: #f4f7fc; font-size: 36px; line-height: 1.15; letter-spacing: -1.3px; font-weight: 650; margin: 0 0 10px; }
.sc-alerts-overview { display: flex; align-items: center; gap: 28px; }
.sc-alerts-overview > div { display: flex; flex-direction: column; gap: 4px; }
.sc-alerts-overview > div + div { border-left: 1px solid var(--sc-border); padding-left: 28px; }
.sc-alerts-overview strong { color: #f4f7fc; font-size: 28px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-alerts-overview span { font-size: 11px; color: var(--sc-muted); }
.sc-alerts-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-block: 1px solid #233147; }
.sc-alerts-date-controls { display: flex; align-items: center; gap: 10px; }
.sc-alerts-date-group { display: flex; align-items: center; border: 1px solid #35445b; border-radius: 9px; background: #121e2f; }
.sc-alerts-date, .sc-alerts-date-arrow { display: flex; align-items: center; justify-content: center; min-height: 40px; border: 0; background: transparent; color: var(--sc-text); }
.sc-alerts-date { padding: 0 12px; gap: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sc-alerts-date svg, .sc-alerts-date-arrow svg { width: 16px; height: 16px; }
.sc-alerts-date svg { color: #8da4bf; }
.sc-alerts-date-arrow { width: 34px; padding: 0; border-radius: 8px; }
.sc-alerts-date-group .react-datepicker-popper { z-index: 40; }
.sc-alerts-secondary { background: #121e2f; border: 1px solid #35445b; border-radius: 8px; color: var(--sc-text); min-height: 40px; padding: 0 15px; font-size: 12px; font-weight: 600; }
.sc-alerts-date:hover, .sc-alerts-date-arrow:not(:disabled):hover, .sc-alerts-secondary:not(:disabled):hover { background: #203048; color: white; }
.sc-alerts-search { display: flex; align-items: center; gap: 10px; border: 1px solid #35445b; background: #101b2b; padding: 0 12px; border-radius: 9px; width: 310px; margin: 0; }
.sc-alerts-search svg { width: 18px; flex-shrink: 0; color: #8da4bf; }
.sc-alerts-search input { width: 100%; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--sc-text); font-size: 12px; padding: 0; }
.sc-alerts-search input::placeholder { color: #93a4bc; opacity: 1; }
.sc-alerts-search:focus-within { border-color: var(--sc-accent); }
.sc-alerts-search input:focus-visible { outline: none !important; }
.sc-alerts-context { display: flex; justify-content: space-between; align-items: center; min-height: 53px; gap: 10px; font-size: 11px; color: #a9b8cd; line-height: 1.6; }
.sc-alerts-context-dot { margin-inline: 10px; color: #617b98; }
.sc-alerts-context button { display: flex; align-items: center; gap: 5px; flex-shrink: 0; border: 0; color: #91d9fa; background: none; font-size: 11px; padding: 6px 0 6px 6px; }
.sc-alerts-context svg { width: 15px; height: 15px; }
.sc-alerts-columns { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sc-alerts-panel { min-width: 0; border: 1px solid #29394f; border-radius: 13px; overflow: hidden; background: #141f31; }
.sc-alerts-panel-header { display: flex; align-items: center; gap: 12px; padding: 21px 20px; border-bottom: 1px solid #29394f; }
.sc-alerts-panel-header > div { min-width: 0; }
.sc-alerts-panel-header h2 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; color: #edf3fc; margin: 0 0 5px; }
.sc-alerts-panel-header p { font-size: 11px; line-height: 1.5; color: #a9b8cd; margin: 0; }
.sc-alerts-panel-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #77dcbb; background: #143932; border: 1px solid #245748; border-radius: 10px; flex-shrink: 0; }
.sc-alerts-panel-icon.is-news { color: #8bcbef; background: #1a344c; border-color: #2b4b68; }
.sc-alerts-panel-icon svg { width: 20px; height: 20px; }
.sc-alerts-count { margin-left: auto; display: grid; place-items: center; min-width: 28px; height: 26px; padding: 0 7px; border-radius: 7px; border: 1px solid #33465f; font-size: 11px; color: #c5d4e8; font-variant-numeric: tabular-nums; }
.sc-alerts-state { min-height: 280px; padding: 42px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #a9bcd4; text-align: center; gap: 12px; }
.sc-alerts-state-icon { display: grid; place-items: center; width: 50px; height: 50px; color: #86a2c0; background: #1c2c42; border: 1px solid #30435b; border-radius: 13px; margin-bottom: 2px; }
.sc-alerts-state h3 { color: #dfebfa; font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; }
.sc-alerts-state p { max-width: 310px; color: #a3b5ce; font-size: 12px; line-height: 1.6; margin: 0; }
.sc-alerts-state .sc-alerts-secondary { margin-top: 3px; }
.sc-alerts-table-scroll { overflow: auto; max-height: 690px; scrollbar-color: #405773 #141f31; scrollbar-width: thin; }
.sc-alerts-table { width: 100%; min-width: 570px; border-collapse: collapse; table-layout: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.sc-alerts-table th { position: sticky; top: 0; z-index: 1; background: #19273b; text-align: left; padding: 0; font-size: 10px; font-weight: 500; color: #a8bad2; border-bottom: 1px solid #29394f; white-space: nowrap; }
.sc-alerts-table th button { display: flex; gap: 4px; align-items: center; width: 100%; min-height: 44px; border: 0; padding: 10px 12px; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; }
.sc-alerts-table th button:hover { color: white; background: #22364f; }
.sc-alerts-table th svg { width: 13px; height: 13px; }
.sc-alerts-table td { padding: 13px 12px; color: #dde8f6; border-bottom: 1px solid #25344a; white-space: nowrap; }
.sc-alerts-table td:first-child { width: 40px; padding: 8px 6px 8px 12px; }
.sc-alerts-table td:nth-child(4) { font-weight: 650; color: #f2f6fb; }
.sc-alerts-table tr:hover td { background: #1c2d44; }
.sc-alerts-table td.sc-alerts-positive { color: #76dcb1; }
.sc-alerts-table td.sc-alerts-negative { color: #ff9d9f; }
.sc-alerts-chart-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 7px; border: 1px solid #354b65; color: #9ecdee; background: #1a2d43; }
.sc-alerts-chart-button:hover { color: white; border-color: #6098c4; }
.sc-alerts-chart-button svg { width: 18px; height: 18px; }
.sc-alerts-panel-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 15px 20px; background: #101b2b; border-top: 1px solid #29394f; color: #9bafc9; font-size: 10px; line-height: 1.6; }
.sc-alerts-feed-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #29394f; color: #9aafc9; font-size: 10px; }
.sc-alerts-feed-toolbar select { max-width: 145px; min-height: 32px; background: #101b2b; color: #c7d7eb; border: 1px solid #354860; border-radius: 6px; padding: 4px 7px; font-size: 11px; }
.sc-alerts-feed { max-height: 632px; overflow: auto; scrollbar-color: #405773 #141f31; scrollbar-width: thin; }
.sc-alerts-news-card { padding: 19px 20px; border-bottom: 1px solid #29394f; }
.sc-alerts-news-card:last-child { border-bottom: 0; }
.sc-alerts-news-card:hover { background: #19283d; }
.sc-alerts-news-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 11px; }
.sc-alerts-ticker { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #d6ecfc; font-size: 12px; font-weight: 650; padding: 4px 0; }
.sc-alerts-ticker svg { color: #75b8e1; width: 16px; height: 16px; }
.sc-alerts-ticker:hover { color: #84d8ff; }
.sc-alerts-news-tag { background: #24334b; border: 1px solid #3b4c66; border-radius: 5px; color: #c2d2e9; font-size: 9px; line-height: 1.5; padding: 3px 6px; }
.sc-alerts-news-tag.is-up { color: #8be3ba; border-color: #326950; background: #1c3c32; }
.sc-alerts-news-tag.is-down { color: #ffb0ad; border-color: #78474d; background: #442d36; }
.sc-alerts-news-meta time { margin-left: auto; color: #9bb0cc; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-alerts-news-card p { color: #d8e2f0; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; margin: 0; }
.sc-alerts-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sc-alerts-chart-dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1000px, 94vw); height: min(680px, 88vh); display: flex; flex-direction: column; border: 1px solid #435b79; border-radius: 14px; overflow: hidden; background: #141f31; box-shadow: 0 24px 90px #0009; outline: none; }
.sc-alerts-chart-dialog > header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #19283d; border-bottom: 1px solid #354a65; }
.sc-alerts-chart-dialog h2 { margin: 0; color: #e7f0fc; font-size: 16px; font-weight: 600; }
.sc-alerts-chart-dialog button { display: grid; place-items: center; width: 36px; height: 36px; background: #24364e; color: #d5e5f9; border: 1px solid #405874; border-radius: 7px; padding: 0; }
.sc-alerts-chart-dialog button:hover { background: #334e6e; }
.sc-alerts-chart-widget { flex: 1; min-height: 0; }
.sc-alerts-chart-widget > div { height: 100%; }
@media (max-width: 1151px) {
  .sc-alerts-main { padding: 28px 24px; }
  .sc-alerts-columns { grid-template-columns: minmax(0, 1fr); }
  .sc-alerts-table-scroll { max-height: 530px; }
  .sc-alerts-feed { max-height: 650px; }
  .sc-alerts-state { min-height: 240px; }
}
@media (max-width: 600px) {
  .sc-alerts-main { padding: 24px 16px 36px; }
  .sc-alerts-header { flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
  .sc-alerts-header h1 { font-size: 30px; }
  .sc-alerts-header p { font-size: 12px; }
  .sc-alerts-overview { gap: 22px; }
  .sc-alerts-overview > div { flex-direction: row; align-items: baseline; gap: 8px; }
  .sc-alerts-overview > div + div { padding-left: 22px; }
  .sc-alerts-overview strong { font-size: 20px; }
  .sc-alerts-overview span { font-size: 10px; }
  .sc-alerts-toolbar { flex-wrap: wrap; gap: 12px; }
  .sc-alerts-date-controls { width: 100%; justify-content: space-between; }
  .sc-alerts-search { width: 100%; }
  .sc-alerts-search input { font-size: 16px; }
  .sc-alerts-search input::placeholder { font-size: 12px; }
  .sc-alerts-date { gap: 7px; padding-inline: 7px; font-size: 11px; }
  .sc-alerts-date-arrow { width: 30px; }
  .sc-alerts-context { font-size: 10px; padding-block: 10px; flex-wrap: wrap; }
  .sc-alerts-context-dot { margin-inline: 7px; }
  .sc-alerts-columns { gap: 20px; }
  .sc-alerts-panel-header { padding: 18px 15px; gap: 10px; }
  .sc-alerts-panel-header p { font-size: 10px; }
  .sc-alerts-panel-header h2 { font-size: 15px; }
  .sc-alerts-panel-icon { width: 34px; height: 34px; }
  .sc-alerts-news-card { padding: 17px 15px; }
  .sc-alerts-news-meta { gap: 8px; }
  .sc-alerts-news-meta time { font-size: 9px; }
  .sc-alerts-feed-toolbar { padding-inline: 15px; font-size: 9px; gap: 8px; }
  .sc-alerts-state { min-height: 220px; padding: 30px 18px; }
  .sc-alerts-panel-footer { padding: 12px 15px; }
}
