@import './assets/common/@common.less';

.mask {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    position: fixed;
    z-index: 19891016;
    // z-index: 50;
    align-items: center;
    justify-content: center;
    animation: mask-show 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    animation-fill-mode: forwards;
    animation: cant-touch 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    
    .tree {
        animation: scale-top 0.3s cubic-bezier(0.19, -0.62, 0.74, 1.7);
        animation-fill-mode: forwards;
        height: 100vh;
        width: 100%;

        .header {
            user-select: none;
            background-color: @daocheng-red;
            color: #fff;
            height: 45px;
            display: flex;
            align-items: center;
            padding: 0 40px;
        }
        .body {
            height: calc(~'100% - 45px');
            display: flex;
            flex-direction: row;

            .body-side {
                flex: 0 1 468px;
            }
            .body-container {
                background-color: RGBA(245, 245, 245, 1);
                display: flex;
                flex: 1 3 768px;
                flex-direction: column;
                .table {
                    flex: 1;
                    display: flex;
                    font-size: 16px;
                    flex-direction: row;
                    justify-content: space-around;
                    .sec-table , .thr-table {
                        user-select: none;
                        &.thr-table {
                            flex: 1 10 500px;
                        }
                        margin: 10px;
                        border: 2px solid RGBA(224, 224, 224, 1);
                        border-radius: 5px;
                        .th , .tb {
                            text-align: center;
                            display: flex;
                            // padding: 0 10px;
                            align-items: center;
                            flex-direction: row;
                            justify-content: space-between;
                            .index {
                                flex: 0 0 110px;
                                display: inline-flex;
                                cursor: pointer;
                                user-select: none;
                                align-items: center;
                                justify-content: center;
                                input,label {
                                    margin: 0;
                                }
                            }
                            .num{
                                color: #333;
                                flex: 0 1 100px;
                            }
                            .name {
                                font-size: 14px;
                                color: #333;
                                flex: 1 0 auto;
                            }
                            .empty-btn {
                                flex: 0 0 92px;
                                font-weight: bold;
                                cursor: pointer;
                                display: inline-flex;
                                align-items: center;
                                justify-content: center;
                                color: @daocheng-red;
                                .icon {
                                    width: 20px;
                                }
                            }
                            .empty {
                                margin: 0 15px;
                                font-size: 31px;
                                color: @daocheng-red;
                            }
                            &.tb {
                                height: 36px;
                                color: RGBA(51, 51, 51, 1);
                            }
                            &.th {
                                color: RGBA(79, 79, 79, 1);
                                height: 30px;
                                background-color: RGBA(224, 224, 224, 1);
                                position: relative;
                            }
                        }
                        .tb-container {
                            counter-reset: my-sec-counter;
                            height: calc(~'100% - 50px');
                            background-image: 
                                repeating-linear-gradient(
                                    to bottom,
                                    transparent,
                                    transparent 36px, #f9f9f9 36px, #f9f9f9 72px
                                );
                            overflow: hidden;
                            padding-right: 8px;
                            &:hover {
                                padding-right: 0;
                                overflow-y: scroll;
                            }
                            input {
                                outline: none;
                            }
                            label {
                                margin-bottom: 0;
                                font-weight: 500;
                            }
                            label:nth-child(even) {
                                background-color: #f9f9f9;
                            }
                            label:nth-child(odd) {
                                background-color: #fff;
                            }
                            .index:before {
                                color: #999;
                                /* Increment "my-sec-counter" by 1 */
                                counter-increment: my-sec-counter;
                                content: counter(my-sec-counter);
                            }
                        }
                    }
                }
    
                .group-btn {
                    margin: 0 10px;
                    display: flex;
                    justify-content: flex-end;
                    height: 45px;
                    align-items: flex-start;
                }
            }
        }
    }
}
