.app-wrapper {
  @include clearfix;
  position: relative;
  height: 100%;
  width: 100%;

  .app-main {
    box-sizing: border-box;
    //margin: 16px;
    //border-radius: 4px;
    overflow: hidden;
    height: calc(100vh - 64px);

    &-content {
      background-color: #ffffff;
      .page {
        width: 100%;
        height: 100%;
      }
    }
  }

  .nav-bar-wrap {
    height: 64px;
    width: 100%;
    line-height: 64px;
    //background-size: cover;
    //-webkit-background-size: cover;
    //-o-background-size: cover;
    //background: linear-gradient(to right, #1c338b, #0756f2) no-repeat center 0;
    border-radius: 0;

    .navbar {
      height: 64px;
      width: 100%;
      line-height: 64px;
      //background-size: cover;
      //-webkit-background-size: cover;
      //-o-background-size: cover;
      //background: linear-gradient(to right, #1c338b, #0756f2) no-repeat center 0;
      border-radius: 0 !important;
      box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.08);
      z-index: 999;

      .el-dropdown-link {
        color: #fff;
      }

      .title-div {
        height: 100%;
        // width: 360px;
        float: left;
        padding-left: 0;
        display: flex;
        align-items: center;
        margin-left: 24px;

        img {
          //display: inline-block;
          //width: 32px;
          //height: 22px;
        }

        .title-size {
          float: left;
          width: 64px;
          height: 64px;

          .title-img {
            margin-top: 10px;
            height: 45px;
            width: 45px;
            transition: all 0.2s linear;
          }
        }

        .title-text {
          color: #213241;
          float: left;
          font-size: 22px;
          padding-left: 12px;
          font-weight: bold;
          letter-spacing: 1px;
        }
      }

      .menudiv {
        width: 100%;
        float: left;
        height: 100%;
        min-width: 450px;

        .el-menu-item {
          padding-left: 12px;
          padding-right: 12px;
        }

        .el-menu-demo {
          .el-submenu {
            .shangsj {
              padding-top: 0px;
              width: 0px !important;
              height: 0px !important;
              margin-left: 34px;
              border-right: 10px solid transparent;
              border-left: 10px solid transparent;
              border-bottom: 10px solid #ffffff;
            }

            .el-menu {
              width: 180px;
              left: 0px;
              font-size: 16px;

              .el-menu-item {
                font-size: 16px;
                height: 36px;
                line-height: 36px;
                border-top: 0px solid transparent;
              }

              .el-submenu {
                font-size: 16px;

                .shangsj {
                  padding-top: 0px;
                  width: 0px !important;
                  height: 0px !important;
                  margin-left: 50px;
                  border-right: 0px solid transparent;
                  border-left: 0px solid transparent;
                  border-bottom: 0px solid #ffffff;
                }
              }

              .el-submenu__title {
                height: 36px;
                font-size: 16px;

                .el-icon-arrow-down {
                  position: absolute;
                  display: none;
                }

                .el-icon-arrow-right {
                  position: absolute;
                  margin-top: -5px;
                }
              }

              & > div {
                .el-menu-item {
                  font-size: 16px;
                  height: 36px;
                  line-height: 36px;
                  border-top: 0px solid transparent;
                }

                .el-submenu {
                  .el-menu {
                    font-size: 16px;
                    left: 186px;
                    top: 0px;
                  }

                  width: 180px;
                  height: 36px !important;

                  .el-submenu__title {
                    font-size: 16px;
                    line-height: 36px;
                    width: 188px;
                    border-top: 0px solid transparent;
                  }
                }
              }
            }
          }
        }

        .el-submenu__title {
          padding-left: 12px;
          padding-right: 12px;
        }

        .el-menu-item.is-active {
          color: #409eff;
          //border-top: 2px solid #409eff;
          border-bottom: 2px solid #409eff;
        }

        .el-menu--horizontal .el-submenu .el-submenu__title {
          border-bottom: 0px solid transparent;
        }

        .el-menu--horizontal .el-submenu .el-submenu__icon-arrow {
          display: none;
        }
      }

      .nav-system {
        width: 100%;
        float: left;
        height: 64px;

        .nav-system-menu {
          text-align: center;
          height: 64px;
          background: rgba(0, 0, 0, 0);

          .menu-class {
            font-size: 16px;
            padding-left: 16px;
            padding-right: 16px;
            height: 64px;
          }

          .el-menu-item.is-active {
            color: #409eff;
            //border-top: 2px solid #409eff;
            border-bottom: 2px solid #409eff;
          }

          .el-menu-item:hover {
            background: #409eff;
          }
        }

        .el-menu--horizontal .el-menu-item {
          border-bottom: 0px solid #409eff !important;
        }
      }

      .nav-tag-div {
        width: 100%;
        float: left;
        padding-left: 24px;
        height: 64px;

        .nav-tags-container {
          .nav-tag-left-button {
            background-color: #1e2a44;
            color: #ffffff;
            height: 64px;
            width: 35px;
            border-left: 1px solid #404a5f;
            border-right: 1px solid #404a5f;
            border-top-width: 0px;
            border-bottom-width: 0px;
            left: 1110px;
            position: absolute;
            padding-left: 8px;
            font-size: 20px;
            z-index: 101;
          }

          .nav-tag-right-button {
            background-color: #1e2a44;
            color: #ffffff;
            height: 64px;
            width: 35px;
            border-left: 1px solid #404a5f;
            border-right: 1px solid #404a5f;
            border-top-width: 0px;
            border-bottom-width: 0px;
            top: 0px;
            left: 1744px;
            position: absolute;
            padding-left: 8px;
            font-size: 20px;
            z-index: 101;
          }

          .nav-tags-wrapper {
            background: #1e2a44;
            height: 64px;
            width: 100%;
            color: #cbced3;
            z-index: 100;
            box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);

            .scroll-wrapper {
              right: 24px !important;
            }

            .nav-open-tags {
              width: 32px;
              height: 64px;
              border-right: 1px solid #404a5f;
              border-left: 0px;
              border-top: 0px;
              border-bottom: 0px;
              padding-right: 2px;
              text-align: center;
              height: 64px;
              background-color: #1e2a44;
              color: #ffffff;
              padding: 0px;
            }

            .nav-tags-item {
              display: inline-block;
              position: relative;
              height: 64px;
              border-right: 1px solid #404a5f;
              line-height: 64px;
              color: #cbced3;
              background: #1e2a44;
              padding-left: 12px;
              padding-right: 6px;
              font-size: 14px;

              .el-icon-close {
                width: 18px;
                height: 18px;
                font-size: 18px;
                vertical-align: -2px;
                border-radius: 50%;
                text-align: center;
                transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
                transform-origin: 100% 50%;

                &:before {
                  transform: scale(0.6);
                  display: inline-block;
                  vertical-align: -0px;
                }

                &:hover {
                  background-color: #b4bccc;
                  color: #fff;
                }
              }

              &:first-of-type {
                border-left: 1px solid #404a5f;
              }

              &.onactive {
                color: #409eff;
                background: rgba(57, 70, 93, 0.5);
              }
            }
          }

          .contex-tmenu {
            margin: 0;
            background: #fff;
            z-index: 100;
            position: absolute;
            padding: 5px 0;
            line-height: 20px;
            list-style-type: none;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 400;
            color: #333;
            box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);

            li {
              margin: 0;
              padding: 7px 8px;
              cursor: pointer;

              &:hover {
                background: #eee;
              }
            }
          }
        }
      }

      .avatar-container {
        height: 64px;
        display: inline-block;
        position: absolute;
        right: 35px;
        color: #ffffff;

        .avatar-wrapper {
          cursor: pointer;
          margin-top: 5px;
          position: relative;

          .user-avatar {
            color: #ffffff;
            width: 64px;
            height: 64px;
            border-radius: 10px;
          }

          .el-icon-caret-bottom {
            position: absolute;
            right: -20px;
            top: 25px;
            font-size: 12px;
          }

          .img-Style {
            margin: 0px 25px 15px 0px;
          }
        }
      }

      .nav-bar-righr {
        display: inline-block;
        position: absolute;
        right: 0px;
        top: 0px;

        .nav-button-context {
          border-right: 0px solid #404a5f;
          border-left: 0px;
          border-top: 0px;
          border-bottom: 0px;
          padding-right: 16px;
          height: 64px;
          line-height: 64px;
          text-align: center;
          background-color: #0551e9;
          color: #ffffff;
          padding: 0px;
        }

        .nav-context-menu {
          margin: 8px;
          background: #244288;
          z-index: 100;
          padding-left: 0px;
          line-height: 30px;
          list-style-type: none;
          border-radius: 4px;
          font-size: 12px;
          font-weight: 400;
          color: #ffffff;
          box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
          top: 100%;

          li {
            margin: 0;
            padding: 7px 8px;
            cursor: pointer;

            &:hover {
              background: rgb(17, 27, 48);
              color: #409eff;
            }
          }

          span {
            position: absolute;
            right: 40%;
            top: -16px;
            width: 0;
            height: 0;
            line-height: 0;
            font-size: 0;
            border: 8px solid transparent;
          }
        }

        .nav-user-class {
          display: inline-block;
          text-align: center;
          height: 64px;
          width: 104px;
          color: #ffffff;

          &:last-of-type {
            width: 80px;
          }
        }
      }
    }

    .el-menu--horizontal {
      border-right: none;
      border-bottom: solid 0px #e6e6e6;
      height: 100%;
      line-height: 0;

      .el-menu {
        .el-menu-item {
          float: left !important;
        }
      }
    }
  }
}

$leftOffset: calc(-50% + 51px); // 告警弹框向右偏移量（警情上报按钮宽度）

.custom-message {
  background: transparent;
  border: none;
  transform: translate($leftOffset, 0);
  .el-icon-info {
    display: none;
  }
  .warning-message {
    display: flex;
    align-items: center;
    //width: 738px;
    height: 48px;
    background: #ffffff;
    box-shadow: 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px 0 rgba(0, 0, 0, 0.12);
    border-radius: 4px 4px 4px 4px;
    opacity: 1;
    border: 1px solid #ffa39e;
    padding: 12px 24px;
    .icon-warning {
      width: 24px;
      height: 24px;
      background: url(~@/assets/images/mapSearch/报警.png) no-repeat;
      background-size: 100% 100%;
      margin-right: 16px;
    }
    .message {
      width: 510px;
      height: 36px;
      line-height: 36px;
      font-size: 14px;
      color: #333333;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .btn-handle {
      margin-left: auto;
      height: 36px;
      line-height: 36px;
      font-size: 14px;
      font-weight: 400;
      color: #0e71ff;
      cursor: pointer;
    }
  }
}

.platform-selection-popper {
  .el-select-dropdown__item {
    display: flex;
    align-items: center;
    padding: 0 12px;
    .option-prefix {
      display: block;
      width: 20px;
      height: 20px;
      background: url("~@/assets/images/layout/prefix-icon.png") no-repeat;
      background-size: 100% 100%;
      margin-right: 8px;
    }
    &.selected{
      .option-prefix {
        display: block;
        width: 20px;
        height: 20px;
        background: url("~@/assets/images/layout/prefix-icon-active.png") no-repeat;
        background-size: 100% 100%;
        margin-right: 8px;
      }
    }
  }
}


