.mar-b-xs {margin-bottom: 5px;}
.mar-b-mini {margin-bottom: 10px;}
.mar-bottom-20 {margin-bottom: 20px;}
.mar-bottom-30 {margin-bottom: 30px;}
.mar-bottom-40 {margin-bottom: 40px;}
.mar-top-5 {margin-top: 5px;}
.mar-top-10 {margin-top: 10px;}
.mar-top-20 {margin-top: 20px;}
.mar-top-30 {margin-top: 30px;}
.mar-top-40 {margin-top: 40px;}
.mar-left-5 {margin-left: 5px;}
.mar-left-10 {margin-left: 10px;}
.mar-left-20 {margin-left: 20px;}
.mar-left-30 {margin-left: 30px;}
.mar-left-40 {margin-left: 40px;}
.mar-right-5 {margin-right: 5px;}
.mar-right-10 {margin-right: 10px;}
.mar-right-20 {margin-right: 20px;}
.mar-right-30 {margin-right: 30px;}
.mar-right-40 {margin-right: 40px;}
.color-primary {color: $color-primary;}
.color-success {color: $color-success;}
.color-warning {color: $color-warning;}
.color-danger {color: $color-danger;}
.text-disabled {color: $color-disabled;}
.cursor-pointer {cursor: pointer;}

.layer-display {display: none;}
.batch-operation-content {
    color: $color-text-regular;

    .batch-operation-progress {
        display: flex;

        label {min-width: 90px;line-height: 18px;}

        .progress>p {
            @include box();
            @include flex-justify-between();
            font-size: $font-mini;
            line-height: 24px;
        }
    }

    .batch-operation-table-header {
        padding: 15px 20px;
        padding-bottom: 0;
        border: 1px solid #ccc;
        border-bottom: 0;
        padding-top: 0;
        line-height: 33px;
        box-shadow: 0px 1px 2px #ccc;
        font-weight: bold;
        font-size: $font-mini;
    }

    .batch-operation-table-content {
        padding: 15px 20px;
        max-height: 215px;
        overflow-y: auto;
        padding-top: 14px;
        border: 1px solid #ccc;
        border-top: 0;
        font-size: $font-mini;

        li:not(:last-child) {
            margin-bottom: 20px;
        }

        li .text-content-error {
            color: $color-danger;
            border-color: $color-light-danger;
            background: $color-medium-danger;
            display: block;
            margin-top: 6px;
            position: relative;
            border: 1px solid;
            padding: 4px 10px;

            &::before {
                content: "";
                display: block;
                position: absolute;
                top: -5px;
                right: 2px;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-bottom: 6px solid $color-danger;
            }
            &::after {
                content: "";
                display: block;
                position: absolute;
                top: -4px;
                right: 2px;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-bottom: 5px solid $color-medium-danger;
            }
        }
    }
}

.batch-opt-source {
    background: #f7f7f7;
    color: #555;

    & > * {box-sizing: border-box}

    .batch-opt-source-content {
        width: 100%;
        display: inline-block;
        position: relative;
        font-size: 14px;
        border: 1px solid #ccc;
        line-height: 34px;
        padding: 0 10px 0 15px;
        cursor: pointer;

        & i {
            position: absolute;
            right: 10px;
        }
    }

    .batch-opt-list {
        border: 1px solid #ccc;
        border-top: none;
        max-height: 105px;
        overflow: auto;

        & .batch-opt-list-item {
            font-size: 14px;
            padding: 0 10px 0 15px;
            &:not(:last-child) {border-bottom: 1px solid #eee;}
            & p { line-height: 34px;}
            & .form-error {
                margin-top: 0;
                margin-right: -2px;
                margin-bottom: 5px;
                color: #ec4242;
                border-color: #ff929b;
                background: #fdf3f4;
                display: inline-block;
                position: relative;
                border: 1px solid;
                padding: 4px 10px;

                &::before {
                    content: "";
                    right: 5px;
                    top: -4px;
                    display: inline-block;
                    position: absolute;
                    width: 6px;
                    height: 6px;
                    border: 1px solid;
                    margin: 0;
                    border-right: 0;
                    border-bottom: 0;
                    transform: rotateZ(45deg);
                    -moz-transform: rotateZ(45deg);
                    -webkit-transform: rotateZ(45deg);
                    background: #fdf3f4;
                }
            }
        }
    }
}
.batch-opt-handle {
    & > * {box-sizing: border-box}

    & > .batch-opt-handle-label {
        min-width: 80px;
        margin-right: 10px;
    }

    & > .batch-opt-handle-list {
        width: 100%;
        border: 1px solid #ccc;
        max-height: 105px;
        overflow: auto;

        & > .batch-opt-handle-list-item {
            &:not(:last-child) {border-bottom: 1px solid #eee;}
            &  p {
                line-height: 34px;
                font-size: 14px;
                padding: 0 10px 0 15px;
            }
        }

    }
}

.batch-opt-btn{
    @include box();
    @include flex-center();
    width: 100%;
    padding: $space-bigger $space-default $space-big $space-default;
    @include box-sizing();

    .efly-button{
        min-width: 100px;
    }
}
