/*
* @Author: xiaosiyu
* @Date:   2016-09-23 16:11:30
* @Last Modified by:   zhongjiahao
* @Last Modified time: 2016-12-01 14:25:38
*/
.modal-pop__mask{
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #03101A;
  top: 0;
  left: 0;
  opacity: 0.5;
  filter: alpha(opacity=50);
}

.modal-pop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height:280px;
  min-width:630px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  .modal-pop_is-ie .formpart.bfc {
    overflow:visible;
  }
  .modal-pop__container_string {
    @include rem(padding, 10, 20);
  }
  .z-header.main{
    transform: inherit !important;
  }

  .TableWrapperMain .z-table{
    transform: inherit !important;
  }
  //兼容富文本全屏模式
  .modal-pop_is-fullscreen {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    top: 0 !important;
    left: 3px !important;
    max-height: 100% !important;
    transform: translate(0px, 0px) !important;
  }
  .modal-pop_no-animation {
    transition: none !important;
    animation: none !important;
  }
  .modal-pop__container {
    position: fixed;
    overflow: hidden;
    width: 60%;
    height: auto;
    min-height:220px;
    padding-bottom: 0;
    border-radius: 6px !important;
    box-shadow: rgba(0, 0, 0, 0.298039) 0px .3125rem 1.250rem 0px;
    opacity: 1;
    transform: none;
    background-color: $m7;
    z-index: 99;
    margin-top: 0;
    margin-left: 0;
    transition: margin-top .1s $ease,height .1s $ease;
  }
  // .modal-pop_is-open {
    // left: 50%;
    // top: 50%;
  // }
  .modal-pop_is-close {
    left: 50%;
    @include rem(top, -800);
  }
  .modal-pop__header {
    position: relative;
    @include rem(height, 40);
    @include rem(padding, 0, 10);
    text-align: center;
    background-image:linear-gradient(90deg, #0077cc 0%, #00c7fb 100%);
    color: $m7;
    .modal-pop__title {
      padding: 5px 35px 5px 0;
      line-height: 30px;
      text-align: left;
      text-indent: 10px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size:16px;
      font-family: $font-family-h;
    }
    .modal-pop_close{
      position: absolute;
      height: 40px;
      width: 50px;
      line-height: 40px;
      top: 0;
      right: 0;
      cursor: pointer;
      &:before{
        font-size: 14px;
        color:#fff;
      }
    }
  }
  .modal-pop_is-draging{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10000;
  }
  .modal-pop__content {
    overflow: auto;
    overflow-x: hidden;
    width: 100%;
    min-height: 125px;
    max-height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    .modal-pop__wrapper {
      height: 100%;
    }
  }
  .modal-pop__footer {
    position: absolute;
    background: #FFF;
    z-index: 200;
    width: 100%;
    text-align: right;
    bottom:0;
    border-top:1px solid #e4ebf0;
    .btn_default {
      @include rem(margin-right, 20);
    }
  }
}

.simple-edition {
  .modal-pop__container {
    .modal-pop__header {
      background-image: none;
    }
    .modal-pop__footer {
      border-top: none;
      text-align: center;
      .btn {
        margin: 35px 0 20px 0;
        padding: 2px 15px;
      }
      .btn_weaken {
        margin-right: 10px;
      }
    }
  }
}
