@import './mixins.less';
@import './antd.less';

.page {
  position: relative;
  top: 0px;
  left: 0px;
  right: 0;
  bottom: 0;
  z-index:3;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  .page {
    position: fixed;
    top: 60px;
    left: 180px;
    right: 0;
    bottom: 0;
    z-index: 102;
    overflow: auto;
    margin:0 16px;
    .box{
      &:first-child{
        margin-bottom: 8px;
      }
      &:last-child{
        margin-bottom: 16px;
      }
    }
  }
  .page-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    overflow-y: auto;
    animation: all 0.75;
    padding-bottom: 16px;
  }
  .content-sub-header {
    padding: 0px 16px 0;
    line-height: 30px;
  }
  .content-header {
    padding: 16px 16px 8px 16px;
    line-height: 30px;
    font-size:24px;
    color:#333;
    font-weight:bold;
    background: #FFF;
    h1 {
      font-weight: normal;
      display: inline-block;
    }
  }

  .box {
    padding: 16px;
    // margin-bottom: 8px;
    background: #ffffff;
    // min-height: calc(100vh - 126px);
    .box-header {
      line-height: 30px;
      padding-bottom: 12px;
      &.searchOnly {
        padding-bottom: 0px;
      }
      .filter-row {
        min-height: 30px;
        margin-bottom: 10px;

        > * {
          float: left;
          margin-left: 16px;
          height: 40px;
        }
        // >.ant-btn {
        //   height: 28px!important;
        // }
        *:first-child {
          margin-left: 0px;
        }
      }
    }
    .box-footer {
      margin-top: 16px;
    }
  }
}

.box-header {
  .ant-row-flex {
    padding-top: 2px;
    > div:nth-child(1) {
      display: flex;
      flex-wrap: wrap;
      align-items: space-between;
      .flex(1);
      > * {
        flex-basis: 30%;
        margin-right: 3%;
        margin-bottom: 16px;
      }
    }
    &.lastRow {
      > div:nth-child(1) {
        > * {
          margin-bottom: 0px;
        }
      }
    }
  }
}

.full-screen-page {
  min-width: 1000px;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  user-select: none;
  background-color: #f0f2f5;
}
