// @import "src/styles.scss";

.table-card {
  padding: 1rem 2rem 2rem;
  background: #fff;
  margin: 1.6rem 1rem 1rem;
  box-shadow: 0 0.3rem 0.6rem -0.4rem rgba(0, 0, 0, 0.45);

  .table-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85); //!标题颜色;
    line-height: 1.5;
    height: 4rem;
  }

  .table-icon-row {
    .table-icon {
      font-size: 1.6rem;
      text-align: right;
      padding-bottom: 0.8rem;

      a {
        color: unset;
      }

      .dropdownBtn {

        font-size: 1.2rem;

        i {
          font-size: 12px;
          transform: scale(0.83333333) rotate(0deg);
          transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        }

      }

      i {
        margin: 0.3rem;
        cursor: pointer;
      }

      input {
        width: 20rem;
        font-size: 1.2rem;
      }

      span {
        color: #8e8e8e;
      }
    }
  }

  .table-content {

    .table-thead {
      background-color: #fafafa;

      th {
        border-radius: 0;
      }

      .unit {
        display: inline-block;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.2rem;
      }
    }



    .tbody-icon {
      transform: scale(0.85);
      // font-size: 1.2rem;
    }

    td {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;

      a {
        // color: unset;
        font-size: 1.4rem;
      }
    }
  }
}

.tqf {
  background: #fff;
  // padding: 0.8rem;
  border-style: solid;
  border-width: 1px;
  border-color: #bfbfbf96;
  border-radius: 1%;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  .timeRow {
    height: 3.2rem;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    padding-top: 0rem;

    display: flex;
    justify-content: center;
  }

  .brow {
    // text-align: center;
    margin-bottom: 1rem;

    display: flex;
    justify-content: center;

    button:last-child {
      margin-left: 2rem;
    }
  }

  #tabSet {
    // margin-top: -2rem;
    // margin-bottom: -2rem;
    width: 32rem;
  }
}

.add-record-table {
  padding: 0;
  background: #fff;
  margin: 0;
  box-shadow: none;

  .table-content {

    .table-thead {
      background-color: #fafafa;

      .unit {
        display: inline-block;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.2rem;
      }
    }



  }
}

.selected-tableCol {
  max-width: 15rem;
  max-height: 20rem;

  padding: 0.4rem 1.2rem;
  background-color: #fff;
  background-clip: padding-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  overflow-x: hidden;

  &::-webkit-scrollbar {
    height: 5px;
    width: 6px;
    background-color: #eeecec;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 5px;
  }
}

:host ::ng-deep .ant-table-small {
  border-radius: 0;

  .ant-table-body {
    &::-webkit-scrollbar {
      height: 5px;
      width: 6px;
      background-color: #eeecec;
    }

    &::-webkit-scrollbar-thumb {
      background-color: #c0c0c0;
      border-radius: 5px;
    }
  }
}

:host ::ng-deep .ant-table-small.ant-table-bordered .ant-table-content .ant-table-body table {
  table-layout: fixed;
}

::ng-deep .inner-table .ant-table-small.ant-table-bordered .ant-table-body {
  margin: 0;

  table {
    table-layout: fixed;
  }
}

::ng-deep .inner-table .ant-table-small.ant-table-bordered {

  border-radius: 0;

  .table-thead {
    background-color: #fafafa;
    padding: 0.8rem;

    .unit {
      display: inline-block;
      color: rgba(0, 0, 0, 0.5);
      font-size: 1.2rem;
    }
  }

  .ant-table-body {
    &::-webkit-scrollbar {
      height: 6px;
      width: 1px;
      background-color: #eeecec;
    }

    &::-webkit-scrollbar-thumb {
      background-color: #c0c0c0;
      border-radius: 5px;
    }
  }


}

:ng-deep .tqf {
  .ant-tabs-nav-scroll {
    display: flex;
    justify-content: center;
  }
}

::ng-deep .selected-tableCol .ant-checkbox-group-item {
  padding: 0.8rem 0;
  margin-right: 0;
  display: block;
}

// ::ng-deep .inner-table .ant-table-small.ant-table-bordered .table-thead {
//   background-color: #fafafa
// }
