.mls {
  text-align: left;
}

.mls-form {
  padding-top: 20px;
}

.mls-input-bar {
  width: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.mls-input-bar .input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100% !important;
}

.mls-input-bar .input-group .input-group-addon {
  width: 45px;
  border-right: 1px solid #e5e5e5;
  font-size: 14px;
  color: #777;
  text-align: center;
  background: #f7f7f7;
  white-space: nowrap;
  vertical-align: middle;
  display: table-cell;
  position: relative;
  text-shadow: 1px 1px 0 #fff;
}

.input-group-addon .mls-clear-input {
  display: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  padding: 0;
}

.mls-input-bar .input-group .input-group-addon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mls-clear-input:hover i {
  color: red;
}

.input-group-addon .mls-loader {
  display: none;
  padding: 0;
  border: 0;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.mls-page-loader {
  position: relative;
  height: 25px;
  width: 100%;
}

.mls-page-loader-wrap {
  display: none;
}

.mls-input-bar input.mls-input[type="text"] {
  flex: 1 0 0%;
  width: 100%;
  height: 2.8em;
  padding: 10px 15px;
  margin: 0 !important;
  font-size: 18px;
  box-sizing: border-box;
  background: none;
  outline: none !important;
  position: relative;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  z-index: 9;
}

.mls-input-bar input.mls-input[type="text"]:focus {
  box-shadow: none;
  border: 0;
}

.mls-input-tools {
  padding: 9px 9px 9px 0;
}

.mls-btn {
  font-size: 15px;
  padding: 5px 12px;
  line-height: 20px;
  border-radius: 3px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #777;
  font-weight: bold;
  float: right;
  margin: 0 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 1px 1px 0 #fff;
  text-decoration: none;
  text-align: center;
}

.mls-btn:hover,
.mls-btn:focus {
  text-decoration: none;
  background: #eee;
  color: #777;
  border: 1px solid #ddd;
  text-decoration: none;
}

.mls-btn:active {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1) inset;
}

.mls-btn .fas {
  min-width: 10px;
}

.mls-content {
  width: 100%;
}

.mls-toggle .fa-caret-up {
  display: none;
}

.mls-toggle.mls-btn-open .fa-caret-down {
  display: none;
}

.mls-btn-open .fa-caret-up {
  display: inline-block;
}

.mls-btn.mls-btn-open {
  background: #5bc0de;
  border-color: #46b8da;
  color: #fff;
  text-shadow: none;
}

.mls-filters-count {
  min-width: 20px;
  display: inline-block;
  vertical-align: top;
  text-align: right;
}

.mls-btn .fa-filter {
  display: none;
}

/* Search link */

.mls-query-link {
  display: none;
  align-items: center;
  padding: 0 10px;
  font-size: 17px;
}

/* Save search */

.mls-searches-content {
  padding: 20px;
  color: #777;
  background: #fff;
  border-radius: 0 0 4px 4px;
}

.mls-searches-content p {
  margin: 0 0 5px;
}

form:not(.form-no-margin).mls-form .mls-searches-content .control-group {
  margin: 0 0 20px;
}

form:not(.form-no-margin) .mls-searches-content .control-group .control-label {
  float: none;
  padding: 0;
  margin: 0 0 12px;
}

form:not(.form-no-margin) .mls-searches-content .control-group .controls {
  margin: 0;
}

.mls-searches-content input.form-control {
  width: 100%;
  max-width: inherit;
}

.mls-message {
  display: none;
  padding-left: 10px;
}

.mls-save-loader {
  display: none;
  padding: 0 0 0 10px;
  border: 0;
  height: 100%;
  width: 30px;
  text-align: center;
}

/* Search tips */

.mls-tips-content {
  padding: 20px;
  color: #777;
  background: #fff;
  border-radius: 0 0 4px 4px;
}

.mls-tips-content p {
  margin: 0 0 5px;
}

/* Suggestions */

.mls-panel-items {
  display: none;
  position: relative;
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.mls-panel-items.visible {
  display: block;
}

.mls-panel-items ul {
  padding: 0;
  margin: 0;
}

.mls-panel-items ul li {
  list-style: none;
}

.mls-panel-items ul li + li {
  border-top: 1px solid #ebebeb;
}

.mls-panel-items ul li a {
  text-decoration: none;
  padding: 6px 15px;
  display: block;
}

.mls-panel-items ul li a:hover {
  background: #f9f9f9;
}

.mls-panel-items ul li.selected a {
  background: #f5f5f5;
}

/* Query explained: terms and dates */

.mls-query-item {
  padding: 4px 27px 4px 10px;
  margin: 3px;
  font-size: 100%;
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  vertical-align: top;
  position: relative;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.mls-query-required {
  background-color: #5cb85c;
  border: 1px solid #4cae4c;
}

.mls-query-optional {
  background-color: #5bc0de;
  border: 1px solid #46b8da;
}

.mls-query-excluded {
  background-color: #d9534f;
  border: 1px solid #d43f3a;
}

.mls-term,
.mls-node {
  font-weight: 600;
}

.mls-querylabel {
  display: block;
}

.mls-small {
  font-size: 75%;
  opacity: 0.7;
  line-height: 14px;
}

.mls-flex {
  display: flex;
}

.mls-results-tools {
  margin: 0 0 12px;
}

.mls-results-ordering {
  text-align: right;
}

.mls-glue {
  font-size: 13px;
  color: #888;
  padding: 0 7px;
}

.mls-bold {
  font-weight: bold;
}

.mls-query-start-date,
.mls-query-end-date {
  background-color: #5cb85c;
  border: 1px solid #4cae4c;
}

.mls-remove {
  position: absolute;
  padding: 2px;
  font-size: 14px;
  top: 2px;
  right: 4px;
  color: #fff;
}

.mls-remove:hover,
.mls-remove:focus {
  color: #333;
}

/* Advanced Search */

#advanced-search {
  text-align: left;
  width: 100%;
  padding: 5px 0 15px;
}

#advanced-search-toggle {
  cursor: pointer;
}

/* Query explained */

.search-query-explained {
  padding: 0 0 10px;
}

.search-query-explained span.term,
.search-query-explained span.date,
.search-query-explained span.when,
.search-query-explained span.branch,
.search-query-explained span.node,
.search-query-explained span.op {
  font-weight: bold;
}

.search-query-explained span.op {
  text-transform: uppercase;
}

/* Search results */

.mls-results,
.mls-results.col {
  margin: 20px 0 0;
}

.search-results-empty {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  color: #495057;
  padding: 2rem;
  text-align: center;
}

.mls-top .search-results-empty {
  margin-top: 10px;
}

.mls-dropdown .search-results-empty {
  margin-top: 0;
}

.search-results-empty h3 {
  margin: 1rem;
}

.mls-st-header,
.mls-af-header {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
  text-transform: uppercase;
  margin: 0 0 10px;
  padding: 0 4px;
}

.mls-active-filters,
.mls-suggested-query {
  padding: 15px;
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #eee;
}

.mls-active-filters {
  margin: 0 0 10px;
}

.mls-results-count {
  text-align: center;
  font-size: 16px;
  padding: 10px 0;
  color: #555;
}

.mls-results-count .mls-small {
  color: #656565;
  margin: 5px 0 0;
}

.mls-results .search-results {
  border-top: 1px solid #e5e5e5;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}

.mls-results .search-results .search-result {
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 10px;
}

.mls-results .search-results .result-title {
  margin: 0 0 15px;
  font-size: 17px;
  font-weight: 600;
}

.mls-results .search-results .result-title a {
  text-shadow: none;
}

.mls-results .search-results .result-title a:hover {
  text-decoration: none;
}

.mls-results .search-results .result-title span.highlight {
  font-weight: 600;
}

.mls-results .search-results .result-text {
  font-size: 14px;
  margin: 0 0 10px;
}

.mls-results .search-results .result-url {
  margin: 5px 0 0;
}

.mls-results .search-results .result-url a:hover {
  text-decoration: none;
}

.mls-results span.highlight {
  background-color: #ffffcc;
  font-weight: normal;
  padding: 2px 0;
}

.mls-results .search-result .mime-pdf {
  padding-left: 20px;
  background: url(../../system/images/pdf_button.png) no-repeat;
}

.mls-results .mls-pagination nav {
  padding: 0;
}

.mls-results .mls-pagination .pagination {
  justify-content: center;
}

.mls-results .search-pagination,
.mls-results .search-pages-counter {
  clear: both;
  margin: 0 auto;
  text-align: center;
  float: none;
}

.mls-results .page-link {
  padding: 0;
}

.mls-results .page-link.current {
  background: #e9ecef;
}

.mls-results .page-link > span,
.mls-results .page-link > a {
  padding: 0.5rem 0.75rem;
  display: inline-block;
  text-decoration: none;
  line-height: 24px;
}

.mls-results .page-link > a {
  cursor: pointer;
}

.mls-results .search-pages-counter {
  margin: 8px 0 0;
  color: #555;
}

#highlighter-start,
#highlighter-end {
  display: none;
  height: 0;
  opacity: 0;
}

span.highlight {
  background-color: #ffffcc;
  font-weight: bold;
  padding: 1px 4px;
}

.mls-results .result-image {
  padding: 0;
}

.mls-results .result-image img {
  width: 100%;
}

/* Search result tags */

.mls-result-tags {
  margin: 0 0 10px;
}

.mls-result-tag {
  padding: 4px 8px;
  margin: 2px 10px 2px 0;
  font-size: 85%;
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  vertical-align: top;
  position: relative;
}

.mls-tag-date,
.mls-tag-type {
  background-color: #5bc0de;
  border: 1px solid #46b8da;
}

.mls-tag {
  font-weight: 600;
}

/* Misc */

ul#finder-filter-select-list {
  top: 4em !important;
}

.finder-selects .inputbox {
  width: 180px;
}

div#finder-filter-window .filter-branch .finder-selects {
  float: left;
}

/* Media - Responsive Layout */

@media screen and (max-width: 768px) {
  .mls-filters-text {
    display: none;
  }
  .mls-btn .fa-filter {
    display: inline-block;
  }
  .mls-btn {
    padding: 5px 8px;
    margin: 0 2px;
  }
  .mls-filters-count {
    min-width: inherit;
  }
}

/* Dropdown layout */

.mls-dropdown {
  margin: 0;
  position: relative;
}

.mls-dropdown .search-pagination {
  padding: 0 0 15px;
}

.mls-dropdown .mls-input-bar input.mls-input[type="text"] {
  height: 42px;
  padding: 6px 15px;
  font-size: 16px;
}

.mls-dropdown .mls-input-bar .mls-input-tools {
  padding: 6px 6px 6px;
}

.mls-dropdown .mls-input-bar .mls-input-tools .mls-btn {
  line-height: 18px;
  padding: 5px 8px;
}

.mls-dropdown .mls-input-bar .mls-input-tools .mls-filters-text {
  display: none;
}

.mls-dropdown .mls-input-bar .mls-input-tools .mls-btn .fa-filter {
  display: inline-block;
}

.mls-dropdown .mls-results {
  border-radius: 4px;
}

.mls-dropdown .mls-results-inner {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  position: relative;
}

.mls-dropdown .mls-results-box {
  padding: 10px;
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
}

.mls-dropdown .mls-results .search-results .search-result {
  padding: 10px;
}

.mls-dropdown .mls-results .search-results {
  margin: 0 0 20px;
}

.mls-dropdown .mls-results .search-results .result-title {
  margin: 0;
  font-size: 15px;
}

.mls-dropdown .mls-results .search-results .result-text {
  margin: 8px 0 0;
  font-size: 13px;
}

.mls-dropdown .mls-result-tags {
  margin: 5px 0 0;
}

.mls-dropdown .mls-results-count {
  font-size: 15px;
}

.mls-dropdown .mls-results .search-pages-counter {
  margin: 0;
}

.mls-dropdown .mls-results .mls-pagination {
  font-size: 13px;
}

.mls-dropdown .search-results-empty h3 {
  font-size: 19px;
}

.mls-dropdown .mls-content {
  position: absolute;
  left: 0;
  z-index: 999;
  width: 100%;
  border-radius: 4px;
}

.mls-dropdown .mls-advanced-search-tip,
.mls-dropdown .mls-filter-window-dates {
  background: #fff;
}

.mls-dropdown .mls-suggested-query {
  margin: 0;
}

.mls-dropdown .mls-results-inner:before {
  content: "";
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 11px solid #e5e5e5;
  right: 33px;
  top: -11px;
  position: absolute;
}

.mls-dropdown .mls-results-inner:after {
  content: "";
  border-left: 10px solid rgba(0, 0, 0, 0);
  border-right: 10px solid rgba(0, 0, 0, 0);
  border-bottom: 11px solid #fff;
  right: 35px;
  top: -10px;
  position: absolute;
}

.mls-dropdown .mls-filter-select-dates li.filter-date {
  width: 100%;
}

.mls-dropdown .mls-results-tools span {
  display: none;
}

/* Modal layout */

#mlsModal.modal {
  overflow: auto;
}

.modal-open #mlsModal.modal {
  top: 10%;
  bottom: 10%;
  left: 50%;
  margin-left: -40%;
  height: auto;
  width: 80%;
}

#mlsModal.modal .modal-dialog {
  max-width: inherit;
  margin: 0;
}

#mlsModal.modal .modal-dialog .modal-header {
  min-height: 48px;
}

#mlsModal.modal .modal-dialog .modal-header h3 {
  font-size: 18px;
}

#mlsModal.modal .modal-dialog .modal-content {
  border: 0;
}

#mlsModal.modal .modal-dialog .modal-content .modal-title {
  margin: 0;
}

#mlsModal.modal .modal-dialog .modal-content .modal-body {
  overflow-y: auto;
}

#mlsModal .search-results .search-result {
  margin: 0;
}

.mls.mls-modal {
  margin: 15px;
}

/* Saved searches table */

.searches_tools {
  margin: 0 0 10px;
  padding: 10px 0;
}

.searches_tools .btn-toolbar {
  margin: 0;
  padding: 10px 0;
}

.searches_tools .btn-toolbar .btn span.icon-angle-down::before,
.searches_tools table th [class^="icon-"]::before,
.searches_tools table th [class*=" icon-"]::before {
  font-family: inherit;
}

.searches_tools joomla-toolbar-button {
  -webkit-margin-end: 0.75rem;
  margin-inline-end: 0.75rem;
}

.searches_tools .js-stools {
  margin: 0;
  padding: 10px 0;
}

.searches_tools .js-stools-container-bar,
.searches_tools .js-stools-container-filters {
  padding: 0;
}

.searches_tools .js-stools-container-filters {
  display: none;
  width: 100%;
}

.searches_tools .js-stools-container-bar .btn-toolbar > * + * {
  -webkit-margin-start: 8px;
  margin-inline-start: 8px;
}

.searches_tools .js-stools-container-bar .ordering-select {
  display: flex;
}

.searches_tools .js-stools-field-list + .js-stools-field-list {
  -webkit-margin-start: 8px;
  margin-inline-start: 8px;
}

.searches_tools .js-stools-field-list select {
  padding: 0.375rem 0.75rem;
}
