/*
 * Define here ONLY .ui-xxx classes from PrimeFaces/jQueryUI.
 */

/* General ---------------------------------------------------------------------------------------------------------- */

.ui-widget.ui-state-default {
	border: 1px solid #{lightGray};
}

.ui-widget.ui-state-hover {
	border-color: #{semiGray};
}

.ui-widget.ui-state-highlight,
.ui-widget.ui-state-focus {
	border-color: #{black};
}

.ui-widget.ui-state-error {
	border-color: #{red};
}

.ui-corner-all {
	border-radius: 3px;
}

.ui-icon,
.ui-paginator .ui-paginator-first,
.ui-paginator .ui-paginator-prev,
.ui-paginator .ui-paginator-next,
.ui-paginator .ui-paginator-last {
	display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 1.2em;
    text-indent: 0;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ui-shadow {
	box-shadow: 0 1px 3px #{gray};
}


/* Inputs ----------------------------------------------------------------------------------------------------------- */

.ui-inputfield {
	position: relative;
	font-size: 1em;
	color: #{black};
}

.ui-inputfield,
.ui-spinner,
.ui-selectonemenu,
.ui-autocomplete {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	padding: .5em;
	background: white;
}

.ui-autocomplete-panel,
.ui-selectonemenu-panel {
	z-index: 9997 !important;	
}

.ui-selectonemenu-panel .ui-selectonemenu-item.ui-state-disabled,
.ui-autocomplete-panel .ui-autocomplete-item.ui-state-disabled {
	display: none;
}

.ui-selectonemenu-panel .ui-selectonemenu-item.ui-state-hover,
.ui-selectonemenu-panel .ui-selectonemenu-item.ui-state-highlight,
.ui-autocomplete-panel .ui-autocomplete-item.ui-state-hover,
.ui-autocomplete-panel .ui-autocomplete-item.ui-state-highlight {
	background: #{brightGray};
}

.ui-spinner-button.ui-state-default {
	height: 20px;
	width: 20px;
	border-radius: 20px;
	line-height: 20px;
	padding: 0;
	background: white;
	border: 2px solid #{gray};
	color: #{gray};
}

.ui-spinner-button.ui-state-focus,
.ui-spinner-button.ui-state-hover {
	border-color: #{black};
	color: #{black};
}

.ui-spinner-button.ui-state-default .ui-button-text {
	display: inline;
	padding: 0;
}

.ui-spinner-up.ui-state-default {
	top: 16px;
	right: 16px;
}

.ui-spinner-down.ui-state-default {
	top: 16px;
	right: 54px;
}

.ui-spinner .ui-icon {
	position: static;
	margin: 0;
	vertical-align: middle;
}

.ui-spinner-up .ui-icon:after {
	content: "\f067"; /* fa-plus */
}

.ui-spinner-down .ui-icon:after {
	content: "\f068"; /* fa-minus */
}

.ui-chkbox {
	float: left;
}

.ui-chkbox .ui-chkbox-box {
	box-sizing: border-box;
	width: 25px;
	height: 25px;
	padding: 2px;
	line-height: 25px;
	text-align: center;
}

.ui-chkbox .ui-icon-check:after {
	content: "\f00c"; /* fa-check */
	color: #{red};
}


/* Buttons ---------------------------------------------------------------------------------------------------------- */

.ui-button.ui-state-default {
	height: 40px;
	margin: 0 .5em 0 0;
	padding: 0 1em;
	text-transform: uppercase;
	color: white;
	background: #{green};
}

.ui-button.ui-state-hover,
.ui-button.ui-state-focus {
	box-shadow: 0 3px 6px 0 #{gray};
}

.ui-button.secondary.ui-state-default {
	background: #{blue};
}

.ui-button.tertiary.ui-state-default {
	background: #{gray};
}

.ui-splitbutton-menubutton .ui-icon:after {
	content: "\f107"; /* fa-angle-down */
}


/* Menus ------------------------------------------------------------------------------------------------------------ */

.ui-menu {
	background: white;
}


/* Tables ----------------------------------------------------------------------------------------------------------- */

.ui-datatable table {
	table-layout: auto;
}

.ui-datatable thead th,
.ui-datatable tbody td {
	border: 1px solid #{lightGray};
}
.ui-datatable tr:nth-child(even) {
	background: white;
}

.ui-datatable th.ui-state-active,
.ui-datatable tr:nth-child(odd),
.ui-datatable tr:nth-child(even) td.ui-state-active {
	background: #{brightGray};
}

.ui-datatable th.ui-state-hover,
.ui-datatable tr:nth-child(odd) td.ui-state-active {
	background: #{lightGray};
}

.ui-datatable th {
	font-weight: normal;
	background: white;
}

.ui-datatable th.ui-state-active {
	font-weight: bold;
}

/* k:table actions */
.ui-datatable-actions .ui-datatable-search {
	float: left;
}

.ui-datatable-actions .ui-datatable-export {
	float: right;
}

.ui-datatable-actions .ui-inputfield.filter {
	width: auto;
}

.ui-datatable-actions .ui-button {
	margin: 0 0 0 .5em;
}

.ui-datatable-actions .ui-buttonset {
	margin: 0;
}

/* k:column types */
.ui-datatable td.text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ui-datatable td.number,
.ui-datatable td.currency {
	white-space: nowrap;
	text-align: right;
}

.ui-datatable td.boolean {
	white-space: nowrap;
	text-align: center;
}

.ui-datatable td.actions {
	white-space: nowrap;
	text-align: left;
}

.ui-columntoggler {
	background: white;
}

.ui-columntoggler .ui-columntoggler-close {
	display: none;
}

.ui-columntoggler .ui-columntoggler-items {
	padding: .2em;
}

.ui-columntoggler .ui-columntoggler-item .ui-chkbox {
	position: static;
	margin-top: 0;
}


/* Paginator -------------------------------------------------------------------------------------------------------- */

.ui-paginator .ui-icon {
	display: none;
}

.ui-paginator .ui-paginator-first:after {
	content: "\f100"; /* fa-angle-double-left */
}

.ui-paginator .ui-paginator-prev:after {
	content: "\f104"; /* fa-angle-left */
}

.ui-paginator .ui-paginator-next:after {
	content: "\f105"; /* fa-angle-right */
}

.ui-paginator .ui-paginator-last:after {
	content: "\f101"; /* fa-angle-double-right */
}

.ui-paginator .ui-state-disabled {
	color: #{gray};
}
