@main-bgColor: rgb(40,40,40); //主背景颜色
@borderColor: #424242; //边框颜色
@primary-textColor: #fff; //文本主颜色
@second-textColor: #a5a5a5; //文本副级颜色
@nothing-textColor:#5f5f5f;
@primary-fontSize: 14px;
@second-fontSize: 16px;
@large-fontSize: 20px;

.sm {
    &-school-name {
        height: 60px;
        border-bottom: 1px solid @borderColor;
        justify-content: space-between;
        .fl-row-center;

        .setting-title {
            color: @second-textColor;
            font-size: @primary-fontSize;
            font-weight: bold;
            margin: 0 30px;
        }

        .school-name {
            font-size: @primary-fontSize;
            color: @primary-textColor;
        }

        .school-tools {
            color: @primary-textColor;
            font-size: @primary-fontSize;
            margin-right: 30px;
            cursor: pointer;
        }

        .school-tools .ivu-icon {
            color: @primary-textColor;
            font-size: @second-fontSize;
            margin-right: 5px;
            vertical-align: text-top;
        }
    }
}

.sm-system {
    &-body {
        .fl-row-center;
        position: absolute;
        top: 140px;
        bottom: 0;
        width: 100%;
        user-select: none !important;
    }

    &-left {
        .colSpan(18%);
        margin-left: -1px;

        .col-order {
            width: 100%;
            height: 50px;
            min-height: 50px;
            padding-left: 30px;
            color: @second-textColor;
            font-size: @primary-fontSize;
            border-bottom: 1px solid @borderColor;
            cursor: pointer;
            .fl-row-center;

            span {
                margin-left: 5px;
            }
        }

        .period-list {
            width: 100%;
            overflow: auto;

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

            &::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: rgb(124,124,124);
            }

            &::-webkit-scrollbar-track { /*滚动条里面轨道*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: rgba(68,68,68,.5);
            }
        }




        .period-item {
            position: relative;
            padding: 10px 10px 10px 30px;
            border-bottom: 1px solid @borderColor;
            cursor: pointer;

            &:hover {
                background-image: -webkit-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
                background-image: -o-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
                background-image: -moz-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
                background-image: linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);

                .period-btn-edit {
                    display: inline-block;
                }

                .period-item-tool {
                    display: unset;
                }
            }

            &-name {
                font-size: @large-fontSize;
                color: @primary-textColor;
                font-weight: bold;
                margin: 2px 0px;

                .period-btn-edit {
                    font-size: @primary-fontSize;
                    margin-left: 10px;
                    margin-bottom: 5px;
                    display: none;
                }
            }

            &-tool {
                position: absolute;
                right: 30px;
                top: 40px;
                font-size: 24px;
                color: @primary-textColor;
                display: none;

                .ivu-icon {
                    margin-left: 5px;
                }
            }

            &-num {
                padding-left: 5px;
                color: @second-textColor;
                font-size: @primary-fontSize;

                span {
                    display: inline-block;
                    width: 3px;
                    height: 10px;
                    margin-right: 5px;
                    background: @second-textColor;
                }
            }
        }
    }

    &-center {
        .colSpan(25%);

        .col-body {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: row;
            position: relative;
        }

        .term-list {
            width: 70%;
            height: 100%;
            border-right: 1px solid @borderColor;
            position: absolute;
            top: 0;
            bottom: 0;
            overflow: auto;

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

            &::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: rgb(124,124,124);
            }

            &::-webkit-scrollbar-track { /*滚动条里面轨道*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: rgba(68,68,68,.5);
            }

            .term-item {
                width: 100%;
                border-bottom: 1px solid @borderColor;
                padding: 10px 20px;
                cursor: pointer;
                position:relative;
                &:hover {
                    background-image: -webkit-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
                    background-image: -o-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
                    background-image: -moz-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
                    background-image: linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
                    /*.period-btn-edit {
                        display: inline-block;
                    }*/
                    .term-item-tool {
                        display: inline-block;
                    }
                }

                &-name {
                    font-size: 20px;
                    font-weight: bold;
                    color: @primary-textColor;
                }

                &-name-line {
                    display: inline-block;
                    .lineSpan(16px,3px,red,15px);
                }

                &-students-num {
                    color: @second-textColor;
                    font-size: @primary-fontSize;
                    margin: 10px;
                }

                &-start {
                    color: @second-textColor;
                    font-size: @primary-fontSize;
                    margin: 10px;
                }

                &-tool {
                    position: absolute;
                    right: 20px;
                    top: 60px;
                    font-size: 24px;
                    color: @primary-textColor;
                    display: none;
                    .ivu-icon {
                        margin-left: 5px;
                        display:inline-block;
                    }
                }
            }
        }


        .term-item-time-line {
            position: absolute;
            left: 70%;
            width: 30%;
            height: 100%;
            color: @second-textColor;
            .fl-col-center;

            ul {
                position: relative;
                list-style: none;
            }

            li {
                margin: 25px 0;
                font-size: @second-fontSize;
                font-weight: bold;
                justify-content: flex-start;
                .fl-row-center;

                &:last-child .time-line-tail {
                    display: none;
                }

                &:nth-of-type(odd) .time-line-tail {
                    border-color: #6d6d6d;
                }

                &:nth-of-type(even) .time-line-tail {
                    border-color: #959595;
                }

                &:nth-of-type(odd) .time-dot {
                    border-color: #6d6d6d;
                }

                &:nth-of-type(even) .time-dot {
                    border-color: #959595;
                }
            }

            .time-label {
                width: 35px;
            }

            .time-dot {
                position: relative;
                width: 25px;
                height: 25px;
                border-radius: 50%;
                padding: 5px;
                border: 3px solid @second-textColor;
                margin-left: 10px;
                z-index: 2;
            }

            .time-inner-dot {
                display: inline-block;
                width: 9px;
                height: 9px;
                background: #08d0c8;
                border-radius: 50%;
                position: absolute;
                top: 5px;
                left: 5px;
            }

            .time-line-tail {
                height: 26px;
                border-left: 3px solid @second-textColor;
                position: absolute;
                top: 22px;
                left: 8px;
                z-index: -1;
            }
        }
    }

    &-right {
        .colSpan(57%);

        .grade-body {
            width: 100%;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            padding: 20px;
            border-bottom: 1px solid @borderColor;


            .grade-item {
                display: inline-block;
                background: #5d5d5d;
                color: #9b9b9b;
                padding: 5px 20px;
                font-size: @second-fontSize;
                font-weight: bold;
                border-radius: 50px;
                margin: 10px;
                cursor: pointer;

                &:hover {
                    .item-active;

                    .ivu-icon {
                        display: inline-block;
                    }
                }

                &-icon {
                    display: inline-block;
                    width: 10px;
                    height: 10px;
                    background: #404040;
                    border-radius: 50%;
                }

                &-name {
                    margin: 0 10px;
                }

                .ivu-icon {
                    margin-top: -3px;
                    margin-right: 5px;
                    display: none;
                }
            }

            .item-active {
                color: #fff;
                background-color: #717171;
            }
        }
    }
    //一行分成几列
    .colSpan(@width) {
        .fl-col-center;
        width: @width;
        height: 100%;
        border-left: 1px solid @borderColor;
    }
    //分隔小横线
    .lineSpan(@height,@width,@color,@mr) {
        display: inline-block;
        height: @height;
        width: @width;
        background: @color;
        margin-right: @mr;
    }

    .no-data-text {
        width: 70%;
        height: 100%;
        font-size: 30px;
        font-weight: bold;
        color: @nothing-textColor;
        text-align: center;
        padding-top: 30px;
        border-right: 1px solid @borderColor;
    }


    .col-title {
        .fl-row-center;
        height: 60px;
        min-height: 60px;
        width: 100%;
        justify-content: space-between;
        padding: 0 10px 0 30px;
        font-weight: bold;
        font-size: @primary-fontSize;
        color: @second-textColor;
        border-bottom: 1px solid @borderColor;

        .ivu-icon {
            font-size: @large-fontSize;
            color: @primary-textColor;
            cursor: pointer;
            margin-right: 10px;
        }
    }
}
.item-active-div {
    background-image: -webkit-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
    background-image: -o-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
    background-image: -moz-linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
    background-image: linear-gradient(90deg, rgba(30,30,30,0) 0%, rgba(110,110,110,.2) 50%, rgba(110,110,110,.4) 100%);
}


.fl-row-center {
    display: flex;
    align-items: center;
}

.fl-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.editable {
    display:inline-block;
    &:hover {
        .edit-btn {
            display: inline-block;
        }
    }

    .edit-btn {
        display: none;
        font-size: @primary-fontSize;
        margin-left: 10px;
        margin-bottom: 5px;
    }

    .ivu-icon{
        display:none;
        cursor:pointer;
        color:white;
    }
}
