/* utility classes */
.portlet-fedsearch .center-text {
    text-align: center;
}

.portlet-fedsearch .display-none {
    display: none !important;
}

/* common */
.portlet-fedsearch form {
    margin-bottom: 0;
}

.aui .portlet-fedsearch .control-group {
    margin-bottom: 10px;
}

.portlet-fedsearch label {
    margin-bottom: 0;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    overflow-y: auto;
}

.autocomplete-suggestion {
    display: block;
    padding: 3px 20px;
    clear: both;
    cursor: pointer;
}

.autocomplete-suggestion .authority {
    color: #C8C8C8;
}

.autocomplete-selected {
    color: #ffffff;
    text-decoration: none;
    background-color: #0081c2;
    background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
    background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
    background-image: -o-linear-gradient(top, #0088cc, #0077b3);
    background-image: linear-gradient(to bottom, #0088cc, #0077b3);
    background-repeat: repeat-x;
    outline: 0;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
}

.portlet-fedsearch .select2-search-field,
.portlet-fedsearch .select2-search-field > input{
    width: 100% !important;
}

.portlet-fedsearch input {
    margin-bottom: 0 !important;
}

.portlet-fedsearch form input.error {
    color: #EA2D29;
    border-color: #EA2D29;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.portlet-fedsearch form input.error::-webkit-input-placeholder {
    color: #EA8781;
}

.portlet-fedsearch form input.error:-moz-placeholder {
    color: #EA8781;
}

.portlet-fedsearch form input.error::-moz-placeholder {
    color: #EA8781;
}

.portlet-fedsearch form input.error:-ms-input-placeholder {
    color: #EA8781;
}

.portlet-fedsearch form input.error:focus {
    border-color: #EA2D29;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #D59392;
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #D59392;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #D59392;
}

.portlet-fedsearch .error-label {
    color: #EA2D29;
}

.portlet-fedsearch .popover-content {
    text-align: center;
}

.portlet-fedsearch .popover-content img {
    margin-bottom: 10px;
}

/* header */
.portlet-fedsearch .header .header-text h2 {
    margin: 10px 0 0;
}

/* forms-body */
.portlet-fedsearch .forms-body {
    margin-top: 20px;
}

.portlet-fedsearch .forms-body .nav-tabs li:first-child {
    margin-left: 15%;
}

.portlet-fedsearch .forms-body .js-language-select {
    width: 224px;
}

/* libraries select */
.portlet-fedsearch .libraries-select {
	background: #fafafa;
    border: 1px solid #cacaca;
    border-radius: 3px;
	margin: 0 15% 10px 15%;
    padding: 15px 15px 5px;
    width: 70%;
}

.portlet-fedsearch .libraries-select img {
    margin-bottom: 2px;
}

.portlet-fedsearch .libraries-select .select2-container {
    width: 100%;
}

.portlet-fedsearch .libraries-select .with-select {
    display: table;
    width: 100%;
    margin-bottom: 5px;
}

.portlet-fedsearch .libraries-select .with-select-hidden {
    margin-bottom: 0;
}

.portlet-fedsearch .libraries-select .with-select > div {
    display: table-cell;
}

.portlet-fedsearch .libraries-select .with-select > div:nth-child(1) {
    width: 165px;
}

.portlet-fedsearch .libraries-select .with-select .checkbox > div:nth-child(2) {
    width: 20px;
    min-width: 20px;
}

.portlet-fedsearch .libraries-select .with-select label {
    padding-top: 0;
}

.portlet-fedsearch .libraries-select .with-select label > div {
    display: table-cell;
    vertical-align: middle;
}

.portlet-fedsearch .libraries-select .checkbox.inline {
    margin-right: 10px;
}

.portlet-fedsearch .libraries-select .checkbox.inline+.checkbox.inline {
    margin-left: 0;
}

/* simple search */
.portlet-fedsearch .simple-search {
    margin: 0 15%;
}

.portlet-fedsearch .simple-search .control-group {
    padding-right: 0;
    width: 100%;
}

.portlet-fedsearch .simple-search .search-query {
    width: 80%;
    height: 30px;
    box-sizing: border-box;
}

.portlet-fedsearch .simple-search .checkbox {
    padding-top: 0;
}

.portlet-fedsearch .simple-search button {
    width: 20%;
}

/* advanced search */
.portlet-fedsearch .advanced-search .control-label,
.portlet-fedsearch .advanced-search .submit-wrapper {
    margin-left: 23%;
}

.portlet-fedsearch .advanced-search .controls {
    display: inline-block;
    margin-left: 10px;
}

.portlet-fedsearch .advanced-search .submit-control {
    margin-left: 170px;
}

.portlet-fedsearch .advanced-search .date-picker {
    width: 210px;
    margin-left: 16px;
}

.aui .portlet-fedsearch .advanced-search .help-inline {
    display: block;
    margin-left: 23%;
    padding-left: 170px;
}

@media (max-width: 599px) {
	.aui .portlet-fedsearch .advanced-search .help-inline {
		margin-left: 10px;
		padding-left: 0;
	}
}

/* combined search */
.portlet-fedsearch .combined-search {
    margin: 0 15%;
}

.portlet-fedsearch .combined-search .controls {
    display: inline-block;
    margin-left: 0;
}

.portlet-fedsearch .combined-search .submit-wrapper {
    margin-left: 28%;
}

.portlet-fedsearch .combined-search .submit-control {
    margin-left: 140px;
}

.portlet-fedsearch .combined-search .date-picker {
    width: 164px;
}

/* results */

.portlet-fedsearch .search-results .link-sources {
    margin-top: 5px;
    margin-bottom: 5px;
}

.portlet-fedsearch .search-results .link-sources li {
    line-height: 20px;
}

.portlet-fedsearch .search-results td {
    vertical-align: middle;
}

.portlet-fedsearch .search-results td p {
    margin-bottom: 0;
}

.portlet-fedsearch .search-results .duplicate-wrapper td {
    color: #bababa;
}

.portlet-fedsearch .search-results .duplicate-wrapper a {
    color: #97c1de;
}

.portlet-fedsearch .search-results .duplicate-wrapper img {
    opacity: 0.3;
}

.portlet-fedsearch .search-results .table-column .table td a {
    margin-right: 5px;
}

.portlet-fedsearch .search-results .toggle-duplicates {
    background: #909090;
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    line-height: 14px;
    padding: 2px 4px;
    white-space: nowrap;
}

.portlet-fedsearch .search-results .toggle-duplicates:nth-of-type(2) {
    display: none;
    background: #CDCDCD;
}

.portlet-fedsearch .search-results .facets-column {
    float: left;
    width: 19%;
}

.portlet-fedsearch .search-results .facets-column .checkbox {
    margin-top: 3px;
}

.portlet-fedsearch .search-results .facets-column legend {
    background: #eaeaea;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    line-height: 25px;
    margin-bottom: 0;
    padding: 0 10px 1px;
}

.portlet-fedsearch .search-results .facets-column .collapse {
    margin-bottom: 10px;
    padding: 0 10px;
}

.portlet-fedsearch .search-results .facets-column .button-wrapper {
    border-top: 1px solid #e5e5e5;
    margin-top: 2px;
    padding-top: 12px;
}

#wrapper .portlet-fedsearch .search-results .facets-column .button-wrapper a {
    text-decoration: none;
}

.portlet-fedsearch .search-results .facets-column .badge {
    font-weight: 600;
    text-shadow: none;
}

.portlet-fedsearch .search-results .facets-column .badge-1 {
    background-color: #4B98EA;
}

.portlet-fedsearch .search-results .facets-column .badge-2 {
    background-color: #6bb0fa;
}

.portlet-fedsearch .search-results .facets-column .badge-3 {
    background-color: #b6dbfa;
}

.portlet-fedsearch .search-results .facets-column i {
    margin-left: 10px;
    color: #009AE5;
}

.portlet-fedsearch .search-results .table-column {
    float: left;
    margin-left: 2%;
    width: 79%;
}

.portlet-fedsearch .search-results .table-column i {
    margin-top: 3px;
    color: #C7C7C7;
}

.portlet-fedsearch .search-results .table-column i.active {
    color: #555;
}

.portlet-fedsearch .search-results .table-column th {
    vertical-align: middle;
}

.portlet-fedsearch .search-results .table-column th:hover {
    background-color: #E4E4E4;
    cursor: pointer;
}

.portlet-fedsearch .search-results .table-column .table-actions {
    margin-top: 10px;
}

.portlet-fedsearch .search-results .table-actions .permalink {
    margin-bottom: 0;
}

.portlet-fedsearch .search-results .table-actions .permalink input {
    cursor: text;
    background-color: rgb(249, 249, 249);
}

/* detail rules */
.portlet-fedsearch .row-fluid {
    margin-bottom: 25px;
}

.portlet-fedsearch .detail-mustshow-data .row-fluid {
    margin-bottom: 0;
}

.portlet-fedsearch .detail-mustshow-data .row-fluid:last-of-type {
    margin-bottom: 15px;
}

.portlet-fedsearch .detail-image img {
    height: 200px;
}

.portlet-fedsearch .leaflet-map {
    height: 450px;
}

.portlet-fedsearch .scan-thumbnails .thumbnail {
    display: inline-block;
    cursor: pointer;
    height: 75px;
    width: 75px;
    margin-bottom: 20px;
}

.portlet-fedsearch .detail .detail-mustshow-data,
.aui .portlet-fedsearch .accordion-group {
    background: #fafafa;
    border: 1px solid #cacaca;
    border-radius: 3px;
    padding: 10px 15px 5px;
}

.aui .portlet-fedsearch .detail .detail-mustshow-data .span3 {
	margin-right: 10px;
    min-width: 130px;
    width: 130px;
}

.aui .portlet-fedsearch .detail .detail-mustshow-data .span9 {
	margin-left: 0;
    width: auto;
}

.aui .portlet-fedsearch .detail .detail-mustshow-data .span3, .aui .detail .detail-mustshow-data .span9 {
    min-height: 20px;
    padding: 5px 0;
}

.portlet-fedsearch .detail .detail-mustshow-data .row-fluid {
    border-bottom: 1px solid #eaeaea;
}

.portlet-fedsearch .detail .detail-mustshow-data .row-fluid:last-of-type {
    border-bottom: none;
}

.aui .portlet-fedsearch .accordion-group {
    padding: 0;
}

.aui #wrapper .portlet-fedsearch .accordion-group .accordion-toggle {
    background: transparent url(../images/fedsearch/icon-arrow-down-simple-blue.png) 97% center no-repeat;
	text-decoration: none;
}

.aui #wrapper .portlet-fedsearch .accordion-group .accordion-toggle.collapsed {
    background: transparent url(../images/fedsearch/icon-arrow-up-simple-blue.png) 97% center no-repeat;
}

.aui .portlet-fedsearch .detail-controls .accordion-group .accordion-inner > span {
    display: inline-block;
    line-height: 28px;
    margin-bottom: 10px;
    vertical-align: middle;
}

.aui .portlet-fedsearch .detail-controls .accordion-group select {
    margin-left: 2px;
    min-width: 200px;
    vertical-align: middle;
    width: auto;
}

.aui .portlet-fedsearch .accordion-group .accordion-inner input[type="text"] {
    margin: 5px 0 !important;
}

.portlet-fedsearch .detail .add-my-documents button {
    margin-bottom: 5px;
}

.portlet-fedsearch .templated-detail table tr td {
    padding: 5px;
}

/* detail print rules */
@media print
{
	body {
        visibility: hidden;
    }

    .navbar, #banner, #breadcrumbs {
        display: none;
    }

    #wrapper {
        padding: 2em !important;
    }

    .portlet-fedsearch .printable {
        display: block !important;
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
    }
}

.templated-detail td{
	vertical-align: top;
}

.brw-doc-input{
    padding-left: 10px;
}