$select-color: #0073bb;
$input-max-width: 50px;
.gsui-table-pannel {
  background-color: #fff;
  .desc {
    padding: 2 0px;
    color: #666;
    font-size: 14px;
  }
  .table-header {
    width: 100%;
    display: flex;
    padding: 10px 20px 10px 20px;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    .title {
      flex: 1;
      font-size: $font-size-18;
      font-weight: 700;
    }
    .action {
      // flex: 1;
      text-align: right;
      button {
        margin-right: 10px;
        &:last-child {
          margin-right: 0;
        }
      }
    }
    .filter {
      flex: 1;
      max-width: 700px;
    }
    &.header-panel {
      background-color: #fafafa;
    }
  }
  &.no-padding {
    .table-header {
      padding: 10px 0 10px 0;
    }
  }
  .gsui-table {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      th,
      td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      thead {
        tr {
          th {
            background-color: #fafafa;
            border-top: 1px solid #eaeded;
            border-bottom: 1px solid #eaeded;
            position: relative;
            // border-right: 1px solid #eaeded;
            min-width: 100px;
            padding: 9px 0px;
            .content {
              padding: 0 10px;
              border-right: 1px solid #eaeded;
            }
          }
        }
      }
      tbody {
        tr {
          tab-size: 8;
          text-align: left;
          td {
            word-wrap: break-word;
            border-top: 1px solid transparent;
            border-bottom: 1px solid #eaeded;
            min-width: 100px;
            padding: 9px 10px;
          }
          &.selected {
            border: 1px solid $select-color;
            background-color: #f1faff;
            td {
              border-top: 1px solid $select-color;
              border-bottom: 1px solid $select-color;
              &:first-child {
                border-left: 1px solid $select-color;
              }
              &:last-child {
                border-right: 1px solid $select-color;
              }
            }
          }
        }
      }
    }
    .body-cell-input {
      table-layout: fixed;
      max-width: $input-max-width;
      min-width: $input-max-width;
      width: $input-max-width;
      padding: 12px 5px 7px;
      text-align: center;
    }
  }
  .table-loading {
    text-align: center;
    padding: 20px;
  }
  .table-empty {
    color: #555;
    padding: 20px;
    text-align: center;
  }
}
