body {
  line-height: 1.42857143;
  color: #333;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

.admin-ie-body {
  height: auto !important;
}

.admin-layout-container {
  .cd-fixed-top {
    top: 0;
    height: 60px !important;
    background-color: #333;
    box-shadow: 0px 2px 12px 0px rgba(0,0,0,0.05);
    @media (max-width: @screen-xs-max) {
      height: 54px !important;
    }
  }

  .admin-navbar-brand {
    font-size: 18px;
    font-weight: 900 !important;
    line-height: 24px;
    color: #fff !important;
    &:hover,
    &:focus {
      text-decoration: none;
    }
  }

  .cd-tabs > li > a {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    color: #bebebe;
    // .cdv2-text-md;
    font-size: 14px;
    line-height: 100%;
    text-decoration: none;
    &:hover,
    &:focus {
      text-decoration: none;
    }
  }

  .cd-tabs > li.active > a:before {
    background: rgba(0, 0, 0, 0) !important;
  }

  .cd-tabs {
    height: 60px;
    > li + li {
      margin-left: 16px;
      @media (max-width: @screen-md-max) {
        margin-left: 8px !important;
      }
    }
  }

  .cd-layout-aside_bread {
    display: none;
  }

  .ct-layout-navbar_ul {
    .divider-col {
      margin-top: 24px;
      margin-bottom: 25px;
      width: 1px;
      height: 10px;
      background: rgba(255, 255, 255, 0.50);      ;
    }
    li {
      position: relative;
      > a {
        .es-transition;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 12px !important;
        font-weight: normal !important;
        line-height: 20px;
        @media (max-width: @screen-md-max) {
          padding: 0 6px !important;
        }
        img {
          display: none;
        }
        &:hover,
        &:focus {
          .es-transition;
          color: #fff !important;
          opacity: 1 !important;
          text-decoration: none;
        }
      }
      &.new {
        &:before {
          content: 'New';
          position: absolute;
          @media (min-width: @screen-xs-max) {
            right: -10px;
          }
          top: 10px;
          padding: 0px 3px;
          color: #fff;
          font-size: 12px;
          background-color: #ed3e3e;
          border-radius: 20px;
          z-index: 10;
          @media (max-width: @screen-xs-max) {
            top: 0;
            left: 48px;
          }
        }
      }
      .es-transition;
      &.application-icon {
        a {
          height: auto !important;
          margin-top: 16px;
          margin-bottom: 16px;
          // padding: 4px 16px !important;
          @media (max-width: @screen-md-max) {
            // padding: 4px 8px !important;
          }
          font-size: 14px;
          line-height: 24px;
          // .cdv2-text-md;
          border-radius: 16px;
          color: #fff !important;
          .es-transition;
          &:hover,
          &:focus {
            .es-transition;
            opacity: 0.8 !important;
          }
          img {
            display: inline-block;
            margin-right: 8px;
            width: 20px;
            height: 20px;
          }
          span {
            display: inline-block;
            font-size: 14px;
            line-height: 20px;
            vertical-align: middle;
          }
        }
        &.active {
          a {
            margin-top: 16px;
            margin-bottom: 16px !important;
          }
        }
      }
    }
    li:not(:last-child) {
      &.active {
        .es-transition;
        a {
          margin-top: 16px;
          margin-bottom: 16px !important;
          padding: 4px 12px !important;
          @media (max-width: @screen-md-max) {
            padding: 4px 8px !important;
          }
          background-color: #fff !important;
          border-radius: 16px !important;
          color: #333 !important;
          &:before {
            display: none;
          }
        }
      }
    }
  }
  .cd-fixed-top {
    .ct-top-logo {
      padding-top: 18px;
      padding-bottom: 18px;
      @media(max-width: 1400px) {
        padding-left: 32px;
      }
      @media (max-width: @screen-md-max) {
        padding-left: 16px !important;
      }
      .cdv2-text-lg;
    }
  }

  .cd-fixed-top .ct-layout-navbar {
    position: absolute;
    left: 140px;
    padding-left: 0;
    padding-right: 0;
    transform: none;
    @media (max-width: 1366px) {
      left: 170px;
    }
    @media (max-width: @screen-md-max) {
      left: 146px !important;
    }
  }

  .change-version-btn {
    height: 60px;
    line-height: 60px;
    margin-right: 28px;

    .icon-home {
      margin-right: 2px;
      vertical-align: text-bottom;
    }

    a {
      font-size: 14px;
      color: #bebebe;
      .es-transition;
      &:hover,
      &:focus {
        .es-transition;
        color: #fff;
        cursor: pointer;
        text-decoration: none;
      }
    }
    
    .school-share-container {
      padding: 24px;
      background-color: #fff;

      .shc-label {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #272E3B;
      }
    }

    @media (max-width: @screen-md-max) {
      display: none;
    }
  }

  .ct-layout-person__ul {
    @media (max-width: 1300px) {
      padding-left: 16px !important;
    }
  }

  .ct-layout-person_center {
    @media (max-width: @screen-md-max) {
      margin-right: 16px !important;
    }
    .user-avatar-toggle {
      height: 60px !important;
      color: #fff !important;
      font-size: 14px !important;
      line-height: 60px;
      text-decoration: none;
      span {
        display: inline-block;
        font-size: 14px;
        line-height: 20px;
      }
    }
    .dropdown-arrow {
      position: absolute;
      left: 50%;
      margin-left: -8px;
      top: -6px;
      background-color: #fff;
      width: 12px;
      height: 12px;
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
    }
    .user-dropdown {
      width: 100%;
      min-width: 104px;
      height: 60px;
      box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.1);
    }
    .user-operate-link {
      font-size: 14px !important;
      line-height: 20px;
      color: #666;
      i {
        color: #bebebe;
        vertical-align: text-bottom;
      }
    }
  }

  .cd-layout-sidebar {
    width: 184px !important;
    .cd-sidebar-container {
      padding-left: 0;
      padding-bottom: 80px;
      ul {
        padding-left: 0;
      }
    }
  }

  .cd-layout-aside {
    margin-left: 184px !important;
  }

  .cd-layout-sidebar ul li>a {
    padding-right: 16px !important;
    font-size: 14px !important;
    line-height: 24px !important;
    text-decoration: none !important;
    color: #333 !important;
    .es-transition;
    &:hover,
    &:focus {
      .es-transition;
      color: #428bca !important;
    }
    &.active {
      background-color: rgba(66,139,202,0.1) !important;
      position: relative !important;
      color: #428bca !important;
    }
    .cd-icon-arrow-up {
      line-height: 24px;
      color: #bebebe;
    }
  }

  .cd-layout-adside_content {
    margin-top: 10px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding: 6px 16px 16px;
    height: auto !important;
    min-height: 100%;
    @media (max-width: @screen-xs-max) {
      margin-right: 16px !important;
    }
    .nav.nav-tabs > li > a.new:after {
        content: 'New';
        position: relative;
        padding: 0px 3px;
        top: -1px;
        left: 5px;
        color: #fff;
        font-size: 12px;
        background-color: #ed3e3e;
        border-radius: 20px;
        z-index: 10;
    }
  }

  .cd-layout-main {
    padding-top: 0 !important;
    .cd-layout-sidebar {
      top: 60px;
      overflow-y: auto;
      ul {
        display: block;
      }
    }
  }
  .cd-group-item {
    .cd-group-item_link.new .item-txt {
      position: relative;
      &::after {
        content: 'New';
        position: absolute;
        padding: 0px 3px;
        top: 0;
        right: -5px;
        color: #fff;
        font-size: 12px;
        background-color: #ed3e3e;
        border-radius: 20px;
        z-index: 10;
        line-height: 16px;
        transform: translateX(100%);
      }
    }
  }

  .school-share-container {
    position: relative;
    z-index: 10;
    
    .share-label {
      font-weight: 500;
      font-size: 16px;
      line-height: 32px;
      color: #272E3B;
    }

    .es-btn {
      height: 32px;
      padding: 0 16px;
      margin-left: 22px;
      color: #165DFF;
      font-size: 14px;
      line-height: 32px;
      text-align: center;
      border: solid 1px #165DFF;
      border-radius: 2px;
    }

    .open-btn {
      margin-left: 12px;
      color: #fff;
      background: #165DFF;
    }

    .disabled-mask {
      display: none;
    }

    .info-disable {
      position: relative;
      
      * {
        color: #C9CDD4 !important;
      }

      .disabled-mask {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        cursor: not-allowed;
      }
    }

    .download-btn {
      height: 32px;
      padding: 0 20px;
      margin-bottom: 8px;
      line-height: 32px;
      text-align: center;
      color: #272E3B;
      font-weight: 400;
      font-size: 14px;
      border: 1px solid #E5E6EB;
      border-radius: 2px;
      cursor: pointer;
    }
  }
}

.modal-switch-dialog {
  .modal-body {
    .question-section {
      height: 500px;
    }
    padding-bottom: 0;
  }
  .modal-footer {
    border: none;
  }
}

.site-analytics-section {
  position: fixed;
  bottom: 80px;
  right: 10px;
  z-index: 1000;
}

.navbar-mobile-title {
  margin-left: 108px;
  color: #999;
  font-size: 20px;
  .es-transition;
  &:hover,
  &:focus {
    .es-transition;
    color: #fff;
  }
}

.navbar-header--mobile {
  @media (max-width: @screen-xs-max) {
    .navbar-toggle {
      position: relative;
      float: none;
      left: 0;
      padding: 4px 0 0 14px;
      padding-top: 4px;
      padding-bottom: 0;
      padding-right: 0;
      i {
        color: #fff;
        font-size: 24px;
      }
    }
  }
}

.admin-layout-container .cd-fixed-top {
  .navbar-collapse--mobile {
    @media (max-width: @screen-xs-max) {
      left: 0 !important;
      width: 100%;
      background-color: #333;
      padding: 8px;
      ul {
        padding-left: 0;
        height: auto;
        li {
          padding: 4px 8px;
          float: none !important;
          & + li {
            margin-left: 0 !important;
          }
          &.active {
            a {
              color: #fff !important;
            }
          }
          &.application-icon {
            a {
              background-color: transparent !important;
              margin-bottom: 0 !important;
            }
          }
          a {
            margin: 0 !important;
            padding: 0 !important;
            color: #999 !important;
            background-color: #fff !important;
            border-radius: 0 !important;
            background-color: transparent !important;
            img {
              display: none !important;
            }
          }
        }
      }
    }
  }
}

.image-upload-mask {
  .image-delete-tip {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 0 20px;
    z-index: 200;
    cursor: pointer;
  }
}
.cd-image-upload {
  .upload-auto-width {
    min-width: 150px;
    max-width: 400px;
    border: 1px solid #ccc;
  }
  img[src=""],img:not([src]){
    opacity:0;
    border: 1px solid #ccc;
  }
}



