
/* TODO: Remove this */
.grapple tbody .red {
	background-color: #ffdddd;
}

/* TODO: Remove this */
.grapple h2 {
	font-size: 116%;
	padding: 2px 0;
}

/* TODO: is this still being used? */
.grapple .not-ready {
	visibility: hidden;
}

/* Pagination */
/* HACK: Restoring bootstrap styles that conflict with styles in grapple.css */
.grapple tfoot .pagination {
	display: inline-block;
	width: auto;
	margin: 20px 0;
}

.grapple .pagination a {
	border: 1px solid #ddd;
	padding: 6px 12px;
	color: #337ab7;
	text-decoration: none;
	margin-left: -1px;
	margin-right: 0px;
}

.grapple tfoot td {
	text-align: center;
}

.grapple tfoot td.text-left {
	text-align: left;
}

.grapple tfoot td.text-center {
	text-align: center;
}

.grapple tfoot td.text-right {
	text-align: right;
}
/* Toolbar */
.grapple .toolbar .actions {
	height: 35px; /* The actions container needs to be taller because the buttons are bigger */
	padding: 3px 0; /* Get the actions to line up vertically with the search form button */
}

/* HACK to get buttons to not stick together in grapple tables */
.grapple .actions .btn  {
	margin-left: 5px;
}

.grapple .search-form * {
	vertical-align: middle; /* baseline looks better in most browsers but it doesn't line up correctly in firefox */
}

/* 
	Get rid of bold styles on form elements in the search form
	They are causing sizing issies in chrome 
*/
.grapple .search-form {
	font-weight: normal;
}

.grapple .search-form label {
	margin-bottom: 0px; /* Remove margin added by bootstrap so vertical alignment of labels is correct */
}

/* Set the width of datepickers within grapple tables */
.grapple .date-picker {
	width: 100px;
}

/* Advanced search form */
.grapple .advanced-search-form .actions {
	height: auto;
}

/* Multiselect */
.grapple .ms-options-wrap > button,
.grapple .ms-options-wrap > button:focus {
	border: 1px solid #ced4da;
	font-size: 14px;
	padding-left: 15px;
	padding-right: 29px;
}

.grapple .ms-options-wrap > .ms-options {
	width: max-content;
	min-width: 60px;
	height: auto;
	left: auto;
	min-height: 0px;
}

.grapple .ms-options-wrap > .ms-options li {
	padding: 0px 10px;
}

.grapple .ms-options-wrap > .ms-options li:hover {
	background-color: #efefef;
}

.grapple .ms-options-wrap > .ms-options li label:hover {
	background-color: inherit;
}

.grapple .ms-options-wrap > .ms-options > ul label {
	padding-left: 28px;
}

.grapple .ms-options-wrap > .ms-options > ul {
	width: max-content;
}

.grapple .ms-options-wrap > .ms-options .ms-selectall {
	font-size: inherit;
	width: 100%;
	margin: 0px !important;
	padding: 4px 14px 4px 38px !important;
	text-transform: none;
}

.grapple .ms-options-wrap > .ms-options .ms-selectall input {
	margin-left: 10px;
}

.grapple .ms-options-wrap > .ms-options .ms-selectall:hover {
	background-color: #efefef;
	text-decoration: none;
	color: inherit;
}

/* Magicsuggest */
.grapple .ms-ctn,
.grapple .ms-sel-ctn {
	min-width: 200px;
	max-width: 400px;
}

.grapple .ms-res-item em {
	vertical-align: baseline;
}

.grapple .ms-helper {
	display: none !important;
}

.grapple .ms-ctn input {
	min-width: 30px;
}

.grapple .ms-ctn {
	position: static;
}

/* "More" button */
.grapple #more-dropdown .more-dropdown-item,
.grapple #more-dropdown .more-dropdown-item input {
	cursor: pointer;
}

.grapple #more-dropdown .more-dropdown-item input[type=checkbox] {
	margin-top: -2px;
}

.grapple .more-filter-wrapper {
	display: none;
	margin-right: 5px;
	float: left;
}

.grapple .more-filter-wrapper .remove-more-filter {
	color: #A9A9A9;
}

.grapple .more-filter-wrapper .remove-more-filter-wrapper:hover {
	background-color: #EEEEEE;
}

.grapple .more-filter-wrapper .remove-more-filter-wrapper:hover .remove-more-filter {
	color: #808080;
}

.grapple .more-filter-wrapper .remove-more-filter .glyphicon:hover {
	color: inherit;
}

.grapple .more-filter-wrapper .remove-more-filter .glyphicons-remove {
	margin-bottom: 4px;
}

.grapple .more-filter-wrapper .remove-more-filter {
	font-size: 12px;
}

.grapple .more-filter-wrapper .remove-more-filter .glyphicon {
	font-size: inherit;
}

.grapple #more-filters-row {
	margin-top: 3px;
	display: none;
}

.grapple #more-filters-row .remove-more-filter-wrapper {
	cursor: pointer;
}

.grapple .more-filter-wrapper .input-group-addon {
	background-color: white;
}

.grapple .more-filter-wrapper .input-group-append {
	display: inline;
}

.grapple #more-filters-row .form-control {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	float: none;
}

.grapple #more-filters-row .input-group .form-control:first-child {
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

/* Range filter */
.grapple .advanced-search-form .range-input {
	width: 110px;
	display: inline-block;
}

.grapple .advanced-search-form input.range-input::-webkit-outer-spin-button,
.grapple .advanced-search-form input.range-input::-webkit-inner-spin-button {
	/* Hide number input arrows - Chrome, Safari, Edge, Opera */
	-webkit-appearance: none;
	margin: 0;
}

.grapple .advanced-search-form input.range-input[type=number] {
	/* Hide number input arrows - Firefox */
	-moz-appearance: textfield;
}

/* Date Pickers */
.grapple .advanced-search-form .date-picker {
	width: 110px;
	display: inline-block;
}

.grapple .advanced-search-form .date-picker.form-control {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

.grapple .advanced-search-form .range-from.form-control,
.grapple .advanced-search-form #more-filters-row .date-picker.form-control {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
}

.grapple .input-group-addon {
	border-right: 0px;
}

.grapple .range-from {
	border-right: 0px;
}


/* Advanced search form layout Layout */
.grapple .search-form-component {
	display: inline-block;
	width: auto;
	position: relative;
}

.grapple .more-filter-wrapper select, /* regular dropdowns */
.grapple .more-filter-wrapper .ms-ctn, /* magisuggest */
.grapple .more-filter-wrapper .ms-options-wrap { /* multiselet dropdowns */
	display: inline-block;
	width: auto;
}

/* Change for Bootstrap v3 */
.grapple .bs-v3 .ms-ctn {
	min-height: 34px;
	padding-top: 5px;
	padding-bottom: 5px;
}

.grapple .bs-v3 .ms-ctn .ms-sel-item {
	height: 18px;
}

.grapple .bs-v3 .ms-options input[type=checkbox] {
	top: 3px !important;
}

/* Change for Bootstrap v4 */
.grapple .bs-v4 .ms-sel-ctn {
	min-height: 24px;
}

.grapple .bs-v4 .ms-options-wrap .form-control {
	height: 38px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.grapple .bs-v4 .ms-options input[type=checkbox] {
	top: 10px;
}

/* No results message */
.grapple .no-results-message #view-all-records {
	text-decoration: underline;
	cursor: pointer;
}
