table {
    border-collapse: collapse;
    width: 100%;
}

table a:hover {
    text-decoration: none;
}

table thead {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted-text);
    border-bottom: 1px solid var(--color-border);
}

th, td {
    padding: 8px;
}

tr {
    transition: background-color 0.2s ease;
}

tr.even {
    background-color: color-mix(in srgb, var(--color-subtle-background) 40%, transparent);
}

tr:hover {
    background-color: var(--color-background-focus);
}

th {
    background-color: var(--color-subtle-background);
    border-color: var(--color-subtle-background);
}

td.actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

td.actions > * {
    margin: 0;
}

.nutrition-unit {
    color: var(--color-muted-text);
    font-size: 0.75em;
    font-weight: normal;
    margin-left: 0.3em;
}

.of-facts-link {
    margin-bottom: 0.5em;
    display: inline-block;
}

@media (max-width: 600px) {
    .nutrition-table,
    .nutrition-table tbody,
    .nutrition-table tr,
    .nutrition-table td {
        display: block;
    }

    .nutrition-table thead {
        display: none;
    }

    .nutrition-table td {
        display: flex;
        align-items: baseline;
    }

    .nutrition-table td::before {
        content: attr(data-label);
        margin-right: auto;
        color: var(--color-muted-text);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
}
