/**
 * Copyright (c) HashiCorp, Inc.
 * SPDX-License-Identifier: BUSL-1.1
 */

.vlt-table {
  .is-collapsed {
    visibility: collapse;
    height: 0;
  }

  &.sticky-header {
    thead th {
      position: sticky;
      background: #fff;
      box-shadow: 0 1px 0px 0px rgba($grey-dark, 0.3);
      top: 0;
    }
  }

  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  th,
  td {
    padding: $spacing-s;
  }

  th {
    color: $grey-dark;
    font-weight: 500;
    font-size: $size-8;
    text-align: left;
    vertical-align: top;
  }

  tbody th {
    font-size: $size-7;
  }

  tr {
    border-bottom: 1px solid $grey-light;
  }

  td {
    color: $grey-darkest;
  }

  td.middle {
    vertical-align: middle;
  }

  td.no-padding {
    padding: 0;
  }

  code {
    font-size: $size-7;
    color: $black;
  }
}
