/* ETF Leaders Tables */

.amplify-etf-leaders-tables {
  width: 100%;
  margin-bottom: 0;
}

.amplify-etf-leaders-tables__title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #152F41;
}

.amplify-etf-leaders-tables__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Remove all borders except row separators */
.amplify-etf-leaders-tables__table,
.amplify-etf-leaders-tables__table th,
.amplify-etf-leaders-tables__table td {
  border: 0;
}

/* Table header */
.amplify-etf-leaders-tables__table thead tr {
  background-color: #152F41;
  color: #ffffff;
}

.amplify-etf-leaders-tables__table thead th {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2em;
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  min-height: 57px;
  height: 57px;
}

.amplify-etf-leaders-tables__table thead th.ticker-header {
  width: 50%;
  text-align: left;
}

.amplify-etf-leaders-tables__table thead th.performance-header {
  width: 50%;
  text-align: right;
}

.amplify-etf-leaders-tables__table thead th.yield-header {
  width: 33%;
  text-align: right;
}

/* Yields table specific (3 columns) - balance ticker with the two yield columns */
.amplify-etf-leaders-tables__table thead th.ticker-header:first-child:nth-last-child(3) {
  width: 34%;
}

/* Tooltip styles */
.amplify-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}

.amplify-tooltip__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  cursor: help;
}

.amplify-tooltip__text {
  visibility: hidden;
  opacity: 0;
  width: 300px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -150px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  transition: opacity 0.3s;
}

.amplify-tooltip__text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.amplify-tooltip:hover .amplify-tooltip__text {
  visibility: visible;
  opacity: 1;
}

.amplify-etf-leaders-tables__table tbody tr {
  border-bottom: 1px solid #A5A5A5;
}

.amplify-etf-leaders-tables__table tbody tr:last-child {
  border-bottom: 1px solid #A5A5A5;
}

/* Table cells */
.amplify-etf-leaders-tables__table tbody td {
  padding: 12px 8px;
  background-color: #ffffff !important;
  font-size: 16px;
  line-height: 1.2em;
  vertical-align: middle;
}

.amplify-etf-leaders-tables__table .ticker-cell {
  width: 50%;
  text-align: left;
}

/* Yields table specific (3 columns) - balance ticker cell with the two yield columns */
.amplify-etf-leaders-tables__table tbody tr td.ticker-cell:first-child:nth-last-child(3) {
  width: 34%;
}

.amplify-etf-leaders-tables__table .ticker-cell a {
  color: #152F41;
  text-decoration: none;
  font-weight: 400;
}

.amplify-etf-leaders-tables__table .ticker-cell a:hover {
  text-decoration: underline;
}

.amplify-etf-leaders-tables__table .performance-cell {
  width: 50%;
  text-align: right;
  font-weight: 300;
  color: #152F41;
}

/* Yields table specific styles (3 columns) */
.amplify-etf-leaders-tables__table .yield-cell {
  width: 33%;
  text-align: right;
  font-weight: 300;
  color: #152F41;
}

/* Loading state */
.amplify-etf-leaders-tables .loading {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* Mobile responsive */
@media screen and (max-width: 767px) {
  .amplify-etf-leaders-tables__table tbody td {
    padding: 10px 6px;
    font-size: 14px;
  }
}
