:host {
    display: block;
    max-width: 100%;
    overflow: auto;
    position: relative;
    margin-bottom: calc(var(--space-unit) * 4);
}

.bulk-actions {
    margin-top: 4px;
    min-height: 40px;
    padding-left: calc(var(--space-unit) * 4);
}

table {
    max-width: 100vw;
    overflow-x: auto;
    width: 100%;
}

table.no-select {
    user-select: none;
}

.column-picker {
    position: absolute;
    right: 2px;
    top: 7px;
}

.heading-row th {
    border-bottom: 1px solid var(--color-weight-200);
    font-size: var(--font-size-xs);
     font-weight: 600;
     text-transform: uppercase;
     position: relative;
}

.sort-toggle {
    display: flex;
    align-items: center;
    margin-left: calc(var(--space-unit) * 0.5);
    button {
        border: 0;
        border-radius: var(--border-radius-lg);
        color: var(--color-weight-500);
        padding: 0 2px;
        cursor: pointer;
        background-color: transparent;
        &.active {
            color: var(--color-primary-700);
        }
    }
    .sort-label {
        margin-left: calc(var(--space-unit) * 0.5);
        font-size: 10px;
        color: var(--color-primary-600);
        font-weight: 400;
    }

}

.filter-row {
    font-size: var(--font-size-base);
    font-weight: 400;
    background-color: var(--color-weight-100);
    padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 4);
    box-shadow: inset -1px 6px 5px 0px rgb(165 165 165 / 8%);
    border-bottom: 1px solid var(--color-weight-200);
    border-left-width: 0;
    border-right-width: 0;
    text-align: initial;
    input {
        width: 100%;
    }
    .filters {
        margin-top: calc(var(--space-unit) * 1);
        display: flex;
        flex-wrap: wrap;
        gap: calc(var(--space-unit) * 0.5);
    }
}

th,
td {
    padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 1);
}

tr td:first-of-type,
tr th:first-of-type {
    padding-left: calc(var(--space-unit) * 4);
}

// odd rows
tbody tr:nth-child(even) {
    background-color: var(--color-table-alternate-row-bg);
}

tbody tr:hover {
    background-color: var(--color-weight-100);
}

.cell-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cell-content {
    display: flex;
    align-items: center;
    color: var(--color-weight-700);
    &.left {
        justify-content: flex-start;
    }
    &.center {
        justify-content: center;
    }
    &.right {
        justify-content: flex-end;
    }
}

.selection-col {
    width: 24px;
}

vdr-empty-placeholder {
    width: 100%;
}

.table-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 6px;
}
