﻿/*----Переопределение стилей браузера по умолчанию----*/

body {
  /*Макет*/
  margin: 0; 
  padding: 0 30px;
  direction: ltr; 
  min-width: 1050px;
  /*Шрифт*/
  font-family: tahoma, arial, verdana, sans-serif, Lucida Sans; 
  font-size: 12pt; 
  font-weight: normal;
  /*Разное*/
  -webkit-font-smoothing: subpixel-antialiased; 
  cursor: default;
}
input, select { 
  padding: 0; 
  margin: 0;
  border: 1px solid;
}
input[type="checkbox"] {
  border: 0;
}
select {
  height: 23px;
}
button { 
  font-family: inherit;
  cursor: pointer; 
  padding: 0; 
  height: 21px; 
  border: 1px solid; 
}
button.close {
  margin-left: 20px;
}
button img { /*Для прелоадера в батоне*/
  position: relative;
  top: 2px;
}
a.button img { /*Для прелоадера в ссылке*/
  position: relative;
  top: 1px;
}
div.hr { /*Имитация горизонтальной линии, просто слищком по разному она отображается*/
  border: none; 
  border-bottom: 1px solid; 
  border-top: 1px solid; 
  height: 0; 
  margin: 5px 5px; 
} 
a, img { /*Фикс для большей части IE*/
  border: none; 
  outline: none; 
  text-decoration: none;
}
a.button { /*Имитация кнопки из ссылки*/
  margin: 0;
  padding: 0; 
  display: block;
  height: 19px; 
  border: 1px solid;
  text-align: center;
  cursor: pointer; 
  padding-top: 2px;
}
button, a.button {
  font-size: 13px; 
}

p { margin: 10px 0; }
input[type="text"]:focus { outline: none; } /*Фикс для Chrome, почему то именно он показывает фокус на элементе ввода*/

ul {
  margin: 10px 0;
  list-style: square outside;
}

/*----Заголовок----*/

#head-container { 
  height: 62px; 
  overflow: hidden; 
}
@-moz-document url-prefix() { /*Хак для FF, почемуто куда то уплыли 3 пикселя в шапке*/
  #head-container {
    height: 65px;
  }
}
#logo-panel img { 
  margin: 8px 5px 0px 5px; 
  float: left; 
}
#logo-panel span {
  float: left;
  position: relative; 
  top: 10px;
  font-size: 200%; 
  font-weight: bold;
}

/*----Форма авторизации----*/

#logout_panel { 
  padding: 5px; 
  float: right; 
}
#logout_panel button {
  width: 100%; 
  position: relative;
  top: -1px; /*Уело*/
}

/*----Боксы----*/

.transparent40 {
  /* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
  /* IE 5-7 */
  filter: alpha(opacity=40);
  /* Netscape */
  -moz-opacity: 0.4;
  /* Safari 1.x */
  -khtml-opacity: 0.4;
  /* остальные */
  opacity: 0.4;
}
#shadow-carrier {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  display: none;
}
.box-container {
  text-align: center;
  position: absolute;
  border: 1px solid;
  -webkit-box-shadow: 0px 0px 12px 0px rgba(50, 50, 50, 1);
  -moz-box-shadow:    0px 0px 12px 0px rgba(50, 50, 50, 1);
  box-shadow:         0px 0px 12px 0px rgba(50, 50, 50, 1);
}
.box-header {
  padding: 5px;
  font-size: 120%;
  margin-bottom: 5px;
}
.box-header span {
  position: relative;
  top: -3px;
  left : 5px;
}
.box-content {
  font-size: 80%;
}
.box-container button {
  margin-bottom: 10px;
  width: 130px;
}
.box-container table {
  width: 100%;
}
.box-container thead {
  font-weight: bold;
}


/*----Основная часть----*/

#main-container { 
  border-top: 0; 
  margin: 0 10px; 
  height: 100%; 
  padding-bottom: 1px;
  background: url(../images/content_background.png) repeat white;
}

#footer {
  height: 20px;
  overflow: hidden;
  text-align: center;
  margin-top: 8px;
  font-size: 70%;
}

/*----Сообщение об отсутвии данных----*/

.empty-msg {
  height: 100%;
  border: 0;
  min-height: 1px; /*Фикс IE8, сообщение центрировалось не сразу*/
}
.empty-msg td { 
  text-align: center; 
  vertical-align: middle; 
  font-size: 80%;
  width: 99000px; /*Вот такой не хороший хак, по другому просто никак не выровнять по горизонтали*/
}

/*----Разворачивающиеся панели----*/

.accordion-item p {
  margin: 0;
  padding: 5px 0 5px 26px;
  cursor: pointer;
  border: 1px solid;
  background: url(../images/accordion_close.png) no-repeat;
  background-position: 5px 5px;
}
.accordion-item p.selected {
  background: url(../images/accordion_open.png) no-repeat;
  background-position: 5px 5px;
}
.accordion-content {
  border: 1px solid;
  border-top-width: 0;
  margin-bottom: 10px;
  overflow: auto; /*При слишком большой таблицы данных необходима прокрутка*/
}

/*----Разное----*/

.clearfix { clear: both; }
.hidden { display: none; }

.no-offsets { 
  margin: 0; 
  padding: 0;
}

.border-rds-5 { 
  border-radius: 5px; 
  -moz-border-radius: 5px; 
  -webkit-border-radius: 5px; 
  -khtml-border-radius: 5px; 
}
.border-default { border: 1px solid; }

ul.horz-set { 
  cursor: pointer; 
  margin: 0; 
  padding-left: 0; 
}
ul.horz-set li { 
  display: block; 
  float: left; 
}
