﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

select.icon-menu option {
background-repeat:no-repeat;
background-position:bottom left;
padding-left:30px;
}

li.dropdown-submenu:hover ul{
display: block;
left: 100%;
}
.dropdown-submenu{
  position:relative;
}
  
.dropdown-submenu:hover .dropdown-menu{
  top:0;
}

.vertical-alignment-helper {
    display:table;
    height: 100%;
    width: 100%;
    pointer-events:none;
}
.vertical-align-center {
    /* To center vertically */
    display: table-cell;
    vertical-align: middle;
    pointer-events:none;
}
.modal-content {
    /* Bootstrap sets the size of the modal in the modal-dialog class, we need to inherit it */
    width:inherit;
    height:inherit;
    /* To center horizontally */
    margin: 0 auto;
    pointer-events:all;
}

.ui-button {
	padding: 0 .4em 0 .4em;
	margin-right: 0;
}

/* Interaction states
----------------------------------*/
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,

/* We use html here because we need a greater specificity to make sure disabled
works properly when clicked or hovered */
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
	background: #FFFFFF;
	border: 1px solid rgb(170, 170, 170);
	font-weight: bold;
}

/* Corner radius */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
	border-top-left-radius: 0px;
}

.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
	border-top-right-radius: 0px;
}

.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
	border-bottom-left-radius: 0px;
}

.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
	border-bottom-right-radius: 0px;
}

.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled {
    opacity: 100;
    background-color: rgb(227, 227, 227);
}

input {
    border: 1px solid rgb(170, 170, 170);
}

input[readonly]
{
    background-color:rgb(227, 227, 227);
}

input[disabled]
{
    background-color:rgb(227, 227, 227);
}

input.inputDateControl
{
 	font-weight:bold;
	height:32px;
	width: 120px;
	text-align: center;
	padding: 0;
}

input.inputDateControl[readonly]
{
    background-color:rgb(255, 255, 255);
}

input.inputDateControl[disabled]
{
    background-color:rgb(227, 227, 227);
}

select {
    border: 1px solid black;
    background-color:rgb(255, 255, 255);
	height: 32px;
	font-weight:bold;
	line-height: 32px;
}

select[readonly]
{
    background-color:rgb(227, 227, 227);
}

select[disabled]
{
    background-color:rgb(227, 227, 227);
}

.separatedDiv {
    border: solid;
    border-radius: 0px;
    border-color: rgb(229, 229, 229);
    border-width: 1px;
    padding-bottom: 1em;
}

.disabledHref {
	color:darkgray;
}

.disabledHref:hover {
	color:gray;
}

.inputTextControl {
	font-weight:bold;
	height:32px;
	padding-left: 12px;
}

.inputTextControl:invalid { 
    box-shadow: 0 0 5px #d45252;
}

.inputTextControl:valid { 
    box-shadow: none;
}

.inputTextMobileControl {
	font-weight:bold;
	height:32px;
	padding-left: 5px;
}

.ui-datepicker td.ui-state-disabled>span {
	background:rgb(227, 227, 227);
	color: #808080;
}
.ui-datepicker td.ui-state-disabled {
	opacity:100;
}

#ui-datepicker-div .ui-state-highlight {
	text-decoration: underline;
	color: black;
}

#ui-datepicker-div .ui-state-active {
	background: lemonchiffon;
	color: black;
}

.table-hover > tbody > tr:hover {
  background-color: rgb(227, 227, 227);
}

a.disabled {
    pointer-events: none;
}

.HideElement {
	display:none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.LightGreenBG {
	background-color: rgb(210, 255, 210);
}

/*.Banner {
	border: 1px solid rgb(187, 21, 48);
	background-color:rgb(187, 21, 48);
	color:white;
}

button.btn, a.btn {
	border-radius: 0px;
}

button.btn-danger, a.btn-danger {
	border: 1px solid rgb(187, 21, 48);
	background-color:rgb(187, 21, 48);
	color:white;
}

a, a:hover {
	color:rgb(187, 21, 48)!important;
}

div.ui-state-active {
	border: 1px solid rgb(187, 21, 48)!important;
	background-color:rgb(187, 21, 48)!important;
	color:white!important
}

a.msgPopCloseLnk, a.msgPopCloseLnk:hover {
	color:white!important;
}*/

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

.dropdown-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
  border-left-color: #fff;
}

.dropdown-submenu.pull-left {
  float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}

.bootstrap-switch .bootstrap-switch-handle-off,.bootstrap-switch .bootstrap-switch-handle-on,.bootstrap-switch .bootstrap-switch-label {
     line-height: 0px!important
}

.ui-widget-content {
    max-height: 15em;
    overflow-y: auto;
}

.dropup-menu {
    top: auto;
    bottom: 100%; /* Подменю будет располагаться выше родительского элемента */
    left: 0;
    z-index: 1000;
    display: none; /* Скрыто по умолчанию */
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0; /* Отступ от родительского элемента */
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

/* Показываем подменю при активации */
.open > .dropup-menu {
    display: block;
}

/* Дополнительные стили для правильного позиционирования в случае вложенных подменю 
.dropup-menu .dropdown-menu {
    top: auto;
    bottom: 0;
}*/

.dropup-submenu {
  position: relative;
}

.dropup-submenu>.dropup-menu {
    top: auto !important;
    bottom: 0 !important;
  left: 100%;
  margin-bottom: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px;
  border-radius: 0 6px 6px 6px;
}

.dropup-submenu:hover>.dropup-menu {
  display: block;
}

.dropup-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropup-submenu:hover>a:after {
  border-left-color: #fff;
}

.dropup-submenu.pull-left {
  float: none;
}

.dropup-submenu.pull-left>.dropup-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}