.Wt-itemview {
  white-space: nowrap;
  cursor: default;
  background: $pagination-bg;
  border: 1px solid #dddddd;

  &.Wt-itemview-paged {
    overflow: auto;
  }

  .Wt-spacer {
    background: url(#{$wt-resources-prefix}loading.png);
  }

  .Wt-headerdiv {
    width: 100%;
    overflow: hidden;
    user-select: none;
  }

  .Wt-headerdiv,
  .Wt-headerdiv .Wt-tv-rowc,
  th {
    font-weight: bold;
  }

  th,
  th .Wt-tv-br {
    overflow: hidden;
  }

  .Wt-header {
    .Wt-label {
      height: 100%;
      overflow: hidden;
      font-weight: bold;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .Wt-wwrap .Wt-label {
      overflow: visible;
      white-space: normal;
    }
  }

  .Wt-tv-rh {
    float: inline-end;
    width: 4px;
    cursor: col-resize;

    &:hover {
      background-color: #999999;
    }
  }

  .Wt-tv-no-rh {
    width: 0;
    margin-inline-start: 4px;
    cursor: default;
  }

  .Wt-tv-sh {
    float: inline-end;
    width: 16px;
    height: 16px;
    padding-bottom: 6px;
    cursor: pointer;
  }

  .Wt-tv-sh-none {
    background: url(#{$wt-theme-prefix}../sort-arrow-none.gif) no-repeat 0 6px;
  }

  .Wt-tv-sh-up {
    background: url(#{$wt-theme-prefix}../sort-arrow-up.gif) no-repeat 0 6px;
  }

  .Wt-tv-sh-down {
    background: url(#{$wt-theme-prefix}../sort-arrow-down.gif) no-repeat 0 6px;
  }

  .active {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
    cursor: default;
    background-color: #428bca;
  }

  .Wt-drop-site {
    background-color: #EEEEEE;
    outline: 1px dotted black;
  }
}

@include color-mode(dark) {
  .Wt-itemview {
    border-color: #43474B;

    .Wt-spacer {
      background-image: url(#{$wt-resources-prefix}loading-dark.png);
    }

    .Wt-tv-rh:hover {
      background-color: #878B8F;
    }

    .active {
      color: #000;
      text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.25);
      background-color: #4d94d4;
    }

    .Wt-drop-site {
      background-color: #32363A;
      outline: 1px dotted white;
    }

    .Wt-tv-sh-none {
      background-image: url(#{$wt-theme-prefix}../sort-arrow-none-dark.gif);
    }

    .Wt-tv-sh-up {
      background-image: url(#{$wt-theme-prefix}../sort-arrow-up-dark.gif);
    }

    .Wt-tv-sh-down {
      background-image: url(#{$wt-theme-prefix}../sort-arrow-down-dark.gif);
    }
  }
}
