html{
  height: 100%;
}

body{
  margin: 0;
  padding: 0;
  height: 100%;
  font: 11px Arial;
  color: #4F5155;
  background: url('/img/OffsetApplied.jpg');
}

h3{
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

::selection{ background-color: #E13300; color: white; }

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

*{
  font: 11px Arial;
}

a {
  cursor: pointer;
  color: #003399;
  background-color: transparent;
  font-weight: normal;
  text-decoration: none;
}

b, b *, b a{
	font-weight:bold;
}

p{
  margin:0;
  padding:0;
}

input:read-only,
textarea:read-only {
  background-color: #eee !important;
}
input:-moz-read-only,
textarea:-moz-read-only {
  background-color: #eee !important;
}
input:disabled {
  color: #eee;
  background-color: #eee !important;
}

table td{
  vertical-align: top;
}

table tr{
	width:100%;
}

form{
  display: inline-block;
}

#container{
  display: block;
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  padding: 0;
}

.loginform{
  width:250px;
  margin:50px auto;
  padding:15px 20px;
  background:#f5f5f5;
  background-color:rgba(245,245,245,0.95);
  border-radius: 10px;
  box-shadow:0 0 5px rgba(0, 0, 0, 0.4);
}
label{
  display:block;
  margin-top:1em;
  margin-bottom:0.5em;
}
label:first-child{
  margin-top:0;
}
.centerdiv{
  position: absolute;
  left:50%;
  top:50%;
  margin-left:-125px;
  margin-top:-125px;
}

.maintable{
  width:100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  height: 84%;
}

.maincol{
  overflow-y: scroll;
  border-radius: 0 4px 4px 0;
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 239px;
  top: 45px;
  background:  #ffffff;
  background: linear-gradient(top, #BCBCBE, #ffffff);
  background: -webkit-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  background: -moz-linear-gradient(top, #BCBCBE, white);
  color: #002a49;
  padding: 10px;
}

.maincol input, .maincol textarea, .maincol select{
  color:#002a49;   
}

.maincol form{
  width:100%;
}

.leftcol{
  width: 252px;
  height: 100%;
  position: fixed;
}

.leftcol .structure ul li{
  padding-left: 5px;
}

.structure {
  text-align:left;
}

.structure a{
	cursor: default;
}

.structure a:hover{
	cursor: default;
	background: #f0f0f0;
}

.leftcol_top{
  margin: 8px 10px 5px 10px;
}

#webmenu{
  width: 139px;
}

.graygrad_block{
  display: inline-block;
  background: -webkit-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  background: -moz-linear-gradient(top, #BCBCBE, white);
  color: #002a49;
/*   border-radius: 0 4px 4px 0;*/
  height: 30px;
  width: 83px;
  margin-top: 0;
  margin-left: -2px;
}

#search{
  margin-left: 4px;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff url('/img/search.png') no-repeat right;
  margin-top: 4px;
}
.search_filters{
  padding-top:5px;
  cursor: pointer;
}

.search_result{
  overflow: auto;
  background: white;
  bottom: 10px;
  position: absolute;
  top: 45px;
  width: 222px;
  left: 10px;
/*   border-radius: 4px;*/
  border-radius: 4px 0 0 4px;
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.search_result ul{
  padding: 0 0 0 3px;
  margin: 0;
}

.search_result ul li{
  background: url("/img/arrow_li_2.png") no-repeat left center;
  padding: 2px 0 2px 16px;
  list-style: none;
}

.search_result ul li:hover{
  background: url("/img/arrow_li_1.png") no-repeat left center;
}

.search_results_counter {
  position: absolute;
  background: white;
  height: 16px;
  width: 100px;
  left: 10px;
  bottom: 10px;
  border-radius: 0 0 0 4px;
  padding-left: 9px;
  padding-top: 2px;
}

#search_status_trig{
  position: absolute;
  background: white;
  height: 16px;
  width: 115px;
  left: 108px;
  bottom: 10px;
  border-radius: 0 0 0 4px;
  padding-left: 9px;
  padding-top: 2px;
}

#search_status_trig label{
  display: inline-block;
  vertical-align: middle;
}

.structure ul li{
  list-style: none;
}

input[type="text"],
input[type="password"], textarea, select{
  width:90%;
  border:1px solid #ccc;
  padding:4px 5px;
  background:white;
  border-radius: 5px;
  box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.2);
  box-sizing:border-box;
}

textarea{
  height: 48px;
}
a{
  text-decoration: none !important;
}

input[type="submit"], 
button, 
input[type="button"]{
  background: -webkit-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  background: -moz-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  padding: 5px 15px;
  font-weight: bold;
  color: #333;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 1px white;
}

.listing{
  width:98%;
  text-align: left;
}
.listing td{
  vertical-align: middle;
  font-weight: bold;
}

.listing input[type="text"], .listing textarea, .listing select{
  width:100%;
}

.listing tr td{
  text-align: right;
  font-size:11px;
  vertical-align: middle;
}

.listing tr td input{
  text-align: left;
  float:left;
}

.td_title{
  max-width: 150px;
  min-width: 75px;
}

.linked_image_field {
  position: relative;
}

.linked_image_field a {
  position: absolute;
  left: 100%;
  top: 0;
  display: block;
  width: 16px;
  padding: 5px 7px 7px 3px;
}

/*MENU*/

.menu{
  width: calc(100% - 270px);
  margin-left: 236px;
  padding-top: 8px;
  padding-left: 3px;
  height: 32px;
  display: flex;
  position: fixed;
  z-index: 100;
  justify-content: space-between;
}

.clear {clear:both}
/* удаляем стили списка по умолчанию */
#nav {
  margin:0;
  padding:0;
  list-style:none;
}

/* make the LI display inline */
/* делаем отображение LI как inline */
/* позиционирование относительно родителя */
#nav li {
  float:left;
  display:block;
  min-width:100px;
  position:relative;
  z-index: 999;
  background: -webkit-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  background: -moz-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  text-align: center;
}

#nav li ul li{
  float:left;
  display:block;
  min-width:100px;
  position:relative;
  margin:-1px 1px;
  font-weight: normal;
  z-index: 999;
  border-radius: 0 !important;
  border: 1px solid #c3c3c3;
  background: #ffffff;
}


#nav li ul li:hover{
  background: #f2f2f2;
  text-decoration: none;
}

/* главное меню */
#nav li a {
  cursor: default;
  display: block;
  padding: 8px 5px 0 5px;
  font-weight: 700;
  height: 23px;
  text-decoration: none;
  color: #002a49;
}

#nav li ul li a{
	white-space: nowrap;
  font-weight: normal;
}


/* можно сделать другой стиль для выделенного меню */
#nav a.selected {
  color:#f00;
}

/* подменю, скрыто по умолчанию */
#nav ul {
  position:absolute;
  left:0;
  display:none;
  margin:0 0 0 -2px;
  padding:0;
  list-style:none;
}

#nav ul li {
  min-width:100px;
  float:left;
}

/* display block will make the link fill the whole area of LI */
/* отображение ссылки в меню как block, чтобы заполнить пространство в LI */
#nav ul a {
  display:block;
  height:15px;
  padding: 8px 5px;
  color:#666;
}

#map_canvas{
  position:absolute;
  overflow-x: hidden;
  margin: 0 0 0 -2000px;
  height: 100%;
  width: 99.9%; /* i'm magical pony-unicorn and i dont want to width:100% */
  left:0;
  top:0;
  right:0;
  bottom: 0;
  z-index: 1000;
  background: #ffffff;
}

#map_panel{
  position: absolute;
  right: 150px;
  top: 10px;
  background-color: #eee;
  text-align: center;
  border: 1px solid #fff;
  box-shadow: #000 0 0 5px;
  border-radius: 5px;
  width: 300px;
  cursor: pointer;
  display: none;
  z-index: 1001;
}

#map_search{
  width:210px;
  display: inline-block
}

#map_close{
  background-color: #eee;
  text-align: center;
  border: 1px solid #fff;
  box-shadow: #000 0 0 5px;
  border-radius: 5px;
  display: inline-block;
  width: 70px;
}

.canvas{
  position:absolute;
  display: none;
  /*margin: 0 0 0 -2000px;*/
  height: 90%;

  width: 450px;
  left:200px;
  top:50px;

  bottom: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid white;
  box-shadow: black 0 0 5px;
  border-radius: 5px;
}

.canvas_container{
  overflow-x: hidden;
  overflow-y: auto;
  width: 450px;
  top:50px;
  height:100%;
  padding: 10px;
  box-sizing: border-box;
}

.canvas_closer{
  cursor: pointer;
  width:48px;
  height:48px;
  position: absolute;
	top: -22px;
	left: 90%;
  background: url('/img/close.png') no-repeat;
}

.tree *{
  list-style: none;
}

.tree{
  padding: 0;
  margin: 0;
}

#view_add_form *{
  width: auto;
}

.hidden{
    display: none;
}

img[src="/img/tree_plus.png"],img[src="/img/tree_minus.png"],
img[src="/img/icon_down.png"],img[src="/img/icon_right.png"]{
    cursor: pointer;
}

.asbutton {
  -webkit-box-shadow: rgba(0, 0, 0, 0.98) 0 1px 0 0;
  -moz-box-shadow: rgba(0,0,0,0.98) 0 1px 0 0;
  box-shadow: rgba(0, 0, 0, 0.98) 0 1px 0 0;
  background-color: #EEE;
  border-radius: 0;
  border: 1px solid #999;
  color: #666;
  font-size: 11px;
  width: 100px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  padding: 4px 6px;
  cursor: pointer;
  display: inline-block;
  margin: 0;
}

.asbutton2{
	font-weight:bold;
  vertical-align: middle;
  padding: 4px 6px;
  cursor: pointer;
  display: inline-block;
  width:100px;
  z-index: 999;
  background: -webkit-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  background: -moz-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  text-align: center;
	border-radius:5px;
}

.as-href{
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  color: #003399;
}

.search_loader{
  position: absolute;
  width: 250px;
  height: 100%;
  background: rgba(0,0,0,0.15);
  z-index: 999999;
  display: none;
  padding: 0;
}

.loader{
  position: fixed;
  left:0;
  top:0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.15);
  z-index: 999999;
  display: none;
}
.loader .center,
.search_loader .center{
  width:150px;
  height: 150px;
  position: absolute;
  margin-left:-75px;
  margin-top:-75px;
  left:50%;
  top:50%;
  text-align: center;
}

.green{
  font-weight: bold;
  color:#006400;
}

.lightbox{
  overflow: hidden;
  position: absolute;
  left:50%;
  top:50%;
  width:800px;
  height:600px;
  margin-left:-320px;
  margin-top:-320px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #fff;
  box-shadow: #000 0 0 5px;
  z-index: 999999999;
  display: none;
  padding: 0;
}

.lightbox iframe{
  border: 0;
  width:800px;
  height: 600px;
}

.popup-window{
  display: none;
  z-index:5;
  position: absolute;
  background-color: white;
  border: 2px solid #aaa;
  border-radius: 10px;
  padding: 0 15px 15px 15px;
  margin-left: -15px;
  margin-right: 10px;
  box-shadow: 0 0 8px #444;
  font-size: 12px !important;
}

.imgviewer{
  border-spacing: 5px;
}

.imgviewer tr td{
  text-align: center;
  width:130px;
}

.pagenation tr td{
  text-align:center;
  padding: 5px 12px 5px 12px;
  margin:0;
  cursor:pointer;
  font-weight: bold;
  color:#0E2A63;
}
.pagenation tr:hover td{
  background: none;
}
.pagenation tr td:hover{
  background: rgba(0,0,0,0.1);
}

.right_block{
  text-align: right;
  font-size: 12px;
  padding:10px;
  position: absolute;
  right: 40px;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
}
.right_block span{
  width: 31px;
  display: inline-block;
  border-radius: 3px;
  padding: 2px;
}

.tooltip div {
  display:none;
  position: absolute;
  padding: 10px 13px;
  margin: -23px 0 0 63px;
  z-index: 2;
  color: #303030;
  background-color: #F5F5B5;
  border: 1px solid #DECA7E;
  font-family: sans-serif;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.tooltip div:before,
.tooltip div:after {
  content: "";
  position: absolute;
  /* Сдвигаем вниз на половину. Обратное вытягивание на половину высоты треугольника
     гарантирует центрирование, если изменится размер шрифта или высота */
  top: 14px;
  width: 0;
  height: 0;
}

.tooltip div:after {
  /* Меньший треугольник с другим позиционированием */
  left: -13px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 13px solid #F5F5B5;
  margin-top: -14px;
}

.card_title{
	text-align: left;
  width: 100%;
  border-bottom: 1px solid red;
}
.card_title ._title{
  display: inline-block;
  font-size: 20px;
}
.card_title td, .card_title, .card_title a{
  font-size: 20px;
  margin:0;
}

.card_title .canvas *{
  font-size:11px;
}

p.card_title{
	padding-left:125px;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
	float:left;
	background: #900;
	display: none;
}

.vsm_data_div{
	position: absolute;
	display: none;
	min-height: 500px;
	width: 450px;
	left: 200px;
	top: 50px;
	z-index: 1000;
	background: #ffffff;
	border: 1px solid white;
	box-shadow: black 0 0 5px;
	border-radius: 5px;
	height: auto;
}

.custom_table_1{
	border-collapse:collapse;
	width:100%;
}
.custom_table_1 tr th{
	font-weight:bold;
	background-color: white;
  border-bottom: 1px solid #c0c0c0;
}

.custom_table_1 tr th:not(:first-child){		
	border-left: 1px solid #c0c0c0;
}

.custom_table_1 tr th:last-child{		
	border-right: 1px solid #ffffff;
}

.custom_table_1 tr td:last-child{
	border-right: 1px solid white;
}

.custom_table_1 tr td{
	border-left: 1px solid #c0c0c0;
	border-bottom: 1px solid #c0c0c0;
	text-align: center;
  background-color: white;
}

.custom_table_1 tr:hover{
	background: rgba(0,0,0,0.1);
}

.red{
	background: red;
}
.green{
	background: green;
}

.menu_zag{
  background: -webkit-gradient(linear, left top, left bottom, from(#BCBCBE), to(white));
  background: -moz-linear-gradient(top, #BCBCBE, white);
	right: 9px;
	position: absolute;
	height: 31px;
	margin: 0;
	padding: 0;
	left: 239px;
  top: 8px;
	float: left;
	border-radius: 0 5px 5px 0;
  z-index: -1;
}