.hq-datatable-container {
  .dataTables_length,
  .dataTables_info {
    display: inline-block;
    padding-right: 10px;
  }
}

.table tr.active a:not(.btn) {
  color: #ffffff;
}

.sortable-handle {
  cursor: move;
}

.table-editprops {

  table-layout: fixed;

  .select2-container {
    width: 100% !important;
  }

  thead > tr {
    background-color: $cc-bg;
    border: none;
    > th {
      border: none;
      font-size: 11px;
      text-transform: uppercase;
    }
    .hq-help {
      float: right;
      line-height: 13px;
      display: block;
      [class*='fa-'] {
        font-size: 18px;
      }
    }
  }

  tbody > tr > td {
    border: none;
    > i {
      margin-top: 10px;
    }
    > .sortable-handle {
      margin-top: 0;
    }
    code {
      margin-top: 5px;
      display: inline-block;
    }
    > .property-name > span {
      display: block;
      padding-top: 7px;
      margin: 0;
    }
    .help-block {
      margin-bottom: 0;
    }

  }

  tbody > tr {
    &:nth-child(even) {
      background-color: $cc-bg;
    }
  }
}

.table-editprops-format {
  min-width: 100px;
}
.table-editprops-filterval {
  min-width: 115px;
}

.table thead tr th.orderable {
  background-color: $blue-800;
  position: relative;
  padding: 0;
  vertical-align: middle;

  $order-handle-width: 10px;

  &:nth-child(odd) {
    background-color: $blue-700;
  }

  a {
    display: block;
    color: $white;
    padding: 0.5rem 0.5rem;
    padding-right: $order-handle-width * 3;
  }

  &::before,
  &::after {
    position: absolute;
    display: block;
    right: $order-handle-width;
    line-height: 9px;
    font-size: .8em;
    color: $white;
    opacity: 0.3;
  }

  &::before {
    bottom: 50%;
    content: "▲" / "";
  }

  &::after {
    top: 50%;
    content: "▼" / "";
  }

  &.asc::before {
    opacity: 1.0;
  }
  &.desc::after {
    opacity: 1.0;
  }
}

.table thead tr th.select-header {
  width: 28px;
  vertical-align: middle;
  background-color: $blue-800;

  &:nth-child(odd) {
    background-color: $blue-700;
  }
}

.table-container {
  position: relative;

  .table-loading-indicator {
    z-index: 1000;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.25);
    display: none;

    &.is-loading {
      display: block;
    }

    .spinner-border {
      position: absolute;
      border-width: $table-loading-spinner-border-width;
      color: rgba(0, 0, 0, 0.25);
      width: $table-loading-spinner-size;
      height: $table-loading-spinner-size;
      $_offset: $table-loading-spinner-size / 2;
      left: calc(50% - $_offset);
      top: 10%;
    }

    .table-loading-progress {
      z-index: 1000;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      background-color: $white;
      font-weight: bold;
    }
  }
}
