@import '~antd/es/style/themes/default.less';

html,
body,
#app {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul,
ol {
  list-style: none;
}
a {
  text-decoration: underline;
  // color: #fff!important;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

#app {
  & /deep/ .ant-pro-basicLayout-content {
    margin: 0!important;
  }
  .subapp-container div[data-qiankun='purehtml'] * {
     margin: none;
  }
  .subapp-container, .subapp-container div[data-name='purehtml'], .subapp-container .web4_console_component {
    height: 100%;
  }
  & /deep/ .ant-pro-sider-menu {
    .ant-pro-menu-item {
      font-size: 12px;
    }
    .ant-menu-item-only-child {
      a {
        display: flex;
        align-items: center;
      }
      span.ant-pro-menu-item {
        margin-left: 8px;
      }
    }
    .ant-menu-submenu {
      div.ant-menu-submenu-title {
        display: flex;
        align-items: center;
        img {
          margin-right: 8px;
        }
        
      }
      ul.ant-menu-sub {
        li {
          img {
            width: 14px!important;
            height: 14px!important;
            // margin-right: 12px;
          }
          .ant-pro-menu-item {
            padding-left: 0!important;
          }
        }
      }
    }
    .ant-layout-slider-dark {
      box-shadow: rgba(0,0,0,0.6) 0px 1px 4px 0px;
      transition: all 0.25s ease-in-out 0s;
    }
    
  }
  & /deep/ .ant-menu-submenu-popup {
    .ant-menu-item {
      img {
        width: 14px!important;
        height: 14px!important;
        margin-right: 12px;
      }
      .ant-pro-menu-item {
        padding-left: 0;
      }
    }
  }
  & /deep/ .ant-menu-dark  {
    .ant-menu-submenu-selected {
      .ant-menu-item-selected {
        // background: rgb(39, 49, 80);
        // border-left: 3px solid rgb(23, 160, 242);
      }
    }
  }
  & /deep/ .ant-pro-sider {
    .ant-layout-sider-children {
      ::-webkit-scrollbar-thumb {
        border-radius: 0;
      }
      ::-webkit-scrollbar {
        width: 0px;
        height: 0px;
      }
    }
  }
  & /deep/ .ant-pro-sider-logo {
    justify-content: center;
  }
  & /deep/ .ant-layout-sider-collapsed {
    .ant-pro-sider-logo {
      transform: scale(0.7);
    }
    .ant-menu-submenu-vertical {
      .ant-menu-submenu-title {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 8px;
      }
    }
    .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) {
      .ant-menu-item-selected {
        // border-left: 2px solid #1890ff;
        // background-color: #273150;
      }
    }
  }
  & /deep/ .ant-pro-global-header-layout-side {
    > div {
      display: flex;
    }
  }
}
body {
  & /deep/ .ant-menu-submenu-popup {
    .ant-menu-sub  {
      li {
        a {
          display: flex;
          align-items: center;
          .ant-pro-menu-item {
            margin-left: 8px;
          }
        }
      }
    }
  }
}
.panda-pro-components-global-header-index-userWrapper {
  & /deep/ .ant-popover-content > .ant-popover-arrow {
    border-top-color: #40b3f7!important;
    border-left-color: #40b3f7!important;
  }
}

.panda-pro-layouts-user-layout-stationsWrapper {
  & /deep/ .ant-popover-content > .ant-popover-arrow {
    top: 17px!important;
    left: 24px!important;
  }
}
.panda-pro-layouts-user-layout-city_pane {
  & /deep/ .ant-anchor-ink {
    display: none;
    .ant-anchor-link-title {
      color: #ccc;
    }
  }
}
.panda-pro-layouts-user-layout-cityLetter {
  /deep/ .ant-anchor-link-title {
      color: #ccc;
    }
}

//global scrollbar

::-webkit-scrollbar-thumb {
  border-radius: 0;
}
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

//left menu
