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

.page {
  position: relative;
  top: 0px;
  left: 0px;
  right: 0;
  bottom: 0;
  z-index: 101;
  background-color: #f0f2f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  .page {
    position: fixed;
    top: 50px;
    left: 180px;
    right: 0;
    bottom: 0;
    z-index: 102;
    overflow: auto;
    .box {
      &:first-child {
        margin-bottom: 8px;
      }
      & + .box {
        margin: 8px 16px;
      }
      &: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;
    line-height: 30px;
    background: #fff;
    margin: 16px 16px 0;
    font-size: 24px;
    color: #333;
    font-weight: 500;
    h1 {
      font-weight: normal;
      display: inline-block;
    }
  }

  .box {
    padding: 16px;
    margin: 0 16px;
    background: #ffffff;
    // min-height: 400px;
    .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;
    }
    &:first-child {
      margin-bottom: 8px;
    }
    & + .box {
      margin: 8px 16px;
    }
  }
  // .ant-calendar-picker{
  //   top:-1px;
  // }
}

.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;
}
