/*JQUERY DIALOG FIX */
.ui-dialog{
	width:auto !important;
	z-index:1005;
	max-width:calc(100% - 30px);
}
.ui-dialog .ui-dialog-titlebar{
	min-height:20px;
	box-sizing:initial;
	/*background:#025AA5;
	color:#ffffff;*/
}
.ui-dialog .ui-dialog-titlebar-close span{
	margin:-8px !important;
}
.ui-dialog-content{
	padding-left:0px;
	min-width:300px;
	width:auto;
	height:auto;
	max-height:800px !important;
}

/*SELECTPICKER*/
:not(.input-group)>.bootstrap-select.form-control:not([class*=col-]){
	width: 100%;
	min-width: 150px;
}

/*DATEPICKER FIX DO NOT REMOVE*/
.ui-datepicker{
	display:none;
	z-index:1010 !important;
}

.table > thead > tr > th{
	border-top:0px;
}

/*AUTOCOMPLETE*/
.ui-autocomplete{
	z-index:1010;
}
.ui-autocomplete .ui-menu-item{
	cursor:pointer;
	padding:5px;
	white-space: nowrap;
}

.ui-tabs, .ui-tabs-panel{
	padding:0px !important;
}

.ui-tabs .ui-state-active,
.ui-tabs .ui-state-active a{
	color: #fff !important;
    background: #007bff !important;
    border-color: #007bff !important;
}


.btn-primary {
	background-color: #007bff;
	border-color: #007bff;
}

.margin_top_20{
	margin-top:20px;
}

/*TABLE-HORIZONTAL-WIDE*/

.message-label + form{
	margin-top:20px;
}

.table.table-horizontal-wide {
	margin-bottom: 0px;
	border: 1px solid #dee2e6;
	position: relative;
}

.dialog .table.table-horizontal-wide {
	min-width:450px;
}

.table.table-horizontal-wide > tbody > tr > th {
	white-space: nowrap;
	position: absolute;
	margin-top: -17px;
	background: white;
	margin-left: 8px;
	padding: .5rem;
	border: 0px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-weight: normal;
	width: auto;
	max-width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #000000b8;
}

.table.table-horizontal-wide > tbody > tr > th:empty {
	margin: 0px;
	padding: 0px;
	background: none;
}

.table.table-horizontal-wide > tbody > tr > td {
	padding: 1.25rem .5rem;
	padding-left: 1.5rem;
}

.table.table-horizontal-wide > tbody > tr > td:not(.text-color):not(.btn),
.table.table-horizontal-wide > tbody > tr > td *:not(.text-color):not(.btn) > *:not(.text-color):not(.btn) {
	color: #808080ed;
}

.table.table-horizontal-wide > tbody > tr:hover,
.table.table-horizontal-wide > tbody > tr:active,
.table.table-horizontal-wide > tbody > tr:focus {
	border-left: 1px solid black;
}

.table.table-horizontal-wide > tbody > tr:hover > th,
.table.table-horizontal-wide > tbody > tr:active > th,
.table.table-horizontal-wide > tbody > tr:focus > th,
.table.table-horizontal-wide > tbody > tr:hover > td:not(.text-color),
.table.table-horizontal-wide > tbody > tr:active > td:not(.text-color),
.table.table-horizontal-wide > tbody > tr:focus > td:not(.text-color),
.table.table-horizontal-wide > tbody > tr:hover > td:not(.text-color) *:not(.text-color):not(.btn),
.table.table-horizontal-wide > tbody > tr:active > td:not(.text-color) *:not(.text-color):not(.btn),
.table.table-horizontal-wide > tbody > tr:focus > td:not(.text-color) *:not(.text-color):not(.btn) {
	color: black;
}

.ui-dialog .table-horizontal-wide {
	margin-top: 20px;
	margin-bottom: 20px;
}

@media screen and (max-width: 1280px) {
	.table.table-horizontal-wide tr th {
		margin-top: -15px;
	}
}

.no-border,
.no-border .ui-widget-content,
.table.no-border,
.table.no-border  > thead > tr,
.table.no-border  > tbody > tr:hover,
.table.no-border  > thead > tr > th,
.table.no-border  > tbody > tr > th:hover,
.table.no-border  > tbody > tr > td ,
.table.no-border  > tbody > tr > td:hover {
	border: none;
	padding: 0.1rem .75rem;
}

.table.no-border td input[type="submit"].btn,
.table.no-border td a.btn,
.table.no-border td button{
	margin-top: 20px;
	margin-bottom: 10px;
}

.table.no-border td .bootstrap-select + .form-group-label-right-elem a.btn {
	margin-top: 10px;
}

/*FORM-GROUP-LABEL*/
:root {
	--form_group_border_color: #ced4da;
	--form_group_border_h_color: #a3a9af;
}

.form-group-label {
	padding: 5px;
	position: relative;
	top: 19px;
	left: 10px;
	background-color: white;
	z-index: 5;
	font-size: 16px;
	border-radius: 5px;
}

.bg_gray{
	background-color: rgba(0,0,0,.05);
}
.bg_white{
	background-color: #fff;
}

.table-striped tbody tr:nth-of-type(odd).bg_gray{
	background-color: rgba(0,0,0,.05);
}
.table-striped tbody tr:nth-of-type(odd).bg_white{
	background-color: #fff;
}

.table-striped tbody tr:nth-of-type(odd).bg_gray:hover,
.table-striped tbody tr:nth-of-type(odd).bg_white:hover{
	background-color: #bdd7ec;
}

.table > thead > tr > th > .form-group-label {
	top: 15px;
	color: black;
	font-weight: normal;
}

.form-group-label:empty {
	display: none;
}

.form-group-label.active + .form-group-sibling {
	border: 1px solid var(--form_group_border_h_color);
}

.form-group-label-right,
.form-group-label-right-elem {
	float: right;
	margin-top: -25px;
	background: white;
	padding: 0px 5px;
	z-index: 100;
	position: relative;
}

.label-normal,
.label-normal th {
	font-weight: normal;
	color: black;
}

.bootstrap-select + .form-group-label-right-elem {
	margin-top: -77px;
}

.form-group-label-right-elem {
	margin-top: -70px;
	margin-right: 10px;
}

/*all sub elements*/
.form-group-label + .form-group-sibling {
	display: block;
	min-height: calc(2em + .75rem + 2px);
	height: auto;
	padding-top: 5px;
	border: 1px solid var(--form_group_border_color);
}

.form-group-label + .form-group-sibling[type="checkbox"] {
	display: block;
	min-height: auto;
	width: auto;
	height: auto;
	padding-top: 5px;
	border: 1px solid var(--form_group_border_color);
	margin-top: 15px;
	margin-left: 5px;
}

.form-group-label + .form-group-sibling.empty-label {
	display: block;
	padding-top: 5px;
	padding-bottom: 5px;
	min-height: 10px;
	margin-top: 10px;
}

.form-group-label + .form-group-sibling.bootstrap-select .dropdown-menu .inner .dropdown-menu li.active a.active span.text{
	color:white;
}
.form-group-label + .form-group-sibling.bootstrap-select .dropdown-menu .inner .dropdown-menu li a span.text{
	color:black;
}

.form-group-label + .form-group-sibling:not(.text-color),
.form-group-label + .form-group-sibling:not(.text-color) *:not(.text-color):not(.btn) {
	color: grey;
}

.form-group-elem:active {
	position: relative;
	z-index: 6;
}

/*checkbox*/
.form-group-label + .check_row {
	display: block;
	min-height: calc(2em + .75rem + 10px);
	height: auto;
	line-height: calc(2em + 0.2rem);
	padding-top: 10px;
	padding-bottom: 10px;
	vertical-align: middle;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid var(--form_group_border_color);
	border-radius: .25rem;
	transition: border-color .15s
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px white inset !important;
	background-color: inherit !important;
}

.form-group-label + span.form-group-sibling,
.form-group-label + div.form-group-sibling,
.form-group-label + textarea.form-group-sibling {
	min-height: calc(2em + .75rem + 10px);
	padding-top: 15px;
}

.form-group-label + .form-group-sibling:hover,
.form-group-label + .form-group-sibling:active,
.form-group-label + .form-group-sibling:focus,
.form-group-label:hover + .form-group-sibling,
.form-group-label:active + .form-group-sibling,
.form-group-label:focus + .form-group-sibling,
.form-control.form-group-sibling:hover,
.form-control.form-group-sibling:active,
.form-control.form-group-sibling:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	border: 1px solid var(--form_group_border_h_color);
	border-radius: .25rem;
	outline: none;
}

.form-group-label + .check_row:hover,
.form-group-label + .check_row:active,
.form-group-label + .check_row:focus,
.form-group-label:hover + .check_row,
.form-group-label:active + .check_row,
.form-group-label:focus + .check_row {
	border: 1px solid var(--form_group_border_h_color);
}

.form-group-label + .form-group-sibling.bootstrap-select:hover,
.form-group-label + .form-group-sibling.bootstrap-select:active,
.form-group-label + .form-group-sibling.bootstrap-select:focus,
.form-group-label:hover + .form-group-sibling.bootstrap-select,
.form-group-label:active + .form-group-sibling.bootstrap-select,
.form-group-label:focus + .form-group-sibling.bootstrap-select {
	border: 1px solid var(--form_group_border_h_color) !important;
}

.form-group-label + .form-group-sibling:not(.text-color):hover,
.form-group-label + .form-group-sibling:not(.text-color):active,
.form-group-label + .form-group-sibling:not(.text-color):focus,
.form-group-label + .form-group-sibling:not(.text-color):hover *:not(.text-color):not(.btn),
.form-group-label + .form-group-sibling:not(.text-color):active *:not(.text-color):not(.btn),
.form-group-label + .form-group-sibling:not(.text-color):focus *:not(.text-color):not(.btn){
	color: black;
}

.form-group-label + .form-group-sibling:hover .btn:not(.dropdown-toggle),
.form-group-label + .form-group-sibling:active .btn:not(.dropdown-toggle),
.form-group-label + .form-group-sibling:focus .btn:not(.dropdown-toggle),
.form-group-label + .form-group-sibling:hover * .btn:not(.dropdown-toggle),
.form-group-label + .form-group-sibling:active * .btn:not(.dropdown-toggle),
.form-group-label + .form-group-sibling:focus * .btn:not(.dropdown-toggle) {
	color: white;
}

.form-group-label:hover + .form-group-sibling:not(.text-color),
.form-group-label:active + .form-group-sibling:not(.text-color),
.form-group-label:focus + .form-group-sibling:not(.text-color),
.form-group-label:hover + .form-group-sibling:not(.text-color) *,
.form-group-label:active + .form-group-sibling:not(.text-color) *,
.form-group-label:focus + .form-group-sibling:not(.text-color) * {
	color: black;
}

/*bootstrap selectpicker*/
.form-group-label + select.selectpicker.form-group-sibling + .form-group-label-right-elem {
	display: none;
}

.form-group-label + select.selectpicker.form-group-sibling {
	display: block !important;
}

.form-group-label + .bootstrap-select > button.btn,
.form-group-label + .bootstrap-select > button.btn:hover,
.form-group-label + .bootstrap-select > button.btn:active,
.form-group-label + .bootstrap-select > button.btn:focus {
	margin-top: 2px;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
}

/*FORM-GROUP-LABEL END*/


.fixed {
	position: -webkit-sticky;
	position: sticky;
	top: 0px;
	z-index: 100;
}


.dropdown-menu.show {
	display: block;
}
.bootstrap-select .dropdown-toggle .filter-option{
	background: white;
}
