/*--- mask  ---*/

@mask-prefixCls: mx-mask-self;

.@{mask-prefixCls} {
  display: block;
  // height: 100%;
  width: 50%;
  position: absolute;
  &-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .5;
    filter: alpha(opacity=50);
    z-index: 1050;

    &-hidden {
      display: none;
    }
  }

  .fade-effect() {
    animation-duration: 0.3s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
  }

  &-fade-enter,&-fade-appear {
    opacity: 0;
    .fade-effect();
    animation-play-state: paused;
  }

  &-fade-leave {
    .fade-effect();
    animation-play-state: paused;
  }

  &-fade-enter&-fade-enter-active,&-fade-appear&-fade-appear-active  {
    animation-name: mxMaskFadeIn;
    animation-play-state: running;
  }

  &-fade-leave&-fade-leave-active {
    animation-name: mxMaskFadeOut;
    animation-play-state: running;
  }

  @keyframes mxMaskFadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  @keyframes mxMaskFadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  &-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    //-webkit-overflow-scrolling: touch;
    outline: 0;
  }

  .effect() {
    animation-duration: 0.3s;
    animation-fill-mode: both;
  }

  &-zoom-enter, &-zoom-appear {
    opacity: 0;
    .effect();
    animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
    animation-play-state: paused;
  }

  &-zoom-leave {
    .effect();
    animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
    animation-play-state: paused;
  }

  &-zoom-enter&-zoom-enter-active, &-zoom-appear&-zoom-appear-active {
    animation-name: mxMaskZoomIn;
    animation-play-state: running;
  }

  &-zoom-leave&-zoom-leave-active {
    animation-name: mxMaskZoomOut;
    animation-play-state: running;
  }

  @keyframes mxMaskZoomIn {
    0% {
      opacity: 0;
      transform: scale(0, 0);
    }
    100% {
      opacity: 1;
      transform: scale(1, 1);
    }
  }
  @keyframes mxMaskZoomOut {
    0% {

      transform: scale(1, 1);
    }
    100% {
      opacity: 0;
      transform: scale(0, 0);
    }
  }

  .title-bar {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: #2d3244;
    padding: 0em 0em;
    cursor: move;
    color: #fff;
    user-select: none;
    span {
      margin: 0em 0em;
      padding-left: 20px;
      width: auto;
      font-size: 16px;
      height: 50px;
      line-height: 50px;
      font-weight: normal;
    };
    a {
      text-align: right;
      font-size: 22px;
      color: #fff;
      position: absolute;
      right: 15px;
      margin-top: 14px;
    }
  }

  .modal-content-list, .modal-content-detail {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: scroll;
    margin-right: -34px;
    .modal-content-body {
      padding-bottom: 40px;
      //position: relative;
      overflow: scroll;
      height: 100%;
      overflow-x: hidden; //
      // padding-right: 17px;
    }
    .loading {
      text-align: center;
      padding: 20px 0;
    }
    .pop-bottom-btns {
      z-index: 1000;
      background-color: #fff;
      clear: both;
      height: 50px;
      border-top: 1px solid #dae6f2;
      .pop_up_button {
        float: right;
        margin: 10px 10px 0 0;
        button, a {
          color: #fff;
          padding: 0 20px;
          background: #00aaef;
          border: 1px solid #00aaef;
          margin-left: 12px;
          height: 32px;
          line-height: 32px;
          display: block;
          float: left;
          border-radius: 4px;
          font-size: 13px;
          outline: 0;
          text-decoration: none;
          &:hover {
            background: #0092cc;
            border: 1px solid #0092cc;
          }
          &.cancel-btn {
            border: 1px solid #a3b8cc;
            color: #475059;
            background: #f7f7f9;
            &:hover {
              border: 1px solid #a3b8cc;
              background: #a3b8cc;
              color: #fff;
            }
          }
        }
      }
    }
  }
}
