/**Variable**/

.s-grid {
  position: relative;
  color: $s-font-color;
  &.is--loading {
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 99;
      user-select: none;
      background-color: $s-loading-background-color;
    }
    & > .s-table {
      .s-loading {
        background-color: transparent;
      }
    }
  }
  &.is--maximize {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0.5em 1em;
    background-color: #fff;
  }
  .s-body--row {
    &.row--pending {
      color: $s-table-validate-error-color;
      text-decoration: line-through;
      cursor: no-drop;
      .s-body--column {
        position: relative;
        &:after {
          content: "";
          position: absolute;
          top: 50%;
          left: 0;
          width: 100%;
          height: 0;
          border-bottom: 1px solid $s-table-validate-error-color;
          z-index: 1;
        }
      }
    }
  }
  .s-grid--form-wrapper,
  .s-grid--top-wrapper,
  .s-grid--bottom-wrapper  {
    position: relative;
  }
  .s-grid--top-wrapper {
    padding-bottom: 0.8em;
  }
  .s-grid--bottom-wrapper {
    padding-top: 0.8em;
  }
}

.s-grid {
  font-size: $s-font-size;
  &.size--medium {
    font-size: $s-font-size-medium;
  }
  &.size--small {
    font-size: $s-font-size-small;
  }
  &.size--mini {
    font-size: $s-font-size-mini;
  }
}
