﻿html {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #fff;
    overflow-y: auto;
}

.txt-disable {
    background: #ddd;
}

.tcenter {
    text-align: center;
}

/*iframe 里面的 container*/
.subframe-container {
    padding: 10px;
}

#divLoading {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #f3f3f3;
    z-index: 100000000;
    opacity: 1;
}

.v-flex {
    display: flex;
    align-items: center;

    .v-flex-1 {
        flex: 1;
    }
}

.global-head-img {
    width: 44px;
    height: 44px;
}


.table-global {
    width: 82%;
    margin: 0 auto;
    margin-top: 10px;
}

.table-global tr td {
    padding: 5px;
}

.table-global .update-col {
    border: 1px solid #f1f1f1;
    padding: 5px 7px;
    border-radius: 2px;
    position: relative;
}

.table-global .update-col input, textarea {
    outline: none;
    border: none;
    width: 100%;
    resize: none;
    font-family: inherit;
}

.color999 {
    color: #999;
}

.color333 {
    color: #333;
}

.font12 {
    font-size: 12px;
}

.font13 {
    font-size: 13px;
}

.textright {
    text-align: right;
}

.margintop40 {
    margin-top: 40px;
}

.margin-right-20 {
    margin-right: 20px;
}

.padding-10 {
    padding: 10px;
}

.primary-btn {
    background-color: #007ffa;
    box-shadow: none;
    width: 90px;
    height: 30px;
    line-height: 30px;
    cursor: pointer;
    color: white;
    outline: none;
    border-radius: 4px;
    border: none;
}

.primary-btn-default {
    background-color: #edeff3;
    color: #333;
}

.primary-btn-color {
    border: 1px solid #f1f1f1;
    background-color: #fff;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
    height: 36px;
    line-height: 36px;
}

.primary-btn-color:hover {
    background-color: #4c94ff;
    color: #fff;
}

.primary-btn-f1 {
    background-color: #007ffa;
    color: #fff;
}

.primary-btn-f1:hover {
    background-color: #4c94ff;
    color: #fff;
}


.flex-column {
    display: flex;
    flex-direction: column;
}

.flex {
    display: flex;
}

.flex-align {
    display: flex;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-ali-center {
    align-items: center;
}

.flex-1 {
    flex: 1;
}

.label {
    display: inline;
    padding: 5px 15px;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
}

.label-default {
    background-color: #777;
}

.label-primary {
    background-color: #337ab7;
}

.label-success {
    background-color: #5cb85c;
}

.label-info {
    background-color: #5bc0de;
}

.label-warning {
    background-color: #f0ad4e;
}

.label-danger {
    background-color: #d9534f;
}


/*搜索框*/
.search-box {
    position: relative;

    input[type=text] {
        outline: none;
        border: none;
        padding: 7px 20px;
        border-radius: 15px;
        background: #ddd;
        font-size: 12px;
        width: 200px;
    }

    img {
        width: 24px;
        height: 24px;
        position: absolute;
        right: 5px;
        top: 2px;
    }
}

.layer-popup {
    display: none;
    padding: 20px;

    .btn-box {
        text-align: center;
        margin-top: 50px;

        button {
            width: 80px;
        }
    }
}

.popup-labtory-details {
    .thumb {
        text-align: center;
        margin-bottom: 20px;

        img {
            width: 80%;
        }
    }

    .description {
        text-indent: 2em;
        padding: 15px;
    }
}

.v-nav {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    margin-left: 10px;
    align-items: center;

    .btn-box {
        border-right: 1px solid #ddd;
        margin-right: 10px;
        padding-right: 10px;

        button {
            width: 60px;
        }
    }

    a {
    }

    span {
        margin-left: 2px;
        margin-right: 4px;
    }
}

.labtory-container {
    .bga {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: #211414;
        opacity: 0;
        transition: opacity 1.2s;
    }

    .btn-container {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;

        .btn-box {
            width: 52px;
            padding: 7px;
            opacity: 1;
            display: flex;
            flex-direction: column;
            margin: 0 auto;
            align-items: center;
            height: 100%;
            justify-content: center;
            position: absolute;
            left: 50%;
            margin-left: -26px;
            opacity: 0;
            transition: opacity 0.5s;

            a {
                background: white;
                padding: 6px 12px;
                border-bottom: 1px solid #bba9a9;
                width: 70px;
            }

            &:hover {
                color: #1E9FFF;
            }
        }
    }

    .brand-title {
        margin-top: 30px;
    }

    .brand-item {
        text-align: center;
        background: white;
        padding: 10px;
        cursor: pointer;
        border-radius: 10px;
        width: 100%;
        height: 180px;
        box-shadow: 3px 3px 3px 3px rgba(216, 215, 215, 0.5);
        border: 2px solid transparent;
        position: relative;

        img {
            height: 150px;
            max-width: 100%;
        }

        .img-name {
            display: inline-block;
            text-align: center;
            margin-top: 5px;
            font-size: 18px;
            width: 280px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        &:hover {

            .bga {
                opacity: 0.5;
            }

            .btn-container {
                display: block;
            }

            .btn-box {
                opacity: 1;
            }
        }

        .brand-item-select {
            border: 2px solid #1E9FFF;
        }
    }
}

/*覆盖 Layui 样式*/
.layui-layer-close2 {
    right: -17px !important;
    top: -17px !important;
}

//.layui-tab {
//    .layui-tab-content {
//        .layui-tab-item {
//            position: absolute;
//            visibility: hidden;
//            display: unset !important;
//        }

//        .layui-show {
//            position: unset;
//            visibility: visible;
//            display: unset !important;
//        }
//    }
//}

.layui-tab-content {
    position: relative;
    height: 100%; /* 或者固定高度，例如 100vh */

    .layui-tab-item {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        visibility: hidden;
        display: unset !important;
    }

    .layui-show {
        visibility: visible;
        z-index: 1;
    }
}