@import "../base/index";

@header-height: 80px;

@import "not-found";
@import "transition";
@import "advance-search";
@import "menu";
@import "list";
@import "info";
@import "detail";
@import "mask";
@import "revise-modal";
@import "anchor";
@import "backtop";
@import "innerTable";
@import "dashboard-table";
@import "process";
@import "totalMenu";
@import "tag";
@import "exception";
@import "setting";
@import "dashboard";
@import "progress-bar";
@import "search";
@import "superSearch";
@import "cascader";
@import "modal/index";

.menu-icon-alibb {
  margin-right: 5px;
}

.mx-mask-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  .mx-mask {
    background-color: @body-background;
  }
}

.loading-mask {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0px auto;
  padding-top: 170px;
  text-align: center;
  opacity: 1;
  z-index: 99999;
}


/*-- layout  --*/
#root {
  height: 100%
}

.body-wrapper {
  height: 100%;
}

.wrapper {
  position: relative;
  overflow-x: auto;
  //min-width: 1200px;
  min-height: 630px;
  // background: #fff;
  width: 100%;
  height: 100%;
  // overflow-y: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -- header -- */
.page-header {
  height: 55px;
  border-bottom: 1px solid #d8e3ef;
  background: #fff;
}

.xsy_oa_detail_crumbs {
  float: left;
  margin-top: 20px;
  font-size: 14px;
}

.xsy_oa_detail_path {
  ol, ul {
    list-style: none;
  }
  .crumb-item {
    float: left;
  }
  .total-menu {
    padding-right: 0px;
    padding-left: 4px;
    margin-top: 0px;
  }
}

/*--  content  --*/
.main-content {
  background-color: #e6e9f0;
  position: absolute;
  right: 0;
  // overflow: hidden;
  // height: 100%;
  min-height: 100%;
  background-color: #e6e9f0;
  transition: left .3s ease;
}
.main-content-row {
  font-size: 14px;
  height: 100%;
  //background-color: #f2f4f7;
}
.wrapper-panel {
  width: 100%;
  height: calc(~'100% - 55px');
}

/*--  arrow    --*/
.arrow {
  display: block;
  background: url('../../../asset/selectmenu_arrow_up.png') right center no-repeat;
  width: 9px;
  height: 6px;
  margin-top: 8px;
  margin-left: 8px;
  float: right;
  &:hover {
    background: url('../../../asset/selectmenu_arrow_up_hover.png') right center no-repeat;
  }
}

.down-arrow {
  display: block;
  background: url('../../../asset/selectmenu_arrow_up.png') right center no-repeat;
  width: 9px;
  height: 6px;
  margin-top: 8px;
  margin-left: 8px;
  float: right;
  transform: rotate(180deg);
  &:hover {
    background: url('../../../asset/selectmenu_arrow_up_hover.png') right center no-repeat;
  }
}
/*--  native footer   --*/
.userpic {
  border: 1px solid #d8d3d3;
  display: inline-block;
  width: 36px;
  height: 36px;
  margin: 10px 5px 0 2px;
  text-align: center;
  vertical-align: middle;
  border-radius: 50px;
  background: url(/static/media/default_face.5388550f.png);
  background-position: center;
  background-size: cover;
  //background: #d4d4d3;
  line-height: 36px;
  color: #fff;
  font-size: 22px;
}

.nav-menu-footer {
  height: 124px;
  padding: 0 20px;
  .admin-info {
    border-top: 1px solid #3a4359;
    overflow: hidden;
    padding-top: 20px;
  }
  a.admin-avatar {
    line-height: 40px;
    display: inline-block;
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    text-align: center;
    border-radius: 50px;
    background: #fff;
  }
  .personal-info {
    .peopel-name {
      font-size: 13px;
      margin-bottom: 3px;
      color: #a3b1cc;
    }
    .company-name {
      color: #a3b1cc;
    }
    span {
      display: block;
      overflow: hidden;
      max-width: 120px;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  //.account-mgt {
  //  margin: 24px 0 0;
  //  .set-pop {
  //    position: relative;
  //    .setting {
  //      margin-right: 30px;
  //      background: url('../../../asset/left_nav_ico.png') 0 -156px no-repeat;
  //    }
  //    .help {
  //      margin-top: -1px;
  //      background: url('../../../asset/left_nav_ico.png') 0 -175px no-repeat;
  //    }
  //    a {
  //      display: inline-block;
  //      float: left;
  //      width: 20px;
  //      height: 20px;
  //    }
  //  }
  //}
}

.nav-menu-footer-up {
  height: 154px;
  padding: 0 10px;
  .admin-info {
    border-top: 1px solid #3a4359;
    overflow: hidden;
    padding-top: 20px;
  }
  a.admin-avatar {
    line-height: 40px;
    display: inline-block;
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    text-align: center;
    border-radius: 50px;
    background: #fff;
  }
  .personal-info {
    .peopel-name {
      font-size: 13px;
      margin-bottom: 3px;
      color: #a3b1cc;
    }
    .company-name {
      color: #a3b1cc;
    }
    span {
      display: block;
      overflow: hidden;
      max-width: 120px;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  //.account-mgt {
  //  margin: 24px 0 0;
  //  margin-left: 10px;
  //  .setting {
  //    margin-right: 30px;
  //    background: url('../../../asset/left_nav_ico.png') 0 -156px no-repeat;
  //    margin-bottom: 17px;
  //  }
  //  .help {
  //    margin-top: -1px;
  //    background: url('../../../asset/left_nav_ico.png') 0 -175px no-repeat;
  //    margin-bottom: 17px;
  //  }
  //  a {
  //    display: inline-block;
  //    float: left;
  //    width: 20px;
  //    height: 20px;
  //  }
  //}
}


/*--    global    --*/
.lfloat {
  float: left;
}

.btn-group {
  .setting {
    padding-top: 10px;
    i {
      font-size: 20px;
      color: #92a4b5;
    }
  }
}


.dinline-block {
  display: inline-block;
}


.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-area-length {
  position: absolute;
  text-align: right;
  color: rgb(195, 195, 195);
  right: 0px;
}

.simple-main-content {
  width: 100%;
  margin: 0 auto;
  //background-color: #fff;
  height: 100%;
}

.margin-center-container {
  //width: 80%;
  overflow: hidden;
  margin: 0 60px;
}

.remove-block-space {
  font-size: 0px;
}

.overflow-y-auto {
  overflow-y: auto;
  //height: auto;
}

.svg-icon {
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.common-btn {
  cursor: pointer;
  &.disable {
    cursor: not-allowed !important;
    a {
      cursor: not-allowed !important;
    }
  }
}

.create-entity-btn .common-btn i { display: none }

.user-select-none {
  user-select: none;
}

.mx-input[disabled], .mx-select-disabled {
  color: #666;
  cursor: auto;
}

.mx-calendar-picker {
  width: 100%;
}
.multiple-modal-input {
  min-height: 28px;
  border-radius: 4px;
  cursor: text;
  border: 1px solid #D9D9D9;
  &:hover {
    border-color: #49a9ee;
    box-shadow: 0 0 2px rgba(16,142,233,.2);
  }

  &-content {
    height: 100%;
    margin-left: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    &-item {
      padding: 3px;
      height: 20px;
      background-color: #F3F3F3;
      border-radius: 4px;
      margin: 3px 0;
      margin-right: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;

      & span {
        font-size: 8px;
      }

      & .item-icon {
        color: #8A8A8A;
        font-size: 10px;
        cursor: pointer;

        &:hover {
          color: #000;
        }
      }
    }
  }
}

.right-tool-bar {
  float: right;
  .t-wrapper {
    span i {
      color: #929090;
    }
    &:last-child {
      padding-right: 33px;
    }
    &:first-child {
      span {
        display: inline-block;
        &:last-child {
          position: relative;
          top: 5px;
        }
      }
    }
    &:not(:first-child) {
      span {
        vertical-align: middle;
        border-left: 2px solid #efefef;
        padding-left: 10px;
      }
      top: 5px;
      position: relative;
    }
    //&:last-child {
    //  margin-right: 10px;
    //}
    display: inline-block;
    cursor: pointer;
    padding-right: 10px;
    .t-badge {
      background: #ff0000;
      display: inline-block;
      padding-left: 2px;
      padding-right: 4px;
      color: #fff;
      font-size: 10px;
      border-radius: 3px;
      margin-left: 2px;
    }
  }
}
