.roi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.roi-table th,
.roi-table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid #ddd;
  text-align: right;
  white-space: nowrap;
}

.roi-table th:nth-child(-n+3),
.roi-table td:nth-child(-n+3) {
  text-align: left;
}

.roi-table thead th {
  background: #f0f0f0;
  font-weight: 600;
}

.roi-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.roi-table th.sortable:hover {
  background: #e0e0e0;
}

.roi-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.roi-table tbody tr.owned-yes {
  background: #a5d6a7;
}

.roi-table tbody tr.owned-yes:nth-child(even) {
  background: #81c784;
}

.stock-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.credit {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: right;
}
