@import "font";
@import 'svgicon';
@import 'reset';
@import "~@/styles/comMedia.scss";

/* Global scss */
* {
  //-webkit-overflow-scrolling:auto !important;
}

body {
  position: fixed;
  top: 0;
  bottom: 0;
  background: #F5F5F5;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Noto Sans SC';
  -webkit-touch-callout: none !important;
  -webkit-user-select: none;

}

html {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;

}

* {
  touch-action: pan-y;
}

#app {
  width: 100%;
  height: 100%;
}

.home {
  width: 100%;
  height: 100%;
  overflow: auto;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a,
a:focus,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  @include clearfix;
}


.mr20 {
  margin-right: 20px;
}

.mr10 {
  margin-right: 10px;
}

.box-active {
  background: #FFE823 !important;
}

.page-box {
  padding: 0 20px;
  padding-bottom: 50px;
}

.pheight {
  width: 100%;
  height: 100%;
  //height: calc(100% - 48px);
  padding-bottom: 100px;
  overflow: auto;
}

.content-box {
  padding: 0px 20px;
}

.ptheader {
  width: 100%;
  padding-top: 48px;
}


.ignore_com-top {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  z-index: 444;
}


.clearfix {
  zoom: 1;
}

/*==for IE6/7 Maxthon2==*/
.clearfix :after {
  clear: both;
  content: '.';
  display: block;
  width: 0;
  height: 0;
  visibility: hidden;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.no-data {
  img {
    display: block;
    width: 60%;
    max-width: 450px;
    margin: 0 auto;
  }

  span {
    display: block;
    font-size: 14px;
    text-align: center;
  }
}

.click-disable {
  //border: 2px solid #DFE3ED;
  box-shadow: none;
  background-repeat: repeat;
  border: 2px solid #dfe3ed;
  background-image: url('/sgipad/images/map-icon/bg_disable.png');
}

.main-left {
  width: calc(100% - 375px);
}

.main-right {
  width: 375px;
  // width: 330px;
}

.popup-content {
  height: 100%;
  width: 500px;
  // padding: 10px 15px;
  padding: 2.33vh 15px;
}

.popup-content-small {
  height: 100%;
  width: 450px;
  // padding: 10px 15px;
  padding: 2.33vh 15px;
}

.van-switch--on {
  background: $elActiveColor !important;
}


.switch-btn {
  margin-top: 2px;
  width: 48px !important;
  height: 24px !important;

  .van-switch__node {
    width: 24px !important;
    height: 24px !important;

  }
}

.van-switch--on.switch-btn {
  .van-switch__node {
    transform: translate(calc(48px - 24px)) !important;
  }
}

.child-switch {
  width: 33px !important;
  height: 16px !important;

  .van-switch__node {
    width: 16px !important;
    height: 16px !important;

  }
}

.van-switch--on.child-switch {
  .van-switch__node {
    transform: translate(calc(33px - 16px)) !important;
  }
}




.com-search {
  position: relative;

  .van-search {
    padding: 0 !important;
    width: 100%;
    height: 44px;
    border: 1px solid #c3c7cb;
    border-radius: 22px;
    background: #fff;
    font-size: 16px;
    line-height: 26px;
    color: #c3c7cb;
  }

  .van-field__left-icon {
    display: none;
  }

  .search-box {
    flex: 1;
    height: 44px;
  }

  .search-icon {
    position: absolute;
    right: 0;
    top: 0;
    display: inline-block;
    // background: #fff;
    // height: 44px;
    // line-height: 44px;
    // width: 42px;
    padding-right: 20px;
    border-radius: 0 22px 22px 0;

    img {
      width: 24px;
      height: 24px;
      margin-top: 10px;
    }

    // height: 22px;
  }

  .van-search__field {
    border-radius: 22px;
    padding: 0 !important;
    background: #fff;
  }

  .van-icon-clear {
    margin-right: 50px;
  }

  .van-search__content {
    width: 99%;
    background: transparent !important;
  }

  .van-icon-search:before {
    // display: none;
    font-size: 25px;
    color: #373c43;
  }
}

.van-dialog__confirm,
.van-dialog__confirm:active {
  color: $elActiveColor !important;
}

.temp-loading {
  position: fixed;
  line-height: 120px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  text-align: center;
}