:root {
    box-sizing: border-box; 
    font-size: 16px;  
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0; 
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/***** 自定义按钮样式 *****/
:deep(.ant-btn), :deep(.ant-btn-primary){
    height: 24px !important;
    line-height: 24px !important; 
    font-size: 12px;
    border-radius: 5px !important;
    padding: 0 8px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

// 默认按钮
:deep(.ant-btn-primary){
    background-color: @main-color;
    &:hover{ 
        box-shadow:0 0 6px @button-shadow-color;
    }
    &:active{
        background-color: @button-press-color; 
    }
}

//按钮内图标与文字间距
.ant-btn > .anticon + span, .ant-btn > span + .anticon{
  margin-left: 4px !important;
} 

//按钮disabled样式
:deep(.ant-btn-primary[disabled]){
    color: @font-color-button-disabled !important;
    background-color: @basic-bg-color; 
}
/****************************/

/***** 自定义checkbox样式 *****/
//checkbox勾选框与文字间距
.ant-checkbox + span{
  padding-left: 1px;  
}
:deep(.ant-checkbox-wrapper){
  font-size: 12px;
}
/****************************/

/***** 自定义input样式 *****/
// 选择列表
:deep(.ant-select){
  width: @input-width-small;
}
:deep(.ant-select-selection){
    width: @input-width-small;
    @media (min-width: @media-input-width-small){
        width: @input-width;
    }
    /* 多选滚动 */
    max-height: 60px;
    scrollbar-width: none; /* firefox */
    -ms-overflow-style: none; /* IE 10+ */
    overflow-x: hidden;
    overflow-y: auto;
} 
:deep(.ant-select-selection--single){
    box-sizing: content-box;
}

// size为small的select样式
:deep(.ant-select-sm > .ant-select-selection--single){
  height: 22.3px !important; 
}

// :deep(.ant-select-selection__placeholder){
//   color: @font-color-input-placeholder; 
//   font-size: 14px;
// }
.ant-select-selection-placeholder{
  color: @font-color-input-placeholder; 
  font-size: @font-color-input-placeholder-size;
}

:deep(.ant-input){
    width: @input-width-small;
    @media (min-width: @media-input-width-small){
        width: @input-width;
    }
    &::placeholder{
        color: @font-color-input-placeholder; 
        font-size: @font-color-input-placeholder-size;
    }
}

/* 日期选择 */
:deep(.ant-calendar-picker){ 
    width: @input-width-small;
    @media (min-width: @media-input-width-small){
        width: @input-width;
    }
    height: 32px;
}
:deep(.ant-calendar-picker-input){
    width: @input-width-small;
    @media (min-width: @media-input-width-small){
        width: @input-width;
    }
    font-size: 14px;
}
:deep(.ant-calendar-range-picker-input){
    color: @font-color-input; 
    font-size: 12px;    
}
.ant-picker-small{
  width: @ant-picker-width-small;
}
/* :deep(.ant-input-affix-wrapper-textarea-with-clear-btn){
  border: 1px solid red;
  height: 22px;
} */
/****************************/

/****************************/
//icon统一样式
.le-icon-style{
  color: @main-color;
  cursor: pointer;
  font-size: 22px;
  &:hover{
    transform: scale(1.1, 1.1);
  }
}
/****************************/

/* 模块阴影 */
.item-shadow{
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.4); 
}
.item-hover{ 
  &:hover{
      box-shadow: 0px 0px 15px 0px rgba(107, 107, 107, 0.4); 
      transition: box-shadow .5s ease-out;
  }
}

/* 可编辑状态样式 */
:deep(.editClass){   
    background-color: @editable-color !important;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center; 
    font-weight: 600;
    &:hover{
      cursor: pointer;
      font-weight: 700;  
    }  
}

:deep(.editClass.dis){
    background-color: @cantedit-color !important;
}

:deep(.editableClass){   
  background-color: @editable-color;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center; 
  font-weight: 600;
  &:hover{
    cursor: pointer;
    font-weight: 700;  
  }  
}

:deep(.cellEditStyleColumnClass){
    background-color: @editable-color !important;
    font-weight: 600;
    &:hover{
        cursor: pointer;
        font-weight: 700;  
    }
}

/* 负值背景颜色 */
:deep(.negativeStyle){
    // background-color: @negative-bg-color;
    color: @color-negative-value;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center; 
    font-weight: 600;
    &:hover{
      cursor: pointer;
      font-weight: 700;
    }
}

/* 发布状态样式 */
:deep(.publishClass1){ //默认  
} 
:deep(.publishClass2){ //成功
    background-color: @publish-color-2 !important;
} 
:deep(.publishClass3){   
    background-color: @publish-color-3;  
}
:deep(.publishClass4){ //成功
    background-color: @publish-color-2 !important;
} 

//单元格左对齐显示
:deep(.cellLeft){     
    background-color: #fff;  
    border: 1px solid lightgrey !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000 !important;
}

/* 合并单元格样式 */
:deep(.grid-cell-style){
    // font-weight: bold;   
    // background-color: #fff !important;
}
:deep(.cell-span){
    background-color: #fff;  
    border: 1px solid lightgrey !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;    
}

:deep(.cell-span-border) {
    background-color: #fff;  
    border-left: 1px solid lightgrey !important;
    border-right: 1px solid lightgrey !important;
    border-bottom: 1px solid lightgrey !important;
    // border-bottom: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
    margin-top: 1px;
}

:deep(.ag-popup-child){
    z-index: 9999 !important;
}

:deep(.cell-span-mbg){
    background-color: #fff;
    border-right: 1px solid lightgrey !important; 
    border-bottom: 1px solid lightgrey !important; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
}

:deep(.cell-span-mbg-disabled) {
    background-color: @row-disabled-color;
    border-right: 1px solid lightgrey !important;
    border-bottom: 1px solid lightgrey !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
    flex-wrap: wrap !important;
}
:deep(.cell-span-mbg-disabled span){
    display: block;
    width: 150px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
}

/* cell span common */
:deep(.cell-span-common) {
    background-color: #fff;
    border-left: 1px solid lightgrey !important;
    border-right: 1px solid lightgrey !important;
    border-bottom: 1px solid lightgrey !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
    margin-top: 1px; 
}

// :deep(.cell-span-common :nth-last-child(1) ){
//     background-color: #fff;
//     border-left: 1px solid lightgrey !important;
//     border-right: 1px solid lightgrey !important;
//     border-bottom: 1px solid lightgrey !important;
//     display: flex;
//     justify-content: center;
//     align-items: center;
//     z-index: 1000 !important;
//     margin-top: 1px;  
// }


:deep(.cell-span-remove-duplication) {
    background-color: #fff;
    border-left: 1px solid lightgrey !important;
    // border-right: 1px solid lightgrey !important;
    border-bottom: 1px solid lightgrey !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
    margin-top: 1px; 
}

/* 单元格内容换行 */
:deep(.cell-Br-style){
    background-color: #fff;
    border-bottom: 1px solid lightgrey !important;
    z-index: 1000 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap !important; 
}
:deep(.cell-Br-style span){
    display: block;
    width: 150px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;   
}  

:deep(.groupFirstItem) {
    background-color: @group-first-item-color;    
    border-right: 1px solid lightgrey !important; 
    border-bottom: 1px solid lightgrey !important; 
    display: flex;
    justify-content: center;
    align-items: center;
}

:deep(.groupSecondLevelItem) {
  background-color: @group-secondlevel-color;
  border-right: 1px solid lightgrey !important; 
  border-bottom: 1px solid lightgrey !important; 
  display: flex;
  justify-content: center;
  align-items: center;
}

:deep(.groupMbgApiPublished){
    background-color: @publish-color-2;
    border-right: 1px solid lightgrey !important; 
    border-bottom: 1px solid lightgrey !important; 
    display: flex;
    justify-content: center;
    align-items: center;
} 

:deep(.groupItemColor) {
    background-color: @group-first-item-color;
    border-right: 1px solid lightgrey !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

:deep(.groupItemColorSecondLevel) {
  background-color: @group-secondlevel-color;
  border-right: 1px solid lightgrey !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

:deep(.groupItem) {
    border-right: 1px solid lightgrey !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
    height: 100%;
}

/*自定义滚动条样式*/
::-webkit-scrollbar {  
  width: 8px;  /*高宽分别对应横竖滚动条的尺寸*/
  height: 8px;
}
::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 4px; 
  background: @scrollbar-thumb-color; 
  &:hover{
    background: @scrollbar-thumb-hover-color;
    cursor: pointer !important;
  }    
}
::-webkit-scrollbar-track {
  /*滚动条里面轨道*/ 
  border-radius: 4px;
  background: @scrollbar-track-color;
}

//通用弹出层样式
.len-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    background-color: rgba(102, 102, 102, .8); 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

:deep(.limitationDetailWrap){
    display: flex;
    justify-content: center !important;
    align-items: center !important;
}
:deep(.limitationDetail){
    width: 18px; 
    height: 18px;
    border-radius: 100%;   
    background-color: rgba(216, 152, 144, 72) !important;
    margin-top: 4px;
    &:hover{
        transform: scale(1.1, 1.1);
        box-shadow:0 0 6px rgba(216, 152, 144, 72);
    }
}
:deep(.limitationDefaultColSpan){    
    background-color: rgba(209, 230, 243, 100);
}
:deep(.limitationDefaultColSpanIneffective){
    background-color: rgba(216, 152, 144, 72);
}

:deep(.pickedBg){
    background-color: @toast-success-color;
    // color: @header-font-color !important;
    // text-align: center;
}

:deep(.exportNameStyle){
  color: '#1890FF' !important;
  cursor: pointer;
  &:hover{
    // text-decoration: underline;
  }
}

//表格right border
:deep(.ag-cell-focus){
  border-right: 1px solid @color-table-cell-right-border !important; 
}

//全屏按钮
:deep(.fullscreenButton){
  width: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
  padding: 0 3px !important;
}

.le-tooltip-color{
  color: @le-tooltip-color;
}