/* 定义中文字符使用的字体 */
@font-face {
    font-family: 'ChineseFont';
    src: local('Microsoft YaHei'); /* 或者指向字体文件的URL */
    unicode-range: U+4E00-9FFF; /* 中文字符范围 */
}

/* 定义英文和数字使用的字体 */
@font-face {
    font-family: 'LatinDigitsFont';
    src: local('DejaVuSansMono'), local('Microsoft YaHei'); /* 英文字体 */
    unicode-range: U+0030-0039, U+0041-005A, U+0061-007A; /* 数字 0-9 和拉丁字母 A-Z a-z */
}

/* 定义空格使用的字体 */
@font-face {
    font-family: 'SpaceFont';
    src: local('Microsoft YaHei'); /* 指向您想要为空格使用的字体 */
    unicode-range: U+0020; /* 空格字符 */
}

body {
    /* 统一字体 */
    font-family: 'ChineseFont','LatinDigitsFont','SpaceFont' !important;
    /* 一般浏览器中都对body标签进行默认的margin设置为8px，当然，不同的浏览器会设置成不同的值 */
    margin: 0;
    padding: 0;
    font-size: 16px;
    overflow: hidden;
    background-color: #efefef; /* 默认背景色 */
    color:#646464; /* 默认字体颜色 */
    /* 触发硬件加速 */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);

    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* 旋转动画class */
.roate_loading{
    animation: animation_loading 3s linear infinite;
    margin: 0px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 旋转动画 */
@keyframes animation_loading {
    from {
        transform: rotateZ(0deg);
    }
    to {
        transform: rotateZ(360deg);
    }
}

/* 可复制项 */
.copy_line:hover{
    color: #6ca493;
    border-bottom: 1px solid #6ca493;
    cursor: pointer;
}

/* 在线颜色 */
.online_device_color {
    color: #6dab6d;
}
/* 离线颜色 */
.offline_device_color {
    color: #907171;
}
/* 警告数据颜色 */
.warning_data_color {
    color: #907171;
}

/* ElementUI弹框全屏宽度 */
.el-overlay{
    width: 100vw;
}
.el-overlay-dialog{
    width: 100vw;
    overflow: hidden !important;
}

/* ElementUI级联选择器 */
/* .custom-cascader{
    border: 1px solid red;
    width: 100%  !important;
} */
/* ElementUI级联选择器-选中单选label的时候勾选前面的单选框 */
.custom-cascader .el-cascader-node .el-radio {
    width: calc(100% - 30px - 20px) !important;
    height: 100% !important;
    z-index: 10 !important;
    position: absolute !important;
}
.custom-cascader .el-cascader-node .el-cascader-node__label {
    margin-left: 1em !important;
}
/* ElementUI级联选择器-选中单选label的时候勾选前面的多选框 */
.custom-cascader .el-cascader-node .el-checkbox {
    width: calc(100% - 30px - 20px) !important;
    height: 100% !important;
    z-index: 10 !important;
    position: absolute !important;
}
.custom-cascader .el-cascader-node .el-cascader-node__label {
    margin-left: 1em !important;
}

/* ElementUI-V2虚拟化选择器 */
.custom_el_select_v2 {
    padding: 0px 10px 0px 10px !important;
}
.custom_el_select_v2 > .el-select-dropdown > .el-vl__wrapper > .el-select-dropdown__list > div > li {
    padding: 0 !important;
    border-bottom: 1px solid #f2f1f183 !important;    
}
.custom_el_select_v2 > .el-select-dropdown > .el-vl__wrapper > .el-virtual-scrollbar {
    right: -7px !important;
}

/* ElementUI-外部框架-菜单栏折叠的Popper */
.menu_popper{
    background-color: #393939;
    border: 1px solid #393939;
    border-radius: 5px;
    overflow: hidden;
}
.menu_popper > .el-menu {
    background-color: #393939;
    color: white;
    padding: 0;
    min-width: 120px;
}
.menu_popper > .el-menu > li{
    --el-menu-hover-bg-color: #7b7b7b;
    color: white;
}
.menu_popper > .el-menu > .is-active{
    font-weight: bold;
    color: #eea027;    
}

/* ElementUI-时间线-UI列表 ->高度设定 不然scroll的父框架滚动不全 */
.el-timeline{
    height: -webkit-fill-available;
    padding-inline-start: 0px !important;
}
/* ElementUI-时间线-UI列表-单项时间点 */
.el-timeline-item__node{
    width: 6px !important;
    height: 6px !important;
    left: 2px !important;
}

/* ElementUI-消息框内容 */
.el-message-box__message{
    width: 100%;
}