@charset "UTF-8";

dfn {
	font-style: normal;
}

a[error="Y"], dfn[error="Y"] {
	border: 2px solid;
	display: inline-block;
}

[error="Y"], textarea[tag][error="Y"],  input[tag][error="Y"], a[error="Y"], dfn[error="Y"]  {
	border-color: red;
}

a[error="Y"] + button[callmenu] {
	border-color: red;
}

span[error="Y"], pre[error="Y"] {
	border: 2px solid red;
	color: red;
	display: inline-block;
}

span[error="Y"]:after, a[error="Y"]:after, pre[error="Y"]:after {
	content: "\00a0";
}

span[bool-state="?"][required] {
	border-color: red;
}


label[sas] {
	display: inline-block;
	width: 15em;
	text-align: right;
	vertical-align: top;
	margin-right: 1em;
}
label[sas] span.sub {
	/*display: block;*/
}

.top label[sas] {
	display: block;
	text-align: left;
	width: auto;
}

[sctl] {
	position: relative;
}

[sctl].top {
	display: inline-block;
	vertical-align: top;
}

label[sas][required]:after {
	content: "*";
	color: red;
	display: inline-block;
	position: absolute;
	top: 0;
	margin-left: 0.5ex;
}

h2[sas] {
	border-bottom: 1px solid;
	margin: 1em 0;
}

input[tag], textarea[tag], textarea, select {
border: 1px solid #d5d5d5;
background-color: rgba(255, 255, 255, 0.6);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
}
/*input[tag], textarea, select {
-webkit-box-shadow: inset 0 1px 2px 2px rgba(0, 0, 0, 0.07);
-moz-box-shadow: inset 0 1px 2px 2px rgba(0, 0, 0, 0.07);
box-shadow: inset 0 1px 2px 2px rgba(0, 0, 0, 0.07);
-moz-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
-webkit-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
}*/
input[tag], textarea {
padding: 6px;
max-width: 100%;
}

.persphoto [modal] {
	right: 1em;
}
.persphoto button:after {
	content: "Загрузить фото";
}

.fileref button:after {
	content: "...";
}

.fileref > div {
	display: inline;
}

MENU.wide {
	left: 3em;
}

.toptable {
	border-collapse: separate;
	border-spacing: 2px;
}

.toptable TH,
.subtable TH
{
    background-color: #EAEAEA;
    border: medium none;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    vertical-align: middle;
    /*font-weight: normal;*/
}


[if_no_rows] > TD:empty:after {
	content: "Нет";
	padding-left: 1em;
}

[lobload="filer"] > A:before {
	content: "скачать...";
}

