/* Meta Box Container */

/* Progress Bar */
.#{$alias}-progress {
	position: relative;
	padding: 2px;
	border: 1px solid #f2f2f2;
	margin: 4px;
	background: #fff;
	margin-right: 50px;
	.#{$alias}-progress-score {
		position: absolute;
		background: #fff;
		text-align: center;
		line-height: 21px;
		color: #2d2d2d;
		font-weight: bold;
        right: -50px;
        top:-1px;
	}
}
.#{$alias}-progress-bar {
    position: relative;
    height: px(3);
    -webkit-transition: 0.4s linear;
    -moz-transition: 0.4s linear;
    -o-transition: 0.4s linear;
    transition: 0.4s linear;
    -webkit-transition-property: width, background-color;
    -moz-transition-property: width, background-color;
    -o-transition-property: width, background-color;
    transition-property: width, background-color;
    &:before, &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    &:before {
        bottom: 0;
        border-radius: 4px 4px 0 0;
    }
    &:after {
        z-index: 2;
        bottom: 45%;
        border-radius: 4px;
    }
}
/* define the progress bar colors by sizes */
.#{$alias}-progress .#{$alias}-progress-bar {
    &.size_0_20 {
        background-color: #e74c3c;
    }
    &.size_20_40 {
        background-color: #e67e22;
    }
    &.size_40_60,
    &.size_60_80 {
        background-color: #ff9800;
    }
    &.size_80_100 {
        background-color: #4caf50;
    }
}

.seotitle:before {
    width:20px;
    height:16px;
    font-family: 'seo-checks';
    font-size: px(16);
    content: "\e904";
}

.focuskey:before {
    font-family: 'seo-checks';
    font-size: px(16);
    content: "\e903";
}

##{$alias}_onpage_optimize_meta_box .inside, ##{$alias}_locations_meta_box .inside, ##{$alias}_facebook_share-options .inside {
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    background: #f5f9fc;
    border-bottom: 7px solid #ccd9e2;
}

.#{$alias}-meta-box-container {
    width: 100%;
    min-height: 300px;
    background-color:#fff;

    a {
        color: $danger;
        &#building_image,
        &#logo_image {
            margin-left: px(25) !important;
        }
    }
    .panel {
        margin-bottom: 0;
    }
    .panel-body.#{$alias}-panel-body.#{$alias}-form-row {
        position: relative;
        &>label {
            float: left;
        }
        .#{$alias}-form-label {
            float: left;
            margin-top: 0;
            width: 17%;
        }
       .#{$alias}-form-item {
            &.large {
                ##{$alias}-map-canvas,
                .#{$alias}-geocode-verify,
                .#{$alias}-geocode-status {
                    margin-left: px(226);
                }
                &>input {
                    width: 82%;
                }
                .upload-input-text {
                    margin-left: -#{px(34)};
                    width: 150%;
                }
                select,
                input,
                textarea {
                    margin: 0;
                    float: left;
                }
                .#{$alias}-form-note {
                    position: absolute;
                    top: px(5);
                    right: px(5);
                    color: $gray;
                    font-style: italic;
                    font-size: px(11);
                    width: 81.3%;
                }
            }
        } 
    }
    
    ##{$alias}-twittercards-post-response,
    ##{$alias}-twittercards-app-response {
    		background-color: #f2f2f2;
				.#{$alias}-panel.#{$alias}-setup {
					background-color: #fff;
                    border: 1px solid #f2f2f2 !important;
                    padding-top: 20px;
				}

        .#{$alias}-form-row {
            padding-top: px(40);
            
					.upload-input-text {
						margin-left: px(0);
					}
        }
    }
    
  .#{$alias}-tab-menu {
    width: 100%;
    height: 66px;
    background: linear-gradient(60deg,#d32f2f,#ef5350);
    transition: background-color .1s .2s;
    margin: 0px 0px 0px 0px;
    a {
        border-radius: 3px;
        display: inline-block;
        text-transform: uppercase;
        padding: 14px 25px 14px 25px;
        font: bold 14px Arial, Helvetica, sans-serif;
        text-decoration: none;
        color: #ffffff;
        margin: 10px;
        float: left;
        &:hover {
        background-color: rgba(255,255,255,.2);
        }
        &.open {
        color: #fff;
        background-color: rgba(255,255,255,.2);
        transition: background-color .1s .2s;
        }
        &:active, &:focus, &:active {
        outline: none;
      }
    }
  }
  .#{$alias}-tab-container {
    width: 100%;
    margin: 1% 0% 0% 0%;
  }
  .#{$alias}-dashboard-box {
    border-radius: 3px;
    float: left;
    min-height: 140px;
    background-color: #fff;
    &:first-child {
      margin-left: 0px;
    }
    &.span_3_of_3 {
      width: 100%;
      overflow: hidden;
    }
    &.span_2_of_3 {
      width: 66.1%;
    }
    &.span_2_of_1 {
      width: 32.2%;
    }
    &.span_2_of_2 {
      width: 49%;
    }
    ##{$alias}-btn-metabox-autofocus {
        margin-top: px(10);
    }
    
    h1 {
        color: #394651;
        position: relative;
        font: bold 16px Arial, Helvetica, sans-serif;
        width: 97%;
        display: block;
        border-bottom: 1px solid #f3f3f3;
        padding: 0px 0px 8px 0px;
        margin: 10px 1.5% 10px 1.5%;
        a {
            display: block;
            width: 17px;
            height: 15px;
            position: absolute;
            top: 0px;
            right: 0px;
        }
    }
  }
    .#{$alias}-dashboard-box-content {
        margin: 30px 1.5% 10px 1.5%;
        width: 97%;

        > table.form-table > tbody > tr > td:nth-child(1) {
        	width: 25%;
            vertical-align:top;
        }
    }
}

.#{$alias}-dashboard-box-content {
    ##{$alias}-seo-score-box {
        width: 100%;
        min-height: 230px;
        border-spacing: 0;
        border-collapse: collapse;
        td {
            padding: 10px 20px 10px 20px;
            vertical-align: top;
            &:first-child {
            	padding-left: 0px;
            }
        }
        h2 {
            padding: 0px 0px 0px 0px;
            margin: 0px 0px 0px 0px;
            position: relative;
            bottom: -#{px(12)};
        }
		table {
			width: 100%;
			min-height: 230px;
			border-spacing: 0;
			border-collapse: collapse;
		}
    }
    ##{$alias}-keyword-density-legend-container {
        width: 100%;
        text-align: left;
        position: relative;
        top: -30px;
        table {
            margin: 0px auto;
        }
        td {
            padding: 0px 0px 0px 2px;
        }
    }
}

.#{$alias}-keyword-density-label {
    width: 36px;
    height: 36px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-image: -webkit-gradient(radial, center center, 0, center center, 150, from(#fcfcfc), to(#dedede), color-stop(3%, #f7f7f7), color-stop(12%, #f2f2f2), color-stop(90%, #e8e8e8));
    background-image: -webkit-radial-gradient(center center, circle contain, #fcfcfc, #f7f7f7 3%, #f2f2f2 12%, #e8e8e8 90%, #dedede);
    background-image: -moz-radial-gradient(center center, circle contain, #fcfcfc, #f7f7f7 3%, #f2f2f2 12%, #e8e8e8 90%, #dedede);
    background-image: -o-radial-gradient(center center, circle contain, #fcfcfc, #f7f7f7 3%, #f2f2f2 12%, #e8e8e8 90%, #dedede);
    background-image: -ms-radial-gradient(center center, circle contain, #fcfcfc, #f7f7f7 3%, #f2f2f2 12%, #e8e8e8 90%, #dedede);
    background-image: radial-gradient(center center, circle contain, #fcfcfc, #f7f7f7 3%, #f2f2f2 12%, #e8e8e8 90%, #dedede);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    .#{$alias}-percent {
        width: 28px;
        height: 28px;
        font-size: 10px;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        border-radius: 50%;
        position: absolute;
        line-height: 26px;
        text-align: center;
        color: #fff;
        top: 50%;
        left: 50%;
        margin-left: -14px;
        margin-top: -14px;
    }
}

##{$alias}_locations_meta_box ##{$alias}-meta-box-container .#{$alias}-dashboard-box {
    box-shadow: none;
}

##{$alias}-add-new-opening {
    padding-bottom: 5px;
}

#TB_ajaxContent {
  .#{$alias}-form {
    padding-top: 15px;
  }
  .#{$alias}-shortcode-pop-up {
    overflow: hidden;
    height: auto;
  }
    .#{$alias}-form {
    .#{$alias}-grid_4 {
        width: 100%;
        margin: 0px -15px 0px 0px;
        padding: 0px 0px 0px 0px;
        }
        .#{$alias}-button-row {
            border: none;
            background: none;
            padding: 10px 0px 10px 0px;
            width: 100%;
            background: #f1f1f1;
            position: absolute;
            margin-left: -15px;
            bottom: 0px;
            input {
                margin-left: 15px;
                margin-right: 15px;
            }
        }
    }
}

.#{$alias}-seo-status-container.#{$alias}-seo-score-summary {
    margin: 10px 0px 0px 0px;
    .message-box {
        float: none;
        width: 100%;
        margin: 0px 0px 4px 0px;
        text-indent: 5px;
    }
}

##{$alias}_onpage_optimize_meta_box .#{$alias}-dashboard-box-content ##{$alias}-seo-score-box {
    ##{$alias}-your-focus-kw {
        display: block;
        width: 100%;
        padding: 3px 4px 3px 4px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px; 
    }
    h2 {
        display: block;
        width: 100%;
        padding: 10px 8px 3px 8px; 
        font-size: 14px;
        color: #2c3e50;
    }
    h3 {
        display: block;
        width: 100%;
        padding: 3px 8px 3px 8px;
        background: none;
        font-family: Arial, 'Helvetica', sans-serif;
        border: 0px solid red;
        font-size: 1.3em;
        color: #2c3e50;
        cursor: default;
    }
}
input[type=text], textarea {
    border: 1px solid #f2f2f2;
}

##{$alias}-form-meta-tags {
    input.large-text, textarea.large-text {
        width: 100%;
    }
    .#{$alias}-prev-box {
        width: 512px;
        .#{$alias}-prev-title {
            color: #1122CC;
            cursor: pointer;
            display: block;
            width: 100%;
            font-weight: normal;
            line-height: 1.2;
        }
        .#{$alias}-prev-url {
            font-size: 14px !important;
            color: #009933;
            display: block;
            width: 100%;
            font-weight: normal;
            line-height: 1.2;
        }
        .#{$alias}-prev-desc {
            color: #444444;
            font-weight: normal;
            line-height: 1.2;
        }
    }

	tr:nth-child(3) > td:nth-child(2) {
		width: auto;
	}
	.tokenfield.form-control {
		height: auto;
		/*width: 100%;*/
		input[type=text].token-input {
			border: 0px;
		}
	}
	##{$alias}-field-multifocuskw {
		width: auto; //400px;
		min-width: 600px;
		max-width: 800px;
	}
}

.#{$alias}-seo-focuskw {
    margin-bottom: 10px;
    margin-top: 11px;
}

.#{$alias}-seo-status-container {
    margin: 60px 10px 0px 10px;
    padding-bottom: 10px;
    .#{$alias}-seo-status-icon {
        width: 16px;
        height: 16px;
        background: #fff;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        border-radius: 50%;
        display: block;
    }
    .#{$alias}-seo-rule-row {
        border-bottom: 1px solid #dadada;
        padding: 10px 0px 10px 0px;
        float: left;
        margin: 0px 0px 0px 30px;
        width: px(740);
        &:last-child {
            border: none;
        }
        p {
            margin: 0px 0px 10px 0px;
        }
        .left-col {
            width: 16px;
            float: left;
            position: relative;
            left: -22px;
            bottom: -5px;
        }
        .middle-col {
            width: 120px;
            float: left;
            padding: 5px 0px 0px 0px;
            font-weight: bold;
            left: -15px;
            position: relative;
        }
        .right-col {
            width: 600px;
            float: left;
            min-height: 20px;
            padding: 5px 0px 0px 0px;
            .message-box {
                width: 600px;
            }
        }
    }


    .message-box {
        border: 1px solid #fff;
        padding: 2px;
        background-color: #fff;
        width: 733px;
        float: left;
        font-weight: normal;
        position: relative;
        padding-left: 30px;
        margin-bottom: 5px;

        &:before {
            position: absolute;
            font-family: 'seo-checks';
            content: "\e900";
            color: #fff;
            top: 0;
            left: 0;
            font-size: 13px;
            display: inline-block;
        }
        strong {
            background-color: #c10202;
            padding: 2px 4px 2px 4px;
            margin-top: -2px;
            color: #fff;
        }
        &.good:before {
            content: "\e902";
            color: $success;
        }
        &.poor:before {
            content: "\e900";
            color: $warning;
        }
        &.bad:before {
            content: "\e901";
            color: $danger;
        }
		ul.#{$alias}-competing-links {
			list-style-type: none;
			display: block;
			margin: 3px 0px;
			padding: 0px;
			li {
				margin-left: 10px;
				margin-bottom: 3px;
				a {
					text-decoration: none;
					color: #bdc3c7;
				}
			}
		}
    }
    .#{$alias}-seo-status-icon {
        &.good {
            background: $success;
        }
        &.poor {
            background: $warning;
        }
        &.bad {
            background: $danger;
        }
    }
}


.#{$alias}-dashboard-box {
    .#{$alias}-setup {
        border: none;
    }
    &>a,
    &>input {
        margin: px(20) 0;
    }
    label {
        margin-bottom: px(10);
        margin-top: px(10);
    }
    ##{$alias}-wplannerfb-auto-complete,
    ##{$alias}_post_planner_postNowFBbtn {
        margin-bottom: px(25);
    }
    .#{$alias}-custom-checkbox {
        display: inline-block;
        i {
            &.checkbox {
                margin: 0;
                margin-right: px(5);
                margin-top: px(10);
                margin-bottom: -#{px(5)};
            }
        }
    }
    td {
       padding-left: px(35);
    }
    td td {
       padding-left: px(0);
    }

}    
/* Old form system */


.#{$alias}-form {
    padding-top:3px;
    
  .#{$alias}-form-col-1-8 label, .#{$alias}-form-col-2-8 label, .#{$alias}-form-col-3-8 label, .#{$alias}-form-col-4-8 label, .#{$alias}-form-col-5-8 label, .#{$alias}-form-col-6-8 label, .#{$alias}-form-col-7-8 label, .#{$alias}-form-col-8-8 label {
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .#{$alias}-form-col-1-8, .#{$alias}-form-col-2-8, .#{$alias}-form-col-3-8, .#{$alias}-form-col-4-8, .#{$alias}-form-col-5-8, .#{$alias}-form-col-6-8, .#{$alias}-form-col-7-8, .#{$alias}-form-col-8-8 {
    float: left;
    padding: 0 .5%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -khtml-box-sizing: border-box;
    input {
        height: px(29);
        border-radius: px(3);
    }
  }
  .#{$alias}-form-col-1-8.alpha, .#{$alias}-form-col-2-8.alpha, .#{$alias}-form-col-3-8.alpha, .#{$alias}-form-col-4-8.alpha, .#{$alias}-form-col-5-8.alpha, .#{$alias}-form-col-6-8.alpha, .#{$alias}-form-col-7-8.alpha, .#{$alias}-form-col-8-8.alpha {
    padding-left: 0;
    clear: left;
  }
  .#{$alias}-form-col-1-8.omega, .#{$alias}-form-col-2-8.omega, .#{$alias}-form-col-3-8.omega, .#{$alias}-form-col-4-8.omega, .#{$alias}-form-col-5-8.omega, .#{$alias}-form-col-6-8.omega, .#{$alias}-form-col-7-8.omega, .#{$alias}-form-col-8-8.omega {
    padding-right: 0;
    clear: right;
  }
  .#{$alias}-form-col-1-8 {
    width: 12.5%;
  }
  .#{$alias}-form-col-2-8 {
    width: 25%;
  }
  .#{$alias}-form-col-3-8 {
    width: 37.5%;
    select {
        display: block;
        width: 100%;
    }
  }
  .#{$alias}-form-col-4-8 {
    width: 50%;
  }
  .#{$alias}-form-col-5-8 {
    width: 62.5%;
  }
  .#{$alias}-form-col-6-8 {
    width: 75%;
  }
  .#{$alias}-form-col-7-8 {
    width: 87.5%;
  }
  .#{$alias}-form-col-8-8 {
    width: 100%;
  }

}



/*****************************/
/* LOADING */
##{$alias}-main-loading ##{$alias}-loading-box {
	border: px(1) solid #aaa;
	box-shadow: rgba(0, 0, 0, 0.2) 0 px(4) px(16) 0;
	background-color: #fff;
	filter: alpha(opacity=100);
	height: 6rem; /*10rem;*/
	left: 33%;
	-moz-opacity: 1;
	opacity: 1;
	position: absolute;
	top: 30rem;
	width: 40%;
	z-index: 10000;
}
	##{$alias}-main-loading ##{$alias}-loading-box .#{$alias}-loading-text {
		color: #fff; /*#999;*/
		font-size: 1.1rem;
		position: relative;
		text-align: center;
		text-transform: uppercase;
		top: 2.2rem; /*2.5rem;*/
	}

/* progress bar */
.#{$alias}-meter {
	text-align: left;
	background-color: #f2eee3;
	height: px(20);
	padding: px(1) px(2) px(1) px(2);
	width: 100%;
	-moz-border-radius: px(5);
	-webkit-border-radius: px(5);
	border-radius: px(5);
	-moz-box-shadow: 0 px(1) px(5) #bcbcbc inset, 0 px(1) 0 #c3b17e;
	-webkit-box-shadow: 0 px(1) px(5) #bcbcbc inset, 0 px(1) 0 #c3b17e;
	box-shadow: 0 px(1) px(5) #bcbcbc inset, 0 px(1) 0 #c3b17e;
}

.#{$alias}-meter span {
	display: inline-block;
	height: 100%;
	background-color: #777;
	-moz-border-radius: px(3);
	-webkit-border-radius: px(3);
	border-radius: px(3);
	-moz-box-shadow: 0 px(1) 0 rgba(255, 255, 255, .5) inset;
	-webkit-box-shadow: 0 px(1) 0 rgba(255, 255, 255, .5) inset;
	box-shadow: 0 px(1) 0 rgba(255, 255, 255, .5) inset;
	-webkit-transition: width .4s ease-in-out;
	-moz-transition: width .4s ease-in-out;
	-ms-transition: width .4s ease-in-out;
	-o-transition: width .4s ease-in-out;
	transition: width .4s ease-in-out;
}
/* stripes */
.#{$alias}-meter span {
	-webkit-background-size: px(30) px(30);
	-moz-background-size: px(30) px(30);
	background-size: px(30) px(30);
	background-image: -webkit-gradient(linear, left top, right bottom,
		color-stop(.25, rgba(255, 255, 255, .15)), color-stop(.25, transparent),
		color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .15)),
		color-stop(.75, rgba(255, 255, 255, .15)), color-stop(.75, transparent),
		to(transparent));
	background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
		transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
		transparent 75%, transparent);
	background-image: -moz-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
		transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
		transparent 75%, transparent);
	background-image: -ms-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
		transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
		transparent 75%, transparent);
	background-image: -o-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
		transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
		transparent 75%, transparent);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
		transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
		transparent 75%, transparent);
}
.#{$alias}-meter.#{$alias}-animate span {
	-webkit-animation: animate-stripes 3s linear infinite;
	-moz-animation: animate-stripes 3s linear infinite;
}

.psp-tax-meta-box {
    min-width: 955px !important;
}