html {
  background-color: #121212;
  background-image: none;
}

.politician-outer {
  padding-top: 2rem;
}

.politician-profile, .table-outer, .trades-visuals {
  border-color: var(--color-border-gray);
}

.trades-visuals {
  flex-direction: column;
}

.politician-profile {
  padding: 1.5rem 1rem;
  background-image: linear-gradient(135deg, #333333 -50%, #161616 50%);

  .profile-report-period {
    white-space: nowrap;
    font-size: clamp(14px, 2vw, 15px);
  }

  .height-locked {
    height:100px;
    justify-content: flex-end;
  }

  .profile-cash-on-hand {
    padding-top: .75rem;
  }
}

.politician-overview strong {
  font-size: clamp(19px, 2vw, 20px);
}

h2.name.long-name {
  font-size: clamp(17px, 2.25vw, 20px);
}

.politician-image-outer {
  display: none;
}

.politician-tabs li {
  border: 2px solid var(--color-border-gray-dark);
  font-size: clamp(14px, 2vw, 15px);
  color: var(--color-quiver-white);
  transition: .1s;
  background-color: transparent;

  &:hover {
    background-color: #2f323520;
    border-color: var(--color-border-gray);
  }
}

.politician-tabs li.active-politician-tab, .donors-chart-toggles div.active-donors-chart-toggle {
  border-color: #454c4f;
  background-color: #2f323560;
  color: var(--color-quiver-white-light);
}

.table-outer,
.trades-visuals {
  background-image: linear-gradient(175deg, #333333 -120%, #161616 30%);
}

.table-header {
  padding: 1rem 1rem 1.5rem;
}

.net-worth-header-outer {
  margin: 0 0 1.5rem;

  h1 {
    font-size: clamp(16px, 2.5vw, 24px);
  }

  p {
    margin-top: .125rem;
    font-size: clamp(13px, 1.5vw, 16px);
    color: var(--color-quiver-gray-4);
  }
}

#contentItemExpenditures {
  .net-worth-header-outer {
    margin-bottom: 0;
    padding: 2rem 2rem 1rem;
  }

  .table-header {
    padding-left: 2rem;
  }

  .table-outer .table-inner {
    mask-image:none;

    td {
      border-color: #0d0d0d;
    }
  }
}

#fundraisingBarChart,
#disbursementsBarChart,
#cashOnHandLineChart {
  flex-grow: 1;
}

table.paginated-table tr.sticky-table-headers > th {
  border: 1px solid #2f2f2f;
  background-color: #161617;
  color: var(--color-quiver-white);
  font-size: clamp(12px, 2vw, 13px);
  font-weight: 500;
  
  &:nth-child(1) {
    min-width: 200px;
    width: 33.3%;
  }
}

.paginated-table tbody tr:nth-child(even) {
  background-color: transparent;
}

.paginated-table td {
  border-bottom: 1px solid var(--color-border-gray);
  height: 68px;
}

.paginated-table td:not(:first-child) {
  font-family: "Roboto", sans-serif;
  letter-spacing: .2px;
}

.paginated-table td:not(:first-child) a {
  justify-content: flex-end;
}

.paginated-table td:first-child div.flex-column {
  gap: .1rem;

  strong {
    line-height: 1.4;
    font-size: clamp(12px, 2vw, 13px);
  }
}

.paginated-table tbody tr:has(.support-cell) {
  background-color: #57d7b90f;
}
.paginated-table tbody tr:has(.oppose-cell) {
  background-color: #ff6b6b0f;
}

.memo-toggle {
  color: #8879eb;
  font-weight: 500;
}

.hidden-memo-div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  padding: .5rem 1.75rem .75rem 1rem;

  strong {
    font-size: 13px;
    color: var(--color-quiver-white);
  }

  p {
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-quiver-gray);
    white-space: pre-wrap;
  }
}

.right-arrow-icon {
  margin-left: .5rem;
  color: var(--color-quiver-gray-4);
  font-size: 13px;
}

.icon-title i {
  color: #525258;
}

.paginated-table tbody tr:hover,
.paginated-table tbody tr:hover + .hidden-memo-row {
  box-shadow: none;
  cursor: default;
  transition: none;

  a:has(.right-arrow-icon) {
    .right-arrow-icon {
      color: var(--color-quiver-green);
    }
  }
}

.portfolio-disclaimer {
  color: var(--color-quiver-gray-3);
}

.volume-chart-tooltip {
  padding: .33rem .5rem .125rem;
  width: 140px;
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  div strong {
    display: block;
    padding-top: .25rem;
    font-size: clamp(11px, 2vw, 12px);
    font-weight: 300;

    &.year {
      font-weight: 400;
      color: var(--color-quiver-white-3);
    }
  }

  div span {
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 500;
  }
}

main svg {
  width: 100%;
}

.no-data-element span {
  color: var(--color-quiver-gray-4);
}

.content-loader-outer,
.content-placeholder-outer {
  z-index: 4;
  background-image: linear-gradient(175deg, #333333 -120%, #161616 30%);
  border-radius: 10px;
}

.ticker-table-input-outer::before {
  content: '';
}

@media screen and (min-width: 600px) {
  .table-outer td:first-child span {
    max-width: 40ch;
  }

  .hidden-memo-div {
    align-items: center;
  }
}

@media screen and (max-width: 600px) {
  .trades-visuals {
    padding: .5rem .5rem 1rem;
  }

  .table-header {
    padding: .75rem .75rem 1.5rem;
  }

  .table-header.table-header-alt {
    padding: 1.75rem 1rem;
  }

  table.paginated-table tr.sticky-table-headers > th {
    &:nth-child(1) {
      min-width: 150px;
    }
  }

  input.ticker-table-input {
    max-width: 60px;
  }

  .net-worth-header-outer {
    margin: 0 0 1rem;
  }

  #contentItemExpenditures {
    .table-header {
      padding: 1.25rem;
    }

    .net-worth-header-outer {
      padding: 1.25rem;
      margin-bottom: 0;
    }
  }
}

@media screen and (max-width: 1200px) {
  .trades-visuals {
    min-height: 350px;
  }

  .politician-tabs li {
    width: calc(50% - 0.5rem);
  }
}