@--success-6:#29d67d;
@--success-border:fadeout(@--success-6,35%);
@--success-bg:fadeout(@--success-6,88%);
@--success-5:#4bd690;
@--success-7:#21ab65;

//错误
@--error-6:	#ff4f4f;
@--error-border:fadeout(@--error-6,35%);
@--error-bg:fadeout(@--error-6,88%); //0.12
@--error-5:	#ff7272;
@--error-7:	#cc3f3f;
._PasswordCheck_ {
    // UI组件特有的CSS，
    padding-top: inherit; //为了不eslint告警写一个
}



._SysSet_ {
    // 页面组件特有的CSS，
    // UI组件的样式在UI组件组内内部
    // 不同通用样式存放在 style/common.less中
    padding-top: inherit; //为了不eslint告警写一个
    //`_${_name_}_`
}

.site-calendar-demo-card {
    // width: 290px;
    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;
    }
    // .ant-picker-calendar-date-content {
    //   position: absolute !important;
    //   top: 12px !important;
    //   left: 6px !important;
    // }
}


._ChannelGroup_ {
    display: flex;
    .ant-space{
        gap: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;
    // align-items: center;
    .color_checkbox_all_box {
        height: 28px;
        line-height: 28px;
    }
    // 'normal', 'alarm', 'detect', 'ivs', 'pos', 'card'
    &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;
        }
    }
}



._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 {
    /* -webkit-animation-name: arcSlideUpIn;
    animation-name: arcSlideUpIn; */
    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; //todo 
@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 {
        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 @iconBorderN;
                width: 32 / @px-unit;
                height: 32 / @px-unit;
                margin: 0 10 / @px-unit;
            }
            .ant-pagination-disabled {
                border: 1 / @px-unit solid @buttonNormalBorderD;
                background-color: @buttonNormalBgN;
                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: @pageBodyBg;
                height: 8/@px-unit;
                width: 100%;
                border-radius: 5/@px-unit;
            }
        }

        .temp-progress-similar{
            display: flex;
            align-items: center;
            width: 33%;
        }
    }
    /* 人脸比对那的 */
    .picData-progress {
        // margin: 0 8/@px-unit 7/@px-unit 5/@px-unit;
        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;
}


// 


.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;
    }
}





