@import url(./base.less);

// 顶部查询样式
.topSearchStyle(){
  // margin-bottom: 10px;
  border: 1px solid @border-color-base;
  border-bottom: 0;
  > .tableTit {
    padding: 0 10px;
    background-color: #fff;
    border-bottom: 1px solid @border-color-base;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    > .tit {
      height: 40px;
      line-height: 40px;

      > .shrinkBtn {
        display: inline-block;
        margin-right: 10px;
        font-size: 20px;
        // color: #aaa;
        user-select: none;
        cursor: pointer;
        svg {
          display: block;
        }
        path {
          fill: #666;
        }
        &.shrink {
          > .alp_icon {
            transform-origin: 50% 50%;
            transform: rotate(180deg);
          }
        }
      }
      > span {
        vertical-align: top;
      }
    }
    > .tableBtn {
      height: 30px;
      line-height: 30px;
      > .ant-btn:not(:last-child) {
        margin-right: 10px;
      }
    }
  }

  
  > .topSearchForm {
    padding: 10px 10px 0;
    max-height: 85px;
    overflow: auto;
    // transition: all 0.2s;
    &.shrink {
      padding: 0 10px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
    }
  }
  .createStartTime {
    margin-right: 10px;
  }
}

// 查询栏下表格样式
.tableViewStyle(){
  border: 1px solid @border-color-base;
  border-top: 0;
  padding: 10px 10px 10px;
  .card {
    border-color: #d1e9ff;
    padding: 0 10px;
    font-size: 12px;
    color: #1890ff;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    white-space: nowrap;
    &.err {
      border-color: #ff4949;
      color: #ff4949;
    }
  }
  .rowBtns {
    .ant-btn{
      margin-left: 5px;
      &:first-child{
        margin-left: 0;
      }
    }
    .ant-btn-text {
      color: @activeColor;
    }
  }
  > .pagination {
    margin-top: 10px;
    text-align: right;
  }
}

// 树表单
.treeFormStyle(){
  // padding: 20px;
  border: 1px solid @border-color-base;
  height: 100%;
  >.tit{
    padding:  6px 15px;
    line-height: 20px;
    font-size: 16px;
    color: #000;
    border-bottom: 1px solid @border-color-base;
  }
  >.alp-form{
    padding: 15px;
    form{
      >.ant-row{
        flex-direction: column;
      }
    }
  }
}

// 表格操作按钮样式
.ant-table-row-cell-break-word{
  >.rowBtns{
    >.ant-btn{
      background: 0 0;
      border-color: transparent;
      box-shadow: none;
      color: #00678c;
      &[disabled]{
        text-shadow: none;
        color: rgb(170, 170, 170);
      }
    }
  }
}