@import "~antd/lib/style/themes/default.less";

.header {
  padding: 0 12px 0 0;
  background: #0F71FF ;
  box-shadow: 0 2px 11px rgba(15,113,255,0.5) ;
  position: relative;
  height: 72px;
}

.logo {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  height: 72px;
  width: 254px;
  line-height: 72px;
  padding-left: 16px;
  transition: all .3s;
  background: rgb(174, 193, 219)002140;
  border-right: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  img {
    display: inline-block;
    vertical-align: middle;
    height: 32px;
  }
  i{
    vertical-align: middle;
  }
  h1 {
    color: #fff;
    display: inline-block;
    font-size: 14px;
    margin: 0 0 0 12px;
    vertical-align: middle;
    font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-weight: 600;
    width: 170px;
    overflow:hidden; 
    a{
      width: 150px;
      text-decoration: none;
      color: #fff;
      float: left;
      white-space:nowrap; 
      overflow:hidden; 
      text-overflow:ellipsis; 
    }
    i{
      float: right;
      position: relative;
      top: 28px;
      right: 14px;
    }
  }
}

i.trigger {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  cursor: pointer;
  transition: all .3s;
  padding: 0 24px;
  &:hover {
    background: @primary-1;
  }
}

@media screen and (max-width: @screen-xs) {
  .trigger {
    display: none;
  }
}

.right {
  float: right;
  height: 100%;
  color: #fff;
  .ant-layout-header{height: 72px; line-height: 72px;}
  .action {
    cursor: pointer;
    padding: 0 12px;
    display: inline-block;
    transition: all .3s;
    height: 100%;
    > i {
      font-size: 16px;
      vertical-align: middle;
    }
    &:global(.ant-popover-open),
    &:hover {
      background: rgb(32, 120, 243) 100%;
    }
  }
  .search {
    padding: 0;
    margin: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: 20px 8px 20px 0;
      color: @primary-color;
      background: rgba(255, 255, 255, .85);
      vertical-align: middle;
    }
  }
}

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    width: 160px;
  }
}

:global {
  .ant-layout {
    overflow-x: hidden;
  }
}

.sider {
  background: #fff;
  min-height: calc(100vh - 72px);
  min-height: 100vh;
  box-shadow: 0px 3px 17px rgba(15,113,255,0.1);
  position: relative;
  z-index: 10;
 
}

:global{
  .layout-content{
    height: 100%;
    margin: 16px;
  }
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{
    background: #0F71FF;
    box-shadow: 0px 2px 6px rgba(49,79,254,0.3);
    
  }
  .ant-badge-count{
    box-shadow: 0px 2px 6px #F5222E;    
  }
  .ant-layout.ant-layout-has-sider > .ant-layout-content{
    // border-radius: 8px;
    overflow: hidden;
    background: #fff;
    // margin: 16px;
    display: flex;
  }
  .ant-layout.ant-layout-has-sider > .ant-layout-content >div{
    padding: 20px;
  }
  .ant-menu-sub.ant-menu-inline > .ant-menu-item{
    height: 42px;
    line-height: 42px;
  }
  .ant-menu-item-selected > a{
    color: #fff
  }
  .ant-menu-item-selected > a:hover{
    color: #fff;
  }
  .ant-menu-submenu > .ant-menu{
    background: #F5F9FF 100%;
  }
  .ant-menu-inline{
    border-right: 0;
  }
}

.topmenu{
  display: inline-block;
  height: 72px;
  line-height: 72px;
  margin-left: 254px;
  padding-left: 22px;
 
  :global{
    a{
      padding: 0 22px;
      display: inline-block;
      height: 72px;
      line-height: 72px;
      color: #9acfff;
      text-decoration: none;
    }
    a:hover{
      color: #fff;
    }
    .selected{
      font-size: 14px;
      color: #fff;
      border-bottom: 2px solid #fff;
    }
  }
}

:global{
  .ant-layout-content > div:nth-of-type(1) {
    flex-basis: auto;
  }
  .basic_notice{
    .ant-notification-notice-icon-info {
      color: #ff4d4f;
    }
  }
}
