//深色主题设置
html.dark {
    --hc-body-bg-color: #030C3B;
    --hc-bg-color: #030C3B;
    --hc-text-color: white;
    --hc-shadow: 4px 4px 8px 0 rgba(0,0,0,0.15), -4px -4px 8px 0 #3d3d3d;
    --el-bg-color-overlay: transparent;
    --hc-border-color: var(--el-color-primary);
    --hc-label-color: white;
    --el-disabled-bg-color: #030C3B;
    html, body, #app {
        background: var(--el-bg-color-overlay);
    }
    .el-popper.is-light {
        background: var(--hc-bg-color);
        .el-popper__arrow::before {
            background: var(--hc-bg-color);
        }
    }
    //加载蒙层
    .el-loading-mask {
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0.5);
        .el-loading-spinner {
            top: 40%;
        }
    }
    //左侧菜单
    .hc-layout-box .hc-aside-box {
        color: var(--el-text-color-primary);
        background: var(--el-bg-color-overlay);
        box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
        &.is-collapse {
            border-radius: 0;
        }
        .hc-aside-logo-box .logo-img-1 {
            &.white {
                display: none;
            }
            &.dark {
                display: block;
            }
        }
        .el-menu.hc-aside-menu {
            .el-sub-menu {
                padding-left: 0 !important;
                .el-sub-menu__title {
                    padding-left: 20px;
                }
            }
            .el-menu-item {
                padding-top: 0 !important;
                &.is-active {
                    color: inherit;
                    background-color: var(--el-color-primary-light-5);
                    .hc-aside-menu-item {
                        background-color: transparent;
                        box-shadow: initial;
                        border-radius: 0;
                        &::before, &::after {
                            display: none;
                        }
                    }
                }
            }
            .el-sub-menu .el-menu-item {
                padding-left: 52px !important;
            }
            &.el-menu--collapse .el-sub-menu .el-sub-menu__title {
                padding-left: 0;
            }
        }
        //菜单
        .el-menu-item, .el-sub-menu__title {
            color: var(--hc-label-color);
        }
        .hc-aside-bar-box:before {
            background-image: linear-gradient(90deg, rgba(102, 102, 102, 0) 11%, #474646 35%, #474646 64%, rgba(102, 102, 102, 0) 86%);
        }
    }
    .aside-menu-popper.el-popper .el-menu--vertical .el-menu {
        background-color: var(--hc-bg-color);
        color: var(--hc-text-color);
    }
    //顶部项目合同下拉框
    .hc-layout-box .hc-container-view .hc-header-view .hc-header-content .hc-header-cascader-box .el-cascader .el-input .el-input__wrapper,
    .header-icon-bar {
        background: transparent;
        border: 1px solid rgb(255, 255, 255, 0.5);
        box-shadow: initial;
        color: var(--hc-text-color);
    }
    .hc-layout-box .hc-container-view .hc-header-view .hc-header-content .hc-header-cascader-box .el-cascader .el-input .el-input__wrapper {
        .el-input__inner, .el-input__suffix {
            color: white;
        }
    }
    .user-info-bar {
        .user-name, .arrow-icon {
            color: white;
        }
    }
    //表格
    .hc-table-ref-box {
        border-color: var(--el-color-primary);
        .el-table[hc] {
            --el-table-text-color: var(--hc-text-color);
            --el-table-border-color: var(--el-color-primary);
            --el-table-header-bg-color: rgba(3, 12, 59, 0.5);
            --el-table-row-hover-bg-color: var(--hc-shadow-color-6);
            --el-table-header-text-color: var(--hc-text-color);
            --el-table-tr-bg-color: transparent;
            --el-fill-color-lighter: transparent;
            --el-table-current-row-bg-color: var(--el-color-primary-light-3);
            --el-table-border: 1px solid var(--el-color-primary-light-3);
            .el-table__body-wrapper tr td.el-table-fixed-column--left,
            .el-table__body-wrapper tr td.el-table-fixed-column--right,
            .el-table__body-wrapper tr th.el-table-fixed-column--left,
            .el-table__body-wrapper tr th.el-table-fixed-column--right,
            .el-table__footer-wrapper tr td.el-table-fixed-column--left,
            .el-table__footer-wrapper tr td.el-table-fixed-column--right,
            .el-table__footer-wrapper tr th.el-table-fixed-column--left,
            .el-table__footer-wrapper tr th.el-table-fixed-column--right,
            .el-table__header-wrapper tr td.el-table-fixed-column--left,
            .el-table__header-wrapper tr td.el-table-fixed-column--right,
            .el-table__header-wrapper tr th.el-table-fixed-column--left,
            .el-table__header-wrapper tr th.el-table-fixed-column--right {
                --el-bg-color: var(--hc-bg-color);
                background: var(--hc-bg-color);
            }
        }
    }
    //复选框
    .el-checkbox {
        --el-border: var(--el-border-width) var(--el-border-style) var(--el-color-primary);
    }
    //分页
    .card-page-box .el-pagination.is-background .btn-next,
    .card-page-box .el-pagination.is-background .btn-prev,
    .card-page-box .el-pagination.is-background .el-pager li {
        border: 1px solid #646363;
    }
    //开关
    .hc-new-switch {
        background: transparent;
        border: 1px solid var(--el-color-primary);
        box-shadow: none;
        .switch-bg.dots {
            box-shadow: none;
        }
    }
    //输入框
    .el-input {
        --el-input-border-color: var(--el-color-primary);
        --el-input-hover-border-color: var(--el-color-primary);
        .el-input-group__append, .el-input-group__prepend {
            background-color: transparent;
            color: white;
            &:hover {
                background-color: var(--el-color-primary-light-3);
            }
        }
    }
    //弹窗
    .el-overlay-dialog .el-dialog {
        --el-dialog-bg-color: var(--hc-bg-color) !important;
        &.hc-modal-border .el-dialog__header {
            border-color: var(--el-color-primary);
        }
        &.hc-modal-border .el-dialog__footer {
            border-color: var(--el-color-primary);
        }
    }
    //气泡
    .el-popover.el-popper.is-dark, .el-popper.is-light {
        color: white;
        background: var(--hc-bg-color);
        border-color: var(--el-color-primary);
        .el-popper__arrow::before {
            background: var(--hc-bg-color);
            border-color: var(--el-color-primary);
        }
    }
    .el-popover__title {
        color: white;
    }
    //右键菜单
    .hc-context-menu-box {
        background-color: var(--hc-bg-color);
        border: 1px solid var(--el-color-primary);
        .hc-context-menu-item {
            color: white;
            &:hover {
                background-color: #031365;
            }
        }
    }
    //按钮
    .el-button[hc-btn].is-disabled:not([class*=el-button--]) {
        box-shadow: none;
        --el-button-disabled-text-color: #bfbfbf;
        --el-button-disabled-bg-color: #646464;
    }
    //树
    .el-tree.hc-tree-node-v2.tree-line .el-tree-node.is-expanded.is-current.is-focusable,
    .hc-tree-node.tree-line .el-tree-node.is-expanded.is-current.is-focusable {
        background: #031365;
    }
    .el-tree.hc-tree-node.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content,
    .el-tree.hc-tree-node-v2.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
        background-color: #0d2cc8;
    }
    .el-tree.hc-tree-node, .el-tree.hc-tree-node-v2 {
        --el-tree-node-hover-bg-color: #0d2cc8;
    }
    //布局
    .hc-layout-left-box {
        box-shadow: none;
        background: transparent;
        border: 1px solid var(--el-color-primary);
        .hc-project-box {
            border-color: var(--el-color-primary);
        }
    }
    //卡片
    .el-card.hc-card-box {
        border: 1px solid var(--el-color-primary);
        .el-card__header {
            color: white;
            border-color: var(--el-color-primary);
        }
        .el-card__body .hc-card-action-box {
            background: transparent;
            border-color: var(--el-color-primary);
        }
    }
    //穿梭框
    .hc-moves-transfer-box .hc-moves-transfer-panel {
        background: transparent;
        border-color: var(--el-color-primary);
        .panel-header {
            background: transparent;
            border-color: var(--el-color-primary);
        }
    }
    //选项卡的卡片
    .hc-sb-table .el-tabs {
        .el-tabs__header .el-tabs__nav .el-tabs__item {
            background-color: #07197c;
            --el-text-color-primary: #d8d8d8;
            &:after {
                background-color: #0d33f8;
            }
        }
        .el-tabs__active-bar {
            background: #030C3B;
            &:after {
                background-color: #030C3B;
            }
            &:before {
                background-color: #030C3B;
            }
        }
        .el-tabs__content {
            background: transparent;
            border-radius: 0;
            height: calc(100vh - 168px);
        }
    }
    .hc-card-table-title {
        color: white;
        background: transparent;
    }
    .hc-card-item-box {
        background: transparent;
    }
    .hc-submit-report-target.el-overlay {
        background-color: #030C3B;
    }
    .hc-table-stats-ref-box .el-table {
        --el-table-bg-color: transparent;
        --el-table-tr-bg-color: transparent;
        --el-table-header-bg-color: transparent;
        --el-table-text-color: white;
        thead, .hc-table-stats-column {
            color: white;
        }
    }
    .hc-layout-left-box .hc-type-choose-action {
        background: transparent;
        border-top: 1px solid var(--el-color-primary);
    }
    .hc-layout-left-box .hc-type-choose-tip {
        border-color: var(--el-color-primary);
    }
    .hc-card-action-diy {
        background: transparent;
    }
    .el-tree.hc-tree-node-v2 .data-custom-tree-node,
    .hc-tree-node .data-custom-tree-node {
        color: white;
    }
    //步骤
    .el-step__icon {
        background: white;
    }
    .el-step__title.is-process {
        color: white;
    }
    .hc-menu-simple-box {
        padding: 0;
        .item-box {
            background: #030C3B;
            border: 1px solid var(--el-color-primary);
            &.active .label-box {
                color: white;
            }
            &:hover .label-box {
                color: white;
            }
        }
    }
    .el-menu.hc-project-menu {
        .el-sub-menu {
            border-color: var(--el-color-primary);
        }
        .el-menu-item, .el-sub-menu__title {
            &:hover {
                background: #0d28b1;
            }
        }
        .el-menu-item.is-active {
            background-color: #033871;
        }
    }
    .hc-page-content-box-list {
        border-color: var(--el-color-primary);
        .hc-page-content-box-list-title {
            color: white;
        }
    }
}
