/* Fund Documents Table */

.amplify-fund-documents-table {
  overflow-x: auto;
}

.amplify-fund-documents-table__wrapper {
  width: 100%;
  overflow-x: auto;
}

.amplify-fund-documents-table__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

/* Remove all borders */
.amplify-fund-documents-table__table,
.amplify-fund-documents-table__table th,
.amplify-fund-documents-table__table td {
  border: 0;
}

/* Header */
.amplify-fund-documents-table__table thead tr {
  background-color: #152F41;
  color: #ffffff;
}

.amplify-fund-documents-table__table thead th {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2em;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
}

/* Sort arrows */
.amplify-fund-documents-table__table thead th.is-sortable {
  position: relative;
  padding-right: 26px;
}

.amplify-fund-documents-table__table thead th.is-sortable::before,
.amplify-fund-documents-table__table thead th.is-sortable::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  opacity: 0.55;
}

/* Up triangle */
.amplify-fund-documents-table__table thead th.is-sortable::before {
  margin-top: -8px;
  border-bottom: 7px solid rgba(255, 255, 255, 0.9);
}

/* Down triangle */
.amplify-fund-documents-table__table thead th.is-sortable::after {
  margin-top: 2px;
  border-top: 7px solid rgba(255, 255, 255, 0.9);
}

.amplify-fund-documents-table__table thead th.is-sortable:hover::before,
.amplify-fund-documents-table__table thead th.is-sortable:hover::after {
  opacity: 0.8;
}

.amplify-fund-documents-table__table thead th.is-sorted.is-asc::before {
  opacity: 1;
}

.amplify-fund-documents-table__table thead th.is-sorted.is-asc::after {
  opacity: 0.25;
}

.amplify-fund-documents-table__table thead th.is-sorted.is-desc::before {
  opacity: 0.25;
}

.amplify-fund-documents-table__table thead th.is-sorted.is-desc::after {
  opacity: 1;
}

.amplify-fund-documents-table__table thead th.is-sortable:focus {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.amplify-fund-documents-table__table thead th.is-sortable:hover {
  background-color: #1a3a51;
}

.amplify-fund-documents-table__table thead th.is-sorted {
  background-color: #1d475f;
}

/* Rows */
.amplify-fund-documents-table__table tbody tr {
  border-bottom: 1px solid #A5A5A5;
}

/* Cells */
.amplify-fund-documents-table__table tbody td {
  padding: 15px 10px;
  background-color: #ffffff !important;
  text-align: center;
  font-size: 16px;
  line-height: 1.2em;
}

/* First two columns (Ticker and Fund Name) - left align */
.amplify-fund-documents-table__table tbody td:nth-child(1),
.amplify-fund-documents-table__table tbody td:nth-child(2) {
  text-align: left;
}

/* Links in cells */
.amplify-fund-documents-table__table tbody td a {
  color: #2D65E2;
  text-decoration: none;
  font-weight: 400;
}

.amplify-fund-documents-table__table tbody td a:hover {
  text-decoration: underline;
}

/* Icon spacing */
.amplify-fund-documents-table__table tbody td a i {
  margin-right: 4px;
  font-size: 20px;
}

/* Mobile horizontal scroll */
@media screen and (max-width: 767px) {
  .amplify-fund-documents-table__wrapper {
    overflow-x: auto;
  }
}
