@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;
}
body a {
  text-decoration: none;
  color: inherit;
  // color: #fff!important;
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
}

@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-prefix}-pro-basicLayout-content {
    margin: 0 !important;
    height: 100%;
  }
  .subapp-container div[data-qiankun='purehtml'] * {
    margin: inherit;
  }
  .subapp-container,
  .subapp-container div[data-name='purehtml'],
  .subapp-container .web4_console_component {
    height: 100%;
  }
  & /deep/ .@{ant-prefix}-pro-sider-menu {
    .@{ant-prefix}-pro-menu-item {
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    &:not(.@{ant-prefix}-menu-inline-collapsed) {
      .@{ant-prefix}-pro-menu-item {
        width: 80px;
      }
    }
    //      width: 80px;
    .@{ant-prefix}-menu-item-only-child {
      // a {
      //   display: flex;
      //   align-items: center;
      // }
      span.@{ant-prefix}-pro-menu-item {
        margin-left: 8px;
      }
    }
    .@{ant-prefix}-menu-submenu {
      div.@{ant-prefix}-menu-submenu-title {
        display: flex;
        align-items: center;
        img {
          margin-right: 8px;
        }
      }
      ul.@{ant-prefix}-menu-sub {
        li {
          img {
            width: 14px !important;
            height: 14px !important;
            // margin-right: 12px;
          }
          .@{ant-prefix}-pro-menu-item {
            padding-left: 0 !important;
          }
        }
      }
    }
    .@{ant-prefix}-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-prefix}-menu-submenu-popup {
    .@{ant-prefix}-menu-item {
      img {
        width: 14px !important;
        height: 14px !important;
        margin-right: 12px;
      }
      .@{ant-prefix}-pro-menu-item {
        padding-left: 0;
      }
    }
  }
  & /deep/ .@{ant-prefix}-menu-dark {
    .@{ant-prefix}-menu-submenu-selected {
      .@{ant-prefix}-menu-item-selected {
        // background: rgb(39, 49, 80);
        // border-left: 3px solid rgb(23, 160, 242);
      }
    }
  }
  & /deep/ .@{ant-prefix}-pro-sider {
    .@{ant-prefix}-layout-sider-children {
      ::-webkit-scrollbar-thumb {
        border-radius: 0;
      }
      ::-webkit-scrollbar {
        width: 0px;
        height: 0px;
      }
    }
  }
  & /deep/ .@{ant-prefix}-pro-sider-logo {
    justify-content: center;
  }
  & /deep/ .@{ant-prefix}-layout-sider-collapsed {
    .@{ant-prefix}-pro-sider-logo {
      transform: scale(0.7);
    }
    .@{ant-prefix}-menu-submenu-vertical {
      .@{ant-prefix}-menu-submenu-title {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        // margin-bottom: 8px;
      }
    }
    .@{ant-prefix}-menu-dark.@{ant-prefix}-menu-dark:not(.@{ant-prefix}-menu-horizontal) {
      .@{ant-prefix}-menu-item-selected {
        // border-left: 2px solid #1890ff;
        // background-color: #273150;
      }
    }
  }
  & /deep/ .@{ant-prefix}-pro-global-header-layout-side {
    > div {
      display: flex;
    }
  }
  & /deep/ .@{ant-prefix}-pro-basicLayout-side {
    .@{ant-prefix}-pro-sider-extra {
      padding: 0 14px !important;
    }
  }
  & /deep/ .@{ant-prefix}-pro-fixed-header {
    .@{ant-prefix}-pro-global-header-layout-side {
      padding: 0 0 0 16px;
    }
  }
}
body {
  & /deep/ .@{ant-prefix}-menu-submenu-popup {
    .@{ant-prefix}-menu-sub {
      li {
        a {
          display: flex;
          align-items: center;
          .@{ant-prefix}-pro-menu-item {
            margin-left: 8px;
          }
        }
      }
    }
  }

  & /deep/ .@{ant-prefix}-message-notice-content {
    .@{ant-prefix}-message-custom-content {
      display: flex;
      align-items: center;
    }
  }
}

.panda-pro-components-global-header-index-userWrapper {
  & /deep/ .@{ant-prefix}-popover-content > .@{ant-prefix}-popover-arrow {
    border-top-color: #40b3f7 !important;
    border-left-color: #40b3f7 !important;
  }
}

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

//global scrollbar

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

//left menu
