.jsgrid-grid-header,
.jsgrid-grid-body,
.jsgrid-header-row > th,
.jsgrid-filter-row > td,
.jsgrid-insert-row > td,
.jsgrid-edit-row > td {
  border: 1px solid $border-color-base;
}

.jsgrid-header-row > th {
  border-top: 0;
}

.jsgrid-header-row > th, .jsgrid-filter-row > td, .jsgrid-insert-row > td {
  border-bottom: 0;
}

.jsgrid-header-row > th:first-child, .jsgrid-filter-row > td:first-child, .jsgrid-insert-row > td:first-child {
  border-left: none;
}

.jsgrid-header-row > th:last-child, .jsgrid-filter-row > td:last-child, .jsgrid-insert-row > td:last-child {
  border-right: none;
}

.jsgrid-grid-header {
  background: $gray-200;
}

.jsgrid-header-scrollbar {
  scrollbar-arrow-color: $gray-100;
  scrollbar-base-color: $gray-100;
  scrollbar-3dlight-color: $gray-100;
  scrollbar-highlight-color: $gray-100;
  scrollbar-track-color: $gray-100;
  scrollbar-shadow-color: $gray-100;
  scrollbar-dark-shadow-color: $gray-100;
}

.jsgrid-header-scrollbar::-webkit-scrollbar {
  visibility: hidden;
}

.jsgrid-header-scrollbar::-webkit-scrollbar-track {
  background: $gray-100;
}

.jsgrid-header-sortable:hover {
  cursor: pointer;
  background: #fcfcfc;
}

.jsgrid-header-row .jsgrid-header-sort {
  background: $color-primary-100;
}

.jsgrid-header-sort:before {
  float: left;
  @include make-icon();
  font-family: '#{$wb-font-family}';
}

.jsgrid-header-sort-asc:before {
  content: '#{$wb-var-triangle-up}';
}

.jsgrid-header-sort-desc:before {
  content: '#{$wb-var-triangle-down}';
}

.jsgrid-grid-body {
  border-top: none;
}

.jsgrid-grid-body td {
  border: #f3f3f3 1px solid;
}

.jsgrid-grid-body tr:first-child td {
  border-top: none;
}

.jsgrid-grid-body tr td:first-child {
  border-left: none;
}

.jsgrid-grid-body tr td:last-child {
  border-right: none;
}

.jsgrid-row > td {
  background: #fff;
}

.jsgrid-alt-row > td {
  background: #fcfcfc;
}

.jsgrid-header-row > th {
  background: #f9f9f9;
}

.jsgrid-filter-row > td {
  background: #fcfcfc;
}

.jsgrid-insert-row > td {
  background: $color-green-100;
}

.jsgrid-edit-row > td {
  background: $color-yellow-100;
}

.jsgrid-selected-row > td {
  background: $bg-color-base;
  border-color: $bg-color-base;
}

.jsgrid-nodata-row td {
  background: #fff;
}

.jsgrid-pager-current-page {
  font-weight: bold;
}

.jsgrid-pager-nav-inactive-button a {
  color: #d3d3d3;
}

.jsgrid-button + .jsgrid-button {
  margin-left: 5px;
}

.jsgrid-button:hover {
  opacity: .5;
  transition: opacity 200ms linear;
}

.jsgrid .jsgrid-button {
  width: 16px;
  height: 22px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;

  @include make-icon();
  font-family: '#{$wb-font-family}';
  background: transparent;
}

.jsgrid-mode-on-button {
  opacity: .5;
}

.jsgrid-cancel-button {
  &:before {
    content: '#{$wb-var-close}';
  }
}
.jsgrid-clear-filter-button {
  &:before {
    content: '#{$wb-var-zoom-out}';
  }
}
.jsgrid-delete-button {
  &:before {
    content: '#{$wb-var-trash}';
  }
}
.jsgrid-edit-button {
  &:before {
    content: '#{$wb-var-pencil}';
  }
}
.jsgrid-cancel-edit-button {
  &:before {
    content: '#{$wb-var-close}';
  }
}
.jsgrid-insert-mode-button {
  &:before {
    content: '#{$wb-var-plus}';
  }
}
.jsgrid-insert-button {
  &:before {
    content: '#{$wb-var-plus}';
  }
}
.jsgrid-search-mode-button {
  &:before {
    content: '#{$wb-var-search}';
  }
}
.jsgrid-search-button {
  &:before {
    content: '#{$wb-var-search}';
  }
}
.jsgrid-update-button {
  &:before {
    content: '#{$wb-var-check}';
  }
}

.jsgrid-load-shader {
  background: #ddd;
  opacity: .5;
  filter: alpha(opacity=50);
}

.jsgrid-load-panel {
  width: 15em;
  height: 5em;
  background: #fff;
  border: 1px solid $border-color-base;
  padding-top: 3em;
  text-align: center;
}

.jsgrid-load-panel:before {
  content: ' ';
  position: absolute;
  top: .5em;
  left: 50%;
  margin-left: -1em;
  width: 2em;
  height: 2em;
  border: 2px solid #009a67;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: indicator 1s linear infinite;
  animation: indicator 1s linear infinite;
}

@-webkit-keyframes indicator
{
  from { -webkit-transform: rotate(0deg); }
  50%  { -webkit-transform: rotate(180deg); }
  to   { -webkit-transform: rotate(360deg); }
}

@keyframes indicator
{
  from { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  to   { transform: rotate(360deg); }
}

/* old IE */
.jsgrid-load-panel {
  padding-top: 1.5em\9;
}
.jsgrid-load-panel:before {
  display: none\9;
}
