@import '~antd/es/style/variable.less';

@backGroundMainPrimary: #009b95;
@backGroundMainDefault: #f8f9fb;
@colorMainPrimary: #009b95;
@colorMainDefault: #999999;
@colorMainSubDefault: #666666;

.ant-btn-primary {
  color: #fff;
  background-color: #009b95;
  border-color: #009b95;
  border-radius: 2px;
}

:global {
  .ant-input:focus,
  .ant-input:hover,
  .ant-input-focused {
    border-color: #009b95;
  }
  .ant-input:focus,
  .ant-input-focused {
    box-shadow: 0 0 0 2px #009b95;
  }
}

html {
  overflow-x: hidden;
}

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

body {
  margin: 0;
  padding: 0;
}

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

.ant-layout {
  min-height: 100vh;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

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

ul,
ol {
  list-style: none;
}

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

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

::-webkit-scrollbar {
  width: 2px !important;
  background-color: #009b95 !important;
  border-radius: 4px;
}

.ant-pro-sider-logo {
  a h1 {
    font-size: 12px !important;
  }
}

.ant-btn:active,
.ant-btn:focus {
  background-color: #68beb9 !important;
  border-color: #68beb9 !important;
}

.ant-btn:hover {
  color: #fff;
  background-color: #68beb9 !important;
  border-color: #68beb9 !important;
}

.ant-btn:hover,
.ant-btn:focus {
  color: #fff;
  background-color: #68beb9 !important;
  border-color: #68beb9 !important;
}
