@import "~ant-design-vue/es/style/themes/default.less";
@import "../src/assets/css/reset.less";

html,
body,
#app,
#root {
  height: 100%;
}
.ant-pro-global-footer {
  margin: 10px;
}
.colorWeak {
  filter: invert(80%);
}

.input-md {
  input {
    font-size: 20px;
    // color: red;
    font-weight: bold;
  }
  label {
    font-size: 20px;
    font-weight: bold;
  }
  span {
    font-size: 20px;
    font-weight: bold;
  }
  .ant-select-selection-selected-value {
    font-size: 20px;
    font-weight: bold;
  }
}
.input-lg {
  input {
    font-size: 30px;
    // color: red;
    font-weight: bold;
  }
  label {
    font-size: 30px;
    font-weight: bold;
  }
  span {
    font-size: 30px;
    font-weight: bold;
  }
}

.input-lgnew {
  input {
    font-size: 36px;
    // color: red;
    font-weight: bold;
  }
  label {
    font-size: 36px;
    font-weight: bold;
  }
  span {
    font-size: 36px;
    font-weight: bold;
  }
}

.input-lg-red {
  input {
    font-size: 30px;
    color: red !important;
    font-weight: bold;
  }
  label {
    color: red;
    font-size: 30px;
    font-weight: bold;
  }
}

.input-md-red {
  input {
    font-size: 20px;
    // color: red !important;
    font-weight: bold;
  }
  label {
    color: red;
    font-size: 20px;
    font-weight: bold;
  }
}

.input-red {
  input {
    // font-size: 30px;
    color: red !important;
    font-weight: bold;
  }
  label {
    color: red;
    // font-size: 44px;
    font-weight: bold;
  }
}
.input-lg-red {
  input {
    font-size: 30px;
    color: red !important;
    font-weight: bold;
  }
  label {
    color: red;
    font-size: 44px;
    font-weight: bold;
  }
}
.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

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

// 样式覆盖
.ant-pro-sider-menu-logo {
  background-color: #002140;
}

.ant-layout-footer {
  padding: 0;
}

/* 多页签样式覆盖 --start */
.ant-pro-multi-tab {
  .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
    height: 39px;
    background: #fff;
    //border: none;
    border-radius: 0;
    border-left: 1px solid #e8e8e8;
    margin-right: 0;
  }

  .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
    height: 40px;
    color: #666 !important;
    background: #f0f2f5;
    border-color: #f0f2f5;
  }
  .ant-tabs-bar {
    padding-top: 0px !important ;
  }
}

/* 多页签样式覆盖 --end */

.ant-pro-basicLayout-content {
  margin: 0 !important;
}

.ant-menu-root {
  /* 滑块背景色 */
  &::-webkit-scrollbar-thumb {
    background-color: transparent;
  }
}
.ant-table-body {
  /* 滑块背景色 */
  &::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 0px;
  }
  &::-webkit-scrollbar {
    height: 8px;
  }
}
/* 滚动条和滑块 */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
  border-radius: 4px;
  background-color: transparent;
}

/* 外层轨道,可以用 display:none 让其不显示 */
::-webkit-scrollbar-track {
  background: transparent;
}

/* 内层轨道 */
::-webkit-scrollbar-track-piece {
}

/* 边角 */
::-webkit-scrollbar-corner {
}

/* 滚动条按钮 */
::-webkit-scrollbar-button {
  width: 0;
  height: 0;
}

/* 滑块背景色 */
::-webkit-scrollbar-thumb {
  background-color: @primary-color;
  opacity: 0.5;
  border-radius: 4px;
}

/* 表单底部间隔和表格头部 */
.card-custom-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plg-inner-form-mb {
  margin-bottom: 18px;
}

.iconfont {
  font-size: 14px;
}
.ant-dropdown-menu-item .iconfont {
  margin-right: 5px;
}
.ant-pro-top-nav-header-menu .ant-menu.ant-menu-horizontal {
  font-size: 14px;
}

.ant-menu-item .iconfont,
.ant-menu-submenu-title .iconfont,
.ant-menu-item .anticon,
.ant-menu-submenu-title .anticon {
  min-width: 14px;
  margin-right: 10px;
  font-size: 14px;
  -webkit-transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .iconfont + span,
.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .iconfont + span,
.ant-menu-inline-collapsed > .ant-menu-item .iconfont + span,
.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .iconfont + span {
  display: inline-block;
  max-width: 0;
  opacity: 0;
}

.ant-pro-global-header.plg-headerstyle-black {
  background: #272752 !important;
  color: #fff;
  .ant-breadcrumb-link {
    a {
      color: #fff;
    }
    color: #fff;
  }
  .ant-breadcrumb-separator {
    color: #fff;
  }

  .ant-dropdown-trigger > i {
    color: #fff;
  }
}

.ant-pro-sider-menu-logo.plg-headerstyle-black {
  box-shadow: none !important;
  background: #272752 !important;
  color: #fff;
  h1 {
    color: #ccc !important;
  }
}

.ant-pro-global-header.plg-headerstyle-blue {
  background: #1337d5 !important;
  color: #fff;
  .ant-breadcrumb-link {
    a {
      color: #fff;
    }
    color: #fff;
  }
  .ant-breadcrumb-separator {
    color: #fff;
  }

  .ant-dropdown-trigger > i {
    color: #fff;
  }
}

.ant-pro-sider-menu-logo.plg-headerstyle-blue {
  box-shadow: none !important;
  background: #1337d5 !important;
  color: #fff;
  h1 {
    color: #ccc !important;
  }
}

.ant-pro-global-header.plg-headerstyle-green {
  background: #389e0d !important;
  color: #fff;
  .ant-breadcrumb-link {
    a {
      color: #fff;
    }
    color: #fff;
  }
  .ant-breadcrumb-separator {
    color: #fff;
  }

  .ant-dropdown-trigger > i {
    color: #fff;
  }
}

.ant-pro-sider-menu-sider.light .ant-pro-sider-menu-logo {
  box-shadow: none;
  -webkit-box-shadow: none;
}
.ant-pro-sider-menu-logo.plg-headerstyle-green {
  box-shadow: none !important;
  background: #389e0d !important;
  color: #fff;
  h1 {
    color: #ccc !important;
  }
}

.ant-pro-sider-menu-logo svg {
  width: 36px;
  height: auto;
}
.ant-pro-sider-menu-logo h1 svg {
  width: 68px;
  height: auto;
}
.ant-pro-sider-menu-logo h1 {
  margin: 0 0 0 8px;
}

// dark主题时菜单栏颜色
.ant-menu-dark .ant-menu-inline.ant-menu-sub {
  background: #001529 !important;
}

.notDisabled,
.plg-grid-from-iteration-disabled .p-gird-form-item-disabled .ant-input-disabled,
.plg-grid-from-iteration-disabled .p-gird-form-item-disabled .ant-select-selection,
.plg-grid-from-iteration-disabled .p-gird-form-item-disabled .ant-select-selection--multiple .ant-select-selection__choice,
.plg-grid-from-iteration-disabled .p-gird-form-item-disabled div[class$="-disabled"],
.plg-grid-from-iteration-disabled .p-gird-form-item-disabled input[disabled="disabled"],
.plg-grid-from-iteration-disabled .p-gird-form-item-disabled span[class$="-disabled"] {
  background-color: #f5f5f5c7 !important;
  border-color: #f5f5f5c7;
  color: @text-color;
}
.ml-10 {
  margin-left: 10px;
}

.overflow-card-body {
  min-height: calc(100vh - 112px);
  max-height: calc(100vh - 112px);
  overflow: hidden;
  .card-item {
    height: calc(100vh - 128px);
  }
}
.databaseWrap {
  .ant-card-body {
    min-height: calc(100vh - 200px) !important;
    max-height: calc(100vh - 200px) !important;
    overflow: hidden;
    .overflow-card-info {
      min-height: calc(100vh - 370px) !important;
      max-height: calc(100vh - 370px) !important;
      overflow: scroll;
    }
  }
  .ant-select-selection--single,
  .ant-select-selection__rendered {
    line-height: 36px;
    height: 36px;
  }
  .ant-radio-button-wrapper-checked {
    background: #f0f8ff !important;
    font-weight: 600 !important;
  }
}
.overflow-datasource {
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
  overflow: hidden;
}
.overflow-card-info {
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
  overflow: scroll;

  .ant-menu-inline {
    border-right-color: transparent;
    .ant-menu-submenu-arrow {
      display: none;
    }
  }
}
.stg-panel {
  .ant-card-body {
    min-height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
    overflow: hidden;
  }
  .markdown-body {
    box-shadow: none !important;
  }
}

.stg-overflow {
  .ant-card-body {
    min-height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
    overflow: scroll !important;
  }
  .markdown-body {
    box-shadow: none !important;
  }
}
