//edit columns
#edit-columns {
    background-color: @panel-box-background;
    color: #fff;
    text-align: center;
    position: absolute;
    z-index: 10;
    margin: 10px 0 0 10px;
    .transition(height 0.20s linear);
    pointer-events: all;
    text-transform: uppercase;
    font-size: 14px;
    height: 0;
    width: 0;
    overflow: hidden;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 0 rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    //bottom: 45px;
    left: 5px;

    > .icon {
        padding-right: 4px;
        font-size: 15px;
        top: 1.2px;
        position: relative;

    }

    &:hover {
        cursor: pointer;
        background-color: darken(@panel-box-background, 10%);
    }
}

#row-editor {
    position: absolute;
    background-color: @panel-box-background;
    color: #fff;
    z-index: 8;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    display: none;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 0 rgba(0, 0, 0, 0.5);
    .user-select(none);

    > .column-controls-footer {
        padding: 10px;
        background-color: @panel-background;
        border-bottom-right-radius: 4px;
        border-bottom-left-radius: 4px;

        > .close-row-editor {
            float: left;
            font-size: 17px;
            margin: 7px 0 0 3px;
            color: lighten(@panel-color, 7%);

            &:hover {
                cursor: pointer;
                transform: scale(1.1);
            }
        }
    }

    > .row-presets {
        padding: 12px;

        > .btn {
            background-color: lighten(@panel-box-background, 10%);
            border-color: transparent;
            color: lighten(@panel-color, 7%);
            margin-top: 5px;

            &:hover {
                background-color: @brand-primary;
                color: #fff;
            }
        }
    }

    .row-preset {
        display: inline-block;
        height: 40px;
        width: 40px;
        background-color: lighten(@panel-box-background, 5%);
        border-radius: 3px;
        padding: 4px;
        margin-right: 5px;

        > div {
            height: 100%;
            background-color: @panel-color;
            display: inline-block;
            border-right: 1px solid lighten(@panel-box-background, 5%);
            border-left: 1px solid lighten(@panel-box-background, 5%);
            border-radius: 1px;

            &:last-of-type {
                border-right: none;
            }

            &:first-of-type {
                border-left: none;
            }
        }

        #columns (@i) when (@i > 0) {
            .row-preset-@{i} {
                width: round(percentage((@i/12)), 7);
            }

            #columns (@i - 1);
        }
        #columns (12);

        &:hover {
            cursor: pointer;
            transform: scale(1.1);
        }
    }

    > .column-controls {
        padding: 0;
        width: 101%;
        .clearfix();
        border-bottom: 1px solid lighten(@panel-background, 15%);
    }

    .col-control {
        font-size: 18px;
        display: inline-block;
        position: relative;
        padding: 5px 0;

        > .delete-column {
            width: 90%;
            text-align: center;
            display: inline-block;
            padding: 4px 0;
            margin-left: 5%;
            vertical-align: top;

            &.first {
                width: 75%;
                margin-left: 15%;
            }

            &.last {
                width: 75%;
                margin-left: 10%;
            }

            &:hover {
                cursor: pointer;
                background-color: @brand-primary;
                border-radius: 3px;
            }
        }

        > .add-column {
            position: absolute;
            top: 0;
            right: -25px;
            z-index: 100;
            padding: 5px 18px 4px;
            margin-top: 4px;

            &.first {
                left: 0;
                width: 30px;
                padding-left: 8px;
                padding-right: 8px;
                border-top-left-radius: 0 !important;
                border-bottom-left-radius: 0 !important;

            }

            &.last {
                right: 0;
                width: 30px;
                padding-left: 8px;
                padding-right: 8px;
                border-top-right-radius: 0 !important;
                border-bottom-right-radius: 0 !important;
            }

            &:hover {
                background-color: @brand-primary;
                cursor: pointer;
                border-radius: 3px;
            }
        }

    }
}

.tet-row {
    > div:empty {
        height: 50px;
    }
}

//