@import '../../scss/variables';

:host {
  position: relative;
  display: block;

  .loading {
    height: 200px;
    position: relative;
  }

  > div {
    overflow: auto;

    > sky-wait {
      padding: 50px 0;
      position: relative;
    }
  }

  table {
    position: relative;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    font-size: $sky-font-size-md;
    min-width: 100%;

    &.fit {
      width: 100%;
    }

    &.no-top-border {
      th {
        border-top-width: 0px;
      }
    }
  }

  tbody {
    background-color: $sky-color-white;
  }

  tr.sky-contrib-list-view-grid-row {
    border-bottom: 1px dotted #ccc;

    &:nth-child(odd) {
      /* list view grid alternate row color 1085023 */
      /* background-color: $sky-background-color-neutral-light; */
      background-color: #FBFBFB;
    }

    td {
      padding: 0;
    }
  }

  th {
    border: 1px solid $sky-border-color-neutral-light;
    border-right-width: 0px;
    font-weight: 400;
    color: $sky-color-gray-70;
    font-size: $sky-font-size-base;
    cursor: pointer;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 8px;
    text-align: left;

    &:first-child {
      border-left: 1px solid transparent;
    }

    &.dragging {
      padding: 8px;
      background-color: $sky-border-color-neutral-light;
      color: $sky-color-black;
    }

    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}
