@import "../styles/common";

@tableHeaderBgColor:#eee;
@trHoverBgColor:#fafafa;

.w-table-search{
  padding: 0 10px;
  & > .w-header{
    .w-header-top{
      .flex_parent();
      padding: 16px 0 10px 0;


      .ant-btn{
        min-width: 74px;
        height: 36px;

        border-radius: 20px;

        &:not(.ant-btn-primary){
          border: 1px solid #5b97ee;
          color:#5b97ee;
        }

      }
    }
    .w-form{
      .flex_child();
      padding-right: 10px;
    }

    .w-header-btn-collapse{
      height: 36px;
      margin-left: 20px;
      display: flex;
      align-items: center;
    }

    .w-header-sep{
      background: #f5f6f6;
      height: 8px;
    }

    .w-header-bottom{
      padding: 11px 0;

      .ant-btn{
        background: #f3f3f3;
        border: 1px solid #d6d6d6;
        border-radius: 20px;
        color:#333;
        height: 32px;

        &[disabled]{
          background: #f5f5f5;
          color:rgba(0, 0, 0, 0.25);
        }
      }
    }

    .w-header-bottom-empty{
      height: 10px;
    }
  }
  & > .w-footer{
    .ant-pagination{
      padding: 10px;
    }
  }

  &.w-table-search-fit{
    .flex_parent_column();

    & > .w-body{
      .flex_child_column();
    }
  }

  &.theme-afc{
    .w-header{
      padding-left:0;
      padding-right: 0;


      .w-header-top{
        .ant-btn{

          min-width: 74px;
          height: 36px;
          border: 1px solid #5b97ee;
          border-radius: 20px;
          color:#5b97ee;

          &.ant-btn-primary{
            background: #3385ff;
            color:#fff;
          }
        }
      }

    }

    .w-footer{
      .ant-pagination{
        border:0;
      }
    }
  }
}


.w_table_op_box{
  a{
    margin-right: 10px;

    &:last-child{
      margin-right: 0;
    }

    &.w_text_danger{
      color:red;

      &:hover{
        color:#ef5b5b;
      }
    }
  }
}

