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

.table-cell {
  display: -webkit-box;
  //width: 100%;
  overflow: hidden;
  font-size: 12px !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
html,
body,
#root {
  height: 100%;
  overflow: hidden !important;
}

.colorWeak {
  filter: invert(80%);
}
.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;
  }
}

.react-resizable {
  position: relative;
}

.react-resizable-handle {
  position: absolute;
  right: -5px;
  bottom: 0;
  z-index: 999;
  width: 10px;
  height: 100%;
  background: transparent;
  cursor: col-resize;
}

//reset start

.diycard {
  .ant-card-body {
    padding: 12px !important;
  }
  .ant-card-head {
    padding: 0 20px !important;
  }
}
.ant-drawer-content {
  overflow-x: hidden !important;
}

.ant-pro-table {
  .ant-card-body {
    padding: 0 !important;
  }
}
.ant-pro-table-list-toolbar-container {
  padding: 0px !important;
  padding-bottom: 8px !important;
}

.ant-pro-table-list-toolbar-right {
  flex: 1 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 0 10px 0 !important;
}
.ant-pro-form-login-container {
  height: auto !important;
  margin-top: -10vh;
  padding: 0 !important;
  background: transparent !important;
}
.ant-pro-form-login-main {
  margin-top: 30px !important;
}

pre {
  color: rgba(0, 0, 0, 0.85) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
  white-space: pre-wrap !important;
}
.gongyiStep {
  height: 100%;
  .ant-steps-item-title {
    width: 100% !important;
  }
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.specialpropertiesCard {
  .ant-card-body {
    padding: 5px !important;
  }
}
.oneText {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ant-picker-cell-inner {
  display: flex !important;
  justify-content: center;
  .ant-picker-calendar-date-content {
    flex: 1 !important;
  }
}

.logon {
  .ant-tabs-nav {
    padding: 0 16px;
  }
  .ant-tabs-content-holder {
    max-height: 520px;
    padding: 0 16px;
    overflow-y: auto;
  }
}
.ant-input[disabled],
.ant-picker-input > input[disabled],
.ant-select-disabled.ant-select:not(.ant-select-customize-input)
  .ant-select-selector,
.ant-select-disabled.ant-select-multiple .ant-select-selection-item {
  color: rgba(0, 0, 0, 0.85) !important;
}

.scheduling {
  .ant-checkbox-wrapper {
    span:last-child {
      overflow: hidden;
    }
  }
}
.row-dragging {
  z-index: 999999999999;
  background: #fafafa;
  border: 1px solid #ccc;
}

.row-dragging td {
  padding: 16px;
}

.row-dragging .drag-visible {
  visibility: visible;
}
//reset end

.img {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  img {
    width: 30%;
    margin: 30px 0 0 30px;
  }
}
.ant-pro-form-login-desc {
  margin-bottom: 0 !important;
}
.ant-layout-footer {
  background-color: transparent !important;
  .ant-pro-global-footer {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.logincontent {
  .ant-tabs-nav-wrap {
    display: inline-block !important;
  }
  .ant-tabs-tab-active {
    font-size: 16px !important;
  }
  .ant-layout-footer {
    background-color: #23394a !important;
    .ant-pro-global-footer {
      margin: 0 0 20px 0 !important;
      padding: 0 !important;
      * {
        color: rgba(255, 255, 255, 0.6) !important;
      }
      .ant-pro-global-footer-copyright {
        color: rgba(255, 255, 255, 0.3) !important;
      }
    }
  }
  .ant-input-affix-wrapper {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    input {
      color: #fff !important;
      background-color: rgba(255, 255, 255, 0) !important;
    }
  }
  .ant-select-selector {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    input {
      color: #fff !important;
      background-color: rgba(255, 255, 255, 0) !important;
    }
  }
  .ant-input {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
  }
  .ant-select-selection-item {
    color: #fff !important;
  }
  .anticon-close-circle {
    color: #fff !important;
  }
  .anticon {
    color: #fff !important;
  }
  .ant-select-clear {
    background-color: transparent !important;
  }
  .ant-select-selection-item-content,
  .ant-select-selection-item-remove {
    color: #000 !important;
    .anticon {
      color: #000 !important;
    }
  }
  .ant-select-selection-overflow {
    display: flex !important;
    flex-wrap: nowrap !important;
  }
}

.reg {
  b {
    color: #fff !important;
    font-weight: normal !important;
  }
}
.ant-layout-header {
  transition: all 200ms !important;
  transition-timing-function: ease-out !important;
}
.ant-pro-global-header {
  padding-left: 6px !important;
}
table {
  min-width: calc(100% - 6px) !important;
}
.ant-drawer-open {
  transform: none !important;
}
.ant-pro-table-list-toolbar {
  overflow: hidden !important;
}
.ant-select-selector {
  overflow: hidden !important;
}
.ant-breadcrumb {
  span {
    > span {
      max-width: 600px !important;
    }
  }
}
.ant-tree .ant-tree-treenode {
  width: 100%;
  > span:last-child {
    flex: 1;
  }
}
.ant-input-number-affix-wrapper,
.ant-input-number {
  width: 100% !important;
}

@media all {
  .page-break {
    display: none;
  }
}

@media print {
  html,
  body {
    height: initial !important;
    overflow: initial !important;
    -webkit-print-color-adjust: exact;
  }
}

@media print {
  .page-break {
    display: block;
    margin-top: 2rem;
    page-break-after: always;
  }
}
.ant-pro-card-body {
  padding: 12px !important;
}
.ant-pagination.ant-pagination-mini .ant-pagination-options-size-changer {
  max-width: 100px !important;
}
.ant-pagination-options {
  display: flex !important;
  min-width: 210px !important;
}
