@import '../../style/themes/index';
@import '../../style/mixins/index';

.iep-table-template {
  height: 100%;
  display: flex;
  flex-direction: column;

  &-header {
    flex: 0 0 1;
    display: flex;
    justify-content: space-between;
    line-height: 40px;
    margin-bottom: 20px;
  }

  &-titletime {
    margin-right: 20px;
  }

  &-titleline {
    width: 0;
    height: 12px;
    background: transparent;
    border: 1px solid #e5e5e5;
  }

  &-cloumnset {
    margin-left: 20px;

    .ant-dropdown-link {
      cursor: pointer;
    }

    .ant-dropdown-link:hover {
      color: #0071fa;
    }
  }

  &-titleExport {
    margin-left: 20px;
    display: inline-block;
  }

  .ant-select-tips-box {
    flex: 1;
    overflow: hidden;
  }

  &-wrapper {
    height: 100%;
  }

  .ant-spin-nested-loading {
    height: 100%;
  }

  .ant-spin-container {
    display: flex;
    flex-direction: column;
    height: 100%;

    .ant-table {
      flex: 1;
      overflow: hidden;
    }

    .ant-pagination {
      flex: 0 0 1;
      text-align: right;
    }
  }

  .ant-table-body {
    height: 100%;
    display: flex;
    flex-direction: column;

    .ant-table-tbody {
      overflow-y: auto;
    }
  }

  .ant-table-content {
    height: 100%;
  }

  &-dropcontent {
    min-width: 240px;
    background-color: #fff;
    border-radius: @border-radius-base;
    border: 1px solid #e5e5e5;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);

    .ant-checkbox-group {
      width: 100%;
    }

    &-header {
      padding: 8px 16px;
      font-size: 14px;
      color: #999;
      border-bottom: 1px solid #e5e5e5;
    }

    &-content {
      padding: 8px 16px;

      .ant-checkbox-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-height: 240px;
        overflow-y: auto;
        // div {
        //   width: 50%;
        // }
      }

      .ant-checkbox-wrapper {
        line-height: 30px;
      }
    }

    &-footer {
      padding: 8px 16px;
      font-size: 14px;
      color: #999;
      border-top: 1px solid #e5e5e5;
    }
  }
}

.iep-table-template-stripe tr:nth-of-type(2n) {
  background: #f8f8f8;
}

.iep-table-template-stripe tr > td {
  border-bottom: none;
}
