@import 'mixins/function.scss';
@import 'mixins/element-mixins.scss';
@import 'mixins/mixins.scss';
.el-container,
.el-main {
    height: 100%;
}

.el-header,
.el-main,
.el-aside,
.el-footer {
    padding: 0;
}


/*
*** button   按钮
*/

.el-button {
    min-height: 30px;
    padding: 7px 12px;
}

.el-button.is-disabled.ly-btn-disabled,
.el-button.is-disabled.ly-btn-disabled:active,
.el-button.is-disabled.ly-btn-disabled:hover {
    color: var(--color-whites);
    background: #ADB7C1;
    border-color: #ADB7C1;
}

.el-button.el-button--text.is-disabled,
.el-button.el-button--text.is-disabled:active,
.el-button.el-button--text.is-disabled:hover {
    color: var(--el-button-disabled-font-color);
}

// text
.el-button--text {
    color: set-color(primary);
    &:focus,
    &:hover {
        color: set-color(primary-light-3);
    }
}

.el-button--text:active {
    color: set-color(primary-light-3);
}

// default
.el-button--default:focus {
    color: #606266;
    background: var(--color-whites);
    border-color: #dcdfe6;
}

.el-button--default.is-plain:focus {
    @include Button(primary, whites, primary-light-1);
}

.el-button--default:active {
    @include Button(#606266, whites, #dcdfe6);
}

// default
.el-button--default:hover {
    @include Button(primary, primary-light-8, primary-light-6);
}

.el-button--default.is-plain:hover {
    @include Button(primary, whites, primary-light-1);
}

.el-button--default:active {
    @include Button(primary, whites, primary-light-1);
}

// primary
.el-button--primary {
    @include Button(whites, primary, primary);
    &:focus {
        @include Button(whites, primary, primary);
    }
    &:hover {
        @include Button(whites, primary-light-3, primary-light-3);
    }
}

.el-button--primary.is-plain {
    @include Button(primary, primary-light-8, primary-light-6);
    &:focus {
        @include Button(primary, primary-light-8, primary-light-6);
    }
    &:hover {
        @include Button(whites, primary, primary);
    }
}

.el-button--primary.is-active,
.el-button--primary:active {
    @include Button(whites, primary, primary);
}

// success
.el-button--success {
    @include Button(whites, success, success);
    &:focus {
        @include Button(whites, success, success);
    }
    &:hover {
        @include Button(whites, success-light-3, success-light-3);
    }
}

.el-button--success.is-plain {
    @include Button(success, success-light-8, success-light-6);
    &:focus {
        @include Button(success, success-light-8, success-light-6);
    }
    &:hover {
        @include Button(whites, success, success);
    }
}

.el-button--success.is-active,
.el-button--success:active {
    @include Button(whites, success, success);
}

// info
.el-button--info {
    @include Button(whites, info, info);
    &:focus {
        @include Button(whites, info, info);
    }
    &:hover {
        @include Button(whites, info-light-3, info-light-3);
    }
}

.el-button--info.is-plain {
    @include Button(info, info-light-8, info-light-6);
    &:focus {
        @include Button(info, info-light-8, info-light-6);
    }
    &:hover {
        @include Button(whites, info, info);
    }
}

.el-button--info.is-active,
.el-button--info:active {
    @include Button(whites, info, info);
}

// warning
.el-button--warning {
    @include Button(whites, warning, warning);
    &:focus {
        @include Button(whites, warning, warning);
    }
    &:hover {
        @include Button(whites, warning-light-3, warning-light-3);
    }
}

.el-button--warning.is-plain {
    @include Button(warning, warning-light-8, warning-light-6);
    &:focus {
        @include Button(warning, warning-light-8, warning-light-6);
    }
    &:hover {
        @include Button(whites, warning, warning);
    }
}

.el-button--warning.is-active,
.el-button--warning:active {
    @include Button(whites, warning, warning);
}

// danger
.el-button--danger {
    @include Button(whites, danger, danger);
    &:focus {
        @include Button(whites, danger, danger);
    }
    &:hover {
        @include Button(whites, danger-light-3, danger-light-3);
    }
}

.el-button--danger.is-plain {
    @include Button(danger, danger-light-8, danger-light-6);
    &:focus {
        @include Button(danger, danger-light-8, danger-light-6);
    }
    &:hover {
        @include Button(whites, danger, danger);
    }
}

.el-button--danger.is-active,
.el-button--danger:active {
    @include Button(whites, danger, danger);
}

// 第三方字体图标大小
.el-button i.iconfont,
.el-button i.fa {
    font-size: 14px !important;
    margin-right: 5px;
}

.el-button--medium i.iconfont,
.el-button--medium i.fa {
    font-size: 14px !important;
    margin-right: 5px;
}

.el-button--small i.iconfont,
.el-button--small i.fa {
    font-size: 12px !important;
    margin-right: 5px;
}

.el-button--mini i.iconfont,
.el-button--mini i.fa {
    font-size: 12px !important;
    margin-right: 5px;
}


/* Link 文字链接
------------------------------- */

// default
.el-link.el-link--default:hover {
    color: set-color(primary-light-3);
}

// primary
.el-link.el-link--primary {
    color: set-color(primary);
    &:hover {
        color: set-color(primary-light-3);
    }
}

.el-link.el-link--default::after,
.el-link.is-underline:hover::after,
.el-link.el-link--primary.is-underline:hover::after,
.el-link.el-link--primary::after {
    border-color: set-color(primary);
}

// success
.el-link.el-link--success {
    color: set-color(success);
    &:hover {
        color: set-color(success-light-3);
    }
}

.el-link.el-link--success.is-underline:hover::after,
.el-link.el-link--success::after {
    border-color: set-color(success);
}

// info
.el-link.el-link--info {
    color: set-color(info);
    &:hover {
        color: set-color(info-light-3);
    }
}

.el-link.el-link--info.is-underline:hover::after,
.el-link.el-link--info::after {
    border-color: set-color(info);
}

// warning
.el-link.el-link--warning {
    color: set-color(warning);
    &:hover {
        color: set-color(warning-light-3);
    }
}

.el-link.el-link--warning.is-underline:hover::after,
.el-link.el-link--warning::after {
    border-color: set-color(warning);
}

// danger
.el-link.el-link--danger {
    color: set-color(danger);
    &:hover {
        color: set-color(danger-light-3);
    }
}

.el-link.el-link--danger.is-underline:hover::after,
.el-link.el-link--danger::after {
    border-color: set-color(danger);
}


/* Radio 单选框
------------------------------- */

.el-radio__input.is-checked+.el-radio__label,
.el-radio-button__inner:hover {
    color: set-color(primary);
}

.el-radio__input.is-checked .el-radio__inner {
    @include RadioCheckbox(primary);
}

.el-radio-button__orig-radio:checked+.el-radio-button__inner {
    color: set-color(whites);
    @include RadioCheckbox(primary);
    box-shadow: -1px 0 0 0 set-color(primary);
}

.el-radio.is-bordered.is-checked,
.el-radio__inner:hover {
    border-color: set-color(primary);
}

.el-radio {
    margin-right: 20px;
    .el-radio__label {
        padding-left: 5px;
    }
}


/* Checkbox 多选框
------------------------------- */

.el-checkbox__input.is-checked+.el-checkbox__label,
.el-checkbox-button__inner:hover {
    color: set-color(primary);
}

.el-checkbox__input.is-checked .el-checkbox__inner {
    @include RadioCheckbox(primary);
}

.el-checkbox__input.is-focus .el-checkbox__inner,
.el-checkbox__inner:hover,
.el-checkbox.is-bordered.is-checked,
.el-checkbox-button.is-focus .el-checkbox-button__inner {
    border-color: set-color(primary);
}

.el-checkbox-button.is-checked .el-checkbox-button__inner {
    color: set-color(whites);
    @include RadioCheckbox(primary);
    box-shadow: -1px 0 0 0 set-color(primary);
}

.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner {
    border-left-color: set-color(primary);
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: set-color(primary);
    border-color: set-color(primary);
}


/* Input 输入框、InputNumber 计数器
------------------------------- */

.el-input__prefix {
    .el-icon-date {
        color: rgb(5, 69, 133);
    }
    .icon-font-time {
        color: rgb(5, 69, 133);
    }
    .el-icon-time {
        color: rgb(5, 69, 133);
    }
}

.el-input__suffix {
    color: rgb(5, 69, 133);
    .el-select__caret {
        color: rgb(5, 69, 133) !important;
    }
}

.el-input__inner {
    color: #333333;
    padding: 0 8px;
}

.el-input__inner:focus,
.el-input-number__decrease:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled),
.el-input-number__increase:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled),
.el-textarea__inner:focus {
    border-color: set-color(primary);
}

.el-input {
    &.is-disabled {
        .el-input__inner {
            color: #333333;
        }
    }
    .el-input-group__append {
        height: 28px;
        line-height: 28px;
    }
}

.el-textarea {
    &.is-disabled {
        .el-textarea__inner {
            color: #333333;
        }
    }
    .el-textarea__inner {
        padding: 5px 8px;
    }
}

.el-input-number__increase:hover,
.el-input-number__decrease:hover {
    color: set-color(primary);
}

// 菜单搜索
.el-autocomplete-suggestion__wrap {
    max-height: 280px !important;
}


/* Select 选择器
------------------------------- */

.el-range-editor.is-active,
.el-range-editor.is-active:hover,
.el-select .el-input.is-focus .el-input__inner,
.el-select .el-input__inner:focus {
    border-color: set-color(primary);
}

.el-select-dropdown__item.selected {
    color: set-color(primary);
}


/* Cascader 级联选择器
------------------------------- */

.el-cascader .el-input .el-input__inner:focus,
.el-cascader .el-input.is-focus .el-input__inner {
    border-color: set-color(primary);
}

.el-cascader-node.in-active-path,
.el-cascader-node.is-active,
.el-cascader-node.is-selectable.in-checked-path {
    color: set-color(primary);
}


/* Switch 开关
------------------------------- */

.el-switch.is-checked .el-switch__core {
    border-color: set-color(primary);
    background-color: set-color(primary);
}

.el-switch__label.is-active {
    color: set-color(primary);
}


/* Slider 滑块
------------------------------- */

.el-slider__bar {
    background-color: set-color(primary);
}

.el-slider__button {
    border-color: set-color(primary);
}


/* TimePicker 时间选择器
------------------------------- */

.el-time-panel__btn.confirm,
.el-time-spinner__arrow:hover {
    color: set-color(primary);
}


/* DatePicker 日期选择器
------------------------------- */

.el-date-table td.today span,
.el-date-table td.available:hover,
.el-date-picker__header-label.active,
.el-date-picker__header-label:hover,
.el-picker-panel__icon-btn:hover,
.el-year-table td.today .cell,
.el-year-table td .cell:hover,
.el-year-table td.current:not(.disabled) .cell,
.el-month-table td .cell:hover,
.el-month-table td.today .cell,
.el-month-table td.current:not(.disabled) .cell,
.el-picker-panel__shortcut:hover {
    color: set-color(primary);
}

.el-date-picker__header {
    button {
        font-size: 14px;
    }
    .el-icon-d-arrow-left {
        padding-right: 20px;
    }
    .el-icon-d-arrow-right {
        padding-left: 10px;
    }
}

.el-date-table td.current:not(.disabled) span,
.el-date-table td.selected span {
    color: set-color(whites);
    background-color: set-color(primary);
}

.el-date-table td.end-date span,
.el-date-table td.start-date span {
    background-color: set-color(primary);
}

.el-date-table td.in-range div,
.el-date-table td.in-range div:hover,
.el-date-table.is-week-mode .el-date-table__row.current div,
.el-date-table.is-week-mode .el-date-table__row:hover div,
.el-date-table td.selected div {
    background-color: set-color(primary-light-9);
}


/* Upload 上传
------------------------------- */

.el-upload-list__item.is-success .el-upload-list__item-name:focus,
.el-upload-list__item.is-success .el-upload-list__item-name:hover,
.el-upload-list__item .el-icon-close-tip,
.el-upload-dragger .el-upload__text em {
    color: set-color(primary);
}

.el-upload--picture-card:hover,
.el-upload:focus {
    color: set-color(primary);
    border-color: set-color(primary);
}

.el-upload-dragger:hover,
.el-upload:focus .el-upload-dragger {
    border-color: set-color(primary);
}


/* Transfer 穿梭框
------------------------------- */

.el-transfer-panel__item:hover {
    color: set-color(primary);
}


/*
*** form   表单
*/

.el-form {
    // display: flex;
    // flex-wrap: wrap;
    .el-form-item {
        margin-bottom: 12px;
        &:last-of-type {
            margin-bottom: 0 !important; //// ???
        }
        &.is-error .el-input__inner {
            border-color: #ff4949 !important;
        }
        $height: 30px;
        $height2: 28px;
        $color: #333;
        .el-form-item__label {
            position: relative;
            color: $color;
            // height: $height;
            line-height: $height;
            padding: 0 6px 0 6px;
        }
        .el-form-item__content {
            // height: $height;
            line-height: $height;
            .el-input {
                line-height: $height;
            }
            .el-input__inner {
                height: $height;
                line-height: $height2;
            }
            .el-input__suffix {
                overflow: hidden; //必须加 在el-form-item设置为0时，select展开时图标旋转会有一部分溢出
            }
            .el-input__icon {
                line-height: $height;
            }
            .el-checkbox-group,
            .el-checkbox-group {
                height: $height;
            }
            .el-checkbox,
            .el-radio {
                height: $height;
                color: $color;
            }
            .el-checkbox-button__inner,
            .el-radio-button__inner {
                padding: 7px 15px;
            }
            .el-date-editor {
                .el-range-separator {
                    line-height: 1.5;
                }
            }
            .el-input-number.is-controls-right {
                .el-input__inner {
                    text-align: left;
                }
                .el-input-number__decrease,
                .el-input-number__increase {
                    line-height: 14px;
                }
            }
            // 去掉表单底部的红色提示
            .el-form-item__error {
                display: none;
            }
        }
        .el-select {
            .select-trigger {
                .el-input {
                    width: 100%;
                }
            }
        }
        &---mini {
            .el-input {
                width: 88px;
            }
        }
        &---medium {
            .el-input {
                width: 120px;
            }
        }
        &---large {
            .el-input {
                width: 405px;
            }
        }
    }
    // 移除表单默认的必填星号*
    // .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before,
    // .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label-wrap>.el-form-item__label:before,
    .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label:before {
        display: none;
    }
    // 自定义必填星号* 星号在label span:after
    .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label {
        span {
            position: relative;
        }
        span::after {
            content: "*";
            position: absolute;
            left: -9px;
            top: -10px;
            color: #DE1929;
            margin: 0;
        }
    }
    // 自定义class 表单label文字两段对齐位置 星号在label:after 框架提供labelPosition：top/left/right 本系统扩展justify
    // 自定义class 表单部分label文字两段对齐位置
    &.el-form--label-justify .el-form-item,
    .el-form-item.el-form-item---label-justify {
        .el-form-item__label span {
            display: block;
            text-align-last: justify;
            &::after {
                display: none
            }
        }
        // 自定义必填星号*（表单label文字两段对齐位置）
        &.is-required:not(.is-no-asterisk) .el-form-item__label:after {
            content: "*";
            position: absolute;
            left: -1px;
            top: -3px;
            color: #DE1929;
            margin: 0;
        }
    }
}


/*
*** table   表格
*/

.el-table .descending .sort-caret.descending {
    border-top-color: set-color(primary);
}

.el-table .ascending .sort-caret.ascending {
    border-bottom-color: set-color(primary);
}

.el-table {
    tr {
        background: #FFFFFF; // 行默认颜色  yy
        &.tb-row-parent {
            //树父级
            background: #fff;
            .el-table__indent {}
        }
        &.tb-row-child {
            //树子级
            background: #eee;
        }
        th.el-table__cell {
            word-break: break-word;
            padding: 8px 0;
            font-weight: normal;
            background-color: rgba(239, 243, 247, 0.8); //.el-table__fixed-right-patch同样 yy
            .cell {
                padding: 0 8px;
                color: #000;
                line-height: 22px;
                .caret-wrapper {
                    height: 12px;
                    i {
                        transform: scale(0.8);
                    }
                }
            }
            &.is-leaf {
                border-bottom: 1px solid #d0dbec; //表格头下边距颜色 yy
            }
        }
        td.el-table__cell {
            border-bottom-color: #E0EBF1;
            padding: 5px 0;
            .cell {
                color: #333333;
                padding: 0 8px;
                height: 28px; //防止浏览器放大造成行抖动 故固定height
                line-height: 28px;
                .el-checkbox {
                    height: unset;
                }
            }
        }
        td.el-table-column___rownumbers {
            .cell {
                padding: 0 2px!important;
            }
        }
    }
    .el-table__body tr.hover-row>td {
        //表格移入
        background: rgba(255, 236, 168, 0.6)!important;
    }
    .el-table__body tr.current-row>td {
        // 当前选中行
        background: rgba(255, 236, 168)!important;
    }
    .el-table__header-wrapper {
        // padding-bottom: 4px;
        box-sizing: border-box;
        // table {
        //     box-shadow: 0 2px 3px rgb(51 102 136 / 16%);
        // }
    }
    &.el-table--border {
        th {
            border-right-color: #E0EBF1;
        }
        td {
            border-right-color: #E0EBF1;
        }
    }
    &.el-table--striped {
        // 间隔行
        tr {
            // background: transparent;
        }
        .el-table__body tr.el-table__row--striped td.el-table__cell {
            background: rgba(51, 124, 163, 0.03);
        }
    }
    // &.el-table--medium {
    //     th {
    //         height: 36px !important;
    //         padding: 0;
    //         .cell {
    //             padding-left: 20px;
    //             font-size: 14px;
    //         }
    //     }
    //     td {
    //         .cell {
    //             padding-left: 20px;
    //             font-size: 14px;
    //         }
    //     }
    // }
    .el-table__fixed-right-patch {
        background-color: rgba(239, 243, 247, 0.8); //表格头滚动条占位格子 ---
    }
    //表格无数据提示
    .empty-tip {
        width: 100%;
        height: 100%;
        line-height: 1;
        img {
            width: auto;
            height: 180px;
            padding: 10px;
        }
        p {
            padding-top: 10px;
            height: 16px;
            color: #666666;
            font-size: 16px;
            line-height: 16px;
        }
    }
    // .el-table .fixed-width .el-button--mini {
    //     padding-left: 0;
    //     padding-right: 0;
    //     width: inherit;
    // }
    .el-button {
        min-height: 28px;
        padding: 6px 12px;
    }
    // 文字超出，多行显示
    &.ly-table-overflow {
        tr {
            td.el-table__cell {
                .cell {
                    //不考虑浏览器放大造成行抖动 恢复height自动
                    height: auto;
                    line-height: 28px;
                }
            }
        }
    }
}


/* Tag 标签
------------------------------- */

// primary
.el-tag {
    @include Tag(primary, primary-light-8, primary-light-6);
}

.el-tag .el-tag__close {
    color: set-color(primary);
    &:hover {
        @include TagDark(whites, primary);
    }
}

.el-tag--dark {
    @include TagDark(whites, primary);
}

.el-tag--dark .el-tag__close {
    color: set-color(whites);
    &:hover {
        background-color: set-color(primary-light-3);
    }
}

.el-tag--plain {
    @include Tag(primary, whites, primary-light-3);
}

// success
.el-tag.el-tag--success {
    @include Tag(success, success-light-8, success-light-6);
}

.el-tag.el-tag--success .el-tag__close {
    color: set-color(success);
    &:hover {
        @include TagDark(whites, success);
    }
}

.el-tag--dark.el-tag--success {
    @include TagDark(whites, success);
}

.el-tag--dark.el-tag--success .el-tag__close {
    color: set-color(whites);
    &:hover {
        background-color: set-color(success-light-3);
    }
}

.el-tag--plain.el-tag--success {
    @include Tag(success, whites, success-light-3);
}

// info
.el-tag.el-tag--info {
    @include Tag(info, info-light-8, info-light-6);
}

.el-tag.el-tag--info .el-tag__close {
    color: set-color(info);
    &:hover {
        @include TagDark(whites, info);
    }
}

.el-tag--dark.el-tag--info {
    @include TagDark(whites, info);
}

.el-tag--dark.el-tag--info .el-tag__close {
    color: set-color(whites);
    &:hover {
        background-color: set-color(info-light-3);
    }
}

.el-tag--plain.el-tag--info {
    @include Tag(info, whites, info-light-3);
}

// warning
.el-tag.el-tag--warning {
    @include Tag(warning, warning-light-8, warning-light-6);
}

.el-tag.el-tag--warning .el-tag__close {
    color: set-color(warning);
    &:hover {
        @include TagDark(whites, warning);
    }
}

.el-tag--dark.el-tag--warning {
    @include TagDark(whites, warning);
}

.el-tag--dark.el-tag--warning .el-tag__close {
    color: set-color(whites);
    &:hover {
        background-color: set-color(warning-light-3);
    }
}

.el-tag--plain.el-tag--warning {
    @include Tag(warning, whites, warning-light-3);
}

// danger
.el-tag.el-tag--danger {
    @include Tag(danger, danger-light-8, danger-light-6);
}

.el-tag.el-tag--danger .el-tag__close {
    color: set-color(danger);
    &:hover {
        @include TagDark(whites, danger);
    }
}

.el-tag--dark.el-tag--danger {
    @include TagDark(whites, danger);
}

.el-tag--dark.el-tag--danger .el-tag__close {
    color: set-color(whites);
    &:hover {
        background-color: set-color(danger-light-3);
    }
}

.el-tag--plain.el-tag--danger {
    @include Tag(danger, whites, danger-light-3);
}


/* Progress 进度条
------------------------------- */

// primary
.el-progress-bar__inner {
    background-color: set-color(primary) !important;
}

// success
.el-progress.is-success .el-progress-bar__inner {
    background-color: set-color(success) !important;
}

.el-progress.is-success .el-progress__text {
    color: set-color(success) !important;
}

// warning
.el-progress.is-warning .el-progress-bar__inner {
    background-color: set-color(warning) !important;
}

.el-progress.is-warning .el-progress__text {
    color: set-color(warning) !important;
}

// danger
.el-badge__content,
.el-progress.is-exception .el-progress-bar__inner {
    background-color: set-color(danger) !important;
}

.el-progress.is-exception .el-progress__text {
    color: set-color(danger) !important;
}


/*
*** pagination   分页
*** 注：属性需设background
*/

.el-pager li.active,
.el-pager li:hover,
.el-pagination button:hover,
.el-pagination.is-background .el-pager li:not(.disabled):hover {
    color: set-color(primary);
}

.el-pagination__sizes .el-input .el-input__inner:hover {
    border-color: set-color(primary);
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: set-color(primary);
    color: set-color(whites);
}

.el-pagination.is-background {
    text-align: right;
    height: 50px;
    padding: 10px 0 0 0;
    $borderColor: #83898d;
    $bgColor: rgba(27, 108, 189, 0.80);
    li {
        &:not(.disabled) {
            border-color: $borderColor;
            &:hover {
                color: $bgColor;
            }
            &.active {
                background-color: $bgColor;
                &:hover {
                    color: #FFFFFF;
                }
            }
        }
    }
    button {
        &.btn-prev,
        &.btn-next {
            border-color: $borderColor;
        }
    }
}


/* Badge 标记
------------------------------- */

// primary
.el-badge__content--primary {
    background-color: set-color(primary);
}

// success
.el-badge__content--success {
    background-color: set-color(success);
}

// warning
.el-badge__content--warning {
    background-color: set-color(warning);
}

// danger
.el-badge__content--danger {
    background-color: set-color(danger);
}

// info
.el-badge__content--info {
    background-color: set-color(info);
}


/* Result 结果
------------------------------- */

// success
.el-result .icon-success {
    fill: set-color(success);
}

// warning
.el-result .icon-warning {
    fill: set-color(warning);
}

// error
.el-result .icon-error {
    fill: set-color(danger);
}

// info
.el-result .icon-info {
    fill: set-color(info);
}


/* Alert 警告
------------------------------- */

// success
.el-alert--success.is-light {
    @include Alert(success, success-light-9, success-light-7);
}

.el-alert--success.is-dark {
    @include Alert(whites, success, success-light-7);
}

.el-alert--success.is-light .el-alert__description {
    color: set-color(success);
}

// warning
.el-alert--warning.is-light {
    @include Alert(warning, warning-light-9, warning-light-7);
}

.el-alert--warning.is-dark {
    @include Alert(whites, warning, warning-light-7);
}

.el-alert--warning.is-light .el-alert__description {
    color: set-color(warning);
}

// info
.el-alert--info.is-light {
    @include Alert(info, info-light-9, info-light-7);
}

.el-alert--info.is-dark {
    @include Alert(whites, info, info-light-7);
}

.el-alert--info.is-light .el-alert__description {
    color: set-color(info);
}

// error
.el-alert--error.is-light {
    @include Alert(danger, danger-light-9, danger-light-7);
}

.el-alert--error.is-dark {
    @include Alert(whites, danger, danger-light-7);
}

.el-alert--error.is-light .el-alert__description {
    color: set-color(danger);
}

.el-alert__title {
    word-break: break-all;
}


/* Loading 加载
------------------------------- */

.el-loading-spinner .path {
    stroke: set-color(primary);
}

.el-loading-spinner .el-loading-text,
.el-loading-spinner i {
    color: set-color(primary);
}


/* 
*** message  
*** 消息提示
*/

// default/info
.el-message {
    background-color: set-color(info-light-9);
    border-color: set-color(info-light-8);
    // min-width: unset !important;
    padding: 15px !important;
}

.el-message .el-message__content,
.el-message .el-icon-info {
    color: set-color(info);
}

// success
.el-message--success {
    background-color: set-color(success-light-9);
    border-color: set-color(success-light-8);
}

.el-message--success .el-message__content,
.el-message .el-icon-success {
    color: set-color(success);
}

// warning
.el-message--warning {
    background-color: set-color(warning-light-9);
    border-color: set-color(warning-light-8);
}

.el-message--warning .el-message__content,
.el-message .el-icon-warning {
    color: set-color(warning);
}

// error
.el-message--error {
    background-color: set-color(danger-light-9);
    border-color: set-color(danger-light-8);
}

.el-message--error .el-message__content,
.el-message .el-icon-error {
    color: set-color(danger);
}

.el-message {
    min-width: 240px;
    height: 40px;
    .el-message__icon {
        font-size: 16px;
    }
    .el-message__content {
        font-size: 14px;
    }
    .el-icon-close {
        font-size: 12px;
    }
    &.el-message--success {
        border-color: rgba(38, 154, 153, 1);
        background: #eaf8f8;
        .el-message__icon {
            color: rgba(38, 154, 153, 1);
        }
        .el-message__content {
            color: rgba(0, 0, 0, 0.65);
        }
    }
    &.el-message--warning {
        border-color: rgba(255, 214, 60, 1);
        background: #fffbf0;
        .el-message__icon {
            color: rgba(255, 214, 60, 1);
        }
        .el-message__content {
            color: rgba(0, 0, 0, 0.65);
        }
    }
    &.el-message--error {
        border-color: rgba(232, 105, 77, 1);
        background: #fff1f0;
        .el-message__icon {
            color: rgba(232, 105, 77, 1);
        }
        .el-message__content {
            color: rgba(0, 0, 0, 0.65);
        }
    }
}


/*
*** MessageBox
*** 弹框
*** 注：增加window-alert
*/

.el-message-box__headerbtn:focus .el-message-box__close,
.el-message-box__headerbtn:hover .el-message-box__close {
    color: set-color(primary);
}

// success
.el-message-box__status.el-icon-success {
    color: set-color(success);
}

// info
.el-message-box__status.el-icon-info {
    color: set-color(info);
}

// warning
.el-message-box__status.el-icon-warning {
    color: set-color(warning);
}

// error
.el-message-box__status.el-icon-error {
    color: set-color(danger);
}

.el-message-box.window-alert {
    width: 424px;
    background: #FFFFFF;
    box-shadow: 0px 12px 48px 16px rgb(0 0 0 / 3%), 0px 9px 28px 0px rgb(0 0 0 / 5%), 0px 6px 16px -8px rgb(0 0 0 / 8%);
    padding: 30px 30px 20px;
    .el-message-box__header {
        padding: 0 0 0 36px;
        .el-message-box__title {
            height: 26px;
            font-size: 16px;
            font-weight: bold;
            color: rgba(0, 0, 0, 0.85);
            color: #333;
            line-height: 26px;
        }
    }
    .el-message-box__content {
        padding: 10px 0;
        .el-message-box__status {
            top: -24px;
            font-size: 26px!important;
        }
        .el-message-box__status+.el-message-box__message {
            padding: 0 0 0 36px;
            p {
                min-height: 60px;
                max-height: 250px;
                font-size: 14px;
                color: rgba(0, 0, 0, 0.75);
                color: rgba(0, 0, 0, 0.8);
                line-height: 24px;
                word-break: break-all;
                overflow-y: auto;
            }
        }
    }
    .el-message-box__btns {
        .el-button--default {
            //使用.el-button--info样式 
            @include Button(whites, info, info);
            &:focus {
                @include Button(whites, info, info);
            }
            &:hover {
                @include Button(whites, info-light-3, info-light-3);
            }
            &:before {
                margin-right: 5px;
            }
        }
        .el-button--primary {
            //使用.el-button--primary样式 
            @include Button(whites, primary, primary);
            &:focus {
                @include Button(whites, primary, primary);
            }
            &:hover {
                @include Button(whites, primary-light-3, primary-light-3);
            }
        }
        // .el-button {
        //     min-width: 64px;
        //     height: 32px;
        //     color: #fff;
        //     background: rgba(102, 153, 187, 1);
        //     border-radius: 4px;
        //     padding: 0;
        //     letter-spacing: 4px;
        //     text-indent: 4px;
        //     font-size: 14px;
        //     &:hover {
        //         background: rgba(102, 153, 187, 0.8);
        //     }
        //     &.el-button--primary {
        //         background: rgba(51, 102, 136, 1);
        //     }
        //     &.el-button--primary:hover {
        //         background: rgba(51, 102, 136, 0.8);
        //     }
        // }
    }
}


/* Notification 通知
------------------------------- */

// success
.el-notification .el-icon-success {
    color: set-color(success);
}

// info
.el-notification .el-icon-info {
    color: set-color(info);
}

// warning
.el-notification .el-icon-warning {
    color: set-color(warning);
}

// error
.el-notification .el-icon-error {
    color: set-color(danger);
}


/* NavMenu 导航菜单
------------------------------- */


/* Tabs 标签页
------------------------------- */

.el-tabs__item.is-active,
.el-tabs__item:hover,
.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active,
.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover {
    color: set-color(primary);
}

.el-tabs__active-bar {
    background-color: set-color(primary);
}

.el-tabs__nav-wrap::after {
    height: 1px !important;
}

.el-tabs {
    height: 100%;
    border: 1px solid #d0dbec;
    .el-tabs__header {
        margin-bottom: 0;
        .el-tabs__nav-wrap {
            .el-tabs__nav-scroll {
                padding: 0 10px;
                $color: #1b6cbd;
                .el-tabs__nav {
                    .el-tabs__active-bar {
                        background-color: $color;
                    }
                    .el-tabs__item {
                        font-size: 14px;
                        line-height: 30px;
                        height: 30px;
                        color: #7E7E7E;
                        &:hover {
                            opacity: 0.85;
                        }
                        &.is-active {
                            color: $color;
                            &:hover {
                                opacity: 1;
                            }
                        }
                    }
                }
            }
        }
    }
    .el-tabs__content {
        height: calc(100% - 30px);
        background-color: rgba(238, 241, 245, 0.1);
        .el-tab-pane {
            height: 100%;
        }
    }
    &.ly-tabs-padding {
        .el-tabs__content {
            padding: 10px;
        }
    }
}


/* Breadcrumb 面包屑
------------------------------- */

.el-breadcrumb__inner a:hover,
.el-breadcrumb__inner.is-link:hover {
    color: set-color(primary);
}

.el-breadcrumb__inner a,
.el-breadcrumb__inner.is-link {
    color: var(--bg-topBarColor);
    font-weight: normal;
}


/* Dropdown 下拉菜单
------------------------------- */

.el-dropdown-menu__item:focus,
.el-dropdown-menu__item:not(.is-disabled):hover {
    color: set-color(primary);
    background-color: set-color(primary-light-9);
}

.el-dropdown-menu .el-dropdown-menu__item {
    white-space: nowrap;
}

.el-dropdown {
    .el-dropdown-selfdefine {
        position: relative;
    }
    .el-dropdown-selfdefine:before {
        content: ' ';
        position: absolute;
        top: 25px;
        width: 100%;
        height: 15px;
    }
}


/* Steps 步骤条
------------------------------- */

// default
.el-step__title.is-finish,
.el-step__description.is-finish,
.el-step__head.is-finish {
    color: set-color(primary);
}

.el-step__head.is-finish {
    border-color: set-color(primary);
}

// success
.el-step__title.is-success,
.el-step__head.is-success {
    color: set-color(success);
}

.el-step__head.is-success {
    border-color: set-color(success);
}

// error
.el-step__title.is-error,
.el-step__head.is-error {
    color: set-color(danger);
}

.el-step__head.is-error {
    border-color: set-color(danger);
}

.el-step__icon-inner {
    font-size: 30px !important;
    font-weight: 400 !important;
}

.el-step__title {
    font-size: 14px;
}


/* Dialog 对话框
------------------------------- */

.el-dialog__headerbtn:focus .el-dialog__close,
.el-dialog__headerbtn:hover .el-dialog__close {
    color: set-color(primary);
}

.el-overlay {
    overflow: hidden;
    .el-overlay-dialog {
        display: flex;
        align-items: center;
        justify-content: center;
        position: unset !important;
        width: 100%;
        height: 100%;
        .el-dialog {
            margin: 0 auto !important;
            position: absolute;
        }
    }
}

.el-dialog {
    border-radius: 6px;
    .el-dialog__header {
        padding: 0 0 0 10px;
        height: 40px;
        line-height: 40px;
        background: #f1f6f8;
        border-radius: 6px 6px 0 0;
        .el-dialog__title {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            letter-spacing: 1px;
        }
        .el-dialog__headerbtn {
            top: 10px;
            right: 10px;
            .el-dialog__close {
                font-size: 16px;
                font-weight: 900;
                color: #333;
            }
        }
    }
    .el-dialog__body {
        padding: 15px 0 10px 0;
        padding: 0 0 10px 0;
        min-height: 50px !important;
        max-height: calc(95vh - 40px - 60px) !important;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .el-dialog__footer {
        min-height: 60px;
    }
}


/* Card 卡片
------------------------------- */

.el-card__header {
    padding: 15px 20px;
}


/* Timeline 时间线
------------------------------- */

// primary
.el-timeline-item__node--primary {
    background-color: set-color(primary);
}

// success
.el-timeline-item__node--success {
    background-color: set-color(success);
}

// warning
.el-timeline-item__node--warning {
    background-color: set-color(warning);
}

// danger
.el-timeline-item__node--danger {
    background-color: set-color(danger);
}

// info
.el-timeline-item__node--info {
    background-color: set-color(info);
}


/* Calendar 日历
------------------------------- */

.el-calendar-table td.is-today {
    color: set-color(primary);
    background-color: set-color(primary-light-9);
}

.el-calendar-table .el-calendar-day:hover,
.el-calendar-table td.is-selected {
    background-color: set-color(primary-light-9);
}


/* Backtop 回到顶部
------------------------------- */

.el-backtop {
    color: set-color(primary);
    &:hover {
        background-color: set-color(primary-light-9);
    }
}


/* scrollbar
------------------------------- */

.el-scrollbar__wrap {
    overflow-x: hidden !important;
    max-height: 100%;
    /*防止页面切换时，滚动条高度不变的问题（滚动条高度非滚动条滚动高度）*/
}

.el-select-dropdown .el-scrollbar__wrap {
    overflow-x: scroll !important;
}

.el-select-dropdown__wrap {
    max-height: 274px !important;
    /*修复Select 选择器高度问题*/
}

.el-cascader-menu__wrap.el-scrollbar__wrap {
    height: 204px !important;
    /*修复Cascader 级联选择器高度问题*/
}


/* Drawer 抽屉
------------------------------- */

.el-drawer {
    --el-drawer-padding-primary: unset !important;
    .el-drawer__header {
        padding: 0 15px !important;
        height: 50px;
        display: flex;
        align-items: center;
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgb(230, 230, 230);
    }
    .el-drawer__body {
        width: 100%;
        height: 100%;
        overflow: auto;
    }
}

.el-drawer-fade-enter-active .el-drawer.rtl {
    animation: rtl-drawer-animation 0.3s ease-in reverse !important;
}

.el-drawer-fade-leave-active .el-drawer.rtl {
    animation: rtl-drawer-animation 0.3s ease !important;
}

.el-drawer-fade-enter-active .el-drawer.ltr {
    animation: ltr-drawer-animation 0.3s ease-in reverse !important;
}

.el-drawer-fade-leave-active .el-drawer.ltr {
    animation: ltr-drawer-animation 0.3s ease !important;
}


/*
***  tooltip 文字提示
*/

.el-popper[role="tooltip"] {
    // padding: 6px 10px;
    // tooltip设置默认位置 防止抖动占位
    position: absolute;
    top: -500px;
    max-width: 40vw;
    //增加样式 表单警告文本样式
    &.is-dark.is-red {
        background: rgba(236, 134, 112, 1);
        .el-popper__arrow {
            &::before {
                background: rgba(236, 134, 112, 1);
            }
        }
    }
}

.el-image-viewer__wrapper {
    z-index: 9999 !important;
}