.edit {
	border: 1px solid #777;
	margin: 1em 0 0 0;
	padding: 4 6;
	//padding: 4 6 1 6;
	background: #f2f2f2 url('/layout_d/i/line-bg.gif') center center repeat-x;
	overflow: hidden;
	float: left;
	position: relative;
	font-size: 12px;
	z-index: 1000;
	}
.middle .right .edit { margin: 1em 0; }
.middle .right .blocks .edit, .top .edit, .bottom .edit  { margin: 0 5 0 0; }
.gallery .edit, .gallery .catalog {
	clear: both;
	margin: 0;
	}

.edit a {
	display: block;
	float: left;
	background-repeat: no-repeat;
	position: relative;
	z-index: 100;
	}
.edit a.spanner {
	width: 16;
	height: 17;
	background: url('/layout_d/i/ico_spanner.gif');
	}
.edit a.deleted {
	width: 16;
	height: 17;
	background: url('/layout_d/i/ico_delete.gif') no-repeat;
	margin: 0 0 0 5;
	}
.edit a.delete {
	width: 11;
	height: 16;
	background: url('/layout_d/i/ico_delete.gif');
	margin: 0 2 0 10;
	}
.edit a.add {
	width: 16;
	height: 16;
	background: url('/layout_d/i/ico_add.gif');
	margin: 0 0 0 10;
	}
.edit a.add-file {
	width: 23;
	height: 17;
	background: url('/layout_d/i/ico_file.gif');
	margin: 0 0 0 10;
	}

.edit .spanner:hover, .edit .spanner:focus, .edit .spanner:active,
.edit .delete:hover, .edit .delete:focus, .edit .delete:active,
.edit .add:hover, .edit .add:focus, .edit .add:active,
.edit .add-file:hover, .edit .add-file:focus, .edit .add-file:active { background-position: 0px -40px; }

.edit .deleted:link, .edit .deleted:visited { background-position: center 0; }
.edit .deleted:hover, .edit .deleted:focus, .edit .deleted:active { background-position: center -40px; }

.edit span {
	float: left;
	font-weight: bold;
	color: #555;
	padding: 0 10 0 0;
	}

.table-spanner a { margin-right: 10; }
.table-spanner a.end { margin-right: 0; }

.top .left { position: relative; }
.top .left .edit, .img .edit, .img-l .edit, .img-r .edit, .img-c .edit, .img-t .edit {
	position: absolute;
	top: 5;
	left: 5;
	margin: 0;
	}
.middle .left .in .st { position: relative; }

.edit-spanner {
	display: block;
	float: left;
	width: 20;
	//width: 18;
	height: 16;
	background: url('/layout_d/i/ico_spanner.gif');
	background-repeat: no-repeat;
	position: relative;
	}
.edit-spanner:hover, .edit-spanner:focus, .edit-spanner:active { background-position: 0 -40; }

.adm {
	clear: both;
	background-color: #f2f2f2;
	border: 1px solid #777;
	margin: 0 auto;
	}
.adm ul {
	margin: 0;
	padding: 0 5;
	//padding: 0;
	border: 0;
	list-style: none;
	height: 33px;
	background: url('/layout_d/i/line-bg.gif');
	display: block;
	}
.adm li {
	float: left;
	margin: 0 7;
	padding: 8 0;
	list-style: none;
	color: #333;
	}
.adm li a {
	height: 17px;
	white-space: nowrap;
	background-image: url('/layout_d/i/ico_adm.gif');
	background-repeat: no-repeat;
	color: #333;
	padding-left: 26px;
	margin-right: 10px;
	}
.adm a:link, .adm a:visited {
	color: #333;
	text-decoration: none;
	}
.adm a:hover, .adm a:focus, .adm a:active {
	color: #333;
	text-decoration: underline;
	}
.adm .exit { float: right; }

.adm .design a { background-position: 0px 0px; }
.adm .statistics a { background-position: 0px -40px; }
.adm .forum a { background-position: 0px -120px; }
.adm .settings a { background-position: 0px -80px; }
.adm .private a { background-position: 0px -120px; }
.adm .exit a { background-position: 0px -160px; }

.web-office {
	border: 1px solid #777;
	margin: 0;
	padding: 5 6;
	position: relative;
	overflow: hidden;
	float: right;
	background: #fff;
	}
.web-office a {
	float: left; 
	margin: 0 5 0 0;
	}
.web-office a.spanner {
	display: block;
	margin: 0;
	width: 16;
	height: 17;
	background: url('/layout_d/i/ico_spanner.gif');
	position: relative;
	bottom: -3;
	}
.web-office .spanner:hover, .web-office .spanner:focus, .web-office .spanner:active { background-position: 0px -40px; }

/*Исправленные стили для галереи в новой сетке*/
.gallery-new {
	clear: both;
	width: 100%;
	//padding-right: 1;
	overflow: hidden;
	}
.margin-new {
	margin: 0 0 0 -2em;
	}
.block-new {
	display: -moz-inline-box;
	display: inline-block;
	vertical-align: top;
	text-align: left;
	margin: 0 0 2em 2em;
	}
.float-new {
	width: 250px;
	float: left;
	text-align: center;
	}
.img-new {
	margin: 0 0 .6em 0;
	}
.gallery .edit {
	position: relative; 
	top: -50px; 
	left: 5px
}
.gallery .c .edit {
	margin-left: 2em;
	margin-top: 50px;
}

/*Опупеть какие нужные стили*/
.code_img {
	float: left;
	margin-right: 5px;
}
.forma input.code {
	width: 70px;
}
/*Супер розовые стили ^_^ */
.pink {
	background-color: #ffd3d3;
	border: 1px solid #ff9d9d;
	border-right-color: #e84a4a;
	border-bottom-color: #e84a4a;
}
/*Супер розовые стили ^_^ */
.error {
	background-color: #ffd3d3;
	border: 1px solid #ff9d9d;
	border-right-color: #e84a4a;
	border-bottom-color: #e84a4a;
}
label.error {
	background: none !important;
	border: none !important;
	color: red;
	display: block;
	width: 270px;
	margin-top: 5px;
	}
label.error.checked {
	color: #6bbe00;
	font-weight: bold;
	display: inline;
	margin-top: 0px;
	margin-left: 5px;
	}
table.forma, table.forma tr th { width: auto !important; }
table.forma tr th { vertical-align: top; }
table.forma tr td { width: 300px !important; }
table.forma tr td input, table.forma tr td textarea {
	width: 270px !important;
	}
table.forma tr td input.code { width: 70px !important; }