@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './ruoyi.scss';

body {
    height: 100%;
    width:100%;
    max-width: 3840px;
    margin: 0;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: 'Microsoft YaHei', '微软雅黑',Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.no-padding {
    padding: 0px !important;
}

.padding-content {
    padding: 4px 0;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.block {
    display: block;
}

.pointer {
    cursor: pointer;
}

.inlineBlock {
    display: block;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

aside {
    background: #eef1f6;
    padding: 8px 24px;
    margin-bottom: 20px;
    border-radius: 2px;
    display: block;
    line-height: 32px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', '微软雅黑',-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #2c3e50;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    a {
        color: #337ab7;
        cursor: pointer;

        &:hover {
            color: rgb(32, 160, 255);
        }
    }
}

//main-container全局样式
.components-container {
    margin: 30px 50px;
    position: relative;
}

.text-center {
    text-align: center
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

    .subtitle {
        font-size: 20px;
        color: #fff;
    }

    &.draft {
        background: #d0d0d0;
    }

    &.deleted {
        background: #d0d0d0;
    }
}

.link-type,
.link-type:focus {
    color: #337ab7;
    cursor: pointer;

    &:hover {
        color: rgb(32, 160, 255);
    }
}

.filter-container {
    padding-bottom: 10px;

    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}

.inlineForm .el-form-item {
    margin-right: 20px !important;
    margin-bottom: 12px;
}

.el-form--inline .el-form-item__label {
    padding-right: 8px
}

.operate-area .el-button {
    margin-bottom: 12px;
    height: 32px;
    font-size: 14px;
}

.operate-area .el-row {
    margin-left: 0 !important;
    margin-right: 0 !important
}

.search-area .el-button,
.operate-area .el-button {
    padding: 8px 7px !important;
}

.search-area.el-form .el-form-item__label{
    font-weight:normal;
    color:#333;

}


.top-right-btn .el-button {
    padding: 8px !important;
}

.el-form-item .el-button+.el-button {
    margin-left: 12px !important;
}

//弹框底部button
.el-dialog__footer,
.dialog-footer {
    .el-button {
        width: 66px !important;
    }
}

//上传图片button
.el-upload--picture {
    .el-button {
        width: 66px !important;
    }
}

// 表格状态按钮高度
.cell {
    .el-button.is-link {
        height: 20px
    }

    .el-switch {
        height: auto;

        .el-switch__core {
            height: 18px;
            min-width: 34px;

            .el-switch__action {
                width: 14px;
                height: 14px;
                left: 2px
            }
        }
    }
}

.cell .el-switch.is-checked .el-switch__core .el-switch__action {
    left: calc(100% - 16px) !important;
}

// 滚动条自定义
::-webkit-scrollbar {
    /* 滚动条整体样式 */
    width: 5px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 5px;
}

::-webkit-scrollbar-thumb {
    /* 滚动条里面小方块 */
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background-color: #9e9e9e;
}

::-webkit-scrollbar-track {
    /* 滚动条里面轨道 */
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
    border-radius: 10px;
}

.el-form--inline .el-form-item {
    // margin-bottom: 18px;
}

.el-form--inline .el-input {
    --el-input-width: 100% !important;
}

.statistics {
    // width: 32%;
    float: right;
    text-align: right;
    vertical-align: middle;

    >div {
        // width: 25%;
        display: inline-block;
        margin-top: 6px;
        margin-right: 10px;

        >span:nth-child(2) {
            font-size: 16px;
            font-weight: 700;
        }
    }
}

// 综合云图改版 start
.unitEquipInner {}

.unitEquipInner .el-row {
    margin-top: 2rem;
    height: calc(100% - 4rem);

    // display:flex;
    .connectNumberItem {
        height: 100%;
        display: flex;
        align-items: center;
        font-size: 1.4rem;

        .bigNum {
            font-size: 2.4rem;
            font-weight: bold
        }

        img {
            height: 7.7rem;
        }
    }
}


.timeSelectSec {
    position: absolute;
    right: 0;

    .el-radio-button--small .el-radio-button__inner {
        padding: .7rem 1.1rem;
        font-size: 1.2rem;
    }

    .el-radio-button:first-child .el-radio-button__inner,
    .el-radio-button:last-child .el-radio-button__inner {
        border-radius: 0px;
    }

    .el-radio-button:first-child .el-radio-button__inner {
        border-left: 1px solid#00B7CD;
    }

    .el-radio-button__inner {
        background: transparent;
        color: #fff;
        border: 1px solid #00B7CD
    }

    .el-radio-button__inner:hover {
        color: #00B7CD
    }

    .el-radio-button__original-radio:checked+.el-radio-button__inner {
        background-color: rgba(0, 0, 0, 0);
        border-color: #00B7CD;
        box-shadow: inset 0 0 10px 1px #00B7CD !important;
    }
}

.DeviceSelectSec {
    .el-select {
        width: 12rem;
        margin-bottom: 1rem;
        display: block;
    }

    .el-input .el-input__wrapper {
        border: 1px solid #00B7CD !important;
        height: 2.8rem
    }

    //去除默认样式
    .el-input .el-input__wrapper:hover {
        box-shadow: 0 0 0 0px #00B7CD inset !important;
    }

    .el-input .el-input__wrapper:active {
        box-shadow: 0 0 0 0px #00B7CD inset !important;
    }

    .el-input .el-input__wrapper.is-focus {
        box-shadow: none !important;
    }

    .el-select .el-input.is-focus .el-input__wrapper {
        border-color: none !important;
        box-shadow: none !important;
    }

    .input-search2 {
        .el-input__suffix {}
    }
}

.equipDangerData {
    .equipDangerOne {
        background: linear-gradient(to right, rgba(61, 153, 221, .06), rgba(61, 153, 221, .1), rgba(61, 153, 221, .2));
        margin: 1rem 1rem 0;
        border-radius: 0 0 2rem 0;
        padding: 0px 1rem;
        width: 19rem;
        line-height: 3.9rem;

        span {
            display: inline-block;
        }

        span:first-child {
            width: 10rem;
            font-size: 1.4rem;
        }

        span:last-child {
            margin-left: 1rem;
            font-size: 2rem;
            color: #00B7CD;
            font-weight: bold
        }
    }
}

.newIot2.facilityTypeContainer {
    width: 40rem;
    margin: 0 auto;
    position: fixed;
    bottom: 2rem;
    z-index: 1;
    text-align: center;
    left: calc(50% - 20rem);

    .swiper-container {
        width: 100%;
    }

    .swiper-slide {
        text-align: center;
        margin: 10px 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }




    .swiper-button-next,
    .swiper-rtl .swiper-button-prev {
        right: var(--swiper-navigation-sides-offset, -31px);
        left: auto;

        img {
            width: 5rem
        }
    }

    .swiper-button-prev,
    .swiper-rtl .swiper-button-next {
        left: var(--swiper-navigation-sides-offset, -33px);
        right: auto;

        img {
            width: 5rem
        }
    }

    .swiper-button-next:after,
    .swiper-rtl .swiper-button-prev:after,
    .swiper-button-prev:after,
    .swiper-rtl .swiper-button-next:after {
        content: ''
    }
}

.alarmInfoContent {
    display: flex;

  

    .contentOne:last-child {
        // height:calc(100%/2 - 3.5rem/2);
        margin-right: 0;
        padding: 0;
        background: none;

        .num {
            color: #53EA8C
        }

        .short:first-child {
            margin-bottom: 2rem;
        }
    }
}

//   综合云图改版end

/* 外边距、内边距全局样式
------------------------------- */

@for $i from 0 through 100 {

    // margin
    .m#{$i} {
        margin: #{$i}px !important;
    }

    .mt#{$i} {
        margin-top: #{$i}px !important;
    }

    .mr#{$i} {
        margin-right: #{$i}px !important;
    }

    .mb#{$i} {
        margin-bottom: #{$i}px !important;
    }

    .ml#{$i} {
        margin-left: #{$i}px !important;
    }

    .mlr#{$i} {
        margin-left: #{$i}px !important;
        margin-right: #{$i}px !important;
    }

    .mtb#{$i} {
        margin-top: #{$i}px !important;
        margin-bottom: #{$i}px !important;
    }

    // padding
    .p#{$i} {
        padding: #{$i}px !important;
    }

    .pt#{$i} {
        padding-top: #{$i}px !important;
    }

    .pr#{$i} {
        padding-right: #{$i}px !important;
    }

    .pb#{$i} {
        padding-bottom: #{$i}px !important;
    }

    .pl#{$i} {
        padding-left: #{$i}px !important;
    }

    .plr#{$i} {
        padding-left: #{$i}px !important;
        padding-right: #{$i}px !important;
    }

    .ptb#{$i} {
        padding-top: #{$i}px !important;
        padding-bottom: #{$i}px !important;
    }
}


/* 文本
------------------------------- */

@for $i from 10 through 500 {
    .font#{$i} {
        font-size: #{$i}px !important;
    }
}

// 电视墙样式 start
#tvWallWraper {
    min-width: 1024px;
    background: #021132;
    width: 100%;
    height: 100%;
    color: #fff;
    overflow-y: scroll;
    text-align: center;
    font-size: 1.2rem;

    .statisticBox {
        text-align: center;
        margin-top: 2rem;
        font-size: 1.6rem;

        // margin-bottom:2rem;
    }

    .main-inner {
        box-sizing: border-box;
        overflow: hidden;
        margin: 0 4.5rem 2rem;
        height: 90rem;

        .blockOne {
            position: relative;
            // width:29.8rem;
            width: calc(100%/6 - 1.5rem*5/6);
            height: 28rem;
            background-size: 100% 100%;
            background-repeat: no-repeat;
            margin-top: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            // display:block;
            float: left;
            margin-right: 1.5rem;
            .warningInfo {
                position: absolute;
                top: 3.5rem;
                width: 99%;
                height: 2rem;
                line-height: 2rem;
                background: #FF3939;
                text-align: center;
                font-size: 1.4rem;
            }

            .mySwiper {
                padding-bottom: 3rem;

                .swiper-pagination-bullet-active {
                    background: #fff !important;
                }

                .swiper-pagination-bullet {
                    background: #7d9ef3;
                    width: .5rem;
                    height: .5rem;
                }

                .swiper-slide {
                    text-align: center;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    display: block;

                    .staticsOne {
                        margin: 0 auto;
                        display: flex;
                        justify-content: space-between;
                        width: 55%;
                        height: 2.8rem;
                        line-height: 2.8rem;
                        background: #0D204F;
                        margin-bottom: 1rem;
                        font-size: 1.4rem;
                        padding: 0 2rem;
                    }
                }

                .swiper-button-prev:after,
                .swiper-rtl .swiper-button-next:after,
                .swiper-button-next:after,
                .swiper-rtl .swiper-button-prev:after {
                    content: ''
                }

                .swiper-button-prev,
                .swiper-button-next {
                    top: 37%
                }
            }

            .checkMore {
                width: 11.2rem;
                height: 2.8rem;
                line-height: 2.8rem;
                text-align: center;
                background: #2E50AA;
                bottom: 3.5rem;
                position: absolute;
                left: 50%;
                margin-left: -5.6rem;
                border-radius: 2px;
                cursor: pointer;
            }

            .title2 {
                width: 11.2rem;
                height: 2.8rem;
                line-height: 2.8rem;
                text-align: center;
                bottom: 3rem;
                position: absolute;
                left: 50%;
                margin-left: -5.6rem;
                color: #fff;
            }

            .tpChartBox {
                width: 12rem;
                height: calc(100% - 10rem);
                background: #053275;
                box-shadow: rgb(131, 161, 242) 0px 0px 14px -3px inset
            }

            .gaugeChartBox {
                width: 100%;
                height: calc(100% - 10rem);
            }

            .pieChartBox {
                width: 40%;
                height: 100%;
                display: inline-block;
                margin: 0 1rem;
                height: calc(100% - 10rem);
            }

            .footerText {
                position: absolute;
                bottom: 1rem;
                width: 100%;
                left: 0;
                text-align: center;
                color: #C9C9C9
            }
        }
    }

    footer {
        text-align: center;

        .footerInner::-webkit-scrollbar {
            height: 6px;
            cursor: pointer;
        }

        .footerInner::-webkit-scrollbar-thumb {
            background: rgb(113, 178, 248);
            border-radius: 0;
        }

        .footerInner::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, .8);
            border-radius: 0;
        }

        .footerInner {
            width: 65rem;
            margin: 0 auto;
            white-space: nowrap;
            // overflow-x: auto;
            position: relative;

            

            .swiper-button-prev:after,
            .swiper-rtl .swiper-button-next:after,
            .swiper-button-next:after,
            .swiper-rtl .swiper-button-prev:after {
                content: ''
            }
        }
    }

    .posLeft,
    .posRight {
        position: fixed;
        top: 50%;
        font-size: 2.8rem;
        cursor: pointer;
    }

    .posLeft {
        left: 1.5rem;
    }

    .posRight {
        right: 1.5rem;
    }

    .el-pagination {
        position: absolute;
        top: 45%;

        // width:calc( 100% - 24px);
        .el-icon {
            display: none
        }

        .btn-prev,
        .btn-next {
            background-size: 100% 100%;
            width: 2.8rem;
        }
    }

    .fullScreen {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        font-size: 1.2rem;
        cursor: pointer;

        img {
            width: 2rem
        }

        img:hover {
            opacity: .7
        }
    }
}

.el-select-dropdown__item.selected{
    font-weight:normal!important
}

.dialogLoadText{
    padding:50px;text-align:center;
    
}


// ui规范
input::placeholder{
    color:#999 !important;
    font-family: 'Microsoft YaHei', '微软雅黑';
}
.el-input__suffix svg{
    width:12px !important;
    height:12px !important;
}
.el-button--default{
    border-radius: 4px !important;
    // border:1px solid #e5e5e5 !important;
    // background-color: #fff !important;
}
.cell{
    button{
        border:none !important;
    }
}
// .operate-area >button{
//     margin-left: 20px !important;
// }
// .operate-area >button:nth-child(1){
//     margin-left: 0px !important;
// }
.el-table__cell .cell{
    font-size: 13px !important;
}
.tableWrap{
    overflow-y: scroll;
    padding-bottom:2px;
}
.pagination{
    margin-right:6px;
    // bottom:36px;
}
.el-button--default span{
    font-size: 13px !important;
}

// 项目管理 start
.el-table .el-table__cell{
    // vertical-align: top!important;
}
.porjectLine span{
    display:inline-block;
    vertical-align: top;
}
.porjectLine span:first-child{
    width:40px;
}
.timeTitle{
    color:#333;
    margin-top:10px
}
.projectItem{
    border-bottom:1px solid rgba(212,212,212,.5);
    padding:5px 0
}
 .tooltip-width{
    width:400px 
}
.porjectLine span:last-child{
    width:calc(100% - 0px);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
}
.projectItem .porjectLine:first-child{
    font-size:11px

}
.projectItem .porjectLine:last-child{
    font-size:10px;
 
}



.projectItem:last-child{
    border-bottom:none;
}

.addArea{
    position:relative;width: 95%; margin-left: 5%; border: 1px solid #d9d9d9; border-radius: 5px; padding: 10px; margin-bottom: 10px
}


.reportRecordBox{
    font-size:14px;

        .el-card__body {
          padding: 15px;
        }
      
}
.reportRecordBox{
    .searchList{
        margin-top:10px;
        height: 18vh;
        overflow: scroll;
        div{
            border-bottom: 1px solid #D9D9D9;
            line-height:36px;
            font-size:14px;
            margin:0 2px;
            color:#333;
            cursor:pointer;
        
        }
        div.active,div:hover{
            color:#0C83FA;
            
    
        }
        
    
    } 
    .reportListBox{
        margin-top:10px;
        height: calc(100vh - 208px);
        overflow: scroll;
    }
    .reportListOne{
        display:flex;
        align-items: center;
        padding:10px;
        border-bottom:1px solid #D9D9D9;
        cursor:pointer;
        
        img{
            
            width:46px;
        }
    }
    .reportListOne:hover,.reportListOne.active{
        background: #E8F1FE;
    }

    //名字图标
    .roundPer{
        border-radius:50%;
        background:#48A4FF;
        color:#fff;
        width:46px;
        height:46px;
        line-height:46px;
        text-align:center;
        margin-right:10px;
    }
    
} 

.reportDetailBox{
    height:calc(100vh - 150px);
    overflow:scroll;
 .reportDetailOne{
    // padding:20px 0 20px;
    // border-bottom:1px solid #D9D9D9;
    .copyIcon{
        float:right;
        margin-right:10px;
        cursor:pointer;
    }
    >div{
        display:inline-block;
        vertical-align: top;
    }
    .time{
        font-size:12px;
        color: #666666;
        margin:5px 0;
    }
    .projectOne {
        margin-top:30px;
        .title{
            // font-weight:bold;
            margin:5px 0;
        }
        .content{
            color:rgba(3,3,3,.8);
            line-height:24px;   
        }
    }
    
 }

}
// 项目管理 end




