/* Cross browser compatibility -------------------------------------------------------------------------------------- */

* { /* All HTML elements are set with the same followings values */
	margin: 0;
	padding: 0;
	outline: 0;
}

html {
	overflow-y: scroll; /* Avoid page shift due to the y scrollbar */
}

html,
body {
	height: 100%;
}

a {
  color: #089;
}

a:hover {
  color: #005B67;
}

a:active,
a.active {
  color: #222;
}

a img {
	border: 0; /* Remove image border in Internet Explorer */
}

button::-moz-focus-inner {
	padding: 0; /* Avoid extra button spacing/padding in Firefox */
}

dd {
	display: inline; /* All Zend Form Elements are shown in inline elements */
}

input,
button,
select,
textarea {
	 -webkit-box-sizing: border-box;
	 -moz-box-sizing: border-box;
	box-sizing: border-box;
	font-family: inherit;
}

iframe {
	border: 0;
	display: block;
}

main {
		display: block; /* IE 11 */
}

/* Basic HTML Elements ---------------------------------------------------------------------------------------------- */

body {
	font-size: 14px;
	-mox-osx-font-smoothing: initial !important;
	-webkit-font-smoothing: initial !important;
}

a.external {
	font-size: 16px;
}

ul {
	list-style: none;
}

/* Form Elements ---------------------------------------------------------------------------------------------------- */

input,
select,
textarea {
	font-size: 14px;
}

input,
textarea {
	border: 1px solid #d7d7d7;
	height: 28px;
	padding: 0 10px;
}

textarea {
	height: 100px;
	padding: 10px;
	resize: none;
	width: 100%;
}

input.small {
	width: 100px;
}

input[type="file"] {
	height: auto;
}

button.vendini,
input[type="button"].vendini,
input[type="submit"].vendini {
	background-color: #aabb00;
	background-image: none;
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	line-height: inherit;
	padding: 10px 25px 10px 25px;
	text-transform: uppercase;
}

button.vendini:hover,
input[type="button"].vendini:hover,
input[type="submit"].vendini:hover {
	background-color: #9a0;
}

button.vendini:active,
input[type="button"].vendini:active,
input[type="submit"].vendini:active {
	background-color: #333;
}

input[type="button"],
input[type="submit"] {
	background-color: #b3b3b3;
	background-image: -moz-linear-gradient( 90deg, rgb(242,242,242) 0%, rgb(255,255,255) 100%);
	background-image: -webkit-linear-gradient( 90deg, rgb(242,242,242) 0%, rgb(255,255,255) 100%);
	background-image: -ms-linear-gradient( 90deg, rgb(242,242,242) 0%, rgb(255,255,255) 100%);
	border:1px solid #cccccc;
	border-radius: 3px;
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,.07);
	box-shadow: 0 1px 2px rgba(0,0,0,.07);
	color: #777777;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	line-height: 15px;
	height: auto;
	padding: 8px 16px;
	text-transform: uppercase;
}

input[type="button"] {
	margin: 5px;
}

input[type="button"]:active,
input[type="button"].pressed,
input[type="submit"]:active,
input[type="submit"].pressed {
	-moz-box-shadow: none;
	box-shadow: none;
	background: #e5e5e5;
	border-color: #bbb;
	color: #777;
}

input[type="button"].cloudy,
input[type="submit"].cloudy {
	background-image: -moz-linear-gradient( 90deg, rgb(229,229,229) 0%, rgb(242,242,242) 100%);
	background-image: -webkit-linear-gradient( 90deg, rgb(229,229,229) 0%, rgb(242,242,242) 100%);
	background-image: -ms-linear-gradient( 90deg, rgb(229,229,229) 0%, rgb(242,242,242) 100%);
	border-color: #ccc;
	color: #777;
}

input[type="button"].cloudy:hover,
input[type="submit"].cloudy:hover {
	border-color: #c3c3c3;
}

input[type="button"].cloudy:active,
input[type="submit"].cloudy:active {
	background: #dedede;
	border-color: #aaa;
}

input[type="button"].dark,
input[type="submit"].dark {
	background-image: -moz-linear-gradient( 90deg, rgb(120,120,120) 0%, rgb(146,146,146) 100%);
	background-image: -webkit-linear-gradient( 90deg, rgb(120,120,120) 0%, rgb(146,146,146) 100%);
	background-image: -ms-linear-gradient( 90deg, rgb(120,120,120) 0%, rgb(146,146,146) 100%);
	border-color: #666666;
	color: #ffffff;
	padding-right: 35px;
	padding-left: 35px;
}

input[type="button"].dark:active,
input[type="submit"].dark:active {
	background-image: -moz-linear-gradient( 90deg, rgb(94,94,94) 0%, rgb(120,120,120) 100%);
	background-image: -webkit-linear-gradient( 90deg, rgb(94,94,94) 0%, rgb(120,120,120) 100%);
	background-image: -ms-linear-gradient( 90deg, rgb(94,94,94) 0%, rgb(120,120,120) 100%);
	background: #777;
}

input[type="button"].warning,
input[type="submit"].warning  {
	background-color: #FF5544;
	background-image: none;
	border: 0;
	color: #ffffff;
}

input[type="button"].in-process,
input[type="submit"].in-process {
	background: transparent !important;
	border-color: #777;
	-moz-box-shadow: none;
	box-shadow: none;
	color: #555;
}

input[type="button"].warning.in-process,
input[type="submit"].warning.in-process {
	border: 1px solid #ff5544;
	color: #ff5544;
}

input[type="button"].disabled,
input[type="submit"].disabled {
	background: transparent !important;
	background-image: none !important;
	border-color: #ddd !important;
	-moz-box-shadow: none;
	box-shadow: none;
	color: #ddd !important;
}

/*
We need to repeat 'placeholder' rule because when a browser doesn't understand a selector,
it invalidates the entire line of selectors
*/

::-webkit-input-placeholder {
	font-style: normal;
	font-weight: 300;
}

/* Mozilla Firefox 4 to 18 */
:-moz-placeholder {
	font-style: normal;
	font-weight: 300;
}

/* Mozilla Firefox 19+ */
::-moz-placeholder {
	font-style: normal;
	font-weight: 300;
}

/* Internet Explorer 10+ */
:-ms-input-placeholder {
	font-style: normal;
	font-weight: 300;
}

/* Search input */
form.search {
	background-color: #FFF;
	border: 1px solid #D7D7D7;
	min-width: 270px;
	position: relative;
}

ul.checkbox_tree > li {
	display: inline-block;
	margin-left: 10px;
	vertical-align: top;
}

ul.checkbox_tree > li:first-child {
	margin-left: 0px;
}

ul.checkbox_tree > li ul li {
	margin: 2px 0;
}

input[type="search"] + button,
input[type="search"] + input[type="button"] {
	margin: 0;
}

input[type="search"] {
	-webkit-appearance: none;
	border: 0;
	height: 43px;
	font-size: 18px;
	outline: none;
	width: 370px;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
	display: none;
}

.tree > li {
	display: inline-block;
	vertical-align: top;
}

.tree li li {
	padding: 2px 0;
}

/* Form Errors */
.errors,
ul.errors + input,
ul.errors + textarea {
	color: #c30;
	font-style: italic;
}

ul.errors li {
	font-size: 15px;
	font-weight: bold;
}

ul.errors + input,
ul.errors + textarea {
	border: 2px solid #c30;
	outline: none;
}

input[type="text"].errors,
textarea.errors {
	background-color: #FFCCCC;
	color: #000;
}

/* Main Content ----------------------------------------------------------------------------------------------------- */

main {
	padding: 10px;
}

main a {
	display: inline-block;
}

main .active > a {
	color: #333 !important;
	text-decoration: none;
}

main a.grey {
	color: #bbb;
}

main p {
	margin: 5px 0;
}

#content a + a {
	margin-left: 15px;
}

.box {
	margin: 15px 0;
	padding: 10px 0;
	position: relative;
}

.box.header {
	margin-bottom: 0;
	padding-bottom: 0;
}

.box.header + .grid,
.box.header + .sortable {
	border-radius: 0 0 3px 3px;
	margin: 0;
}

.box.panel {
	border-radius: 0;
	margin: 0;
}

.box.highlighted {
	font-size: 20px;
	padding: 100px 0;
	text-align: center;
	text-transform: capitalize;
}

.two-column {
	float: left;
	width: 50%;
}

.outline {
	border: 1px solid #d7d7d7;
	border-radius: 3px;
	margin: 15px 0 0 0;
}

h1 {
	display: inline-block;
	font-size: 30px;
	font-weight: 100;
	padding: 5px 0;
}

h1 ~ button,
h1 ~ input[type="button"],
h1 ~ .form-select {
	display: inline-block;
	float: right;
	margin-top: 9px;
}

h2 {
	font-size: 18px;
	font-weight: normal;
}

.box h2 {
	text-transform: capitalize;
	padding: 20px 0 10px 0;
}

.box h2:first-of-type {
	padding-top: 5px;
}

.box h2.left + *.right {
	margin-top: 7px;
}

label.required {
	background-image: url('/images/requiredStar.gif');
	background-position: right 45%;
	background-repeat: no-repeat;
	padding-right: 20px;
}


h3 {
	font-weight: 400;
	text-transform: capitalize;
}

.box h3 {
	padding: 10px 0;
}

h4 {
	color: #676767;
	font-weight: normal;
}

/* Icons */
.icon {
	background-image: url('/member/images/icons/layout.png');
	display: inline-block;
	height: 16px;
	margin: 0 5px;
	width: 16px;
	vertical-align: middle;
}

.icon.delete {
	background-position: -128px -42px;
}

.icon.edit {
	background-position: -113px -42px;
}

.icon.view {
	background-position: -97px -42px;
}

.icon.move {
	background-position: -29px -62px;
	height: 12px;
	width: 18px;
}

.icon.move:hover {
	background-position: -29px -74px;
	cursor: move;
}

.icon.external {
	background-position: -89px -62px;
	height: 14px;
	vertical-align: baseline;
	width: 14px;
}

*:hover > .icon.external {
	background-position: -89px -76px;
}

.icon.arrow {
	background-position: -81px -62px;
	height: 13px;
	width: 8px;
}

*.active > .icon.arrow,
*:hover > .icon.arrow {
	background-position: -81px -75px;
}

.icon.star {
	background-image: url('/member/images/icons/stars.png');
	background-position: -6px -8px;
	background-size: 64px 64px;
	width: 20px;
}

.icon.star:hover {
	background-position: -38px -8px;
}

.icon.star.active {
	background-position: -6px -40px;
}

.icon.star.active:hover {
	background-position: -38px -40px;
}

/* Sortable List */
.sortable {
	border: 1px solid #d7d7d7;
	border-radius: 3px;
	 -webkit-box-sizing: border-box;
	 -moz-box-sizing: border-box;
	box-sizing: border-box;
	margin: 10px 0;
	padding: 1px;
}

.sortable > *:first-of-type {
	background: #e6e6e6;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#d7d7d7));
	background-image: -webkit-linear-gradient(top, #f5f5f5, #d7d7d7);
	background-image: -moz-linear-gradient(top, #f5f5f5, #d7d7d7);
	background-image: -ms-linear-gradient(top, #f5f5f5, #d7d7d7);
	background-image: -o-linear-gradient(top, #f5f5f5, #d7d7d7);
	background-image: linear-gradient(top, #f5f5f5, #d7d7d7);
}

.sortable > *:not(:first-of-type):nth-child(2n+1) {
	background: #ededed;
}

.sortable > *:first-of-type > * {
	padding: 5px;
}

.sortable > * > * {
	border-right: 1px solid #f7f7f7;
	 -webkit-box-sizing: border-box;
	 -moz-box-sizing: border-box;
	box-sizing: border-box;
	display: inline-block;
	padding: 6px;
}

.sortable > * > *:last-of-type {
	border-right: 0
}

.sortable > * > .handle {
	text-align: center;
	width: 10%;
}

.sortable > * > .title {
	width: 43%;
}

.sortable > * > .status {
	text-align: center;
	width: 15%;
}

.sortable > * > .actions {
	text-align: center;
	width: 30%;
}

.sortable > * > section {
	border-right: 0;
	display: none;
	margin: 0 10px 0 100px;
	padding-bottom: 10px;
}

/* Test Mode */
#trial-account {
	background: #fff;
	border-spacing: 20px 0;
	display: table;
	margin: 0 0 15px 0;
}

#trial-account > div {
	display: table-cell;
	vertical-align: bottom;
}

#trial-account > div:last-of-type {
	width: 30%;
}

#trial-account ul {
	font-style: normal;
	margin: 5px 0;
}

#trial-account ul li:first-child {
	font-weight: bold;
}

/* Curtain ---------------------------------------------------------------------------------------------------------- */

.curtain {
	background: rgba(204, 204, 204, 0.6);
	 -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a1cccccc",endColorstr="#a1cccccc");
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#a1cccccc', endColorstr='#a1cccccc');
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.curtain.dark {
	background: rgba(50, 50, 50, 0.8);
	-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a1cccccc",endColorstr="#a1cccccc");
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#a1cccccc', endColorstr='#a1cccccc');
}
