@import url('jquery.jscrollpane.css');

/* стили дефолтной страницы с деревом */

html {
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, "Helvetica GY", sans-serif;
}

body {
  width: 100%;
  height: 100%;
  font-size: 12px;
  text-align: left;
	position: relative;
}

body.haspopup {
  overflow: hidden;
}

* {padding: 0; margin: 0;}
img {border: none;}

h1 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1;
}
.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.menu {
  position: fixed;
  top: 10px;
  left: 10px;
}

#inbody {
	width: 100%;
	height: 100%;
	position: relative;
	text-align: center;
}

#inbody.active {overflow: hidden;}

.page {
	position: relative;
	text-align: center;
  height: 100%;
	width: 100%;
	margin: 0;
}


/* обязательные стили дерева */

.testree {
  position: absolute;
	left: 0;
	top: 0;
  text-align: center;
	height: 100%;
	width: 100%;
	oveflow: auto;
	background: #525252;
	zoom: 1;
	opacity: 0;
	filter: alpha(opacity=0);
}

.ajax-loader {
  position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background: url('../img/ajax-loader-big.gif') no-repeat center center;
	z-index: 2;
}
.ui-draggable { background: url('../img/grid_bg.png') repeat 0 0; }

.testree ul {
  position: relative;
  margin: auto;
  text-align: left;
  list-style: none;
  background: none;
}

.testree ul li {
  position: absolute;
	display: block;
  top: 0px;
  left: 0px;
  width: 150px;
  height: 150px;
	margin: 0 12px;
  text-align: center;
  background: none;
}

.testree ul li .icon {
  display: block;
  position: relative;
  width: 60px;
  height: 17px;
  padding: 43px 0 6px;
  margin: 0 auto;
  background-image: url('../img/icons.png');
  background-position: -100% -100%;
  background-repeat: no-repeat;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  color: #000;
}

.testree ul li.state_pass .icon, .testree ul li.state_fail .icon { color: #fff; }

.testree ul li a {
  display: block;
  width: 150px;
  padding: 3px 0;
  background: url('../img/text_bg.png') no-repeat;
  color: #fff;
  text-decoration: none;
}

.testree .state_available .icon { background-position: 0px 0;}
.testree .state_locked .icon {  background-position: -60px 0; }
.testree .state_pass .icon {  background-position: -120px 0; }
.testree .state_fail .icon {  background-position: -180px 0; }


.testree .hover.state_available .icon { background-position: 0px -120px;}
.testree .hover.state_locked .icon {  background-position: -60px -120px; cursor: default;}
.testree .hover.state_pass .icon {  background-position: -120px -120px;}
.testree .hover.state_fail .icon {  background-position: -180px -120px;}

.testree .hover.state_locked a {cursor: default;}
.testree .hover.state_pass .icon, .testree .hover.state_pass a {cursor: default;}


/* popup */

.dark {
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  filter: alpha(opacity=80);
}

.popup {
  z-index: 2;
  width: 310px;
  height: 150px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -70px 0 0 -155px;
  background: url('../img/msg.png') no-repeat 0 0;
}

.popup_msg {
  padding: 20px;
  line-height: 1.4;
}

#locked_msg {display: none;}
.popup_msg #locked_msg {  display: block; }

.popup_msg p {
  margin: 0 0 10px;
}

.popup_msg a.button {
  display: block;
  background: url('../img/msg_button.gif') no-repeat 0 0;
  width: 230px;
  height: 28px;
  text-align: center;
  margin: auto;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  padding: 6px 0 0;
}

a.close {
  display: block;
  background: url('../img/ico_x.gif') no-repeat 0 0;
  width: 13px;
  height: 12px;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

/* стили страницы с тестом */

.test {
  text-align: left;
  padding: 20px;
}

fieldset {border: none;}

form .item {
  margin: 0 0 20px;
}

form .title {
  font-weight: bold;
  margin: 0 0 10px;
}

form .field .radiogroup {
  width: 300px;
  margin: 0 0 5px;
}

form .radio {
  float: left;
  width: 26px;
}

form .label {
  float: left;
  width: 250px;
}
form .label.true {
  text-decoration: underline;
}
