/* Top Holdings Table */

.amplify-top-holdings-table {
  overflow-x: auto;
}

.amplify-top-holdings-table__wrapper {
  width: 100%;
  overflow-x: auto;
}

.amplify-top-holdings-table__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 0;
}

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

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

.amplify-top-holdings-table__table thead th {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2em;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.amplify-top-holdings-table__table thead th:nth-child(n+3) {
  text-align: center;
}

/* Rows */
.amplify-top-holdings-table__table tbody tr {
  border-bottom: 1px solid #A5A5A5;
  background-color: #ffffff !important;
}

/* Cells */
.amplify-top-holdings-table__table tbody td {
  padding: 10px;
  background-color: #ffffff !important;
}

.amplify-top-holdings-table__table tbody td:nth-child(n+3) {
  text-align: center;
}

.amplify-top-holdings-table__table thead th {
  width: 14%;
}

.amplify-top-holdings-table__table thead th:first-child {
  width: 30%;
}

/* Mobile (≤767px): show only Name, Ticker, and the percent column.
   Hide CUSIP, Shares/Lots, Market Value ($) / Notional, and (swap mode)
   Swap MTM so the table fits a phone without horizontal scrolling. */
@media screen and (max-width: 767px) {
  .amplify-top-holdings-table__wrapper {
    overflow-x: auto;
  }

  .amplify-top-holdings-table__table .col-cusip,
  .amplify-top-holdings-table__table .col-shares,
  .amplify-top-holdings-table__table .col-value,
  .amplify-top-holdings-table__table .col-mtm {
    display: none;
  }

  /* Re-flow the three remaining columns to fill the width. */
  .amplify-top-holdings-table__table thead th.col-name {
    width: 50%;
  }

  .amplify-top-holdings-table__table thead th.col-ticker,
  .amplify-top-holdings-table__table thead th.col-weight {
    width: 25%;
  }
}