/*

	NOTE: This is a first version of the Admin UI
	These are just ideas. There's a lot of cleanup to be made here.

	@TODO: define stylesheet sections
	@TODO: Clean up Styles.
	@TODO: Continue working with input types.
	@TODO: Continue working with the Header & Footer styles
	@TODO: Define Layouts (for the options page, the idea is to have content/sidebar distribution)
	@TODO: We need to define how to achieve having an "Info" section for the Settings page.
	@TODO: Develop helpers.

*/

/*--------------------------------------------------------------
    TABLE OF CONTENTS:
----------------------------------------------------------------
	1.0 - HTML Elements
	2.0 - Helpers
	3.0 - Containers
	4.0 - Buttons
	5.0 - Header
		5.1 - Top navigation
		5.2 - Master Header
	6.0 - Footer
	7.0 - Feature and Module Box.
		7.1 - Module Search
		7.2 - Filters
	8.0 - Tooltips
	9.0 - Accordion
	10.0 - Toggle
	11.0 - Tabs
	12.0 - Notices
	13.0 - Forms & Inputs
		13.1 - File input/Screenshot
	14.0 - Grid
	15.0 - Responsive
--------------------------------------------------------------*/

// Including mixins and variables.
@import "sass/mixins/_mixins-master";
@import "sass/variables/_variables";

/* Clear Floats  */
.col-full:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.fix {
	clear: both;
	height: 1px;
	overflow: hidden;
	margin: -1px 0 0;
}

html body * span.clear,
html body * div.clear,
html body * li.clear,
html body * dd.clear {
	background: none;
	border: 0;
	clear: both;
	display: block;
	float: none;
	font-size: 0;
	list-style: none;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.clearfix {
	display: inline-block;
	overflow: hidden;
}

/* Hide from IE Mac \*/
.clearfix {
	display: block;
}

/* End hide from IE Mac */
.none {
	display: none;
}

/* End Clearfix */

/* -----------------------------------------------------------------------------
   1.0 - HTML Elements.
   -------------------------------------------------------------------------- */
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
	 -moz-box-sizing: border-box;
	      box-sizing: border-box;
}

html,
button,
input,
select,
textarea {
	color: $color__text-screen;
	font-family: $font__main;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

body {
	font-size: 1em;
	font-size: 14px;
	line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: $color__text-screen;
	font-weight: 700;
}

a {
	color: $color__link;
	@include transition(color 0.2s);
	text-decoration: none;
	&:visited {
		color: $color__link-visited;
	}
	&:hover {
		color: $color__link-hover;
	}
	&:focus {
		outline: thin dotted;
	}
}

address {
	margin: 0 0 1.5em;
}

abbr[title],
acronym {
	cursor: help;
}

ins {
	background: $color__background-ins;
	text-decoration: none;
}

img {
	vertical-align: middle;
}

dt {
	font-weight: 700;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select, textarea{
	padding: 8px;
}

textarea {
	resize: vertical;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid $color__background-hr;
	margin: 1em 0;
	padding: 0;
}

/* -----------------------------------------------------------------------------
   2.0 - Helpers
   -------------------------------------------------------------------------- */
.nav-horizontal {
	a {
		display: inline-block;
	}
	ul {
		margin: 0;
		padding: 0;
	}
	li {
		position: relative;
		float: left;

		html[dir="rtl"] & {
			float: right;
		}
	}
}

div.updated,
div.error {
	margin: 15px 0;
}

/* -----------------------------------------------------------------------------
   3.0 - Containers
   -------------------------------------------------------------------------- */
#wpbody-content {
	color: $color__text-main; //$white; maybe we can remove this?
	padding-bottom: 0;
}

.nice-admin-wrapper {
	background-color: $color__background-body;
	color: $color__text-main;
	margin-left: -20px;
	position: relative;
	z-index: 1;

	html[dir="rtl"] & {
		margin-left: 0;
		margin-right: -20px;
	}
}

.container {
	background-color: $color__background-body;
	width: 100%;

	.page-content { // @TODO: Define or work over full-width. Re-check the structure.
		margin: 0 auto;
		overflow: hidden;
		padding: 30px;
		width: $size__site-full-width;
		.nav-tab-wrapper {
			margin-top: 15px;
			margin-bottom: 30px;
		}
		h1,
		form h3 {
			border-bottom: 1px solid $color__border-main-light;
			padding-bottom: 10px;
		}
	}

	.content-sidebar {
		max-width: $size__site-main;
		margin: auto;
		width: 100%;

		.content {
			float: left;
			width: $size__site-content;
			overflow: hidden;

			html[dir="rtl"] & {
				float: right;
			}
		}

		.sidebar {
			float: right;
			width: $size__site-sidebar;
			overflow: hidden;

			html[dir="rtl"] & {
				float: left;
			}

			.sidebar-box {
				background: $grey-lighter;
				padding: 5px 20px;
				margin-bottom: 20px;
				color: $color__text-screen;

				body.wp-core-ui:not(.is-mp6) & .button {
					border: 1px solid #bbb !important;
					color: #333 !important;
					text-shadow: none;
					height: 40px !important;
				}

				a {
					&.nice-admin-plugin-rate {
						color: #ffc926;
					}

					&:before {
						font-family: 'dashicons';
						margin-right: 5px;
						margin-top: 1px;
						float: left;

						html[dir="rtl"] & {
							margin-right: 0;
							margin-left: 5px;
							float: right;
						}
					}

					&.nice-admin-plugins {
						font-size: 14px;
						&:before {
							content: "\f106";
						}
					}

					&.nice-admin-themes {
						font-size: 14px;
						&:before {
							content: "\f100";
						}
					}

					&.nice-admin-plugin-docs {
						font-size: 14px;
						&:before {
							font-size: 14px;
							font-family: 'dashicons';
							content: "\f468";
							margin-right: 5px;
						}
					}

				}

				ul.nice-admin-social {
					list-style: none;
					margin: 0;
					display: flex;
					flex-wrap: wrap;

					> li {
						font-size: 22px;
						margin-right: 5px;
						margin-bottom: 5px;
						display: inline-block !important;
						position: relative !important;
						background-image: none;
						padding: 0 !important;
						background-color: transparent;
						border: none !important;

						a {
							color: #fff !important;
							text-align: center;
							line-height: 40px !important;
							background-repeat: no-repeat;
							height: 40px;
							width: 40px;
							display: block;
							background: #444;
							@include border-radius(2px);

							i {
								line-height: 40px;
							}

							&:hover,
							&:focus {
								color: #fff;
								i {
									color: #fff;
								}
							}
						}

						&.facebook a {
							background-color: #4064af;
						}

						&.twitter a {
							background-color: #46c7f4;
						}

						&.wordpress a {
							background-color: #444;
						}

					}
				}

			}
		}
	}

	.header + & {
		position: absolute;
		top: 46px;
	}
}

#screen-meta-links {
	position: relative;
	z-index: 2;
	a:focus {
		box-shadow: none;
	}
}

.heading {
	.masthead {
		.section-description {
			color: $color__text-header;
			padding: 50px 30px;
			text-align: left;

			html[dir="rtl"] & {
				text-align: right;
			}

			h1 {
				margin: 0;
				padding: 0;
			}
			p {
				font-size: 15px;
			}
		}
	}
}

/* -----------------------------------------------------------------------------
   4.0 - Buttons
   -------------------------------------------------------------------------- */

.wp-core-ui {
	.button {
		@include transition(all 0.1s ease-in-out);
		height: auto;
		padding: 8px 15px;
	}
	.nice-admin-button {
		@include box-shadow(none);
		border: none;
		height: auto;
		display: inline-block;
		position: relative;
		padding: 0.76923em 1.46154em;
		color: $grey-lighter;
		font: 800 13px $font__main;
		text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
		background: $grey-medium;
		@include border-radius(3px);
		-webkit-background-clip: padding-box;
		background-clip: padding-box;
		&:visited {
			color: $grey-lighter;
		}
		&:hover,
		&:focus {
			@include box-shadow(none);
			color: $white;
			background: $red-light;
			border: none;
		}
		&:active {
			background: $red-light;
			opacity: 0.8;
		}
	}
}

/* -----------------------------------------------------------------------------
   5.0 - Header
   -------------------------------------------------------------------------- */
.header {
	position: absolute;
	background: $color__background-header;
	left: 0;
	overflow: hidden;
	right: 0;
	width: 100%;
	z-index: 2;
}

/* -----------------------------------------------------------------------------
   5.1 - Top navigation
   -------------------------------------------------------------------------- */
.header-nav {
	.current {
		background: $color__background-header-nav-hover;
	}
	a {
		padding: 0 1.07143em;
		color: $color__text-header-nav;
		line-height: 46px;
		&:hover {
			background: $color__background-header-nav-hover;
		}
	}
}

.main-nav {
	float: left;

	html[dir="rtl"] & {
		float: right;
	}

	li {
		margin: 0;
		font-size: 14px;
		i.dashicons {
			margin-right: 5px;
			line-height: 46px; // the same as the a items.

			html[dir="rtl"] & {
				margin-right: 0;
				margin-left: 5px;
			}

			body:not(.is-mp6) & {
				display: none;
			}
		}
	}
	.nice-logo {
		display: none;

		span {
			display: block;
			padding: 8px 15px 8px 30px;

			html[dir="rtl"] & {
				padding: 8px 30px 8px 15px;
			}

			img {
				width: 145px;
				height: auto;
			}
			&:not(.image-title) {
				color: $color__text-header;
				font-size: 21px;
			}
		}
	}
}

/* -----------------------------------------------------------------------------
   5.2 - Master header
   -------------------------------------------------------------------------- */
.masthead {
	overflow: hidden;
	position: relative;
	text-align: center;
	z-index: 1;
	background-color: $color__background-masthead;
	h1,
	h2 {
		margin: 0 auto;
	}
	h1 {
		padding: 2.5em 15px 1.11111em;
		max-width: 21.94444em;
		color: $color__text-header;
		font: 300 32px $font__main;
		position: relative;
		text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
		z-index: 3;
	}
	.updated,
	.update-nag,
	.error {
		margin: 15px;
		text-align: left;
	}
}

.subhead {
	border-bottom: 1px solid $color__border-main;
	position: relative;
	margin-top: 105px;
	padding: 4em;
	background: $color__background-subhead;
	z-index: 2;
	h2 {
		max-width: 460px;
		color: $color__text-heading;
		font: 400 24px  $font__main;
		text-shadow: 0 1px 1px $white;
		padding: 0 15px;
	}
	&:after {
		content: '';
		position: absolute;
		bottom: 100%;
		left: 0;
		margin-bottom: -1px;
		width: 100%;
		height: 228px;
		pointer-events: none;
		z-index: -1;
	}
}

/* -----------------------------------------------------------------------------
   6.0 - Footer
   -------------------------------------------------------------------------- */
#wpfooter {
	display: none;
}

.footer {
	position: relative;
	padding: 4.28571em 0;
	text-align: center;
	background-color: $color__background-footer;
	font-size: 13px;
	&:before,
	&:after {
		content: '';
		position: absolute;
		left: 0;
		pointer-events: none;
	}
	&:before {
		top: 0;
		margin-top: -1px;
		width: 100%;
		height: 195px;
	}
	&:after {
		bottom: 0;
		width: 100%;
		height: 50px;
		-webkit-background-size: auto 45px;
		background-size: auto 45px;
		z-index: 1;
	}
	nav {
		max-width: 550px;
		margin: 0 auto;
		color: $color__text-footer-nav;
		a,
		a:visited {
			padding: 4px 0;
			color: $color__text-footer-nav;
		}
		&.secondary a {
			padding: 4px 6px;
		}
		a {
			&:hover,
			&:focus,
			&:visited:hover,
			&:visited:focus {
				color: $color__text-footer-nav-hover;
			}
		}
	}
	.primary {
		padding: 25px 15px 10px 15px;
		border-bottom: 1px solid $color__border-footer-top;
		.dashicons-heart {
			color: $color__background-heart;
			margin-top: 5px;

			body:not(.is-mp6) & {
				display: none;
			}
		}
	}

	.secondary {
		padding: 14px 15px 0 15px;
		border-top: 1px solid $color__border-footer-bottom;
	}
}



/* -----------------------------------------------------------------------------
   7.0 - Feature and module boxes
   -------------------------------------------------------------------------- */
.features,
.modules {
	display: inline-block;
}

.modules {
	h3.icon {
		width: auto;
	}
	h3.icon:before {
		display: inline-block;
		position: relative;
		top: 1px;
		left: -3px;
		margin-right: 2px;
		opacity: 0.8;
		font: normal 20px "dashicons";
		vertical-align: top;
	}
}

.feature,
.module {
	position: relative;
	float: left;
	margin: 0 5px 10px;
	width: 310px;
	@include transition(all 0.2s ease-in-out);
	&.new {
		position: relative;
		&:after {
			content: 'NEW';
			position: absolute;
			top: -8px;
			right: -8px;
			padding-top: 10px;
			width: 32px;
			height: 32px;
			color: $white;
			font-size: 8px;
			font-weight: 800;
			text-align: center;
			text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
			background: $red-light;
			-webkit-background-size: 100%;
			background-size: 100%;
			@include border-radius(50%);
			@include background-clip(padding-box);
		}
	}
}

.featured {
	border-top: 1px solid $color__border-main;
	border-bottom: 1px solid $color__border-main;
	background: $grey-lighter;
	position: relative;
	padding: 2.0em 0 4.6em;
	text-align: center;
	z-index: 1;
	&:before {
		content: "";
		display: block;
		position: absolute;
		top: 0;
		height: 100%;
		z-index: -1;
	}
	h2 {
		margin-top: 0.61111em;
		color: $grey-dark;
		font: 300 2.57143em/1.4em $font__main;
		text-align: center;
		text-shadow: 0 1px 1px $white;
	}
}

.feature {
	background-color: $white;
	h3 {
		margin: 0 0 0.58824em;
		color: $grey-dark;
		font-size: 1.21429em;
		line-height: 1em;
		font-weight: 800;
	}
	p {
		margin: 0;
		color: $grey-medium;
	}
	&:hover {
		top: -5px;
		@include box-shadow(0 5px 0 rgba(0, 0, 0, 0.02));
		h3 {
			color: $red-medium;
		}
		.feature-img {
			border: 1px solid $color__border-main;
			border-bottom: none;
		}
		.feature-description {
			background: $white;
			border: 1px solid $color__border-main;
		}
	}
	.feature-img {
		width: 100%;
		height: auto;
		min-height: 160px;
		border: 1px solid $color__border-main;
		border-bottom: none;
		img {
			max-width: 100%;
		}
		&.no-border {
			border: none;
			padding-bottom: 1px;
		}
	}
	.feature-description {
		display: block;
		padding: 1em 1.07143em 1.07143em;
		border: 1px solid $color__border-main;
		background: $grey-lighter;
		text-align: center;
		@include transition(all 0.2s ease-in-out);
		color: $grey-medium;
		font-size: 13px;
	}
}


.module {
	cursor: pointer;
	display: block;
	padding: 0.71429em 1.07143em 1em;
	text-align: left;
	border: 1px solid $color__border-main;
	background: $white;
	-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0.03);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0.03);
	@include transition(opacity 2s ease-in);
	h3 {
		margin: 0 0 0.5em;
		color: $red-light;
		font-family: $font__main;
		font-size: 1.14286em;
		line-height: 1.4em;
		font-weight: 700;
	}
	p {
		margin: 0;
		color: $grey-medium;
		font-size: 0.85714em;
	}
	&:hover {
		border-color: $red-light;
		background: lighten($red-light, 33%);
	}
}

.mini-boxes {
	padding-top: 5px;
}

/* -----------------------------------------------------------------------------
   7.1 - Module Search
   -------------------------------------------------------------------------- */
#module-search {
	position: relative;
	width: 100%;
	max-width: 40.71429em;
	margin: 0 auto 1.07143em;
	overflow: hidden;
}

.module-search {
	html & {
		width: 100%;
		padding: 11px 16px 11px 16px;
		color: $grey-medium;
		border: 1px solid $color__border-main;
		border-right-width: 2px;
		background: $white;
		line-height: 1.3;
		border-radius: 3px;
		@include background-clip(padding-box);
		&:focus {
			color: $grey-dark;
			outline: none;
		}
		&:focus + label {
			background: transparent;
			opacity: .3;
		}
		&::-webkit-input-placeholder {
			color: $grey-medium;
		}
		& :-moz-placeholder {
			color: $grey-medium;
		}
		&::-moz-placeholder {
			color: $grey-medium;
		}
		&:-ms-input-placeholder {
			color: $grey-medium;
		}
		& + label {
			position: absolute;
			top: 1px;
			right: 1px;
			bottom: 1px;
			width: 48px;
			color: $grey-light;
			text-indent: -9999px;
			pointer-events: none;
			@include border-radius(3px);
			-webkit-background-clip: padding-box;
			background-clip: padding-box;
			@include transition(all 0.2s ease-in-out);
			&:after {
				content: '\f179';
				position: absolute;
				right: 11px;
				text-align: right;
				top: 4px;
				font-size: 1.71429em;
				font-weight: normal;
				font-family: "dashicons";
			}
		}
	}
}

/* -----------------------------------------------------------------------------
   7.2 - Filters
   -------------------------------------------------------------------------- */
.nice-admin-filter {
	margin-bottom: 2.85714em;
	color: $grey-medium;
	a {
		display: inline-block;
		position: relative;
		padding: 0.76923em 1.46154em;
		color: $grey-medium;
		font: 600 0.92857em/1 $font__main;
		text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
		background: $grey-lighter;
		@include border-radius(3px);
		-webkit-background-clip: padding-box;
		background-clip: padding-box;
		&.selected,
		&:hover,
		&:focus {
			color: $grey-lighter;
			text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
			background: $grey-medium;
		}
	}
}

.filter-search {
	display: none;
	float: right;
	margin-top: 10px;
}

/* -----------------------------------------------------------------------------
   8.0 - Tooltips
   -------------------------------------------------------------------------- */
.ui-tooltip, .arrow:after {
	background: $black;
}

.ui-tooltip {
	padding: 10px 20px;
	position: absolute;
	z-index: 9999;
	max-width: 300px;
	color: $white;
	@include border-radius(3px);
	@include box-shadow(none);
}

.arrow {
	width: 70px;
	height: 16px;
	overflow: hidden;
	position: absolute;
	left: 50%;
	margin-left: -35px;
	bottom: -16px;
	&.top {
		top: -16px;
		bottom: auto;
	}
	&.left {
		left: 20%;
	}
	&:after {
		content: "";
		position: absolute;
		left: 20px;
		top: -20px;
		width: 25px;
		height: 25px;
		box-shadow: none;
		@include transform(rotate(45deg));
	}
	&.top:after {
		bottom: -20px;
		top: auto;
	}
}

/* -----------------------------------------------------------------------------
   9.0 - Accordion
   -------------------------------------------------------------------------- */
.nice-accordion {
  margin: 1.375em 0;
}

.nice-accordion-group {
  margin: 8px 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  @include border-radius(3px);
  @include box-shadow(0 0.125em 0.275em 0 rgba(0, 0, 0, 0.125));
}

.nice-accordion-heading {
	overflow: hidden;
	border-bottom: 0;
}

.nice-accordion-toggle {
	display: block;
	padding: 10px 15px;
	font-family: inherit;
	font-weight: 400;
	font-size: 114.2%;
	color: $black;
	background-color: lighten($grey-lighter, 5%);
	border: 1px solid $color__border-main;
	border-top: none;
	margin: 0;
	cursor: pointer;
	.nice-accordion &:first-child {
		border-top: 1px solid $color__border-main;
	}
	span.ui-accordion-header-icon{
		display: none;
	}
	&.collapsed {
		background-color: $white;
	}
	&.ui-corner-all,
	&.ui-corner-top,
	&.ui-corner-bottom{
		@include border-radius(0);
	}
	&.ui-state-hover {
		background-color: lighten($grey-lighter, 6%);
	}
	&:before {
		@include transform(rotate(0));
		font-family: "dashicons";
		content: "\f347";
		position: relative;
		display: inline-block;
		bottom: 0.1em;
		margin-right: 10px;
		font-size: 74%;
		font-weight: 400;
		color: $grey-light;
		@include transition(all 0.3s ease);
	}
	&:hover:before {
		color: $grey-light;
	}
}

.ui-accordion-header-active:before {
	@include transform(rotate(180deg));
}

.nice-accordion-inner {
	padding: 10px 15px;
	background-color: $white;
	@include box-shadow(none);
	&.ui-widget-content{
		border: 1px solid $color__border-main;
		border-top: none;
	}
	p:last-child,
	ul:last-child,
	ol:last-child {
		margin-bottom: 0;
	}
}

/* -----------------------------------------------------------------------------
   Toggle
   -------------------------------------------------------------------------- */
.nice-toggle {
	margin: 0 0 2em 0;
	span.ui-icon {
		width: 12px;
		height: 12px;
		position: absolute;
		top: 50%;
		left: 10px;
		margin: -6px 0 0 0;
	}
}

.nice-toggle-title {
	display: block;
	padding: 10px 10px 10px 30px;
	background: $white;
	border: 1px solid $grey-lighter;
	cursor: pointer;
	outline: none;
	position: relative;
	&:hover {
		border: 1px solid $color__border-main;
	}
}

.nice-toggle-inner {
	padding: 10px;
	background: $white;
	border: 1px solid $color__border-main;
	border-top: none;
}

/* -----------------------------------------------------------------------------
   11.0 - Tabs
   -------------------------------------------------------------------------- */
.nice-tabs {
	background: none;
	margin: 0 0 2em 0;
	&.ui-widget-content{
		border: none;
		box-shadow: none;
	}
	.nice-nav li {
		&.ui-state-default {
			border-bottom: 1px solid $color__border-main;
		}
		&.ui-state-active,
		&.ui-state-hover,
		& {
			border: none;
		}
		&.ui-state-active {
			border-bottom: 1px solid $white;
		}
	}
	&.ui-tabs .ui-tabs-hide {
		position: absolute;
		left: -10000px;
	}
	.nice-nav {
		list-style: none !important;
		margin: 0 !important;
		padding: 0;
		background: none;
		border: 0;
		float: none;
		li {
			float: left;
			position: relative;
			margin: 0 4px -1px 0 !important;
			z-index: 10;
			list-style: none!important;
			&.ui-state-active {
				margin: 0 4px -1px 0 !important;
			}
			a {
				border: 1px solid $color__border-main !important;
				border-bottom: none !important;
				display: block;
				overflow: hidden;
				padding: 10px 15px;
				background: $white;
				margin: 0 !important;
				text-decoration: none;
				color: $grey-dark !important;
				@include border-radius(2px 2px 0 0);
				&:hover {
					background: $white !important;
					margin: 0 !important;
				}
			}
		}
	}
	.nice-nav {
		border-bottom: 1px solid $color__border-main;
		height: 42px;
		overflow: visible;
		.ui-state-active a {
			background: $white;
		}
		li:not(.ui-state-active) a {
			background: lighten($grey-lighter, 5%);
		}
	}
	.nice-tab {
		background: $white;
		padding: 20px 15px;
		border: 1px solid $color__border-main;
		margin-top: -1px;
	}
}

.nice-tabs-vertical {
	width: 100%;
	.ui-tabs-nav {
		padding: 0;
		float: left;
		width: 20%;
	}
	.nice-tabs-vertical .ui-tabs-nav li {
		clear: left;
		width: 100%;
		border-bottom-width: 1px !important;
		border-right-width: 0 !important;
		margin: 0 -1px .2em 0;
		a {
			display: block;
		}
		&.ui-tabs-active {
			padding-bottom: 0;
			padding-right: 0;
			border-right-width: 1px;
			border-right-width: 1px;
		}
	}
	.ui-tabs-panel {
		padding: 1em;
		float: right;
		width: 80%;
	}
	&.right {
		.ui-tabs-nav {
			float: right;
		}
		.ui-tabs-panel {
			float: left;
		}
		.nice-nav li a{
			border-left: 0 !important;
			border-right-width: 1px !important;
		}
	}
	.nice-nav li a {
		border: 1px solid $color__border-main !important;
		text-decoration: none;
		@include border-radius(2px 2px 0 0);
	}
	&.left .nice-nav li a{
		border-right: 0 !important;
		border-left-width: 1px !important;
	}
}

.nav-tab {
	@include transition(all 0.3s ease);
	i.dashicons {
		margin-top: 3px;

		body:not(.is-mp6) & {
			display: none;
		}
	}
	&.nav-tab-active {
		color: $color__nav-link-active;
		background: transparent; // @TODO: get this from variables.
		border-bottom: 1px solid #fff; // @TODO: get this from variables
	}
	&:not(.nav-tab-active) {
		&:focus,
		&:visited,
		&:active {
			color: $color__nav-link-default;
		}
	}
}

/* -----------------------------------------------------------------------------
   12.0 - Notices
   -------------------------------------------------------------------------- */
body {
	#nice_team_wp_notices {
	  	margin-top: 20px;

		&.hide-third-parties {
			& > * {
				&:not(.nice-wp-notice) {
					display: none !important;
				}
			}
		}
	}
}

.nice-notice {
	text-align: left;
	position: relative;
	overflow: hidden;
	@include border-radius(4px);
	@include box-shadow((inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 3px rgba(0, 0, 0, 0.065)));
	margin: 0;
	margin-bottom: 1.313em;
	border: 1px solid $yellow;
	padding: 0.786em 2.25em 1em 1.15em;
	line-height: 1.5;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
	color: $brown;
	background-color: $grey-lighter;
	.heading {
		margin: 0.05em 0 0.25em;
		font-size: 18px;
		font-size: 1.2em;
		line-height: 1.3;
		text-transform: none;
		color: inherit;
	}
	.close {
		position: relative;
		top: -10px;
		right: -20px;
		line-height: 1;
		float: right;
		font-size: 18px;
		font-weight: bold;
		line-height: 1.7;
		color: $black;
		text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
		opacity: 0.4;
		@include transition(opacity 0.3s ease);
		background-image: none;
		box-shadow: none;
		&:hover {
			color: $black;
			text-decoration: none;
			cursor: pointer;
			opacity: 0.6;
			box-shadow: none;
		}
	}
	button.close {
		padding: 0;
		cursor: pointer;
		background-color: transparent;
		border: 0;
	}
}

.nice-notice-warning {
	background-color: lighten($yellow, 10%);
}

/* -----------------------------------------------------------------------------
   13.0 - Forms and inputs
   -------------------------------------------------------------------------- */
.nice-admin-wrapper {
	form {
		.form-table {

			th, td {
				border-bottom: 1px solid $color__border-main-light;
				padding: 30px 15px;
			}

			th {
				html[dir="rtl"] & {
					padding-right: 0;
				}

				html:not([dir="rtl"]) & {
					padding-left: 0;
				}
			}

			td {
				label {
					vertical-align: top;
					line-height: 16px;
				}

				input {
					&[type="checkbox"],
					&[type="radio"] {
						margin: 0 2px 2px 0;
						vertical-align: top;
					}

					&.small-text {
						margin-top: -10px;
					}
				}
			}

			.description {
				margin-top: 20px;
				color: #bbb;
				cursor: help;
				@include transition(all 0.1s ease-in-out);
				&:hover {
					color: #aaa;
				}
			}
		}
	}
}

input.nice-color-picker {
	margin: 0 5px;
	padding: 3px;
}

input.nice_team_admin_upload_field {
	padding: 5px;
}

#mc_embed_signup {
	html[dir="rtl"] & {
		form {
			text-align: right;
		}
		
		.button {
			margin: 0 0 10px 5px;
		}
	}
}

/* -----------------------------------------------------------------------------
   13.1 - File input/Screenshot
   -------------------------------------------------------------------------- */
.screenshot {
	float: left;
	margin-left: 1px;
	position: relative;
	margin-top: 3px;
	z-index: 1;
	img {
		@include border-radius(4px);
		background: $white;
		border-color: $color__border-main $grey-lighter $grey-lighter $color__border-main;
		border-style: solid;
		border-width: 1px;
		float: left;
		max-width: 420px;
		padding: 4px;
	}
	.nice_team_upload_remove {
		display: block;
		float: right;
		padding: 2px 8px;
		position: absolute;
		top: -4px;
		right: -8px;
		color: $white;
		text-decoration: none;
		font-weight: bold;
		border: 1px solid transparent;
		font-size: 10px;
		text-transform: uppercase;
		text-shadow: 0 1px rgba(0, 0, 0, 0.1);
		@include border-radius(2px);
		@include gradient( $red-medium, $red-dark );
		&:hover {
			border: none;
			text-shadow: 0 1px rgba(0, 0, 0, 0.1);
			border-color: $red-dark $red-dark $red-medium !important;
			border-style: solid !important;
			border-width: 1px !important;
			box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
			@include gradient( $red-dark, $red-medium );
		}
	}
	.no_image {
		.file_link {
			margin-left: 20px;
		}
		.nice_team_upload_remove {
			bottom: 0px;
		}
	}
}

/* -----------------------------------------------------------------------------
   14.0 - Grids
   -------------------------------------------------------------------------- */

.grid {
	overflow: hidden;
	margin-left: -$size__grid-gutter;
}

.grid:after {
	content: "";
	display: table;
	clear: both;
}

.grid-pad {
	padding: 20px 0 20px 20px;
}

.grid-pad > [class*='col-']:last-of-type {
	padding-right: 20px;
}

.row:after {
	content: "";
	display: table;
	clear: both; }

.row { padding-bottom: $size__grid-gutter; }

[class*='columns-'] {
	float: left;
	padding-left: $size__grid-gutter;
}

[class*='columns-']:last-of-type {
	padding-right: 0;
}


[class*='columns-'] img {
	max-width: 100%;
	height: auto;
}

.col-2-3 {
	width: 66.66%;
}

.columns-1 {
	width: 100%;
}

.columns-2 {
	width: 50%;
}

.columns-3 {
	width: 33.33%;
}

.columns-4 {
	width: 25%;
}

.columns-5 {
	width: 20%;
}

.columns-6 {
	width: 16.66%;
}

.columns-7 {
	width: 14.28%;
}

.columns-8 {
	width: 12.5%;
}

.columns-9 {
	width: 11.11%;
}

.columns-10 {
	width: 10%;
}

.columns-11 {
	width: 9.09%;
}

.columns-12 {
	width: 8.33%;
}

/* -----------------------------------------------------------------------------
   15.0 - Responsive modifications
   -------------------------------------------------------------------------- */
@media (max-width: 1160px) {
	.page-content {
		padding: 0 15px;
		width: auto;
	}
	.module,
	.feature {
		width: 32%;
	}
}
@media (max-width: 960px) {
	.module,
	.feature {
		width: 31.9%;
	}
}
@media (max-width: 782px) {
	.module,
	.feature {
		margin: 5px 0 5px 5px;
		width: calc(100% - 5px);
	}
}
