/*
* Import Mixins
*/
@import "_mixins.less";

/*
* Set colors
*/
@black: #333333;
@green: #00c133;
@red : red;

.ops-wrapper {
    max-width: calc(~"100% - 20px");
}

.ops-padding {
    padding: 15px !important;
}

.ops-clearfix {
    clear: both;
}

.ops-float-right {
    float: right;
}

.ops-blue-box {
    background-color: #EAF2FA;
    padding: 10px 15px;
    &.ops-text-right {
        text-align: right;
    }
}

.ops-saved {
    display: inline-block;
    margin: 8px 0 0 8px;
    font-weight: bold;
}

#ops-dashboard {
    #ops-dashboard-tabs {
        &:after {
            clear: both;
            display: block;
            content: '';
        }
        ul {
            margin: 0;
            padding: 0;
            list-style: none;
            li {
                margin: 0 10px 0 0;
                display: inline-block;
                position: relative;
                a.ops-tab-switcher {
                    min-height: 30px;
                    line-height: 30px;
                    padding: 0 100px 0 10px;
                    border: 1px solid #ececec;
                    cursor: pointer;
                    text-decoration: none;
                    display: block;
                    .Transition();
                    &:hover {
                        background-color: #ececec;
                    }
                    &:last-of-type {
                        margin-right: 0;
                    }
                    &.active {
                        background-color: #00a0d2;
                        border: 1px solid #fff;
                        color: #fff;
                    }
                }
                &:hover {
                    ul {
                        display: block;
                    }
                }
                &.active {
                    .ops-down-arrow {
                        background: url('../img/ops-sprites.png') no-repeat top -39px left;
                    }
                }
                .ops-down-arrow {
                    position: absolute;
                    top: 13px;
                    right: 15px;
                    width: 12px;
                    height: 7px;
                    background: url('../img/ops-sprites.png') no-repeat top -32px left;
                }
                ul {
                    position: absolute;
                    display: none;
                    top: 30px;
                    left: 0;
                    width: 100%;
                    background-color: #fff;
                    .Shadow();
                    z-index: 99;
                    li {
                        display: block;
                        a {
                            border: 0;
                            line-height: 24px;
                            position: relative;
                            min-height: 24px;
                            padding: 0 10px;
                            display: block;
                            text-decoration: none;
                            &.active {
                                font-weight: bold;
                            }
                            &:hover {
                                background-color: transparent;
                                font-weight: bold;
                            }
                            &:focus {
                                outline: none !important;
                            }
                        }
                    }
                }
            }
        }

    }

    #ops-master-graph {
        min-height: 350px;
    }

    .ops-dashboard-left {
        float: left;
        width: 70%;
    }
    .ops-dashboard-right {
        float: left;
        width: calc(~"30% - 20px");
        margin-left: 20px;
        img{
            max-width: 100%;
            height: auto;
        }
        h4 {
            margin: 10px 0 0 0;
            padding: 5px 0;
            font-size: 14px;
            color: #00a0d2;
            display: block;
            border-bottom: 1px solid #ececec;
            border-top: 1px solid #ececec;
        }
        .ops-stat {

            &.ops-stat-keywords,
            &.ops-stat-pages{
                table{
                    width: 100%;
                    th{
                        font-size: 11px;
                        &.ops-small{
                            text-align: left;
                            width: 33px;
                        }
                    }
                    th, td{
                        padding:3px 4px 3px 0;
                        line-height: 1.2;
                    }
                    tr{
                        padding: 3px 0;

                    }
                }

                a.ops-link-to-page{
                    display: inline-block;
                    width: 12px;
                    height: 8px;
                    background: url('../img/ops-sprites.png') no-repeat top -47px left;
                }
            }

            .ops-view-more{
                margin: 6px 0 6px 1px;
                display:inline-block;
            }


            .ops-title {
                font-weight: bold;
                margin: 7px 0 3px;
            }
            .ops-value {
                b {
                    font-size: 12px;
                }
                &.good {
                    b {
                        color: @green;
                        font-weight: bold;
                    }
                }
                &.bad {
                    b {
                        color: @red;
                        font-weight: bold;
                    }
                }
                span {
                    font-weight: normal;
                    font-size: 11px;
                    color: #000;
                }
            }
        }
    }

}


.ops-keyword-warning{
    padding-left: 15px;
    border-left: 2px solid red;
    margin-bottom: 20px;
}

.ops-another-dashboard-tools {
    padding: 0 10px;
    background: #fff url('../img/light-logo-small.png') no-repeat right 20px top 12px;
    min-height: 60px;
    .ops-keyword-list {
        padding-bottom: 10px;
    }
}

#ops-settings {
    #ops-modules {
        margin-top: 10px;
        &:after {
            clear: both;
            display: block;
            content: ' ';
        }
        .ops-module {
            width: calc(~"20% - 10px");
            float: left;
            min-height: 70px;
            border: 1px solid #ececec;
            margin: 0 10px 0 0;
            &:last-of-type {
                margin-right: 0;
            }
            &.ops-core {
                .ops-right .title {
                    padding-top: 25px;
                }
            }
            &.active {
                .ops-left {
                    color: green;
                }
            }
            .ops-left {
                float: left;
                width: 30%;
                line-height: 70px;
                text-align: center;
                font-size: 32px;
                .ops-icon-rank-report {
                    margin: 18px 0 0 10px;
                    width: 41px;
                    height: 31px;
                    background: url('../img/ops-sprites-icons.png') no-repeat 0 0;
                }
                .ops-icon-google-api {
                    margin: 18px 0 0 20px;
                    width: 21px;
                    height: 34px;
                    background: url('../img/ops-sprites-icons.png') no-repeat -42px 0;
                }
                .ops-icon-share-counter {
                    margin: 18px 0 0 13px;
                    width: 31px;
                    height: 34px;
                    background: url('../img/ops-sprites-icons.png') no-repeat -63px 0;
                }
                .ops-icon-backlinks {
                    margin: 18px 0 0 12px;
                    width: 36px;
                    height: 30px;
                    background: url('../img/ops-sprites-icons.png') no-repeat -94px 0;
                }
            }
            .ops-right {
                float: left;
                width: 70%;
                .title {
                    font-size: 16px;
                    font-weight: 600;
                    padding: 8px 0 5px;
                }
            }
        }
    }

    .ops-reciprocal-settings {
        display: none;
        &.active {
            display: block;
        }
    }
    .ops-row {
        padding: 5px 0;
    }

    .ops-tab {
        &:after {
            clear: both;
            display: block;
            content: '';
        }
        .ops-row {
            clear: both;
            padding: 10px 0;
            border-bottom: 1px solid #ececec;
            &:first-of-type {
                border-top: 1px solid #ececec;
            }
            &:after {
                clear: both;
                display: block;
                content: '';
            }
            .ops-left {
                float: left;
                width: 20%;
            }
            .ops-right {
                float: left;
                width: 80%;
                p {
                    margin-bottom: 0;
                }
            }
        }
        label {
            display: inline-block;
            font-weight: 600;
        }
        input {
            display: inline-block;
        }
        #ops-select-post-types {
            max-width: 700px;
            margin-top: 0px;
            clear: both;
            .ops-d {
                padding-top: 10px;
                font-weight: bold;
            }
            h4 {
                margin-top: 0px;
            }
            .ops-left-col,
            .ops-right-col {
                float: left;
                width: 50%;
                .ops-all-post-types,
                .ops-selected-post-types {
                    height: 200px;
                    overflow-y: scroll;
                    border: 1px solid #ececec;
                    /*padding: 10px;*/
                    .ops-post-type {
                        cursor: pointer;
                        padding: 10px 10px;
                        border-bottom: 1px solid #ececec;
                        background-position: left center;
                        .Transition();
                        &:hover {
                            color: #fff;
                        }
                    }
                }
                .ops-all-post-types {
                    .ops-post-type {
                        background-position: left center;
                        &:hover {
                            background: #0074a2 url('../img/right-arrow.png') no-repeat right 20px center;
                        }
                    }
                }
                .ops-selected-post-types {
                    .ops-post-type {
                        background-position: right center;
                        &:hover {
                            background: #0074a2 url('../img/left-arrow.png') no-repeat right 20px center;
                        }
                    }
                }
            }
        }

    }

}

.ops-hint {
    position: relative;
    &.left i {
        right: 20px;
    }
    &.right i {
        left: 20px;
    }
    i {
        font-style: normal;
        position: absolute;
        padding: 3px 8px;
        top: 0;
        background-color: #fff;
        border: 1px solid #ececec;
        color: #000;
        z-index: 2000;
        display: none;
        min-width: 200px;
        .TranslateY();
        text-align: left;
        font-weight: 500;
        font-size: 13px;
    }
    &:hover i {
        display: block;
    }
    &.lighter {
        &:before {
            background: url('../img/ops-sprites.png') no-repeat top -11px left;
        }
    }

    &:before {
        content: '';
        width: 11px;
        height: 11px;
        background: url('../img/ops-sprites.png') no-repeat top left;
        margin: 0 5px;
        display: inline-block;
    }

}

.ops-go-link {
    display: inline-block;
    width: 10px;
    height: 10px;
    padding: 0 3px;
    cursor: pointer;
    background: url('../img/ops-sprites.png') no-repeat top -22px left;
}

#ops-metabox {
    margin-top: 5px;
    .ops-tab {
        display: block;
        overflow: auto;
        padding: 10px 0;
        border: 1px solid #ddd;
        background-color: #fdfdfd;

        .ops-metabox-master-graph {
            #ops-master-graph {
                width: 100%;
                margin: 10px 0 0 0;
                height: 300px;
            }
        }

        .ops-add-new-keyword {
            margin: 10px 0px 0 15px;
        }
        .ops-add-new-backlink {
            margin: 10px 0px 0 15px;
        }
        #ops-preloader {
            margin: 12px 0 0 13px;
        }
    }

}

.ops-keyword-wrapper {
    background-color: #fdfdfd;
    border-top: 1px solid #ececec;
    padding: 5px 0px 0px 0;
    &:last-of-type {
        border-bottom: 1px solid #ececec;
    }
    .ops-keyword-analyze {
        padding: 7px 0;
        &:hover {
            a.ops-edit-kw, a.ops-delete-kw {
                display: block !important;
            }
        }
        &:after {
            clear: both;
            display: block;
            content: ' ';
        }
        .ops-total-left {
            float: left;
            padding: 0 5px;
            text-align: center;
            min-height: 60px;
            width: 50px;
            line-height: 1;

            .ops-move-kw {
                cursor: move;
                font-size: 30px;
                display: block;
                margin-left: 12px;
                width: 26px;
                height: 27px;
                padding-bottom: 5px;
            }
            a {
                text-decoration: none;
                display: none;
                &.ops-delete-kw {
                    color: red;
                }
            }
        }
        .ops-left {
            float: left;
            width: calc(~"60% - 30px");
            line-height: 140%;
            min-height: 65px;
            .ops-title {
                font-size: 18px;
                font-weight: 600;
            }
            .ops-url {
                padding-top: 5px;
                padding-bottom: 5px;
                color: #797979;
                font-style: italic;
            }
        }
        .ops-right {
            float: left;
            text-align: right;
            width: calc(~"40% - 30px");
            .ops-show-keyword-backlinks {
                height: 23px;
                line-height: 22px;
                margin-right: 10px;
            }
            ul {
                margin-bottom: 0;
                margin-right: 10px;
                margin-top: 5px;
                li {
                    display: inline-block;
                    &.positive {
                        font-weight: 600;
                        color: @green;
                        span {
                            color: @green;
                        }
                    }
                    &.negative {
                        font-weight: 600;
                        color: red;
                        span {
                            color: red;
                        }
                    }
                    span {
                        font-size: 14px;
                        color: #bababa;
                        font-weight: 500;
                    }
                    &:nth-child(1) {
                        font-size: 12px;
                    }
                    &:nth-child(2) {
                        font-size: 14px;
                    }
                    &:nth-child(3) {
                        font-size: 16px;
                    }
                    &:nth-child(4) {
                        font-size: 18px;
                    }
                    &:nth-child(5) {
                        font-size: 28px;
                        font-weight: 800;
                    }
                }
            }
        }
    }
    .ops-keyword-setting {
        background-color: #EAF2FA;
        padding: 10px 20px;
        border-top: 1px solid #ececec;
        border-bottom: 1px solid #ececec;
        display: none;
        label {
            display: inline-block;
            font-weight: 600;
            min-width: 200px;
        }
        input[type=text] {
            width: calc(~"100% - 250px");
            display: inline-block;
        }
    }

    .ops-keyword-backlinks {
        display: none;
    }

}

#ops-dashboard-shares {
    h3 {
        margin-top: 0;
    }
    .ops-posts-from {
        padding-bottom: 7px;
        a {
            text-decoration: none;
            &.active {
                text-decoration: underline;
                font-weight: bold;
            }
        }

    }

}

table.ops-table {
    width: 100%;
    tr {
        &.alert {
            color: orange;
        }
        &.error {
            color: red;
        }
        th {
            cursor: pointer;
            min-width: 30px;
            background-color: #ececec;
            border-bottom: 1px solid #e0e0e0;
            border-top: 1px solid #e0e0e0;
            font-weight: bold;
            line-height: 30px;
            &.ops-api-dimension {
                width: 65%;
            }
        }
        td {
            line-height: 25px;
            padding: 0 5px;
            border-bottom: 1px solid #ececec;
            border-collapse: collapse;
        }
    }
}

.ops-backlinks-wrapper {
    padding: 10px;
    background-color: #f0f0f0;
    .ops-backlink-keyword {
        margin-top: 10px;
        padding: 8px 15px 8px 0;
        color: #000;
        &:first-of-type {
            margin-top: 5px;
            padding-top: 0;
        }
        .keyword {
            font-size: 14px;
            font-weight: 600;
        }
    }
    .ops-single-backlink-wrapper {
        .Transition();
        &:first-of-type {
            .ops-backlink-data {
                border-top: 1px solid #d7d7d7;
            }
        }
        &.active {
            border: 2px solid #00a0d2;
            &:first-child {
                .ops-backlink-data {
                    border-top: 0px solid #d7d7d7;
                }
            }
        }
        .ops-backlink-data {
            background-color: #fff;
            line-height: 1;
            padding: 6px 15px 6px 9px;
            border-bottom: 1px solid #d7d7d7;
            position: relative;
            &:hover {
                background-color: #e4ebf5;
                .edit {
                    display: block;
                }
            }
            .ops-reciprocal-status {
                width: 9px;
                height: 9px;
                margin-right: 10px;
                margin-top: 2px;
                .BorderRadius(50%);
                float: left;
                &.no-status,
                &.no-keyword {
                    width: 8px;
                    height: 8px;
                    border: 1px solid #d2d2d2;
                }
                &.not-present {
                    background-color: red;
                }
                &.present-nofollow {
                    background-color: orange;
                }
                &.present {
                    background-color: green;
                }
            }
            .costs {
                float: right;
            }
            .type {
                min-width: 100px;
                float: right;
                text-align: right;
            }
            .time-ago {
                float: right;
                min-width: 120px;
                text-align: right;
            }
            .edit {
                position: absolute;
                right: 120px;
                top: 0;
                height: 25px;
                line-height: 25px;
                width: 80px;
                background-color: #e4ebf5;
                display: none;
            }
        }
        .ops-edit-single-backlink-box {
            display: none;
            padding: 5px 15px;
            background-color: #fafafa;
            label {
                display: inline-block;
                min-width: 150px;
            }
            input[type=text] {
                margin: 3px 0;
                width: 80px;
            }
            input.datepicker {
                width: 130px;
            }
            input[type=checkbox] {
                margin: 3px 0;
            }
            input[name=url],
            input[name=comment],
            input[name=contact] {
                width: calc(~"90% - 150px") !important;
            }
        }
    }
}

.ops-add-new-backlink {
    margin-bottom: 15px !important;
}

.ops-keyword-list {
    display: none;
}

.ops-add-new-backlink-form {
    display: none;
    margin: 0px 0 15px 0;
    padding: 8px 15px;
    border: 2px solid #00a0d2;
    &.active {
        display: block;
        //border: 2px solid #xx;
    }
    label {
        display: inline-block;
        min-width: 150px;
    }
    input[type=text] {
        margin: 3px 0;
        width: 80px;
    }
    input.datepicker {
        width: 130px;
    }
    input[type=checkbox] {
        margin: 3px 0;
    }
    input[name=url],
    input[name=comment],
    input[name=contact] {
        width: calc(~"90% - 150px");
    }
}

ul.ops-ads {
    margin: 5px 0 0 0;
    padding: 0;
    li {
        margin: 0px 0;
        line-height: 130%;
        border-bottom: 1px solid #ececec;
        padding: 5px 0;
        &:after {
            clear: both;
            display: block;
            content: '';
        }
        img {
            float: left;
            max-width: 30px;
            margin: 4px 7px 0 0;
            height: auto;
        }
    }
}

.ops-keyword-google-data {
    background-color: #F4F4F4;
    .ops-row {
        border-bottom: 1px solid #fff;
        line-height: 14px;
        font-size: 13px;
        padding: 4px 10px;
        .ops-number {
            float: right;
            .current {
                font-weight: bold;
                display: inline-block;
                min-width: 40px;
                text-align: right;
            }
            .previous {
                color: #d2d2d2;
            }
            &.negative {
                .current {
                    color: @red;
                }
            }
            &.positive {
                .current {
                    color: @green;
                }
            }
        }
    }
}

#ops-opportunity-comment {
    #ops-comment-output {
        #ops-preloader {
            margin-top: 15px;
        }
        ul {
            li {
                width: 500px;
                border-bottom: 1px solid #ececec;
                padding: 5px 0;
                line-height: 26px;
                margin: 0;
                &:after {
                    clear: both;
                    display: block;
                    content: '';
                }
                &:first-child {
                    border-top: 1px solid #ececec;
                }
                .ops-name {
                    float: left;
                    width: calc(~"100% - 100px");
                }
                .ops-google {
                    float: left;
                    width: 100px;
                    a {
                        float: right;
                    }
                }
            }
        }
    }
}

.ops-sad-premium-message{
    padding: 10px;
    margin: 10px;
    border: 1px solid #c55353;
    background-color:#fde3e3;
    &.no-right-left-margin{
        margin-left:0;
        margin-right:0;
    }
}

#ops-log-table{
    th{
        &.time{
            width: 155px;
        }
        &.action{
            width: 120px;
        }
        &.type{
            width: 70px;
        }
    }
}