/* Shared ID8 Research theme — palette taken from Finviz's dark theme. Load AFTER any page styles. */
:root {
  --font-heading: 'Barlow Condensed', Impact, Helvetica, Arial, sans-serif;
  --font-body:    'Source Sans 3', Helvetica, Arial, Verdana, sans-serif;
  --bg:         #14161d;
  --surface:    #1d1f26;
  --surface2:   #22262f;
  --border:     #353945;
  --muted:      #4c5263;
  --text:       #dedfe5;
  --text-dim:   #868ea5;
  --accent:     #57aefb;
  --accent-2:   #2f91ef;
  --up:         #34c062;
  --down:       #fb5057;
  --danger:     #fb5057;
  --warn:       #facc15;
  --row-hover:  #262931;
  --vol-bar:    #263766;
  --vol-bar-hi: #2f91ef;
}

/* ── Table pages (id8day, daytrade) ── */
.tbl-page { padding: 1.5rem; }
body.tbl-body { font-family: var(--font-body); margin: 0; background: var(--bg); color: var(--text); }
.tbl-page h1 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; margin: 0 0 .25rem; }
.tbl-page #top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tbl-page #ctrl { text-align: right; }
.tbl-page #pulled { color: var(--text-dim); font-size: .75rem; margin-top: .3rem; }
.tbl-page #list { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: .35rem .6rem; margin: .3rem 0; }
.tbl-page #meta { color: var(--text-dim); font-size: .85rem; margin-bottom: 1rem; }
.tbl-page #loading { display: flex; align-items: center; gap: .6rem; color: var(--text-dim); font-size: .9rem; padding: .8rem 0; }
.tbl-page #loading[hidden] { display: none; }
.tbl-page .spinner { width: 1.1rem; height: 1.1rem; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: tbl-spin .8s linear infinite; }
@keyframes tbl-spin { to { transform: rotate(360deg); } }
.tbl-page #key { color: var(--text-dim); font-size: .8rem; margin-bottom: 1rem; max-width: 60rem; line-height: 1.4; }
.tbl-page #key b { color: var(--text); }
.tbl-page .wrap { overflow-x: auto; }
.tbl-page table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl-page th, .tbl-page td { padding: .45rem .7rem; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl-page th:first-child, .tbl-page td:first-child, .tbl-page th.l, .tbl-page td.l { text-align: left; }
.tbl-page th { background: var(--surface2); cursor: pointer; user-select: none; position: sticky; top: 0; }
.tbl-page th:hover { background: var(--row-hover); }
.tbl-page th.asc::after { content: " \25B2"; font-size: .7em; }
.tbl-page th.desc::after { content: " \25BC"; font-size: .7em; }
.tbl-page tr:hover td { background: var(--row-hover); }
.tbl-page a { color: var(--accent); text-decoration: none; font-weight: 600; }
.tbl-page a:hover { text-decoration: underline; }
.tbl-page .pos { color: var(--up); }
.tbl-page .neg { color: var(--down); }
