/* AUTOCOMPLETE */
ul.ui-autocomplete {
    z-index: 99999;
}

.ui-autocomplete {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 250px;
}
  
  
.ui-autocomplete-description {
	font-size: 0.7rem;
	margin-left: 10px;
	color: #808080;
}
.ui-autocomplete .ui-menu-item:hover .ui-autocomplete-description {
    color: inherit;
}

/* FILE BUTTON */
.fileButton {
    position: relative;
    overflow: hidden;
}

.fileButton input[type='file'] {
    font-size: 100px;
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    min-width: 100%;
    min-height: 100%;
    cursor: inherit;
    text-align: right;
    opacity: 0;
    filter: alpha(opacity=0);
}

/* FILTER BUTTON, ARROW ANIMATION*/
.rotate {
    -moz-transition: all .2s linear;
    -webkit-transition: all .2s linear;
    transition: all .2s linear;
}

.rotate.rotate180Clock {
    -ms-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.rotateSpin {
  -webkit-animation: spin 2s infinite linear;
  -moz-animation: spin 2s infinite linear;
  -o-animation: spin 2s infinite linear;
  animation: spin 2s infinite linear;
}


/* PROCESING MASSAGE */
@keyframes fading {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

.animatedProcessingMessage {
	display: inline-block;
	vertical-align: middle;
	font-weight: bold;
}

.animatedProcessingMessage span {
    animation-name: fading;
    animation-duration: 2.8s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.animatedProcessingMessage span:nth-child(2) {
    animation-delay: .4s;
}

.animatedProcessingMessage span:nth-child(3) {
    animation-delay: .8s;
}

.processingMessageDiv.dataTables_processing {
	background: -webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,.8)),color-stop(100%,rgba(255,255,255,.8)));
	background: -webkit-linear-gradient(left,rgba(255,255,255,.8) 0,rgba(255,255,255,.8) 100%);
	background: -moz-linear-gradient(left,rgba(255,255,255,.8) 0,rgba(255,255,255,.8) 100%);
	background: -ms-linear-gradient(left,rgba(255,255,255,.8) 0,rgba(255,255,255,.8) 100%);
	background: linear-gradient(to right,rgba(255,255,255,.8) 0,rgba(255,255,255,.8) 100%);
	background: -o-linear-gradient(left,rgba(255,255,255,.8) 0,rgba(255,255,255,.8) 100%);
	margin-top: 0px;
	padding-top: 0px;
	z-index: 1;
}


/* MONTH PICKER */
.ui-state-active, 
.ui-widget-content .ui-state-active, 
.ui-widget-header .ui-state-active, 
a.ui-button:active, 
.ui-button:active, 
.ui-button.ui-state-active:hover {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
}

.month-picker-previous > .ui-button > .ui-icon-circle-triangle-w,
.month-picker-next > .ui-button > .ui-icon-circle-triangle-e {
    display: inline-block;
    margin-bottom: 7px;
    margin-left: -7px;
}

/* UTILITIES */
.g-min-width-75 {
    min-width: 75px;
}
.g-width-1400 {
    width: 1400px !important;
    max-width: 100%;
  }
.g-hidden {
	display: none !important;
}
.g-cursor-default {
	cursor: default !important;
}
/* table button */
.btn i.fa {
	font-size: 1rem;
	min-width:20px;
}
/* Changing icon ofr unify custom checkbox */
input[type="checkbox"]:hover + * .g-close-hover:before, input[type="radio"]:hover + * .g-close-hover:before {
	content: "\f00d"
}
input[type="checkbox"]:hover + * .g-check-hover:before, input[type="radio"]:hover + * .g-close-hover:before {
	content: "\f00c"
}

/* Margin fix under input error for unify */
.help-block.with-errors {
	margin: 0px;
}

/* Make input stuck button red when has error */
.has-error .input-group-addon {
    color: #fff;
    background-color:#54555a;
    border: 1px solid #54555a;
}

/* OVERWRITE */
[class*="input-group-"] { /* min-width creates empty space after button, because of reduced font */
    min-width: auto;
}







/* Tooltip */
.custom-tooltip,
.custom-tooltip-timed {
    position: relative;
    display: inline-block;
}
.custom-tooltip .tooltiptext,
.custom-tooltip-timed .tooltiptext {
    visibility: hidden;
    width: 120px;
    min-width: 120px;
    background-color: #5a6268;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 99999;
    opacity: 0;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    transition: opacity 0.3s;
    white-space: normal;
    font-size: 0.8rem;
}
.custom-tooltip .tooltiptext.tooltiptext-170,
.custom-tooltip-timed .tooltiptext.tooltiptext-170 {
    width: 170px;
    min-width: 170px;
    margin-left: -85px;
}



.custom-tooltip .tooltiptext.tooltiptext-220,
.custom-tooltip-timed .tooltiptext.tooltiptext-220 {
    width: 220px;
    min-width: 220px;
    margin-left: -110px;
}

.custom-tooltip .tooltiptext::after,
.custom-tooltip-timed .tooltiptext::after { 
    content: ""; 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    margin-left: -5px; 
    border-width: 5px; 
    border-style: solid; 
    border-color: #5a6268 transparent transparent transparent; 
} 

.custom-tooltip .tooltiptext.tooltiptext-left,
.custom-tooltip-timed .tooltiptext.tooltiptext-left {
    left: auto;
    bottom: auto;
    top: -25%;
    right: 130%;
}

.custom-tooltip .tooltiptext.tooltiptext-left::after,
.custom-tooltip-timed .tooltiptext.tooltiptext-left::after { 
    top: 0%; 
    left: 100%;
    margin-left: 0px; 
    margin-top: 10px;
    border-color: transparent transparent transparent #5a6268;
}

.custom-tooltip .tooltiptext.tooltiptext-top-right,
.custom-tooltip-timed .tooltiptext.tooltiptext-top-right {
    left: initial;
    right: 0;
}

.custom-tooltip .tooltiptext.tooltiptext-top-right::after,
.custom-tooltip-timed .tooltiptext.tooltiptext-top-right::after {
    left: initial;
    right: 20px;
}

.custom-tooltip .tooltiptext.tooltiptext-z-100 {
    z-index: 100;
}

.custom-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* Unify outline buttons - coppied from their sources (fixed border color), to be set as last, otherwiese btn class overides color as primary and outline no longer works */
/* Button Bluegrey */
.u-btn-bluegray, .u-btn-bluegray.disabled:hover {
    color: #fff;
    border-color: #585f69;
    background-color: #585f69;
}
.u-btn-bluegray:hover, .u-btn-bluegray:focus, .u-btn-bluegray.active {
    color: #fff;
    border-color: #6f7885;
    background-color: #6f7885;
}
/* Outline Button Bluegrey */
.u-btn-outline-bluegray, .u-btn-outline-bluegray.disabled:hover {
    color: #585f69;
    border-color: #585f69;
    background-color: transparent;
}
.u-btn-outline-bluegray:hover, .u-btn-outline-bluegray:focus, .u-btn-outline-bluegray.active {
    color: #fff;
    border-color: #585f69;
    background-color: #585f69;
}
/* Outline Button Primary */
.u-btn-outline-primary, .u-btn-outline-primary.disabled:hover {
    color:var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}
.u-btn-outline-primary:hover, .u-btn-outline-primary:focus, .u-btn-outline-primary.active {
    color: #fff;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}
/* Button Outline Red */
.u-btn-outline-red, .u-btn-outline-red.disabled:hover {
    color: #f00;
    border-color: #f00;
    background-color: transparent;
}
.u-btn-outline-red:hover, .u-btn-outline-red:focus, .u-btn-outline-red.active {
    color: #fff;
    border-color: #f00;
    background-color: #f00;
}

/* OUR BTNs */
/* Button Grey */
.u-btn-gray, .u-btn-gray.disabled:hover {
    color: #fff;
    border-color: gray;
    background-color: gray;
}
.u-btn-gray:hover, .u-btn-gray:focus, .u-btn-gray.active {
    color: #fff;
    border-color: lightgray;
    background-color: lightgray;
}
/* Button Outline Grey */
.u-btn-outline-gray, .u-btn-outline-gray.disabled:hover {
    color: gray;
    border-color: gray;
    background-color: transparent;
}
.u-btn-outline-gray:hover, .u-btn-outline-gray:focus, .u-btn-outline-gray.active {
    color: #fff;
    border-color: gray;
    background-color: gray;
}
