:root {
  --color-accent: #999cd0;
}

.color-effect {
  color: var(--color-accent);
}

main {
  padding: calc(var(--header-height) + 30px) 30px 0 30px;
  max-width: 1280px;
  min-height: calc(100vh - var(--header-height) - 300px);
}

div.page-title-outer .page-title {
  padding-bottom: 0;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  margin-right: .25rem;
}

.export-outer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

a.export-link {
  white-space: nowrap;
  font-size: 12px;
  font-size: clamp(11px, 1.5vw, 13px);
  padding: 0.35rem 0.75rem;
  background-color: var(--color-border-gray);
  color: white;
  border-radius: 2px;
  transition: .2s;
}

a.export-link:hover {
text-decoration: none;
  color: black;
  background-color: var(--color-quiver-green);
}

.update-time {
  color: var(--color-accent);
  font-size: 13px;
  font-size: clamp(12px, 1.5vw, 13px);
}

.table-header > p {
  padding-top: .25rem;
  font-size: 13px;
  color: var(--color-accent);
}

div.page-title-outer .page-title-description {
  position: relative;
  padding-top: .75rem;
  font-size: 16px;
  font-size: clamp(13px, 2vw, 16px);
}

div.page-title-outer {
  padding: 0 0 .5rem .25rem;
}

.page-title-description span {
  display: inline;
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  top: auto;
  color: #849aae;
  font-size: 13px;
  font-size: clamp(12px, 1.5vw, 13px);
  cursor: pointer;
}

.page-title-description.collapse-mobile span {
  top: .9rem;
  left: calc(100% - 36px);
  bottom: 0;
}

.collapse-mobile p {
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(100% - 40px);
  white-space: nowrap;
}

.back-link {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: 4px;
}

.back-link {
  margin-bottom: 1.5rem;
  color: var(--color-quiver-green);
  background-color: var(--color-graph-bg);
  font-size: 14px;
  box-shadow:0 2px 4px rgb(0 0 0 / 10%), 0 8px 16px rgb(0 0 0 / 10%);
}

.back-link:hover {
  background-color: var(--color-border-gray);
}

.back-link:hover i {
  color: var(--color-quiver-green);
}

.search-forms i,
.table-header strong i,
.back-link i,
#lobbyingHeader i {
  margin-right: .5rem;
  color: #849aae;
}

.table-header-spenders {
  margin-bottom: -2rem;
}

.table-header strong {
  margin-right: .5rem;
  font-size: 20px;
  color: var(--color-quiver-white);
  font-weight: 400;
}

.table-outer {
  max-width: 100%;
  border-radius: 4px;
  border: 0;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%), 0 8px 16px rgb(0 0 0 / 10%);
}

.table-inner a {
  padding: 0.25rem .25rem 0.25rem 1rem;
}

.table-outer img {
  margin-right: .75rem;
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-radius: 2px;
}

.table-outer table tr.sticky-table-headers > th {
  border: 1px solid var(--color-border-gray);
  border-right: 0;
  font-weight: 400;
}

.table-outer th:first-child {
  padding-left: 1rem !important;
}

.table-outer td {
  border-bottom: 1px solid var(--color-border-gray);
  padding: 0;
  min-width:150px;
  max-width:200px;
  height: 60px;
  font-size: 13px;
}

.table-outer td:first-child {
  padding-left: 0 !important;
}

.table-outer td:first-child a {
  padding-right:.5rem;
  color: var(--color-quiver-green);
  border-left: 1px solid var(--color-border-gray);
}

.table-outer td:first-child a .comp-name {
  color: var(--color-quiver-white);
}

.table-outer td:first-child span {
  display: block;
  min-width: 80px;
  width: 24vw;
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: rgb(185,185,185);
}

.table-outer td:first-child span.client-alt {
  width: 12vw;
  max-width: 150px;
}

.table-outer td strong {
  font-weight: 400;
  font-size: 14px;
}

.table-outer .date {
  font-weight: 300;
  font-size: 14px;
}

.table-inner a {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1.5;
  color: var(--color-quiver-white);
}

.table-inner td:nth-child(5) a,
.table-inner td:nth-child(6) a {
  justify-content: center;
}

table thead th > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

table .sort-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: .75rem;
  cursor: pointer;
}

table th i {
  font-size: 14px;
  color: rgb(125,125,125);
  line-height: .25 !important;
  transition: .2s;
}

table th i.sort-active {
  color: var(--color-quiver-green);
  transition: .2s;
}

.table-inner tbody tr:nth-child(even) {
  background-color: rgba(0,0,0,.05);
}

tbody tr:hover {
  box-shadow:inset 0 0 0 100px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: .2s;
}

#lobbyingSearchTable td {
  width: 20%;
}

#lobbyingSearchTable td:last-child {
  min-width: 315px;
  width: 40%;
  max-width: 40%;
}

#lobbyingSearchTable td:last-child a {
  color: var(--color-accent);
}

#lobbyingSearchTable td:nth-child(2) a {
  color:rgb(200,200,200);
}

#lobbyingSearchTable td:nth-child(3) a {
  font-size: 15px;
}

.line {
  fill: none;
  stroke-width: 1px;
}

.hoverlayer .line {
  stroke: none;
  fill: var(--color-quiver-black);
}

.hovertext path {
  opacity: .9;
}

.strategy-outer svg .line:nth-of-type(3) {
  stroke-width: 2px;
  stroke: #b360ea;
}

div#lobbyingChart {
  position: relative;
  margin: .75rem 0 2rem;
}

.search-forms {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.search-forms > div {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  width: calc(50% - .5rem);
  background-color: var(--color-graph-bg);
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%), 0 8px 16px rgb(0 0 0 / 10%);
}

.search-forms > div > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 1rem 1.75rem;
}

.search-forms div.autosuggest-congress {
  max-width: var(--search-forms-autosuggest-min-width);
}

#auto-suggest-results-container-politician {
  z-index: 1;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  border-radius: 2px;
  background-color: rgb(31, 36, 45);
  box-shadow: 2px 2px 5px rgb(0 0 0 / 33%), -2px -2px 5px rgb(0 0 0 / 33%);
}

#auto-suggest-results-container-politician .span-active-autosuggest-result {
  background-color: var(--color-border-gray) !important;
}

div.autosuggest-congress li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2F3F4D;
  padding: .5rem;
  cursor: pointer;
  transition: .1s;
}

div.autosuggest-congress li:hover {
  background-color: var(--color-border-gray) !important;
}

.search-forms h3 {
  display:flex;
  align-items: center;
  padding: 1.5rem;
  font-weight: 400;
  font-size: 16px;
  color:rgb(200, 200, 200);
}

.search-forms h3:hover i {
  color: var(--color-accent);
  transition: .2s;
}

.search-forms form {
  position: relative;
  display: flex;
  flex-grow: 2;
}

.search-forms p {
  position: relative;
  padding: .75rem 1rem .75rem 0;
  font-size: 13px;
  color: rgb(185, 185, 185);
}

.search-forms input {
  flex-grow: 2;
  display: block;
  padding: .25rem .25rem;
  background: transparent;
  color: #BEC0C4;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  overflow: hidden; 
}

.search-forms input {
  margin-right:1rem;
  border-radius: 0;
  border-bottom: 2px solid var(--color-border-gray);
  padding: .5rem;
  background-color: transparent;
  font-size: 14px;
  color: #BEC0C4;
  outline: none;
  transition: .2s;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  overflow: hidden;
  text-align: center;
}

#ticker-search-form-lobbying input {
  text-transform: uppercase;
}

.search-forms input:focus {
  border-bottom: 2px solid var(--color-quiver-green);
  outline: 0;
}

.search-forms input:focus-within {
  border-bottom-color: var(--color-quiver-green);
  transition: .2s;
}

.search-forms input::placeholder {
  text-align: center;
  font-size: 15px;
  text-transform: none;
}

.search-forms input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--color-graph-bg) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--color-graph-bg) inset;
  -webkit-text-fill-color: #BEC0C4;
}

.search-forms .search-submit {
  display: inline;
}

.search-forms .search-submit {
  border-radius: 4px;
  padding: .5rem 1rem;
  background-color: var(--color-border-gray);
  color: var(--color-quiver-white);
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}

.search-forms .search-submit:hover {
  background-color: var(--color-quiver-green);
  color: var(--color-quiver-black);
}

.toggle-search-collapse {
  margin-left: auto;
  display: none;
  color:rgb(200, 200, 200);
}

.strategy-title h4 {
  font-size: 20px;
  font-weight: 400;
}

.strategy-cta > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
}

.strategy-cta p {
  max-width: 100%;
  color: var(--color-quiver-white);
}

.strategy-cta a:hover {
  text-decoration: underline;
}

p.no-results {
  color: rgb(200,200,200);
  font-size: 20px;
  font-weight: 300;
  padding: 0 .25rem 1.5rem; 
}

p.no-results a {
  color: var(--color-quiver-green);
  font-weight: 400;
}

.btn-inactive {
  pointer-events: none;
  cursor: default;
  opacity: .5;
}

.composer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 4rem 0;
}

.composer-link a {
  font-size: 19px;
  padding: 1rem 6rem;
  border-radius: 4px;
  background-color: var(--color-border-gray);
  color: var(--color-quiver-white);
  transition: .2s;
  cursor: pointer;
}

.composer-link a:hover {
  background-color: var(--color-quiver-green);
  color: var(--color-quiver-black);
}

/* for paginated table */
/* todo: move */
.table-loader-outer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.table-loader-outer p {
  padding-bottom: 1rem;
}

.table-loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 5px solid #657c92;
  border-right: 5px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.table-placeholder {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap-reverse;
  padding: .5rem;
  background-color: var(--color-header-bg);
  opacity: .75;
}

.table-placeholder {
  height: 100%;
}

.table-placeholder .table-placeholder-item {
  flex-grow: 1;
  margin: .5rem;
  background-color: var(--color-graph-bg);
}

.hide-loader-table {
  display: none !important;
}

.loader-row td {
  position: relative;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

@media screen and (max-width: 950px) {
  .search-forms {
    flex-direction: column;
  }
  .search-forms > div {
    width: 100%;
  }
  .search-forms > div > div {
    flex-wrap: wrap;
  }
  .search-forms p {
    padding: 1.25rem 1rem 1.25rem 0;
  }
  .search-forms h3 {
    padding: 1rem;
    font-size: 14px;
  }
  .search-forms h3:hover {
    cursor: pointer;
  }
  .toggle-search-collapse {
    display: inline;
  }
  .search-forms .collapse-mobile-search {
    display: none
  }
  .composer-link a {
    font-size: 16px;
    padding: 1rem;
  }
}

@media screen and (max-width: 500px) {
  main {
    padding: calc(var(--header-height) + 1rem) .5rem 0 .5rem;
  }
  a.export-link {
    background-color: transparent;
    padding: 0;
    color: var(--color-quiver-green);
  }
} 