    @result:(if((.lumaValue(@bg)[] >= 60%),extract(@lightFont,@state),extract(@deepFont,@state)));
}

.lumaColorSelect(@bg:@--bg, @deepColor, @lightColor){
    @result:(if((.lumaValue(@bg)[] >= 60%),@lightColor,@deepColor));
}

.subColor(@base6){
    @h:hue(@base6);
    @s:round(hsvsaturation(@base6));
    @v:round(hsvvalue(@base6));

    
    

    
    @s-5:round(@s - @s / 5);
    @v-5:round(@v + (100%- @v) / 5);

    
    @s-7:round(@s + (100% - @s) / 5);
    @v-7:round(@v - @v / 5);

    
    @s-8:round(@s + ((100% - @s) / 5) * 2);
    @v-8:round(@v - (@v / 5) * 2);

    
    @hover:hsv(@h,@s-5,@v-5);
    @click:hsv(@h,@s-7,@v-7);
    @deep:hsv(@h, @s-8 , @v-8);
}
.color_A(@bg:@--bg){
    .lumaColor(@bg, 1);
}

.color_N(@bg:@--bg){
    .lumaColor(@bg, 2);
}

.color_D(@bg:@--bg){
    .lumaColor(@bg, 3);
}

.color_S(@bg:@--bg){
    .lumaColor(@bg, 4);
}

.colorBox(@colorMap){
    each(@colorMap, {
            @base: extract(@value , 1);
            @base_H: if(length(@value) >= 2 ,extract(@value , 2) ,.subColor(@base)[@hover]);
            @base_C: if(length(@value) >= 3 ,extract(@value , 3) ,.subColor(@base)[@deep]);
            .sdd-checked-@{key} {
                &.ant-checkbox-wrapper:hover .ant-checkbox-inner{
                    
                    border-color: @base_H !important;
                }
                .ant-checkbox-inner {
                    border-color: @base_C !important;
                    background-color: @base !important;
                    &:after{
                        
                        border-color: @base_C;
                    }
                }
                .ant-checkbox-checked::after{
                    border-color: @base_C !important;
                }
            }
    });
}
@--primary-6:#009CFF; 
@--primary-5:#33B0FF; 
@--primary-7:#007DCC; 



@--toolbar-bg:#4C5054; 








@--bg:#2A2E33; 






@--component-bg:#2a2e33; 
@--component-border: #606366; 

@--component-bg-disable:#32373C; 




@--option-bg-select: #55585D; 




@--menu-bg:#393c41;






@--navTitle-bg:#4c4f54; 


















@--split: #606366;


@--bg-card: #56585B;



@--block: #17181C;





@--title:#313439; 

@--font-l:#FFFFFF; 
@--font-r: #a6aab2; 
@--placeholder: #5d6263;
@--font-s: #7c8284; 

@--font-l-l:#000000; 
@--font-r-l: #262626; 
@--placeholder-l: #BFBFBF;
@--font-s-l: #8C8C8C; 


@--warning-6:#ffd304;
@--warning-border: #B59914; 
@--warning-bg: #44422D; 
@--warning-5:#ffdc38; 
@--warning-7:#cca903; 


@--success-6:#29d67d;
@--success-border: #299B64;
@--success-bg: #2A423C;
@--success-5:#4bd690; 
@--success-7:#21ab65; 


@--error-6:	#ff4f4f;
@--error-border: #B54345;
@--error-bg: #443136;
@--error-5: #ff7272; 
@--error-7: #cc3f3f; 


@scroll-bar:rgb(255, 255, 255);
@scroll-bar-l:rgb(0,0,0);

.site-calendar-demo-card {
    
    border: 1px solid @pageBorderN;
    border-radius: 2px;
    .calender-point {
        position: absolute;
        background-color: @pageTextN;
        width: 4px;
        height: 4px;
        border: 1px solid @pageTextN;
        border-radius: 100%;
        left: 46%;
        bottom: -1px;
        transform: translate(0, -50%);
    }
}
.ant-picker-calendar {
    background-color: @preview_center_bottom_Bg !important;
    .ant-picker-content {
        color: @pageTextN !important;
    }
    .ant-picker-panel {
        border-top: 1px solid @pageBorderN;
        background-color: @formInputBgN !important;
    }
    .ant-picker-cell {
        color: @pageTextD !important;
    }
    .ant-picker-cell-in-view {
        color: @pageTextN !important;
    }
    .ant-picker-content th {
        color: @pageTextN;
    }
    .ant-select-selector {
        width: 100 / @px-unit !important;
    }
    
    
    
    
    
}


._ChannelGroup_ {
    display: flex;
    .ant-space{
        gap:0 !important;
        .ant-space-item {
            .label-normal-wrapper {
                
                line-height: 0 !important;
            }
        }
    }
    .checkbox {
        display: inline-block;
    }
    .label {
        display: inline-block;
        height: 40/@px-unit;
        line-height: 40/@px-unit;
    }
    .btn-link{
        padding-top: 10/@px-unit;
    }
    .chn_btn {
        color: @buttonNormalTextN;
        background-color: transparent;
        width: 35/@px-unit;
        height: 25/@px-unit;
        padding: 0;
        margin: 5/@px-unit;
        text-align: center;

        &.selected {
            color: @buttonNormalTextA;
            border-color: @formInputBgA;
            &:focus {
                color: @buttonNormalTextA;
                border-color: @formInputBgA;
            }
        }
        &.allbtn {
            width: 40/@px-unit !important;
            font-size: 10/@px-unit;
        }
        &[disabled] {
            opacity: .5;
            background-color: @buttonNormalBgN !important;
            color: @buttonNormalTextN !important;
            border: 1px solid @buttonNormalBorderN !important;

            &:hover,
            &:active,
            &.active{
                opacity: .5;
            }
        
        }
    }
}

._ChannelGroupModal_ {}
.ChannelGroupModal_textlabel{
    user-select: none
}


._ColorCheckGroup_ {
    display: flex;
    flex-direction: row;
    
    .color_checkbox_all_box {
        height: 28px;
        line-height: 28px;
    }
    
    &alarm {
        .ant-checkbox-inner {
            background-color: @alarm !important;
        }
    }
    &general {
        .ant-checkbox-inner {
            background-color: @general !important;
        }
    }
    &detect {
        .ant-checkbox-inner {
            background-color: @detect !important;
        }
    }
    &ivs {
        .ant-checkbox-inner {
            background-color: @ivs !important;
        }
    }
    &pos {
        .ant-checkbox-inner {
            background-color: @pos !important;
        }
    }
    &card {
        .ant-checkbox-inner {
            background-color: @card !important;
        }
    }

    .label-switch-content{
        margin-right: 10 / @px-unit;
        
        .ant-switch {
            .ant-switch-handle::before {
                background: url('/static/media/off.png') 0 / auto 100%;
            }
        }
        .ant-switch-checked  .ant-switch-handle::before {
            background: url('/static/media/on.png') 0 / auto 100%;
        }
        display: flex;
        .label-normal-wrapper {
            width: auto !important;
        }
        .sdd-swtich-contianer {
            margin-right: 8 / @px-unit;
        }
        .alarm {
            .ant-switch-checked {
                background-color: @alarm !important;
            }
        }
        .general {
            .ant-switch-checked {
                background-color: @general !important;
            }
        }
        .detect {
            .ant-switch-checked {
                background-color: @detect !important;
            }
        }
        .ivs {
            .ant-switch-checked {
                background-color: @ivs !important;
            }
        }
        .pos {
            .ant-switch-checked {
                background-color: @pos !important;
            }
        }
        .card {
            .ant-switch-checked {
                background-color: @card !important;
            }
        }
    }
}



._TopTitleDivider_{
    height: 22px;
    line-height: 22px;
    margin: 0 0 8px;
    font-weight: bold;
}
._FirstTitleDivider_{
    height: 22px;
    line-height: 22px;
    margin: 0 0 8px;
    font-weight: bold;
    font-size: 18px;
}
._MidTitleDivider_  {
    height: 22px;
    line-height: 22px;
    margin: 36px 0 8px;
    font-weight: bold;
}
._HighDivider_{
    height: 28px;
    margin: 0 0;
}

.cus_icons {
    .svgFont();
    .svgOut();
    .svgHover();
    &.disabled_icons {
        .svgDisabled();
    }
    &.active_icons {
        .svgOut(@current, @iconLinearStartColorA, @iconLinearStopColorA);
    }

    .colorSvg(action_red, @errorColor);
}


@keyframes arcSlideUpIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.8;
    }
}
.iconDropBtn {
    background-color:@navBg;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: @navMenuLineHeight;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    &:hover{
        color:@navMenuTextA;
    }
    .cus_icons{
        margin: 0 5/@px-unit;
    }
    span{
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
}
.iconDropMenu {
    
    min-width: 200/@px-unit !important;
    border: 1px solid @dropMenuBorder;
    pointer-events:auto !important;
    .cus_icons{
        font-size: 30/@px-unit;
        vertical-align:middle;
        margin-right: 15/@px-unit;
    }
    .ant-dropdown-menu-item{
        padding:5/@px-unit 15/@px-unit;
    }
    .iconDropitem_name {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
}
.iconDropitem {
    display: flex;
    align-items: center;
}
.centerItem{
    justify-content: center;
}



.DefaultImgClass{
    width: 100%;
    height: 100%;
    object-fit: fill;
}


@ipv4InputContainerInputTop:5/@px-unit;
.ipv4-input {
    display: inline-block;
    .ipv4-input-container {
        color: @formInputTextN;
        display: inline-block;
        background-color: transparent;
        border: 1px solid @pageBorderN;
        border-radius: 4/@px-unit;
        padding: 4/@px-unit 0 4/@px-unit 10/@px-unit;
        transition: all 0.3s;
        line-height: 1.5;
        &:hover{
            border-color: @current;
        }
        &:hover.ipv4-input-error{
            border-color: red;
        }
        input {
            background-color: transparent;
            border: none;
            outline: none;
            text-align: center;
            display: inline-block;
            width: calc(25% - @ipv4InputContainerInputTop);
            height: 24px;
        }
        .ipv4-input-dot {
            line-height: 1;
            vertical-align: text-bottom;
        }
        .ipv4-input-item {
            display: inline;
        }
    }
    .ipv4-input-disabled {
        color: @formInputTextD;
        background-color: transparent;
        border-color: @pageBorderN;
        &:hover {
            border-color: @pageBorderN;
        }
    }
    .ipv4-input-error {
        border: 1px solid red;
    }
    .ipv4-input-container-focus{
        border-color: @current;
        outline: none;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2)
    }
    .ipv4-input-container-focus.ipv4-input-error{
        border-color: red;
        outline: none;
        box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2)
    }
}
@labelIPv4Input-label-light-Color: @pageTextN; 
@labelIPv4Input-label-dark-Color: @pageTextN;
.LabelIPv4Input-label-light{
    line-height: 32px;
    color: @labelIPv4Input-label-light-Color;
}

.LabelIPv4Input-label-dark{
    line-height: 32px;
    color: @labelIPv4Input-label-dark-Color;
}
.LabelIPv4Input-label-Col{
    text-align: right;
    padding-right:10px; 
}
.LabelIPv4Input-swtich{
    line-height: 32px;
}


.label-button {
    max-width: 150/@px-unit;
    min-width: 100/@px-unit;
    .ant-btn {
        padding: 4/@px-unit 4/@px-unit;
    }
}
.labelText-wrapper{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.label-date-picker {
    .ant-picker {
        width: 100%;
    }
}

.date-range-picker {
    .validity-picker {
        width: 350 / @px-unit;
    }
}



.autoComplete {
    .ant-select-selector {
        &:hover {
            border-color: @current !important;
        }
    }
}

.autoComplete-error {
    .ant-select-selector {
        border: 1px solid @errorColor;
    }
}

.error-text {
    color: @errorColor;
}


.pageLine {
    display: flex;
    float: left;
    margin-top: 10 / @px-unit;
    width: 100%;
    min-width: 600 / @px-unit;
    justify-content: space-between;
    align-items: center;
    
    .pageLineLeft {
        .ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link,
        .ant-pagination-simple .ant-pagination-next .ant-pagination-item-link{
            height: 100%;
        }
        button,
        & span.anticon {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .ant-btn-default{
            width: 46 / @px-unit;
            height: 32 / @px-unit;
        }
        display: flex;
        .ant-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            .ant-pagination-prev,
            .ant-pagination-next,
            .ant-pagination-disabled {
                padding: 4 / @px-unit 4 / @px-unit;
                border: 1 / @px-unit solid @buttonNormalBorderD;
                width: 32 / @px-unit;
                height: 32 / @px-unit;
                margin: 0 10 / @px-unit;
            }
            .ant-pagination-disabled {
                border: 1 / @px-unit solid @buttonNormalBorderD;
                background-color: @buttonNormalBgD;
                svg {
                    & + {
                        path:first-child {
                            fill: @buttonNormalBorderD; 
                        }
                    }
                }
            }
        }
        .anticon-left,
        .ant-pagination-simple-pager,
        .anticon-right {
            color: @pageTextA;
        }
        .ant-pagination-simple-pager input {
            background-color: @pageBodyBg;
            border-color: @pageBorderN;
        }
        .ant-pagination-simple-pager {
            height: 32 / @px-unit;
        }
    }
    .pageLineRight {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}



.popover_list {
    display: flex;
    &_item {
        cursor: pointer;
        &:hover {
            color: @preview_center_popover_ColorA;
        }
        &_active {
            color: @preview_center_popover_ColorA;
        }
    }
    &_separator {
        margin: 0 5 / @px-unit;
        color: @preview_center_separator_ColorN;
    }
}
.popover_icon {
    cursor: pointer;
    &:hover {
        .svgHover(@current);
    }
}



.similarity-progress{
    display: flex;
    height: 100%;
    align-items: center;
    .temp-picData-progress{
        height: 18/@px-unit;
        width: 100%;
        padding: 0/@px-unit 15/@px-unit;
        display: flex;
        .temp-progress-bar-swrap{
            width: 67%;
            display: flex;
            align-items: center;
            padding: 0/@px-unit 5/@px-unit 0/@px-unit 0/@px-unit;
            .temp-progress-bar{
                background-color: @progressBg;
                height: 8/@px-unit;
                width: 100%;
                border-radius: 5/@px-unit;
            }
        }

        .temp-progress-similar{
            display: flex;
            align-items: center;
            width: 33%;
        }
    }
    
    .picData-progress {
        
        display: flex;
        width: 100%;
        align-items: center;
        background: @ai_progress_default;
        height: 14/@px-unit;
        position: relative;
        color: @pageTextA;

        .progress-item {
            display: inline-block;
            height: 100%;
        }

        .progress-red {
            background: @ai_progress_red;
        }

        .progress-orange {
            background: @ai_progress_orange;
        }

        .progress-blue {
            background: @ai_progress_blue;
        }

        .progress-label {
            position: absolute;
            right: 0;
            line-height: 14/@px-unit;
            top: 0;
        }
    }
}



.subtitle {
    margin: 0;
    font-weight: bold;
    color: @subtitleColor;
    width: 100%;
}
tr.drop-over-downward td {
    border-bottom: 2px dashed #1890ff !important;
}
tr.drop-over-upward td {
    border-top: 2px dashed #1890ff !important;
}



.native-tooltip{
    display: inline;
}


.virtual-table {
    .ant-table-header {
        th{
            border-right: 1/@px-unit solid;
        }
    }
    .ant-empty-normal {
        height: 180/@px-unit;
        margin: 0 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .ant-table-tbody { 
        height: 180/@px-unit;
    }
    .ZD-showZebraPattern-even {
        background-color: @tableOddBgN;
    }
    .ZD-showZebraPattern-odd {
        background-color: @tableEvenBgN;
    }
    .ZD-selected-row {
        background-color: @tableBgA;
    }
    .virtual-table-cell {
        display: flex;
        align-items: center;
        justify-content: center;
        color: @tableTextN;
    }
    .center {
        text-align: center;
    }
}




