@SddLabelDetailPageColor: rgba(0,0,0,0.45); // DetailPage组件label部分文字颜色
@SddBorderSplitColor: rgba(0, 0, 0, 0.12);
@SddTableBorderColor:rgba(0, 0, 0, 0.15);
@SddCheckBoxBorderColor: rgba(0, 0, 0, 0.45);

@SddAlertSuccessBorder: #52C41A73;
@SddAlertSuccessBgColor: #52C41A0F;
@SddAlertWaringBorder: #FAAD1473;
@SddAlertWaringBgColor: #FAAD140F;
@SddAlertInfoBorder: #1090FF73;
@SddAlertInfoBgColor: #1090FF0F;
@SddAlertErrorBorder: #FF4D4F73;
@SddAlertErrorBgColor: #FF4D4F0F;
@SddAlertDarkFontColor:#FFFFFFD9;
@SddAlertDarkCloseIconColor:#FFFFFF73;
@SddAlertLightFontColor:#000000D9;
@SddLayoutHeaderDividerColor: #334454;
@SddLayoutHeaderButtonColor: #A6ADB4;
@SddLayoutHeaderButtonHoverColor: #fff;
@SddLayoutHeaderButtonSelectedColor: #fff;
@SddLayoutHeaderButtonHoverBgColor: #1F262A;
@SddLayoutContentBgColor: #F0F2F5;
@SddLayoutContentColor: #FFFFFF;
@SddLayoutFooterColor: #FFFFFF;

// html基础字体大小，页面rem基准值
@base-rem-size: 14px;
html, body {
    font-size: @base-rem-size;
}

// 4K屏幕使用两倍大小 使用屏幕分辨率，不是浏览器宽 正常4K分辨率是3840X2160
@media screen and (min-device-width: 3000px) {
    html, body {
        font-size: 2*@base-rem-size;
    }
}
/** 
 * 页面长度使用规则
 * 1.禁止使用px和rem作为单位，包括border的宽度
 * 2.使用 px/@px-unit 换算成rem：比如常规分辨率下是100px，在less中写100/@px-unit
 * 使用前先@import '../../theme/index.less';
*/
@px-unit: 14rem; 

.sddSVGFont(@fontSize:30) {
    font-size: if((@fontSize = 0), inherit, @fontSize / @px-unit);
}

/** 
 * Icon颜色填充
*/
.sddSVGOut
    (@normalColor:@SddBtnNormalColor) {
    &:not(.disabled_icons) {
        svg {
            & + {
                path:first-child {
                    fill: if((@normalColor = 0), @SddBtnNormalColor, @normalColor); // 默认图标颜色
                }
            }
        }
    }
}
/* 悬浮后图标样式 */
.svgHover
    (@hoverColor: @SddBtnNormalColor) {
    &:not(.disabled_icons):not(.noHover) {
        &:hover {
            svg {
                & + {
                    path:first-child {
                        fill: if(
                            (@hoverColor = 0),
                            @SddBtnNormalColor,
                            @hoverColor
                        ); // 纯色图标悬浮后的默认颜色
                    }
                }
            }
        }
    }
}

/* 图标禁用颜色 */
.svgDisabled (@disableColor:@SddDisableInputBgColor) {
    svg {
        & + {
            path:first-child {
                fill: @disableColor;
            }
        }
    }
    cursor: not-allowed;
    // opacity: 0.5;
}

// 滚动条全局设置
::-webkit-scrollbar {
    width: 12/@px-unit;
    height: 12/@px-unit;
    cursor: pointer;
}
//滚轴-外层轨道
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6/@px-unit rgba(0,0,0,0);
    box-shadow: inset 0 0 6/@px-unit rgba(0,0,0,0);
}
// 滚轴-滚动的滑块
::-webkit-scrollbar-thumb {
    border-left: 6/@px-unit solid transparent;
    border-right: 0/@px-unit solid transparent;
    border-top: 6/@px-unit solid transparent;
    border-bottom: 0/@px-unit;
    background-color: rgba(0,0,0,0.15);
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover{
    background-color: rgba(0,0,0,0.15);
    border-width: 0/@px-unit ;
    border-radius: 2/@px-unit;
}
::-webkit-scrollbar-thumb:active{
    background-color: rgba(0,0,0,0.15);
    border-width: 0/@px-unit ;
    border-radius: 2/@px-unit;
}
::-webkit-scrollbar-thumb:window-inactive {
    background-color: rgba(0,0,0,0.15);
    border-width: 0/@px-unit ;
    border-radius: 2/@px-unit;
}

.sdd-alert {
    padding-top: 8/@px-unit;
    padding-bottom: 8/@px-unit;
    line-height: 22/@px-unit;

}
.sdd-alert-light {
    .ant-alert-message {
        color: @SddAlertLightFontColor;
    }
}

.sdd-alert-dark {
    .ant-alert-message {
        color: @SddAlertDarkFontColor;
    }
    .ant-alert-close-icon .anticon-close {
        color: @SddAlertDarkCloseIconColor;
    }
}

.sdd-success-alert {
    border-color: @SddAlertSuccessBorder;
    background-color: @SddAlertSuccessBgColor;
}
.sdd-warning-alert {
    border-color: @SddAlertWaringBorder;
    background-color: @SddAlertWaringBgColor;
}.sdd-info-alert {
    border-color: @SddAlertInfoBorder;
    background-color: @SddAlertInfoBgColor;
}.sdd-error-alert {
    border-color: @SddAlertErrorBorder;
    background-color: @SddAlertErrorBgColor;
}

._composeTree_ {
    padding: 0 16/@px-unit;
    width: 240/@px-unit;
    .tree-upper-wrapper {
        display: flex;
        margin-bottom: 4/@px-unit;
        .upper-search-input {
            flex-grow: 1;
            .search-input {
                width: 100%;
            }
            .search-icon {
                .sddSVGFont(16);
            }
        }
        .upper-filter-button {
            display: flex;
            align-items: center;
            height: 48/@px-unit;
            flex-shrink: 0;
            padding-left: 8/@px-unit;
            .filter-icon {
                display: flex;
                align-items: center;
                color: @SddTextColor;
                transition: all 0.3s;
                &:hover {
                    color: @SddButtonBorderColorNo1;
                }
                .sddSVGFont(20);
                svg {
                    transition: transform 0.3s;
                }
            }    
        }
    }
    .ant-tree-node-content-wrapper {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .ant-tree li .ant-tree-node-content-wrapper {
        padding-left: 4/@px-unit;
        padding-right: 4/@px-unit;
    }
    .ant-tree li ul {
        padding-left: 22/@px-unit;
    }
    .ant-tree li span.ant-tree-switcher, .ant-tree li span.ant-tree-iconEle {
        width: 20/@px-unit;
    }
    .ant-tree-child-tree > li:first-child {
        padding-top: 3/@px-unit;
    }
    .ant-tree li {
        overflow: hidden;
    }
    li.ant-tree-treenode-switcher-close {
        height: 30/@px-unit;
    }
    .ant-tree-switcher {
        height: 20/@px-unit;
        // line-height: 20/@px-unit;
    }
}
.filterDropdown {
    min-width: 80/@px-unit;
    .filter-menu-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .checked-icon-wrapper {
        display: flex;
        flex-shrink: 0;
        height: 20/@px-unit;
        width: 20/@px-unit;
        justify-content: center;
        align-items: center;
    } 
    .anticon.checked-icon {
        margin-right: 4/@px-unit;
        .sddSVGFont(16);
    }
}


@Sdd-tabs-borer-color-split: @SddBorderSplitColor;
@sdd-table-tbody-boder-color-split: @SddBorderSplitColor;
@sdd-table-boder-color-split: @SddTableBorderColor;
._Table_ {
    .ant-table-thead > tr > th, .ant-table-tbody > tr > td, .ant-table tfoot > tr > th, .ant-table tfoot > tr > td {
        word-wrap: break-word;
    }    
    .ant-table {
        .ant-table-content {
            .ant-table-body {
                table {
                    tbody {
                        > tr {
                            > td {
                                border-bottom-color: @sdd-table-tbody-boder-color-split;
                            }
                        }
                    }
                }
            }
        }
    }
    .ant-table.ant-table-bordered {
        .ant-table-content {
            table {
                tbody {
                    > tr {
                        > td {
                            border-right-color: @sdd-table-tbody-boder-color-split;
                            &:last-of-type {
                                border-right-color: @sdd-table-boder-color-split;
                            }
                        }
                        &:last-of-type {
                            > td {
                                border-bottom-color: @sdd-table-boder-color-split;
                            }
                        }
                    }
                }
                thead {
                    >tr {
                        >th {
                            border-right-color: @sdd-table-tbody-boder-color-split;
                            border-bottom-color: @sdd-table-tbody-boder-color-split;
                            &:first-of-type {
                                border-left-color: @sdd-table-boder-color-split
                            }
                            &:last-of-type {
                                border-right-color: @sdd-table-boder-color-split;
                            }
                        }
                    }
                }
            }
        }
        .ant-table-body {
            table {
                border-left-color: @sdd-table-boder-color-split;
                border-top-color: @sdd-table-boder-color-split;
            }
        }
        .ant-table-container {
            border-left-color: @sdd-table-boder-color-split;
            table {
                border-top-color: @sdd-table-boder-color-split;
            }
        }
    }
}
._composeTree_ {
    .ant-tree-checkbox-inner {
        border-color: @SddCheckBoxBorderColor;
    }
}

.label-div-Container {
    .ant-checkbox-inner {
        border-color: @SddCheckBoxBorderColor;
    }    
    .ant-radio-inner {
        border-color: @SddCheckBoxBorderColor;
    }
}


//基础布局
@container-font-color: @SddFontNormalColor;
@container-errorColor:@SddErrorColor;//错误信息颜色
@container-warnColor:@SddWarnColor;// 警告信息颜色
@container-number-limit-color: @SddNumberLimitRangeColor;
@container-number-unit-color: @SddNumberLimitUnitColor;
.label-normal-container{
    box-sizing:border-box;
    display: inline-block;
    line-height:0;
}
.label-normal-container::after{
    content:"";
    display:block;
    clear:both;
}
.label-div-Container {
    line-height:0;
}
.label-normal, .label-flex, .label-normal-behind, .label-flex-behind {
    color: @container-font-color
}
.label-append-rng {
    display: inline-block;
    color: @container-number-limit-color
}
.label-append-unit {
    display: inline-block;
    color: @container-number-unit-color;
    margin-right: 4/@px-unit;
}
.label-normal{
    float:left;
    line-height:32/@px-unit;
    padding-right: 8/@px-unit;
    height:32/@px-unit;
	width:108/@px-unit;
	white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
 }
.label-object-padding {
    padding-right: 8/@px-unit;
}
.label-normal-behind{
    float:left;
    line-height:32/@px-unit;
    padding-left:8/@px-unit;
    width: 120/@px-unit;
}
.behind-auto-ellipsis {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.behind-object-padding {
    padding-left: 8/@px-unit;
}
.label-normal-wrapper{
    text-align:left;
    line-height: 32/@px-unit;
    float: left;
    width: 220/@px-unit;
}

// flex布局
.label-flex-container {
    padding: 8/@px-unit 0;
    display: flex;
    display: -webkit-flex;
    flex: 1;
}

.label-flex{
    line-height:32/@px-unit;
    padding-right: 8/@px-unit;
	width:108/@px-unit;
	white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.label-flex-wrapper{
    text-align:left;
    line-height: 32/@px-unit;
    width: 220/@px-unit;
}
.label-flex-behind{
    line-height:32/@px-unit;
    padding-left:8/@px-unit;
    width: 120/@px-unit;
}


//其他样式
.label-required::before {
    content: '*';
    color: @container-errorColor;
    vertical-align: middle;
    margin-right: 4/@px-unit;
}

.label-explain {
    clear: both;
    width: 100%;
    min-height: 22/@px-unit;
    margin-bottom: -1/@px-unit;
    font-size: 14/@px-unit;
    line-height: 1.5;
    margin-top: 4/@px-unit;
    display: none;
    word-wrap:break-word;
    -webkit-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

div.virtual-line-style.css-weight-add {
    position: absolute !important;
    white-space: nowrap !important;
    top: 0 !important;
    visibility: hidden !important;
    z-index: -10000 !important;
    width: auto !important;
}
@keyframes explainShow{
    0%{line-height: 0;}
    100%{line-height: 1.5;}
}

.has-error {
    .label-explain {
        color: @container-errorColor;
        display: block;
        animation:explainShow .3s ease;
        -webkit-animation:explainShow .3s ease;
    }
}

.has-warning {
    .label-explain {
        color: @container-warnColor;
        display: block;
        animation:explainShow .3s ease;
        -webkit-animation:explainShow .3s ease;
    }
}
.ant-form-item {
    margin-bottom: 0 !important;
    font-size: 14/@px-unit !important;
}
.ant-form-explain {
    margin-bottom: 5/@px-unit !important;
    margin-top: -4/@px-unit !important;
}

/** 
*   之前给label-normal-wrapper的行高赋值32px存在一个隐患就是由于label-normal-wrapper是浮动元素，display属性为block
    块级元素赋予行高它的高度其实不是行高所计算而来，而是将此行高向下继承给内联子元素，而块级元素包裹内联块级元素这样的盒模型会在内部前后存在两个
    空白的幽灵节点。它们会继承上面32px的行高，而内联块级元素，默认对齐baseLine，在没有参照物的情况下会对齐幽灵节点的baseLine也就是基线，而幽灵节点
    的基线到底线的距离就是多出来的高度，不同浏览器对此高度的表现形式也不一样。要想消除此影响，一是可以将内联块级元素的对齐方式修改为top/bottom，二是
    将子元素的display设为block
*
*
**/
.label-v4-version {
    /** 以下针对checkbox/radio组件 勾选框与文字不对齐做了处理 */
    /** antd4.0本身样式bug的修复 */
    .ant-picker-input > input {
        height: auto;
        min-height: 22px;
    }
}
.label-normal-wrapper, .label-flex-wrapper {
    // 这些是本身高度正好为32px
    .labelSelect, 
    .labelInput,
    .labelDateRangePicker, 
    ._password, 
    .labelTimeRangePicker {
        vertical-align: top;
    }
}

/*
*新图标规范暂时在这里统一定为20px
*
*/
.design-icon {
    font-size: 20/@px-unit;
}    
/** FormContainer部分样式 */
.sdd-form-container {
    white-space: nowrap;
    .sdd-form-list-wrapper {
        display: inline-block;
        vertical-align: top;
        margin-right: 80px;
        margin-left: 80px;
        &:first-of-type {
            margin-left: 0px;
        }
        &:last-of-type {
            margin-right: 0px;
        }
    }
}

@LabelFontColor: @SddLabelDetailPageColor;
._detailPage_ {
    position: relative;
    overflow: hidden;
    .detailPage-title-wrapper{
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;    
        font-size: 18/@px-unit;
        font-weight: 900;
    }
    .detailPage-content-wrapper {
        display: flex;
        flex-wrap: nowrap;
        margin: 0 -40/@px-unit;
        .detailPage-content-item-wrapper {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: middle;        
            flex-shrink: 1;
            flex-grow: 0;
            padding: 0 40/@px-unit;
            .container-wrapper {
                display: flex;
            }
            .content-wrapper {
                min-width: 20/@px-unit;
                overflow: hidden;
            }
            .label-wrapper {
                color: @LabelFontColor;
                max-width: 100%;
                min-width: 20/@px-unit;
                flex-shrink: 0;
            }
            .detail-item-gap {
                height: 44/@px-unit;
            }
        }
    }
}
.detail-page-wrapper {
    padding: 24/@px-unit 32/@px-unit 32/@px-unit 32/@px-unit;
}

.sdd-drawer-no-title {
    .ant-drawer-header-no-title {
        height: 48/@px-unit;
        line-height: 48/@px-unit;
    }
}


.draggableModal-wrapper {
    .ant-modal-body {
        padding: 24/@px-unit 32/@px-unit 32/@px-unit 32/@px-unit;
    }
    .ant-modal-header {
        padding-top: 13/@px-unit;
        padding-bottom: 13/@px-unit;
    }
}
.draggable-limit-width {
    .ant-modal-body {
        min-width: 640/@px-unit;
    }
}


.sdd-drawer {
    .ant-drawer-content-wrapper {
        // max-width: 80%;
        min-width: 640/@px-unit;
    }
    .ant-drawer-body {
        padding: 24/@px-unit 32/@px-unit 32/@px-unit 32/@px-unit;
    }
    .ant-drawer-content {
        overflow: hidden;
    }
    .ant-drawer-header {
        padding-top: 13/@px-unit;
        padding-bottom: 13/@px-unit;
    }

}


.@{prefixClass} {
  &-input-wrap {
    position: relative;
    padding: 6px;
    border-bottom: 1px solid #e9e9e9;
    &:after {
      content: '';
      clear: both;
    }
  }

  &-date-input-wrap {
    overflow: hidden;
  }
  &-time-picker {
    position: absolute;
    width: 100%;
    top: 34px;
    background-color: white;
    height: 217px;
    &-panel {
      width: 100%;
      position: relative;
      .@{timePickerClass}-panel {
        &-input-wrap {
          display: none;
        }
        &-inner {
          border: none;
          box-shadow: none;
        }
        &-select {
          width: 84px;
          max-height: 217px;
          li {
            text-align: center;
            padding: 0;
          }
        }
      }
    }
  }
  &-time-picker-wrap {
    float: left;
    width: 100%;

    .@{timePickerClass} {
      width: 100%;

      &-input {
        padding: 0;
        border: 1px solid transparent;
        outline: 0;;
        height:22px;
      }

      &-icon {
        display: none;
      }
    }
  }

  &-input {
    border: 1px solid transparent;
    width: 100%;
    color: #666;
    cursor: text;
    line-height: 1.5;
    outline: 0;
    height:22px;

    &-invalid {
      border-color: red;
    }
  }

  &-clear-btn {
    z-index: 9999;
    position: absolute;
    right: 6px;
    cursor: pointer;
    overflow: hidden;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    top: 6px;
    margin: 0;
  }

  &-clear-btn:after {
    content: "x";
    font-size: 12px;
    color: #aaa;
    display: inline-block;
    line-height: 1;
    width: 20px;
    transition: color 0.3s ease;
  }

  &-clear-btn:hover:after {
    color: #666;
  }
}
.@{prefixClass}-full {
  width: 275px;
  &-header {
    padding: 5px 10px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    border-bottom: 1px solid #ccc;
    overflow: hidden;

    &-month-select,
    &-year-select {
      width: 70px;
      float: right;
      margin-right: 5px;
    }

    &-switcher {
      float: right;
      display: inline-block;
      &-normal:hover {
        border-color: #23c0fa;
        box-shadow: 0 0 2px rgba(45, 183, 245, 0.8);
        cursor: pointer;
      }
      &-focus {
        border-color: #1890FF;
        background-color: #1890FF;
        color: #fff;
      }
      > span {
        float: left;
        height: 28px;
        line-height: 24px;
        border: 1px solid #d9d9d9;
        padding: 0 10px;
        color: #666;
        &:first-child {
          border-top-left-radius: 4px;
          border-bottom-left-radius: 4px;
          border-right: none;
        }
        &:last-child {
          border-top-right-radius: 4px;
          border-bottom-right-radius: 4px;
          border-left: none;
        }
      }
    }
  }
}

.@{prefixClass}-fullscreen {
  width: auto;

  .@{prefixClass}-full-header {
    border-bottom: none;
  }

  .@{prefixClass} {
    &-column-header {
      text-align: right;
      padding-right: 12px;
    }
    &-cell {
      padding: 0;
    }
    &-cell .@{prefixClass}-date,
    &-month-panel-cell .@{prefixClass}-month-panel-month {
      display: block;
      height: 116px;
      width: auto;
      border-radius: 0;
      margin: 0 4px;
      border: none;
      border-top: 2px solid #eee;
      text-align: right;
      padding-right: 8px;
    }
    &-selected-day .@{prefixClass}-date,
    &-month-panel-selected-cell .@{prefixClass}-month-panel-month {
      background-color: #ebfaff;
      color: #666;
    }
    &-today .@{prefixClass}-date,
    &-month-panel-selected-cell .@{prefixClass}-month-panel-month {
      border-top-color: #1890FF;
      color: #1890FF;
    }
  }
}

.@{prefixClass}-picker {
  position: absolute;
  left: -9999px;
  top: -9999px;
  z-index: 1000;

  &-hidden {
    display: none;
  }
}

@input-box-height: 35px;

.@{prefixClass}-range {
  width: 502px;
  overflow: hidden;

  &-part {
    width: 250px;
    position: relative;

    .@{prefixClass}-time-picker {
      top: 69px;
      &-panel {
        &-select {
          width: 77px;
        }
      }
    }
  }

  &-left {
    float: left;
    .@{prefixClass}-time-picker-panel {
      &-select:last-child {
        border-right: 1px solid #e9e9e9;
      }

    }
  }

  &-right {
    float: right;
    .@{prefixClass}-time-picker-panel {
      left: 21px;

      &-select:first-child {
        border-left: 1px solid #e9e9e9;
      }
    }
  }

  &-middle {
    position: absolute;
    margin-left: -10px;
    text-align: center;
    height: @input-box-height;
    line-height: @input-box-height;
  }
  .@{prefixClass}-date-panel::after {
    content:".";
    display:block;
    height:0;
    clear:both;
    visibility:hidden;
  }

  .@{prefixClass}-input-wrap {
    height: @input-box-height;
  }
  .@{prefixClass}-input,
  .@{timePickerClass}-input {
    padding: 1px 7px;
    height: 22px;
  }

  .@{prefixClass}-body,
  .@{prefixClass}-decade-panel-body,
  .@{prefixClass}-year-panel-body,
  .@{prefixClass}-month-panel-body {
    border-bottom: 1px solid #e9e9e9;
  }

  &.@{prefixClass}-week-number {
    width: 574px;

    .@{prefixClass}-range {
      &-part {
        width: 286px;
        .@{prefixClass}-time-picker {
          top: 69px;
          &-panel {
            &-select {
              width: 89px;
            }
          }
        }
      }
      &-right {
        .@{prefixClass}-time-picker-panel {
          left: 36px;
        }
      }
    }
  }

  .@{prefixClass}-year-panel,
  .@{prefixClass}-month-panel,
  .@{prefixClass}-decade-panel {
    top: @input-box-height;
  }
  .@{prefixClass}-month-panel .@{prefixClass}-year-panel {
    top: 0;
  }
  .@{prefixClass}-decade-panel-table,
  .@{prefixClass}-year-panel-table,
  .@{prefixClass}-month-panel-table {
    height: 198px;
  }

  .@{prefixClass}-in-range-cell {
    background: #ebf4f8;
    border-radius: 0;
  }

  &-bottom {
    text-align: right;
  }

  .@{prefixClass}-footer{
    border-top: none;
    padding: 0;
    &-btn {
      padding: 10px 12px 10px 0;
    }
  }
  .@{prefixClass}-ok-btn {
    position: static;
  }
  .@{prefixClass}-today-btn {
    float: left;
  }
}

@prefixClass: rc-calendar;
@timePickerClass: rc-time-picker;

.@{prefixClass} {
  box-sizing: border-box;
  * {
    box-sizing: border-box;
  }
}

.@{prefixClass}-hidden {
  display: none;
}



.@{prefixClass} {
  position: relative;
  outline: none;
  font-family: Arial, "Hiragino Sans GB", "Microsoft Yahei", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif;
  width: 253px;
  border: 1px solid #ccc;
  list-style: none;
  font-size: 12px;
  text-align: left;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 5px #ccc;
  background-clip: padding-box;
  border: 1px solid #ccc;
  line-height: 1.5;

  &-date-panel, &-panel {
    position: relative;
    outline: none;
  }

  &-week-number {
    width: 286px;

    &-cell {
      text-align: center;
    }
  }

  &-header {
    padding: 0 10px;
    height: 34px;
    line-height: 30px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    border-bottom: 1px solid #ccc;

    > a {
      font-weight: bold;
      display: inline-block;
      padding: 0px 5px;
      line-height: 34px;
      text-align: center;
      width: 30px;

      &:hover {
        cursor: pointer;
        color: #23c0fa;
      }
    }

    .@{prefixClass}-prev-month-btn {
      position: absolute;
      left: 25px;

      &:after {
        content: '‹'
      }
    }

    .@{prefixClass}-next-month-btn {
      position: absolute;
      right: 25px;

      &:after {
        content: '›'
      }
    }
  }

  &-year-select, &-month-select, &-day-select {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    padding: 0 8px;
    line-height: 34px;

    &:hover {
      cursor: pointer;
      color: #23c0fa;
    }
    &.@{prefixClass}-time-status:hover{
      cursor: pointer;
      color: #666;
    }
  }

  &-prev-month-btn,
  &-next-month-btn,
  &-prev-year-btn,
  &-next-year-btn {
    position: absolute;
    top: 0;
    cursor: pointer;
    color: #999;
    font-family: Arial, "Hiragino Sans GB", "Microsoft Yahei", "Microsoft Sans Serif", sans-serif;
    padding: 0 5px;
    font-size: 16px;
    display: inline-block;
    line-height: 34px;

    &:hover {
      color: #23c0fa;
    }
  }

  &-next-year-btn {
    right: 0;

    &:after {
      content: '»'
    }
  }

  &-prev-year-btn {
    left: 0;

    &:after {
      content: '«'
    }
  }

  &-body {
    padding: 9px 10px 10px;
    height: 217px;
  }

  table {
    border-collapse: collapse;
    max-width: 100%;
    background-color: transparent;
    width: 100%;
  }

  table, td, th, td {
    border: none;
  }

  &-table {
    border-spacing: 0;
    margin-bottom: 0;
  }

  &-column-header {
    line-height: 18px;
    padding: 6px 0;
    width: 33px;
    text-align: center;
    .@{prefixClass}-column-header-inner {
      display: block;
      font-weight: normal;
    }
  }

  &-week-number-header {
    .@{prefixClass}-column-header-inner {
      display: none;
    }
  }

  &-cell {
    padding: 1px 0;
  }

  &-date {
    display: block;
    margin: 0 auto;
    color: #666;
    border-radius: 4px 4px;
    width: 26px;
    height: 26px;
    padding: 0;
    background: transparent;
    line-height: 26px;
    text-align: center;

    &:hover {
      background: #ebfaff;
      cursor: pointer;
    }
  }

  &-selected-day &-date {
    background: tint(#3fc7fa, 80%);
  }

  &-selected-date &-date {
    background: #1890FF;
    color: #fff;
    &:hover {
      background: #1890FF;
    }
  }

  &-today &-date {
    border: 1px solid #1890FF;
  }

  &-disabled-cell &-date {
    cursor: not-allowed;
    color: #bcbcbc;
    background: #f3f3f3;
    border-radius: 0;
    width: auto;

    &:hover {
      background: #f3f3f3;
    }
  }

  &-disabled-cell-first-of-row &-date {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  &-disabled-cell-last-of-row &-date {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  &-last-month-cell &-date, &-next-month-btn-day &-date {
    color: #bbb;
  }

  &-footer {
    border-top: 1px solid #ccc;
    padding: 10px 0;
    text-align: center;
    position: relative;

    .@{timePickerClass} {
      width: 90px;
      &-input {
        height: 24px;
      }
    }
    &-show-ok {
      text-align: right;
      .@{prefixClass} {
        &-footer-btn {
          padding-right: 12px;
        }

        &-time-picker-btn {
          margin-left: 0;
          padding: 0 12px;
        }
        &-today-btn {
          float: left;
          padding-left: 12px;
        }
      }
    }
  }

  &-footer-btn {
    margin-top: 2px;

    &:after {
      content: 'x';
      height: 0;
      font-size: 0;
      overflow: hidden;
      clear: both;
    }
  }

  &-time-picker-btn {
    margin-left: 10px;
  }

  &-today-btn, &-ok-btn, &-time-picker-btn {
    display: inline-block;
    text-align: center;
    color: #f46830;

    &:hover {
      cursor: pointer;
      color: #23c0fa;
    }

    &-disabled {
      color: #bbb;
      &:hover {
        color: #bbb;
      }
    }
  }

  &-today-btn {
    padding-left: 10px;
  }
}
.@{prefixClass}-decade-panel {
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: #ffffff;
  z-index: 10;
  position: absolute;
  outline: none;
}

.@{prefixClass}-decade-panel-hidden {
  display: none;
}

.@{prefixClass}-decade-panel-header {
  padding: 0 10px;
  height: 34px;
  line-height: 34px;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: 1px solid #ccc;

  > a {
    font-weight: bold;
    display: inline-block;
    padding: 1px 5px;
    text-align: center;
    width: 30px;

    &:hover {
      cursor: pointer;
      color: #23c0fa;
    }
  }
}

.@{prefixClass}-decade-panel-prev-century-btn, .@{prefixClass}-decade-panel-next-century-btn {
  position: absolute;
  top: 0;
}

.@{prefixClass}-decade-panel-next-century-btn {
  &:after {
    content: '»'
  }
}

.@{prefixClass}-decade-panel-prev-century-btn {
  user-select: none;
  left: 0;
  &:after {
    content: '«'
  }
}

.@{prefixClass}-decade-panel-next-century-btn {
  user-select: none;
  right: 0;
}

.@{prefixClass}-decade-panel-body {
  padding: 9px 10px 10px;
  position: absolute;
  bottom: 0;
  top: 34px;
}

.@{prefixClass}-decade-panel-table {
  table-layout: fixed;
  width: 100%;
  height: 100%;
  border-collapse: separate;
}

.@{prefixClass}-decade-panel-cell {
  text-align: center;
}

.@{prefixClass}-decade-panel-decade {
  display: block;
  margin: 0 auto;
  color: #666;
  border-radius: 4px 4px;
  height: 36px;
  padding: 0;
  background: transparent;
  line-height: 36px;
  text-align: center;

  &:hover {
    background: #ebfaff;
    cursor: pointer;
  }
}

.@{prefixClass}-decade-panel-selected-cell .@{prefixClass}-decade-panel-decade {
  background: #1890FF;
  color: #fff;

  &:hover {
    background: #1890FF;
    color: #fff;
  }
}

.@{prefixClass}-decade-panel-last-century-cell, .@{prefixClass}-decade-panel-next-century-cell {
  .@{prefixClass}-decade-panel-decade{
    user-select: none;
    -webkit-user-select: none;
    color: rgba(0, 0, 0, 0.25);
  }
}
.input() {
  height: 25px;
  position: relative;
  display: inline-block;
  margin: 0 0;
  padding: 4px 10px;
  border-radius: 6px 6px;
  border: 1px solid #d9d9d9;
  background-color: #ffffff;
  color: #666;
  line-height: 1.5;
  transform: border 0.3s cubic-bezier(0.35, 0, 0.25, 1), background 0.3s cubic-bezier(0.35, 0, 0.25, 1), box-shadow 0.3s cubic-bezier(0.35, 0, 0.25, 1);

  &:hover {
    border-color: #23c0fa;
  }

  &:focus {
    border-color: #23c0fa;
    box-shadow: 0 0 3px #23c0fa;
  }
}
.@{prefixClass}-month-panel {
  left: 0;
  top:0;
  bottom: 0;
  right: 0;
  background: #ffffff;
  z-index: 10;
  position: absolute;
  outline: none;
}

.@{prefixClass}-month-panel-hidden {
  display: none;
}

.@{prefixClass}-month-panel-header {
  padding: 0 10px;
  height: 34px;
  line-height: 30px;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: 1px solid #ccc;

  > a {
    font-weight: bold;
    display: inline-block;
    padding: 4px 5px;
    text-align: center;
    width: 30px;

    &:hover {
      cursor: pointer;
      color: #23c0fa;
    }
  }
}

.@{prefixClass}-month-panel-prev-year-btn, .@{prefixClass}-month-panel-next-year-btn {
  position: absolute;
  top: 0;
}

.@{prefixClass}-month-panel-next-year-btn {
  &:after {
    content: '»'
  }
}

.@{prefixClass}-month-panel-prev-year-btn {
  user-select: none;
  left: 0;

  &:after {
    content: '«'
  }
}

.@{prefixClass}-month-panel .@{prefixClass}-month-panel-year-select {
  width: 180px;
}

.@{prefixClass}-month-panel-year-select-arrow {
  display: none;
}

.@{prefixClass}-month-panel-next-year-btn {
  user-select: none;
  right: 0;
}

.@{prefixClass}-month-panel-body {
  padding: 9px 10px 10px;
  position: absolute;
  top: 34px;
  bottom: 0;
}

.@{prefixClass}-month-panel-table {
  table-layout: fixed;
  width: 100%;
  height: 100%;
  border-collapse: separate;
}

.@{prefixClass}-month-panel-cell {
  text-align: center;



  .@{prefixClass}-month-panel-month {
    display: block;
    width: 46px;
    margin: 0 auto;
    color: #666;
    border-radius: 4px 4px;
    height: 36px;
    padding: 0;
    background: transparent;
    line-height: 36px;
    text-align: center;

    &:hover {
      background: #ebfaff;
      cursor: pointer;
    }
  }

  &-disabled{
    .@{prefixClass}-month-panel-month {
      color: #bfbfbf;

      &:hover {
        background: white;
        cursor: not-allowed;
      }
    }
  }
}

.@{prefixClass}-month-panel-selected-cell .@{prefixClass}-month-panel-month {
  background: #1890FF;
  color: #fff;

  &:hover {
    background: #1890FF;
    color: #fff;
  }
}

.@{prefixClass}-month-header-wrap {
  position: relative;
  height: 308px;
}
.@{prefixClass} {
  &-picker {
    .effect() {
      animation-duration: .3s;
      animation-fill-mode: both;
      transform-origin: 0 0;
      display: block !important;
    }

    &-slide-up-enter {
      .effect();
      opacity: 0;
      animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
      animation-play-state: paused;
    }

    &-slide-up-appear {
      .effect();
      opacity: 0;
      animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
      animation-play-state: paused;
    }

    &-slide-up-leave {
      .effect();
      opacity: 1;
      animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
      animation-play-state: paused;
    }

    &-slide-up-enter&-slide-up-enter-active&-placement-bottomLeft,
    &-slide-up-enter&-slide-up-enter-active&-placement-bottomRight,
    &-slide-up-appear&-slide-up-appear-active&-placement-bottomLeft,
    &-slide-up-appear&-slide-up-appear-active&-placement-bottomRight {
      animation-name: rcDropdownSlideUpIn;
      animation-play-state: running;
    }

    &-slide-up-enter&-slide-up-enter-active&-placement-topLeft,
    &-slide-up-enter&-slide-up-enter-active&-placement-topRight,
    &-slide-up-appear&-slide-up-appear-active&-placement-topLeft,
    &-slide-up-appear&-slide-up-appear-active&-placement-topRight {
      animation-name: rcDropdownSlideDownIn;
      animation-play-state: running;
    }

    &-slide-up-leave&-slide-up-leave-active&-placement-bottomLeft,
    &-slide-up-leave&-slide-up-leave-active&-placement-bottomRight {
      animation-name: rcDropdownSlideUpOut;
      animation-play-state: running;
    }

    &-slide-up-leave&-slide-up-leave-active&-placement-topLeft,
    &-slide-up-leave&-slide-up-leave-active&-placement-topRight {
      animation-name: rcDropdownSlideDownOut;
      animation-play-state: running;
    }

    @keyframes rcDropdownSlideUpIn {
      0% {
        opacity: 0;
        transform-origin: 0% 0%;
        transform: scaleY(0);
      }
      100% {
        opacity: 1;
        transform-origin: 0% 0%;
        transform: scaleY(1);
      }
    }

    @keyframes rcDropdownSlideUpOut {
      0% {
        opacity: 1;
        transform-origin: 0% 0%;
        transform: scaleY(1);
      }
      100% {
        opacity: 0;
        transform-origin: 0% 0%;
        transform: scaleY(0);
      }
    }

    @keyframes rcDropdownSlideDownIn {
      0% {
        opacity: 0;
        transform-origin: 100% 100%;
        transform: scaleY(0);
      }
      100% {
        opacity: 1;
        transform-origin: 100% 100%;
        transform: scaleY(1);
      }
    }
    @keyframes rcDropdownSlideDownOut {
      0% {
        opacity: 1;
        transform-origin: 100% 100%;
        transform: scaleY(1);
      }
      100% {
        opacity: 0;
        transform-origin: 100% 100%;
        transform: scaleY(0);
      }
    }
  }
}


.@{prefixClass}-time-input {
  .input();
  width:40px;
}
.@{prefixClass}-time-panel {
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: #ffffff;
  z-index: 10;
  position: absolute;
  outline: none;
}

.@{prefixClass}-time-panel-header {
  padding: 0 10px;
  height: 34px;
  line-height: 34px;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: 1px solid #ccc;
}

.@{prefixClass}-time-panel-body {
  padding: 9px 10px 10px;
}

.@{prefixClass}-time-panel-title {
  width: 180px;
  font-weight: bold;
  display: inline-block;
  padding: 4px 5px;
  text-align: center;
  height: 30px;
  line-height: 22px;
  border-radius: 4px;
}


.@{prefixClass}-time-panel-table {
  table-layout: fixed;
  width: 100%;
  height:255px;
  border-collapse: separate;
}

.@{prefixClass}-time-panel-cell {
  text-align: center;
  height: 42px;
  vertical-align: middle;
}

.@{prefixClass}-time-panel-time {
  line-height: 26px;
  display: block;
  border-radius: 4px;
  width:26px;
  margin: 0 auto;

  &:hover {
    background: #ebfaff;
    cursor: pointer;
  }
}


.@{prefixClass}-time-panel-selected-cell .@{prefixClass}-time-panel-time {
  background: #1890FF;
  color: #fff;

  &:hover {
    background: #1890FF;
    color: #fff;
  }
}
.@{prefixClass}-year-panel {
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: #ffffff;
  z-index: 10;
  position: absolute;
  outline: none;
}

.@{prefixClass}-year-panel-hidden {
  display: none;
}

.@{prefixClass}-year-panel-header {
  padding: 0 10px;
  height: 34px;
  line-height: 30px;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: 1px solid #ccc;

  > a {
    font-weight: bold;
    display: inline-block;
    padding: 4px 5px;
    text-align: center;
    width: 30px;

    &:hover {
      cursor: pointer;
      color: #23c0fa;
    }
  }
}

.@{prefixClass}-year-panel-prev-decade-btn, .@{prefixClass}-year-panel-next-decade-btn {
  position: absolute;
  top: 0;
}

.@{prefixClass}-year-panel-next-decade-btn {
  &:after {
    content: '»'
  }
}

.@{prefixClass}-year-panel-prev-decade-btn {
  user-select: none;
  left: 0;

  &:after {
    content: '«'
  }
}

.@{prefixClass}-year-panel .@{prefixClass}-year-panel-decade-select {
  width: 180px;
}

.@{prefixClass}-year-panel-decade-select-arrow {
  display: none;
}

.@{prefixClass}-year-panel-next-decade-btn {
  user-select: none;
  right: 0;
}

.@{prefixClass}-year-panel-body {
  padding: 9px 10px 10px;
  position: absolute;
  bottom: 0;
  top: 34px;
}

.@{prefixClass}-year-panel-table {
  table-layout: fixed;
  width: 100%;
  height: 100%;
  border-collapse: separate;
}

.@{prefixClass}-year-panel-cell {
  text-align: center;
}

.@{prefixClass}-year-panel-year {
  display: block;
  width: 46px;
  margin: 0 auto;
  color: #666;
  border-radius: 4px 4px;
  height: 36px;
  padding: 0;
  background: transparent;
  line-height: 36px;
  text-align: center;

  &:hover {
    background: #ebfaff;
    cursor: pointer;
  }
}

.@{prefixClass}-year-panel-selected-cell .@{prefixClass}-year-panel-year {
  background: #1890FF;
  color: #fff;

  &:hover {
    background: #1890FF;
    color: #fff;
  }
}

.@{prefixClass}-year-panel-last-decade-cell, .@{prefixClass}-year-panel-next-decade-cell {
  .@{prefixClass}-year-panel-year{
    user-select: none;
    -webkit-user-select: none;
    color: rgba(0, 0, 0, 0.25);
  }
}













.sdd-checkboxGroup-container {
    width: 100%;
    .labelCheckbox-content-wrapper {
        display: inline-flex;
    }
    .labelCheckboxGroup {
        label.ant-checkbox-wrapper {
            margin-left: 0;
            margin-right: 8/@px-unit;
            &:last-of-type {
                margin-right: 0/@px-unit;
            }
        }
    }
    .sdd-vertical-checkboxGroup {
        label.ant-checkbox-wrapper {
            margin-left: 0;
            margin-right: 0/@px-unit;
        }
    }
}
// .label-normal-wrapper {
//     .ant-checkbox-group {
//         .ant-checkbox-wrapper {
//             margin-left: 0;
//             margin-right: 24/@px-unit;
//             &:last-of-type {
//                 margin-right: 0;
//             }
//         }
//     }
// }


@CheckboxInnerMaxWidth: 24/@px-unit;

.sdd-checkbox-container {
    display: inline-block;
    width: 100%;
    .labelCheckbox {
        width: 100%;
    }
    .ant-checkbox + span {
        display: inline-block;
    }
    .labelCheckbox-content-wrapper {
        display: inline-flex;
        width: 100%;
    }
}
// 指定了wrapWith才赋值计算宽度，否则wrapWidth为auto情况下因为短了8px会自动省略
.label-custom-wrapper {
    .sdd-checkbox-container {
        .ant-checkbox + span {
            width: calc(100% - @CheckboxInnerMaxWidth);
        }    
    }
}



.LabelFileReader-IEInput{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:999;
    opacity:0;
}

.IE-submit-button {
    position:relative;
    float:left;
    margin-left: 8/@px-unit;
}
.IE-sdd-form {
    height:0;
    width:0;
    opacity:0;
}
.upload-sdd-button {
    float: left;
    margin-left: 8/@px-unit;
}
.select-btn {
    float: left;
    margin-left: 8/@px-unit;
}
input.ant-input.fileReader-input {
    width: 200/@px-unit;
    float: left;
}




@IPV4-baseColor: @SddContentBgColor; // 背景色
@IPV4-inputBorderColor: @SddInputBorderColor; // 边框颜色
@IPV4-disabledColor:@SddDisableInputBgColor; // disable背景色
@IPV4-borderColor: @SddInputBorderColorNo1; // 聚焦状态边框颜色
@IPV4-explainColor: @SddErrorColor; //错误提示颜色

.Loop(@index) when(@index<7){
    input:nth-child(@{index}){
        border-left: none;
        border-right: none;
    }
    //递归调用 达到循环目的
    .Loop(@index+1);