@import '../../global/variables';
@import '../../global/mixins/exports';

@include exports('ray-table') {
  .#{$ray-class-prefix}table {
    width: 100%;
    border-collapse: collapse;

    thead {
      tr {
        border-bottom: 1px solid $ray-color-blue-50;
      }
    }

    th {
      font-size: 12px;
      font-weight: 400;
      font-family: $ray-font-stack-mono;
      color: $ray-color-gray-60;
      text-align: left;
      text-transform: uppercase;
      padding: 1rem 0;

      [dir='rtl'] & {
        text-align: right;
      }

      &:not(:last-child) {
        padding-right: 1rem;
      }
    }

    tr {
      border-bottom: 1px solid $ray-color-gray-10;
    }

    td {
      padding: 1rem 0;

      &:not(:last-child) {
        padding-right: 1rem;
      }
    }
  }
}
