/* Smart Money Flows page — piggybacks on screener.css table styling
   (.results-table / .ticker-link / .positive / .negative). This file
   only adds the page-specific layout: two stacked full-width tables,
   plus numeric-column tweaks and a sort-affordance copy of the
   screener pattern. */

@import url("/static/css/screener.css");

.smart-money-page {
  max-width: 1400px;
}

.smart-money-window {
  color: #666;
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
}

/* Vertical stack: buys on top, sells below. Side-by-side overflowed
   on ~1280-1440px laptops with 7 columns per table, clipping the
   right edge of each. Each table now spans the full content width. */
.smart-money-tables {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.smart-money-table-wrap {
  min-width: 0;
}

.smart-money-table-title {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}

/* Fixed layout so the buys and sells tables share identical column
   widths — without this each table auto-sizes from its own row
   contents and the number columns end up mis-aligned between them. */
.smart-money-table {
  table-layout: fixed;
  width: 100%;
}

.smart-money-table .col-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 110px;
}

.smart-money-table .col-count {
  text-align: right;
  color: #666;
  font-size: 0.78rem;
  width: 70px;
}

.smart-money-table .col-total {
  font-weight: 700;
  width: 130px;
}

.smart-money-table .col-ticker {
  width: 80px;
}

/* Company name fills whatever remains after the fixed-width columns
   above. Truncates with ellipsis when the name is too long. */
.smart-money-table .col-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-money-caveat {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.78rem;
  color: #777;
  line-height: 1.45;
}

.smart-money-caveat p {
  margin: 0 0 0.4rem;
}
