/* Row Controls
---------------------------------------------------------- */
.vc_controls {
    .box-sizing(border-box);
    > div {
      border-radius: @vc_border_radius;
      > :first-child {
        .vc_btn-content {
          .border-left-radius(@vc_border_radius);
        }
      }
      > :last-child {
        .vc_btn-content {
          .border-right-radius(@vc_border_radius);
        }
      }
    }
    .vc_column_color {
        margin-top: 3px;
        width: 16px;
        height: 16px;
        display: inline-block;
        margin-right: 3px;
        border-radius: 8px;
        //border: 1px solid #CCC;
    }
    .vc_column_image {
        margin-top: 3px;
        width: 16px;
        height: 16px;
        display: inline-block;
        margin-right: 3px;
        background-size: cover;
        border-radius: 8px;
    }

}
.vc_icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: transparent url('../vc/controls.png') no-repeat -16px 0px;
}
.vc_control {
    cursor: pointer;
    display: inline-block;
    border-radius: 2px 2px 0 0;
    border: 1px solid transparent;
    padding: 0;
    cursor: pointer;
    &.column_add {
        .vc_icon {
            background-position: -16px -16px;
        }
    }
    &.column_delete {
        .vc_icon {
            background-position: -16px -64px;
        }
    }
    &.column_clone {
        .vc_icon {
            background-position: -16px -48px;
        }
    }
    &.column_edit {
        .vc_icon {
            background-position: -16px -32px;
        }
    }
    &.column_toggle {
        .vc_icon {
            background-position: -16px -96px;
        }
    }
    &.column_move { // Row drag handler
        cursor: move;
        float: left;
    }
    &:hover {
        .vc_icon {
            opacity: 0.7;
        }
    }
}
.controls_row {
    text-align: center;
    line-height: 1px;
    position: relative;
    z-index: 1;
    &:hover {
      z-index: 10;
    }
    .vc_control {
        background-color: @vc_row_control_bg;
        padding: 3px 8px;
    }
    .column_add {
        float: left;
        margin-left: 1px;
    }
    .vc_row_layouts {
        display: block;
        height: 16px;
        overflow: hidden;
        float: left;
    //  position: absolute;
        padding: 0px 0px 6px 0;
    // width: 29px;
        // left: 35px;
        text-align: left;
        margin-left: 1px;
        background: #e6e6e6;
        border: 1px solid transparent;
        border-radius: 2px 2px 0 0;
        .vc_active {
            display: inline-block;
        }
        &:hover {
            width: auto;
            height: auto;
            /*max-width: 353px;*/
            position: absolute;
            left: 34px;
            a {
                display: inline-block;
                &:hover,
                &.vc_active {
                    background-color: #FBEED5;
                }
            }
        }
    }
    .vc_control-set-column {
        background-image: url(../vc/row_layouts/1.gif);
        background-position: center center;
        background-repeat: no-repeat;
        display: none;
        border: none;
        width: 32px;
        height: 20px;
        background-color: transparent;
        cursor: pointer;
        &:active {
            outline: none;
        }
        &.vc_active {
        //background-color: #ffffff;
            background-color: transparent;
        }
        &.custom_columns {
            background-image: none;
            border-bottom: 1px dotted;
            font-size: 11px;
            height: auto;
            line-height: 12px;
            margin: 0 3px;
            padding: 4px 0 0 0;
            width: auto;
        }

        &.l_12_12 {
            background-image: url(../vc/row_layouts/12_12.gif);
        }
        &.l_23_13 {
            background-image: url(../vc/row_layouts/23_13.gif);
        }
        &.l_13_13_13 {
            background-image: url(../vc/row_layouts/13_13_13.gif);
        }
        &.l_13_23 {
            background-image: url(../vc/row_layouts/13_23.gif);
        }
        &.l_14_14_14_14 {
            background-image: url(../vc/row_layouts/14_14_14_14.gif);
        }
        &.l_23_13 {
            background-image: url(../vc/row_layouts/23_13.gif);
        }
        &.l_14_34 {
            background-image: url(../vc/row_layouts/14_34.gif);
        }
        &.l_14_12_14 {
            background-image: url(../vc/row_layouts/14_12_14.gif);
        }
        &.l_56_16 {
            background-image: url(../vc/row_layouts/56_16.gif);
        }
        &.l_16_46_16 {
            background-image: url(../vc/row_layouts/14_46_16.gif);
        }
        &.l_16_16_16_12 {
            background-image: url(../vc/row_layouts/16_16_16_12.gif);
        }
        &.l_16_16_16_16_16_16 {
            background-image: url(../vc/row_layouts/16_16_16_16_16_16.gif);
        }
    }

// Right controls (delete, clone, edit)
    .vc_row_edit_clone_delete {
        .vc_control {
            float: right;
            background-position: center center;
            background-repeat: no-repeat;
            margin-left: 1px;
        }
    }

    .vc_row_color {
        float: right;
        margin-top: 3px;
        width: 16px;
        height: 16px;
        display: block;
        margin-right: 3px;
        border-radius: 8px;
        //border: 1px solid #CCC;
    }
    .vc_row_image {
        float: right;
        margin-top: 3px;
        width: 16px;
        height: 16px;
        display: block;
        margin-right: 3px;
        background-size: cover;
        border-radius: 8px;
    }
}
.controls_column {
    &.bottom-controls {
        .column_edit,
        .column_delete,
        .column_clone {
            display: none;
        }
    }
}
.wpb_content_element {
    &:hover {
        > .vc_controls {
            .vc_controls-visible;
        }
    }
}