/** ----- general ----- */
/** class of the wrapper element */
.ui-value {
	/**
	display block or inline-block is needed for correct tooltip position
	when overflow!=visible is needed you must use block - inline-block will alter the baseline and therefore increases the height!
	*/
	display: inline-block;
	white-space: nowrap;
}

/** ----- numeric ----- */
/** style class for input number fields */
.ui-inputnumber {
	text-align: right;
}

/** value preview for editor fields */
.ui-editor-preview {
	display: inline-block;
	width: calc(100% - 2.4em - 5px);
	text-align: left;
	white-space: normal;
	padding-left: 5px;
	margin-top: -4px;
	margin-bottom: -8px;
	overflow: hidden;
	height: 26px;
	font-size: .8em;
}

/** ----- calendar ----- */
/** increase left margin on timepicker slider */
.ui-timepicker-div dl dd{
	/*margin-left: 100px;*/
}

/** ----- file ----- */
/** style for filename display field */
.ui-upload-filename {
	display: inline-block;
	vertical-align: middle;
	overflow: hidden;
	white-space: nowrap;
	margin-right: 0.5em;
}
/** style for preview image */
.ui-upload-preview {
	vertical-align: middle;
	margin-right: 0.5em;
}

/** ----- tree ----- */
.tree-explorer-overlay {
	min-width: 300px;
	position: absolute;
	padding: 5px 10px 10px 10px ;
	background-color: #eee;
	border-radius: 5px;
	border: 1px solid gray;
	text-align: center;
	z-index: 1001;
	-moz-box-shadow: 5px 5px 3px #ccc;
	-webkit-box-shadow: 5px 5px 3px #ccc;
	box-shadow: 5px 5px 3px #ccc;
}
.tree-explorer-wrapper {
	padding: 0 5px;
	border: 1px solid gray;
	border-radius: 5px;
	z-index: 1002;
	background-color: white;
	text-align: left;
}
.ui-icon-triangle-1-none {
	background-position: -160px -16px;
}
.ui-tree .ui-tree-non-toggler {
	cursor: pointer;
	display: inline-block;
	vertical-align: top;
}

/** ----- util buttons ----- */
.ui-tinyButton {/** TODO same as tinyButton in primefaces/fixLayout.css */
	font-size: 50% !important;
	vertical-align: top;
}

.ui-tooltip-left {
	text-align: left;
}

/** ---- rating field ---- */
.ui-rating {
	min-width: 100px;
	display: block;
}

.ui-rating-red .ui-rating-star-on a{
	background-position: 0 -64px;
}

/** ---- slider field ---- */
.ui-value .ui-slider-horizontal {
	min-width: 150px;
}

.ui-slider-gradient[class*="ui-slider-style-1"] {
	background-image: linear-gradient(to right, #2CA403, #33CC00, #33CC00, #33CC00, #33CC00, #00E533, yellow, orange, red)!important;
}

.ui-slider-gradient[class*="ui-slider-style-2"] {
	background-image: linear-gradient(to right, red, orange, yellow, #33CC00, #2CA403)!important;
}

.ui-slider-gradient[class*="ui-state-changed"] {
	/*border-color: #fff5c0!important;*/
}

.ui-slider-gradient[class*="ui-state-changed"] span[class^="ui-slider-handle"] {
	/*border-color: #fff5c0!important;*/
}

.ui-state-error .ui-slider-handle{
	border-color: #cd0a0a!important;
}

/** other opacity as ui-state-disabled (.35) for show stars better */
.ui-rating[class*="ui-state-disabled"] {
	opacity: .60;
	filter: Alpha(Opacity=60);
}

/** no opacity for input elements */
.ui-input-disabled[class*="ui-state-disabled"] {
	opacity: 1 !important;
	filter: Alpha(Opacity=1) !important;
}

/** no input field after this field */
.ui-seperate-password .ui-password {
	display: block;
}

/** wrapper class for data item placeholder before input text*/
.ui-autocompleteicon-wrapper {
	vertical-align: top;
	text-align: center;
	display: inline-block;
	cursor: default;
	overflow: hidden;
	border: 1px darkgray dotted;
	height: 25px; /** TODO get dynamically */
	width: 25px; /** TODO get dynamically */
	margin-right: 5px;
}

.ui-autocomplete[class*="ui-value"] td {
	padding: 1px;
	margin: 1px;
}

/** image definition for icon wrapper image */
.ui-autocompleteicon-wrapper img {
	text-align: center;
	display: inline-block;
	font-size: x-small;
	margin: -1px;
	object-fit: cover;
	height: 25px; /** TODO get dynamically */
	width: 25px; /** TODO get dynamically */
	line-height: 25px; /** TODO get dynamically */
}

/* base style for all images in autocomplete */
.ui-autocomplete-item img {
	display: inline-block;
	vertical-align: middle;
	height: 26px; /** TODO get dynamically */
	width: 26px; /** TODO get dynamically */
}

.ui-autocomplete-item-content {
	text-align: left;
	width: 100%;
	padding-left: 5px!important;
}

.ui-cursor-pointer{
	cursor: pointer;
}

.ui-notextselection {
	-ms-user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.ui-value[class*="ui-autocomplete"]{
	position: static;
}

/**fix drop down button (simulate select-box button)*/
.ui-value .ui-autocomplete-dropdown {
	position: relative;
}

/** override width value from ui-datatable */
.ui-autocomplete-panel {
	width: auto;
	max-width: 300px; /** TODO better value or calcualted width */
	position: fixed;
}

/** fix for uivalue autocomplete field */
.ui-accordion .ui-accordion-content{
	overflow: visible;
}

/** css class set the min height of 25px for simultae button height by isEditable() == false */
.ui-toolbar-readonly div.ui-toolbar-group {
	min-height: 25px;
}

/** css class set the title in middle of toolbar if buttons left not visible by isEditable() == false */
.ui-toolbar-readonly div.ui-toolbar-group label{
	vertical-align: middle;
	padding-top: 5px;
}

.ui-treevalue-content{
	min-height: 80px;
}

/** set label middle in cell */
.ui-selectoneradio label{
	display: inline-block;
	padding-left: 5px;
	position: relative;
	bottom: 3px;
	cursor: pointer;
}

/** checkbox become pointer as cursor */
.ui-value .ui-radiobutton-box {
	cursor:pointer;
}

.ui-autocomplete-itemtip{
	position: fixed;
	z-index: 1002;
	left: 700px;
}

.ui-autocomplete-itemtip table{
	border: 0 none !important
}

.ui-autocomplete-itemtip-hidden{
	display: none;
	visibility: hidden;
}

.ui-autocomplete-itemtip-show{
	display: inherit;
	visibility: visible;
}

/** no border from data table if this component is inline */
.ui-autocomplete-itemtip td{
	border: 0!Important;
	padding: 3px!Important;
	cursor: default;
	text-align: left;
}

/** no hover style for js function set on all tr a hover class */
.ui-autocomplete-itemtip tr.ui-state-hover{
	background: none!Important;
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	color: inherit!important;
	border: 0!Important;
}