:root {
    /* table related colors */
    --table-text: #374151;
    --table-header-text: #6b7280;
    --table-odd-bg: #ffffff;
    --table-even-bg: #f3f4f6;
    --table-hover-bg: #f3f4f6;
    --table-border: #e5e7eb;
}

table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    width: 100%;
}

table thead th {
  position: sticky;
  top: 0;
  z-index: var(--z-index-highest);
  background-color: var(--neutral-2);
  box-shadow: 0 1px 0 var(--table-border);
}

tr:not(:last-child) {
    border-bottom: solid 1px var(--neutral-2);
}

thead tr {
    border-bottom: 1px solid var(--table-border);
}

th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--table-header-text);
    background-color: var(--neutral-2);
    border: none;
    white-space: nowrap;
    position: sticky;
    background-position-y: fixed;
}

th a {
    color: var(--table-header-text);
    text-decoration: none;
}

/* Body styles */
tbody tr {
    border-bottom: 1px solid var(--table-border);
    max-height: 10em;
}

tbody tr:nth-child(odd) {
    background-color: var(--table-odd-bg);
}

tbody tr:nth-child(even) {
    background-color: var(--table-even-bg);
}

tbody tr:hover {
    background-color: var(--table-hover-bg);
}

tbody tr.highlighted {
    background-color: var(--light-yellow);
}

td {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--table-text);
    white-space: nowrap;
    border: none;
}

tbody tr.inactive {
    background-color: lightgrey;
}

tbody tr.inactive a, tbody tr.inactive td{
    color: darkgrey;
}

.table-container {
    padding: 0;
}

/* Images in table cells */
td img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
