@import "../../../../src/theme.less";

:host {
  width: 100%;
  height: 100%;
  display: flex;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-layout {
  height: 100%;
}

nz-sider {
  overflow-y: auto;
}

// 下拉列表
.dropdown{
  position: relative;
  height: 48px;
  line-height: 48px;
  .dropdown-content {
    position: absolute;
    top: 48px;
    background-color: #fff;
    width: 156px;
    box-shadow: 0px 2px 4px 1px #D9D9D9;
    z-index: 999999;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.15);
    color: rgba(0,0,0,0.65);
    &.ct{
      left: 50%;
      transform: translateX(-50%);
    }
    &.r8{
      right: 8px;
    }
  }

  .dropdown-content .dropdownItem {
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 24px;
  }

  .dropdown-content .dropdownItem:hover {
    background-color: #e9f7e9;
  }
}

.menu-sidebar {
  width: 175px;
  flex: 0 0 175px;
  position: relative;
  z-index: 8;
  min-height: 100vh;
  box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
  background: #0f2e3b;

  li.ng-star-inserted.ant-menu-submenu.ant-menu-submenu-inline {
    border-bottom: 1px solid #0f2e3b;

    &.ant-menu-submenu-selected,
    &.selected {
      background: @primary-color;
    }
  }

  li.ng-star-inserted.ant-menu-item {
    margin: 0;
    border-bottom: 1px solid #0f2e3b;

    &:nth-last-child(1) {
      border-bottom: 0;
    }
  }

  li.ng-star-inserted.ant-menu-item.ant-menu-item-selected,
  li.ng-star-inserted.ant-menu-item.selected,
  li.ant-menu-item.selected {
    border-left: 4px solid @primary-color;
    border-bottom: 0;
    margin: 0;
  }
}

// 重写菜单
#ds-menu {
  user-select: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  .mainMenuOne,
  .mainMenu {
    cursor: pointer;
    color: #fff;
    overflow: hidden;
    font-size: 14px;
    line-height: 44px;
    text-overflow: ellipsis;
    background: #284450;
    &:focus {
      outline: none;
    }
  }
  .mainMenuOne {
    min-height: 44px;
    position: relative;
    border-bottom: 1px solid #0f2e3b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);

    & > i {
      margin-left: 16px;
      margin-right: 10px;
      font-size: 14px;
    }
    .transport-xialajiantou {
      color: #999;
      position: absolute;
      top: 0;
      right: 16px;
      transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    &.mainMenuSelected {
      background: @primary-color;
      .transport-xialajiantou {
        color: #fff !important;
      }
    }
    &:hover {
      .transport-xialajiantou {
        color: #fff !important;
      }
    }
  }
  .mainMenu {
    height: 44px;
    &.menuTwoSelected {
      border-left: 4px solid @primary-color;
      background-color: #0f2e3b;
    }
  }
  ul {
    margin: 0;
    padding: 0;
    li {
      white-space: nowrap;
      overflow: hidden;//文本超出隐藏
      text-overflow: ellipsis;//文本超出省略号替代
      padding-left: 40px;
      padding-right: 40px;
      transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
      box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45) inset;
    }
  }
}
// 重写菜单

.sidebar-logo {
  position: relative;
  height: 48px;
  overflow: hidden;
  line-height: 48px;
  background: #fff;
  transition: all 0.3s;

  .logoTitle{
    padding: 0 8px;
    line-height: normal;
    height:100%;
  }

  .title {
    color: @primary-color;
    font-size: 16px;
  }
}

.sidebar-logo img {
  display: inline-block;
  max-width: 100%;
  max-height: 50%;
  vertical-align: middle;
}

nz-header.ant-layout-header {
  padding: 0;
  width: 100%;
  z-index: 99;
  background: #fff;
  height: 48px;

  .app-header {
    position: relative;
    height: 48px;
    padding: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    padding-left: 24px;
    border-bottom: 1px solid rgba(0, 21, 41, 0.08);

    .left {
      height: 100%;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      .icon_transport{
        margin-right: 24px;
        cursor: pointer;
        font-size: 20px;
        height: 48px;
        line-height: 48px;
        display: inline-block;
      }
      .menuLabel {
        color: #333;
        font-size: 22px;
        font-weight: 400;
        margin-right: 80px;
        vertical-align: bottom;
        display: inline-block;
        width: 175px;
        text-align: left;
      }

      button {
        margin-right: 8px;
        margin-top: 4px;
        margin-bottom: 4px;
      }
    }

    .right {
      height: 100%;
      flex-shrink: 0;
      display: flex;
      align-items: center;

      .msg {
        float: left;
        width: 50px;
        height: 100%;
        border-left: 1px solid #e5e9ed;

        .msgBtn {
          width: 100%;
          height: 100%;

          i {
            font-size: 30px;
          }
        }
      }

      .userInfo {
        height: 100%;
        float: right;
        padding: 0 24px;
        box-sizing: border-box;
        font-size: 14px;
        border-left: 1px solid #e5e9ed;

        .wel {
          line-height: 15px;
          white-space: nowrap;
          overflow: hidden;//文本超出隐藏
          text-overflow: ellipsis;//文本超出省略号替代
        }

        .user {
          overflow: hidden;
          height: 48px;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 16px;
          cursor: pointer;

          img {
            width: 32px;
            height: 32px;
            margin-right: 8px;
          }

          span, .transport-xiala1 {
            height: 48px;
            line-height: 48px;
          }
        }

        .logOut {
          text-align: right;
          color: @primary-color;
          line-height: 20px;

          span {
            cursor: pointer;
            padding: 10px;
          }
        }
      }
    }
  }
}

.inner-content {
  background: #fff;
  height: 100%;
}

.msgTemBox {
  .borderLeft {
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background-image: linear-gradient(90deg, @bg-start 0%, @bg-end 100%);
  }
  .icon {
    color: @primary-color;
    font-size: 26px;
  }
  .ant-notification-notice-message {
    margin-left: 34px;
    font-weight: 500;
  }
  .ant-notification-notice-description {
    margin-left: 34px;
    color: #333;
  }
}
.save {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;

  .modalBody {
    width: 350px;
    background: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    color: #333;

    .title {
      width: 100%;
      text-align: center;
      font-size: 18px;
      position: relative;

      i {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 0 5px;
      }
    }

    .content {
      width: 100%;
      height: 117px;
      background: #f9fafb;
      border: 1px solid #e5e9ed;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 12px;

      div {
        text-align: center;
        margin: 0;

        &.icon {
          margin-top: 17px;

          i {
            color: #34b349;
            font-size: 30px !important;

            &.transport-wenhao {
              color: #f5a523;
            }

            &.transport-shibai {
              color: #ff3a52;
            }
          }
        }

        &.defeat {
          color: #333;
          font-size: 16px;
        }

        &:nth-child(3) {
          font-size: 14px;
          color: #666;
        }
      }
    }

    button {
      margin-top: 10px;

      &.btn {
        margin-left: 8px;
      }
    }
  }
}
