@import './common.less';
.ant-modal{
    box-shadow: none !important;
}
// 表单
.ant-form-item {
    margin-bottom: 15px;
    // display: flex;
    // align-items: center;
}
.ant-form-item-with-help{
    margin-bottom: 0;
}
.ant-form-explain, .ant-form-extra{
    margin-bottom: -5px;
}
.ant-form-item-children {
    display: flex;
    align-items: center;
    input,
    textarea {
        font-size: @fz14;
        font-weight: 400;
        color: @cl999;
    }
}

.ant-form-item-label {
    label {
        font-size: @fz14;
        font-weight: 400;
        color: @cl8B ;

    }
}

// 弹框
.ant-modal {
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
}

.ant-modal-title {
    color: #1890FF !important;
    font-size: @fz18;
    font-weight: bold;
}

.ant-modal-close {
    color: #188fff !important;

    svg {
        font-size: @fz26  !important;
    }
}

// 深色风格表格样式
.ant-vue-dark{
    // 表头
    .ant-table-thead {
        .ant-table-column-title {
            font-size: @fz16;
            font-weight: 500;
            color: @cl000;
        }
    }
    // 表格内容
    .ant-table-tbody {
        font-size: @fz14;
        font-weight: 400;
        color: @cl333;
    }
}

// 浅色风格表格样式
.ant-vue-light{
    // 表头
    .ant-table-thead {
        .ant-table-column-title {
            font-size: @fz16;
            font-weight: 500;
            color: @cl000;
        }
    }
    // 表格内容
    .ant-table-tbody {
        font-size: @fz14;
        font-weight: 400;
        color: @cl333;
    }
}

// 表格删除
.del {
    color: @dlecl;
    padding: 0 4px;
    display: inline-block;
}

.del:hover {
    color: @dlecl;
    cursor: pointer;
}

// 表格编辑
.redact {
    color: @redact;
    padding: 0 4px;
    display: inline-block;
}

.redact:hover {
    color: @redact;
    cursor: pointer;
}

// 带按钮搜索框
.search {
    input {
        font-size: @fz14;
        color: #BFBFBF;
    }

    .chaxun {
        color: @clfff;
        border: 1px solid #5ab6ff;
        padding: 0 14px;
        background: @addbg;
    }
}

// 按钮
.btn {
    // display: flex;
    margin-top: 20px;
}

.btnclass {
    font-size: @fz14;
    border-radius: 4px;
    border: none;
    margin-right: 12px;
}

// 删除按钮
.delclass {
    background: @delbg  !important;
    color: #fff !important;
}

//新增按钮
.addclass {
    background: @addbg  !important;
    color: #fff !important;
}

// 取消重置
.quclass {
    background: @qubg  !important;
    color: #42A5FA !important;
    border: 1px solid @qubg;
}

/**
* 上传图片、文件父级添加class
* 文字和控件将向上对齐
*/ 
.up_load_file {
    .ant-form-item{
        align-items: flex-start;
    }
    .ant-form-item-label{
        position: relative;
        top: -4px;
    }
}

.up_load_pic {
    .ant-form-item{
        align-items: flex-start;
    }
    .ant-upload-list{
        float: left;
    }
}
th{
    text-align: center !important;
}
td{
    text-align: center;
}
.btn_box{
    display: flex;
    align-items: center;
    justify-content: center;
}
.search_block{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card_title{
    font-size: 16px;
    font-weight: 600;
    color: #464646;
    padding-left: 10px;
    position: relative;
    margin-bottom: 15px;
}
.card_title::before{
    content: '';
    position: absolute;
    background: #1890ff;
    border-color: #1890FF;
    border-style: solid;
    border-width: 2px;
    height: 15px;
    top: 4px;
    left: 0;
}
// 面包屑
.ant-tabs-nav-wrap{
    background: #fff;
    
}
.ant-tabs-bar{
    background: #fff;
    padding-right: 20px !important;
}
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    color: #999 !important;
}
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
}
// 内容
.tabs-view-content{
    // background: #fff;
    // margin: 0 24px;
    // padding: 20px 24px;
    min-height: 80vh;
}
.admin-layout .admin-layout-content{
    padding: 0 !important;
    background: #F0F2F5;
}
.ant-pagination-item-active{
    background: #1890FF;
    border-radius: 4px;
}
.ant-pagination-item-active a{
    color: #fff
}

// 设备管理卡片
.device-item{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-height: 200px;
    position: relative;
    background-color: #fafafa;
    .device-item-icon{
        position: absolute;
        left: 0;
        top: 0;
        width: 40%;
        height: 100%;
        background-color: #fff;
        padding:0 10px;
        box-sizing: border-box;
        img{
            display: block;
            width: 100%;
            // height: 100%;
        }
    }
    .device-item-body{
        margin-left: 40%;
        padding:10px;
        position: relative;
        h4{
            font-weight: bold;
        }
        p{
            font-size: 12px;
            margin-bottom: 5px;
            display: flex;
        }
        .p-label{
            text-align: right;
            width: 80px;
        }
        .p-value{
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
        .more{
            position: absolute;
            top: 8px;
            right: 2px;
        }
    }
}
.device-item-add{
    cursor: pointer;
}
.device-item-add>div{
    text-align: center;
    font-size: 16px;
}
.text-row{
    display: flex;
    & + .text-row{
        margin-top: 5px;
    }
    .lable{
       text-align: left;
    }
    .val{
        flex: 1;
        color: #000;
        text-align: right;
    }
}
// 导航菜单颜色
.admin-header.head{
    background: #2681e8 !important;
    .ant-menu-dark{
        background: #2681e8 !important;
    }
    .ant-menu-submenu-selected{
        color: #fff !important;
    }
}
.viewbox{
    margin:20px 20px 0 20px;
}