.other-btn.active {
	background-color: #4A4D47;
}

.a-active {
	box-shadow: 0px 0px 0px rgba(255, 255, 255, 0.25), 0px 0px 15px rgba(0, 0, 0, 0.7) inset;
	background: none repeat scroll 0% 0% #484B4B !important;
	color: #FFF !important;
	text-shadow: 0px 1px 0px #222 !important;
	cursor: default;
}

#dashboard {
	height: 43px;
	background: gray;
	position: fixed;
	width: 100%;
	z-index: 2;
	top: 0;
}

#dashboard a {
	outline: none;
	-webkit-transition: All 0.5s ease;
	-moz-transition: All 0.5s ease;
	-o-transition: All 0.5s ease;
	-ms-transition: All 0.5s ease;
	transition: All 0.5s ease;	
}

#dashboard ul.main {
	width: 940px;
	margin: 0px auto;
}
#dashboard ul.main > li.ui-draggable {
	box-shadow: 0 0 40px #000000;
}
#dashboard li {
	float: left;
}

#dashboard li.dash-btn, #dashboard li.other-btn {
	box-shadow: 1px 0px 0px 0px rgba(255, 255, 255, 0.3);
}

#dashboard li.dash-btn a {
	border-right: 1px solid #505050;
	font-size: 1.2em;
    color: #fff;
    line-height: 2.3;
    padding: 12px 20px 11px;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);
}

#dashboard li.other-btn a {
	border-right: 1px solid #505050;
	font-size: 1.2em;
    color: #fff;
    line-height: 2.25;
    padding: 12px 25px 11px;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);
}

#dashboard li.dash-btn a:hover, #dashboard li.other-btn a:hover {
	background-color: #4A4D47;
}

#dashboard li.dash-btn a:active, #dashboard li.other-btn a:active {
	background-color: #4A4D47;
}

#dashboard li button {
	margin: 6px 5px;
}

#dashboard li.save-btn button:hover {
	 background-color: #598A25;
}

#dashboard li.save-btn button:active {
	box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -1px 0 rgba(255, 255, 255, .1) inset;
	-webkit-transform: translatey(3px);
	-moz-transform: translatey(3px);
	-o-transform: translatey(3px);
	transform: translatey(3px);
}

#dashboard li a:hover {
	background: none repeat scroll 0% 0% #666CC2;
	text-shadow: none;
}

#dashboard li a:active {
	background: none repeat scroll 0% 0% #fff;
	box-shadow: -1px 0px 24px -6px #000000 inset;
}
.logout.btn {
	margin: 6px 0px;
	font-weight: bold;
}
.box {
	position: relative;
	background-color: #4A4D47;
	padding: 30px;
	border: 1px solid #000;
	box-shadow: 0 0 40px #000000;
}



/*
Окно выбора основной информации
*/

/*#modal-about {
	position: absolute;
	left: 35%;
	top: 70px;
	width: 391px;
	display: none;
	z-index: 10;
}

#modal-about h2 {
	font-size: 1.5em;
	color: #FFF;
	font-weight: normal;
	margin-bottom: 18px;
	text-shadow: -2px 2px 1px #000;
}

#modal-about label {
	display: block;
	font-size: .7em;
	text-transform: uppercase;
	color: #EBEBEB;
	line-height: 1.5;
}

#modal-about input[type="text"] {
	width: 325px;
	height: 40px;
	font-size: 1.5em;
	color: #FFF;
	padding: 0px 8px;
	border: 1px solid #353535;
	margin-bottom: 12px;
	background-color: #444747;
	background-size: 100% auto;
	background-image: linear-gradient(#444747 0%, #696D6D 40%);
	box-shadow: 0px 1px 0px #646363;
}*/



/*
Окно выбора фона
*/

#modal-background {
	position: absolute;
	left: 35%;
	top: 70px;
	width: 440px;
	display: none;
	z-index: 10;
}

#modal-background h2 {
	font-size: 1.5em;
	color: #FFF;
	font-weight: normal;
	margin-bottom: 18px;
	text-shadow: -2px 2px 1px #000;
}

#modal-background .nav-centred {
	width: 100%;
	overflow: hidden;
	position: relative;
	margin-bottom: 18px;
}

#modal-background .nav-centred ul {
	clear: left;
	float: left;
	position: relative;
	left: 50%;
	text-align: center;
}

#modal-background .nav-centred li {
	right: 50%;
	position: relative;
}

#modal-background .nav-centred li a, .qq-upload-button {
	font-size: 1.3em;
	border: 1px solid #272A2A;
	color: #111;
	text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.4);
	background: none repeat scroll 0% 0% #686A6A;
	position: relative;
	display: block;
	padding: 10px 25px;
	text-decoration: none;
}
.qq-upload-button {
	border-radius: 16px;
	width: 60%;
  margin: 60px auto 0;
  cursor: pointer;
}
#modal-background .left {
	border-right: medium none;
	border-top-left-radius: 16px;
	border-bottom-left-radius: 16px;
}

#modal-background .right {
	border-left: medium none;
	border-top-right-radius: 16px;
	border-bottom-right-radius: 16px;
}

#modal-background .nav-centred li a:hover, .qq-upload-button:hover {
	background: none repeat scroll 0% 0% #666CC2;
}

#no-view-bg {
	text-align: center;
	position: relative;
}

#no-view-bg span.no-img {
	position: absolute;
	left: 32%;
	top: 45%;
	color: #FFFFFF;
	font-weight: bold;
}

#thumbnail {
	border: 1px solid #222;
	background-color: #484B4B;
	box-shadow: 0px 0px 0px 1px #666969 inset;
	position: relative;
	text-align: center;
	margin-bottom: 18px;
	padding: 12px 0px;
}

#thumbnail img {
	border: 1px solid #CCC;
}

#thumbnail .delete-bg {
	outline: none;
	position: absolute;
	top: 6px;
	right: 6px;
	background: #D26469;
	border-radius: 5px;
}

#thumbnail .delete-bg:active {
	-webkit-transform: translatey(1px);
	-moz-transform: translatey(1px);
	-o-transform: translatey(1px);
	transform: translatey(1px);
}

#upload-btn {
	height: 46px;
	width: 209px;
	position: relative;
	cursor: pointer;
	margin: 6px 0px;
}

#loading-bg p {
	font-size: .7em;
	color: #fff;
}

#progress-bar {
	height: 20px;
	background-color: #F7F7F7;
	background-repeat: repeat-x;
	overflow: hidden;
	margin-bottom: 5px;
	border-radius: 4px;
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1) inset;
	background-size: 100% auto;
	background-image: linear-gradient(#F5F5F5, #F9F9F9);
}

.info-upload {
	font-size: .7em;
	color: #FFF;
	margin-top: 10px;
}

#bg-gallery ul {
	margin: 5px auto 0 37px;
}

#bg-gallery li {
	float: left;
	margin: 0px 12px 12px 0px;
}

#bg-gallery .last {
	margin-right: 0px;
}

#bg-gallery li a {
	display: block;
	line-height: 0;
	border: 2px solid #BBB;
}

#bg-gallery li a:hover {
	border: 2px solid #FFF;
}

#body-image-switch, #body-image-repeat {
	margin: 20px auto;
	display: table;
}

.text-switch {
	display: table-cell;
	vertical-align: middle;
	font-size: 1em;
	color: #FFF;
	font-weight: normal;
	text-shadow: 0px 1px 1px #000;
	padding-left: 25px;
}


.switch {
  /*margin: 50px auto;*/
  position: relative;
  width: 70px;
  height: 25px;
  display: inline-block;
}

.switch input {
  top: 0; 
  right: 0; 
  bottom: 0; 
  left: 0;
  opacity: 0;
  z-index: 100;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.switch label {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    background: none repeat scroll 0% 0% #686A6A;
  	border: 1px solid #272A2A;
    border-radius: 40px;
    box-shadow:
        inset 0 3px 8px 1px rgba(0,0,0,0.2),
        0 1px 0 rgba(255,255,255,0.5);
}

.switch label:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -8px; right: -8px; bottom: -8px; left: -8px;
    border-radius: inherit;
    background: #ccc; /* Fallback */
    background: linear-gradient(#f2f2f2, #ababab);
    box-shadow: 0 0 10px rgba(0,0,0,0.3),
        0 1px 1px rgba(0,0,0,0.25);
}

.switch label:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -18px; right: -18px; bottom: -18px; left: -18px;
    border-radius: inherit;
    background: #eee; /* Fallback */
    background: linear-gradient(#e5e7e6, #eee);
    box-shadow: 0 1px 0 rgba(255,255,255,0.5);
    -webkit-filter: blur(1px); /* Smooth trick */
    filter: blur(1px); /* Future-proof */
}

.switch label i {
    display: block;
    height: 100%;
    width: 46%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    border-radius: inherit;
    background: #b2ac9e; /* Fallback */
    background: linear-gradient(#f7f2f6, #b2ac9e);
    box-shadow:
        inset 0 1px 0 white,
        0 0 8px rgba(0,0,0,0.3),
        0 5px 5px rgba(0,0,0,0.2);
}

.switch label i:after {
    content: "";
    position: absolute;
    left: 15%;
    top: 25%;
    width: 70%;
    height: 50%;
    background: #d2cbc3; /* Fallback */
    background: linear-gradient(#cbc7bc, #d2cbc3);
    border-radius: inherit;
}

.switch label i:before {
    content: "НЕТ";
    position: absolute;
    top: 6px;
	right: -95%;
    color: #fff; /* Fallback */
    font-style: normal;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.4);
}

.switch input:checked ~ label { /* Background */
	box-shadow: 0px 0px 0px rgba(255, 255, 255, 0.25), 
		0px 0px 15px rgba(0, 0, 0, 0.7) inset;
	background: none repeat scroll 0% 0% #484B4B;

}

.switch input:checked ~ label i { /* Toggle */
    left: auto;
    right: -1%;
}

.switch input:checked ~ label i:before { /* On/off */
    content: "ДА";
    left: -27px;
    top: 5px;
    color: #fff;
    text-shadow: 0px 1px 0px #222;
}


/*
Окно выбора шаблона
*/

#modal-layout {
	position: absolute;
	left: 35%;
	top: 70px;
	width: 377px;
	display: none;
	z-index: 10;
}

#modal-layout h2 {
	font-size: 1.5em;
	color: #FFF;
	font-weight: normal;
	margin-bottom: 18px;
	text-shadow: -2px 2px 1px #000;
}

#content-layout {
	padding: 0px 20px;
	height: 325px;
	overflow-y: scroll;
	overflow-x: hidden;
}

#content-layout ul {
	margin: 0px auto;
	width: 300px;
	padding-top: 4px;
}

#content-layout li {
	float: left;
}

#content-layout li a {
	display: block;
	margin: 0px 24px 24px 0px;
	width: 125px;
	padding: 15px;
	background-color: #696D6D;
	color: #D3D3D3;
	font-size: .75em;
	line-height: 1.5;
	border-radius: 10px;
}

#content-layout li a:active {
	box-shadow: 0px 0px 0px 4px #A48FC3;
}

#content-layout li a span {
	display: block;
	height: 102px;
	width: 97px;
}

#choice-1 {
	background: url(../img/layout.png) no-repeat;
}

#choice-2 {
	background: url(../img/layout.png) no-repeat -200px;
}

#choice-3 {
	background: url(../img/layout.png) no-repeat -100px;
}

#choice-4 {
	background: url(../img/layout.png) no-repeat -300px;
}

#choice-5 {
	background: url(../img/layout.png) no-repeat -400px;
}

#choice-6 {
	background: url(../img/layout.png) no-repeat -500px;
}

#choice-7 {
	background: url(../img/layout.png) no-repeat -600px;
}


/*
Окно выбора цвета 
*/

#modal-colors {
	position: absolute;
	left: 35%;
	top: 70px;
	width: 373px;
	display: none;
	z-index: 10;
}

#modal-colors h2 {
	font-size: 1.5em;
	color: #FFF;
	font-weight: normal;
	margin-bottom: 18px;
	text-shadow: -2px 2px 1px #000;
}

#modal-colors h4, #background-color h4 {
	font-size: .8em;
	text-transform: uppercase;
	color: #EBEBEB;
	font-weight: normal;
	margin-bottom: 10px;
	text-shadow: 0px 1px 0px #222;
}

#modal-colors ul.colors {
	margin-bottom: 18px;
}

#modal-colors ul.colors li {
	float: left;
	margin-right: 20px;
	margin-bottom: 10px;
}

#modal-colors ul.colors li.last {
	margin-right: 0;
}

#modal-colors ul.colors li a, #background-color li a {
	width: 70px;
	height: 40px;
	border: 3px solid #696D6D;
	margin-bottom: 7px;
	display: block;
	z-index: 9999;
}

#modal-colors ul.colors li a:hover {
	border: 1px solid #666CC2;
}

#modal-colors .color-block {
	background-color: #484B4B;
	border: 1px solid #222;
	padding: 10px;
	margin-bottom: 18px;
	box-shadow: 0px 0px 0px 1px #666969 inset;
}

#modal-colors .last {
	margin-bottom: 0px;
}

#modal-colors .color-block h5 {
	font-size: .8em;
	color: #D6D6D6;
	font-weight: normal;
	margin-bottom: 10px;
}

#modal-colors .color-block li {
	float: none;
	  margin: 0 10px 10px 0;
  display: inline-block;
  vertical-align: top;
}

#modal-colors .color-block li.last {
	margin-right: 0px;
}

#modal-colors .color-block li a, .sp-replacer {
	width: 55px;
	height: 40px;
	border: 3px solid #696D6D;
	margin-bottom: 5px;
	display: block;
}
.sp-replacer {
	padding: 0;
}
.sp-dd {
  display: none;
}
.sp-preview {
  width: 100%;
  height: 100%;
  border: 0;
}
#modal-colors .color-block li a:hover {
	border: 1px solid #666CC2;
}

#modal-colors p {
	font-size: .7em;
	color: #FFF;
}



/*
Окно выбора шрифта
*/

#modal-fonts {
	position: absolute;
	left: 35%;
	top: 70px;
	width: 373px;
	display: none;
	z-index: 10;
}

#modal-fonts h2 {
	font-size: 1.5em;
	color: #FFF;
	font-weight: normal;
	margin-bottom: 18px;
	text-shadow: -2px 2px 1px #000;
}

#modal-fonts .nav-centred {
	width: 100%;
	overflow: hidden;
	position: relative;
	margin-bottom: 18px;
}

#modal-fonts .nav-centred ul {
	clear: left;
	float: left;
	position: relative;
	left: 50%;
	text-align: center;
}

#modal-fonts .nav-centred li {
	right: 50%;
	position: relative;
}

#modal-fonts .nav-centred li a {
	font-size: 1.3em;
	border: 1px solid #272A2A;
	color: #111;
	text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.4);
	background: none repeat scroll 0% 0% #686A6A;
	position: relative;
	display: block;
	padding: 10px 25px;
	text-decoration: none;
}

#modal-fonts .left {
	border-right: medium none;
	border-top-left-radius: 16px;
	border-bottom-left-radius: 16px;
}

#modal-fonts .right {
	border-left: medium none;
	border-top-right-radius: 16px;
	border-bottom-right-radius: 16px;
}

#modal-fonts .nav-centred li a:hover {
	background: none repeat scroll 0% 0% #666CC2;
}

#content-fonts {
	height: 304px;
	overflow-y: scroll;
	overflow-x: hidden;
	padding: 0 30px;
	position: relative;
}

#content-fonts li {
	margin-bottom: 12px;
	float: none;
}

#content-fonts li:last-child {
	margin-bottom: 0;
}

#content-fonts .fonts-form {
	background-color: #484B4B;
	border: 1px solid #222;
	padding: 5px;
	margin-bottom: 18px;
	box-shadow: 0px 0px 0px 1px #666969 inset;
}

.fonts-form li {
	margin-bottom: 0;
	padding: 5px 0px;
}

.select li {
	padding-left: 10px;
	border-bottom: 1px solid;
	margin-bottom: 0 !important;
}

.select li:last-child {
	border-bottom: none;
}

#block-fonts h5 {
	font-size: .7em;
	color: #E1E1E1;
	text-transform: uppercase;
	margin-bottom: 4px;
}

#block-size h5 {
	font-size: .7em;
	color: #E1E1E1;
	text-transform: uppercase;
	margin-bottom: 5px;
	width: 120px;
	float: left;
}

#content-fonts .select {
	background-color: #555858;
	position: relative;
	background: url(../img/select-arrow.png) no-repeat right #ddd;
}

#content-fonts .select select {
	width: 107%;
	background: none repeat scroll 0% 0% transparent;
	padding: 5px;
	border: 0px none;
	-webkit-appearance: none;
	appearance: none;
	-moz-appearance: none;
}

#block-size output {
	margin-left: 55px;
	color: #fff;
}

#block-size span {
	font-size: .8em;
	color: #E1E1E1;
}

#content-fonts .range {
	background-color: #555858;
	border: 4px solid #696D6D;
	position: relative;
    overflow: hidden;
    width: 100%;
}

#content-fonts .range input {
	margin-top: 5px;
	margin-left: 7px;
	width: 94%;
}

/*
Окно выбора виджета
*/

#modal-widgets {
	position: absolute;
	left: 35%;
	top: 70px;
	width: 420px;
	display: none;
	z-index: 10;
}

#modal-widgets h2 {
	font-size: 1.5em;
	color: #FFF;
	margin-bottom: 18px;
	text-shadow: -2px 2px 1px #000;
}

#modal-widgets li {
	margin-bottom: 18px;
	float: none;
}

#modal-widgets li:last-child {
	margin-bottom: 0;
}

#modal-widgets li a {
	width: 32px;
	height: 32px;
	background-color: #eee;
	float: left;
	border-radius: 50%;
	padding: 8px 12px;
	color: #444;
}

#modal-widgets li a:hover {
	color: #fff;
}

#modal-widgets li a:active {
	-webkit-transform: translatey(1px);
	-moz-transform: translatey(1px);
	-o-transform: translatey(1px);
	transform: translatey(1px);
}

#modal-widgets .widgets-img {
	width: 100px;
	margin-left: 15px;
	float: left;
	border: 3px solid #fff;
}

#modal-widgets .widgets-img img {
	width: 100%;
}

#modal-widgets .widgets-text {
	float: left;
	width: 190px;
	margin-left: 15px;
}

#modal-widgets .widgets-text h5 {
	color: #EEE;
	font-size: 1.1em;
	line-height: 1;
	margin-bottom: 8px;
}

#modal-widgets .widgets-text p {
	color: #CFCFCF;
	font-size: .9em;
}
.qq-uploader input[type=file] {
	height: 43px;
}
.qq-upload-list li {
	color: #fff;
}

#view-bg-thumbnail img {
	cursor: pointer;
}

.qq-upload-list {
	display: none;
}

.show-css-btn {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 20px;
	height: 100%;
	cursor: pointer;
	opacity: 0;
}

.sp-container input {
	outline: none;
}

.sp-container input:focus  {
    border: 2px solid orange;
}

#bg-gallery {
	max-height: 300px;
	overflow-y: scroll;
}