@import './normalize.less';
@import '~antd/dist/antd.less';
@import './mixins.less';
@import './variables.less';

//与center-home中的样式保持统一
body {
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
  'Ubuntu', 'Cantarell', 'Fira Sans', 'Microsoft YaHei', 'Droid Sans', 'Helvetica Neue',
  sans-serif;
  font-variant: tabular-nums;
  line-height: 1.0;
  background-color: #fff;
  -webkit-font-feature-settings: 'tnum';
          font-feature-settings: 'tnum';
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.pointer {
  cursor: pointer;
}

.position-absolute {
  position: absolute;
}

.position-relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.d-flex, .flex {
  display: flex;
}

.ml-auto {
  margin-left: auto !important;
}

.textOverflow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
}

.text-white {
  color: white;
}

div[id^='__qiankun_microapp_wrapper_'] {
  height: 100%;
}

//ant design
.yy-layout {
  background-color: #F0F2F5 !important;
}

.yy-tabs-content, .yy-table {
  height: 100% !important;
  overflow: auto !important;
}

// .yy-card-bordered {
//   border-color: #333333 !important;
// }

.yy-pro-table-column-setting-list {
  .yy-tree .yy-tree-treenode {
    align-items: center !important;
  }

  .yy-tree .yy-tree-node-content-wrapper:hover {
    background: transparent !important;
  }
}

.yy-pro-table-list-toolbar-container {
  padding: 0 0 16px 0 !important;
}

.yy-table-cell{
  word-break: break-all; 
}

.yy-table-thead > tr > th {
  padding: 8px 8px !important;
}

.yy-table-tbody > tr > td  {
  padding: 14px 8px !important;
}

.yy-table-tbody > .yy-table-measure-row > td  {
  padding: 0px !important;
}

.yy-table-tbody > tr.yy-table-row-selected > td {
  background: #fff !important;
}

tr.yy-table-expanded-row > td {
  background: #fff !important;
}

.yy-table-thead > tr > th {
  background-color: #F2F5FC !important;
}

.yy-popover-content {
  pointer-events: auto !important;
}

.yy-typography, .yy-typography p {
  margin-bottom: 0 !important;
}

tr.drop-over-downward td {
  border-bottom: 2px dashed #1890ff;
}

tr.drop-over-upward td {
  border-top: 2px dashed #1890ff;
}

.react-resizable {
  position: relative;
  background-clip: padding-box;
}

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

.yy-table-sticky-scroll {
  display: none !important;
}

.ReactVirtualized__Grid, .ReactVirtualized__List {
  outline: none;
}

.yy-tooltip-content, .yy-tooltip-arrow-content, .yy-tooltip-inner {
  background: #fff !important;
  color: #000 !important;
}

.tooltip-common {
  max-width: 600px;
  color: #000 !important;

  .yy-popover-inner-content {
    padding: 8px !important;
  }

  .yy-table-thead > tr > th, .yy-table-tbody > tr > td {
    font-size: 13px !important;
    padding: 4px 8px !important;
  } 

  .primary-row {
    .yy-table-cell {
      background-color: #d3ebff !important;
    }
  }
}

.primary-color {
  color: #196AD2;
}

.primary-bg-color {
  background-color: #196AD2;
}

.title-color {
  color: #020202;
}

.text-color {
  color: #5B5B5B;
}

.m-common {
  margin: 20px 15px;
}

.mx-common {
  margin-left: 15px;
  margin-right: 15px;
}

.ml-common {
  margin-left: 15px;
}

.mr-common {
  margin-right: 15px;
}

.my-common {
  margin-top: 20px;
  margin-bottom: 20px;
}

.mt-common {
  margin-top: 20px;
}

.mb-common {
  margin-bottom: 20px;
}

.p-common {
  padding: 20px 15px;
}

.px-common {
  padding-left: 15px;
  padding-right: 15px;
}

.pl-common {
  padding-left: 15px;
}

.pr-common {
  padding-right: 15px;
}

.py-common {
  padding-top: 20px;
  padding-bottom: 20px;
}

.pt-common {
  padding-top: 20px;
}

.pb-common {
  padding-bottom: 20px;
}

.py-compact-common {
  padding-top: 15px;
  padding-bottom: 15px;
}

.pb-compact-common {
  padding-bottom: 15px;
}

.yy-table-row {
  color: #363636 !important;
  .yy-typography {
    color: #363636 !important;
  }
}

.yy-table-select-row {
  .yy-table-cell {
    background-color: #F6F6F6 !important;
  }
}

.anticon {
  &.default {
    svg {
      fill: @icon-normal-color !important;
     }
  
     &:hover {
      svg {
        fill: @icon-hover-color !important;
      }
    }
  }

  &.disable {
    svg {
      fill: @icon-disable-color !important;
    }
  
    &:hover {
      svg {
        fill: @icon-disable-color !important;
      }
    }
  }
}

svg {
  &.icon {
    fill: @icon-normal-color !important;

    &:hover {
      fill: @icon-hover-color !important;
    }
  }

  &.greyIcon {
    fill: @icon-grey-color !important;

    &:hover {
      fill: #fff !important;
    }
  }
}

.yy-input-search {
  .anticon-search {
    svg {
      fill: #fff !important;
    }
  
    &:hover {
      svg {
        fill: #fff !important;
      }
    }
  }
}

.primary-bg-container {
  background-color: #196AD2;
}

.yy-card-head {
  min-height: 40px !important;
}

.yy-notification-notice-description {
  max-height: 70vh;
  overflow: auto;
}

.word-wrap {
  overflow: hidden;
  word-wrap: break-word;
  white-space:normal;
}