/* TODO */
body.hidden_tags #meta_area,
body.hidden_tags #filter_selection_container,
body.hidden_tags #filter_restriction_container {
    display: none;
}

body.hidden_tags #search_results_container {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

#searchbar_area {
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
}

#search_group {
    margin: auto;
}

.search-input-container.row {
    width: 100%;
}

.search-option-container {
    display: block;
    width: calc(100% - 113px);
    margin-left: -15px;
    margin-right: -15px;
    left: 57px;
    position: relative;
    right: 57px;
    top: 7px;
}

.search-option-container .form-check-label {
    color: white;
}

.search-option-container .form-check:first-of-type {
    margin-right: 15px;
}

#search_group #txtInput {
    width: calc(100% - 110px);
}

span.option.unselected {
    opacity: 0.4;
}

.option-info {
    min-height: 26px;
    padding: 0px 6px;
    cursor: pointer;
}

.option-info:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

div.option-info.no-hits {
    opacity: 0.5;
}

.option-info .option-counter.badge {
    float: right;
    margin-top: 5px;
    margin-right: 0px;
}

span.checked {
    background: url("../img/format/check.png");
    background-size: cover;
    color: transparent;
}

.action-element,
#filter_options p.title::after,
.page-link {
    background-color: #138496 !important;
    border-color: #117a8b !important;
    color: #fff !important;
}

.action-element:hover,
.page-link:hover {
    background-color: #139db3 !important;
    color: #fff !important;
}

.border-success {
    background-color: #fff;
}

#filter_selection_container,
#restriction_selection_container {
    margin: 0px;
    padding: 5px 0px;
}

#filter_selection,
#restriction_selection {
    background-color: #f4f5f5;
    width: 100%;
}

#filter_selection span,
#restriction_selection span {
    margin-right: 5px;
    cursor: pointer;
}

#filter_selection:empty,
#restriction_selection:empty {
    display: none;
}

#reset-button,
.reset-button {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 24px;
    outline: none;
    color: #23587c;
    background: #cbd6db;
}

#results-group {
    min-height: 200px;
    padding-left: 0px;
    padding-right: 0px;
}

.result-title {
    cursor: pointer;
    display: inline-block;
}

.result-header .result-title .badge {
    margin-left: 10px;
    vertical-align: bottom;
    color: black;
}

.result-header .format-badges {
    display: inline-block;
    line-height: 1.2;
    font-size: 1.5rem;
}

div.row.result-body {
    margin-left: 0px;
    margin-right: 0px;
}

label.form-check-label {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

div[class^="options-group-"] {
    padding: 5px;
    background-color: #ffffff99;
}

.badge {
    border-radius: 2px !important;
}

span.option.badge {
    margin-right: 5px;
    cursor: pointer;
    max-width: calc(100% - 55px);
    word-wrap: break-word;
    white-space: inherit;
    text-align: left;
}

span.option.badge:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

/* TODO */
#meta_area {
    padding: 5px;
}

div[class*="options-group-"] {
    margin-bottom: 10px;
}

.search_results_info,
#search_result_info {
    margin: 0px !important;
}

#search_results_counter {
    text-align: center;
}

#search_results_counter>p {
    margin-bottom: 0px;
    margin-top: 7px;
}

#search_result_progressbar {
    height: 40px;
    margin-bottom: 15px;
}

#search_results_counter {
    height: 40px;
    padding: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

#search_results_counter:not(:empty) {
    background-color: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

div[class*="hide-filteritem-"] {
    display: none;
}

.result {
    background-color: white;
    margin: 5px;
    padding: 5px
}

.result:first-of-type {
    margin-top: 0px;
}

#search_pagination {
    width: 100%;
    margin: 0px;
    padding: 5px;
}

/*badge container*/
.result-header .format-badges a {
    margin-right: 5px;
    height: 20px;
    width: 20px;
    display: inline-block;
    vertical-align: bottom;
}

.result-header .format-badges span.badge:empty {
    display: inline-block;
}

.result-header .format-badges span[class*="format-"] {
    content: " ";
    background-image: url(../img/format/file.png);
    width: 20px;
    height: 20px;
    vertical-align: top;
    background-size: 13px;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    top: -1px;
}

.result-header .format-badges span[class*="format-applicationpdf"] {
    background-image: url(../img/format/pdf.png);
}

.result-header .format-badges span[class*="format-textmarkdown"] {
    background-image: url(../img/format/md.png);
}

.result-header .format-badges span[class*="format-texthtml"] {
    background-image: url(../img/format/html.png);
}

.result-header .format-badges span[class*="format-webhelp"] {
    background-image: url(../img/format/webhelp.png);
}

.result-header .format-badges span[class*="format-applicationxml"] {
    background-image: url(../img/format/xml.png);
}

.result-header .format-badges span[class*="format-image"] {
    background-image: url(../img/format/img.png);
}

.results-tags div {
    display: inline-block
}

h5 {
    font-size: 16px;
}

.result-body .breadcrumbs {
    padding: 10px 0px;
    font-size: 1.3rem;
}

.result-body .breadcrumbs p {
    display: inline-block;
    margin: 0px 5px;
}

/*badges*/
.badge {
    font-weight: 400;
    font-size: 71%;
}

.result-body .badge {
    margin-right: 8px;
}

div.options-group-languages {
    border-left: 2pt solid #28a745;
}

div.options-group-informationSubjects {
    border-left: 2pt solid #007bff;
}

div[class^="options-group-"] p.title {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: calc(100% - 25px);
    -webkit-user-select: none;
    /* Safari 3.1+ */
    -moz-user-select: none;
    /* Firefox 2+ */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
    /* Standard syntax */
}

button.collapse-tags {
    font-size: 40px;
    padding: 0px;
    border-radius: 2px;
}

button.collapse-tags:hover {
    color: #eb7f01 !important
}

button.collapse-tags>i {
    top: -12px;
    position: relative;
}

button.collapse-tags.collapsed i.icon-close {
    display: none;
}

button.collapse-tags.expanded i.icon-open {
    display: none;
}

button.reset-removed-tags {
    margin-left: 5px;
    padding: 0px;
    font-size: 22px;
}

button.collapse-tags {
    border-left: 2px;
}

button.collapse-tags,
button.reset-removed-tags {
    width: 40px;
    height: 40px;
    margin: 10px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    background-color: #cbd6db !important;
    color: #23587c !important;
    border: none !important;
}

button.reset-removed-tags:hover {
    color: #eb7f00 !important;
}

p.removeTags {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1pt solid #f5c6cb;
    border-radius: 2px;
    background-color: #f8d7da;
    margin-left: 5px;
    background-size: 11px 11px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    margin: 0px;
    padding: 0px 3px 0px 3px;
    color: #822f37;
    font-size: 17px;
    right: -5px;
    top: 0px;
    vertical-align: top;
}

p.removeTags i {
    position: absolute;
    top: 1px;
}

span.title-text {
    width: calc(100% - 20px);
    display: inline-block;
}

div[class^="options-group-"] p.title .title-arrow {
    float: right;
    font-size: 20px;
    line-height: 20px;
    border-radius: 2px;
    height: 20px;
    width: 20px;
    background-size: 15px 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #cbd6db;

    color: #23587c;
    padding: 0px 4px;
    position: relative;
    right: 0px;
}



.result-body>div {
    display: inline-block;
}

div.disclaimer {
    padding: 10px;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 300px;
    z-index: 19;
}

#quick-answer-area {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    margin: 5px;
    padding: 5px;
}

#quick-answer-area.hidden {
    display: none;
}

@media (min-width: 576px) {
    div#search_results_progressbar {
        -ms-flex: 0 0 calc(75% - 5px) !important;
        flex: 0 0 calc(75% - 5px) !important;
        max-width: calc(75% - 5px) !important;
    }
}

.search_suggestions {
    z-index: 1;
    position: absolute;
    width: 100%;
    margin-top: 40px;
    background-color: white;
    box-shadow: 4px 4px 8px 0px rgba(50, 50, 50, 0.32);
}

.suggestion-entry {
    margin: 0px;
    padding: 10px 10px 10px;
    word-break: break-word;
    color: #000;
}

.suggestion-entry:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

.prefix-highlight {
    font-weight: bold;
}

#header_search_field {
    margin: 20px !important;
    box-shadow: rgb(0 0 0 / 16%) 0px 1px 4px;
}

_:-ms-lang(x),
#search_field {
    position: relative;
}

_:-ms-lang(x),
.search_suggestions {
    right: 40px;
}

#page-info-results-container-top,
#page-info-results-container-bottom {
    display: flex;
    justify-content: flex-end;
    padding: 0px 0px 0px 5px;
    align-items: center;
}

div#page-info-results-container-bottom {
    margin-top: 10px;
}

.page-item:first-child .page-link {
    border-top-left-radius: 2px !important;
    border-bottom-left-radius: 2px !important;
}

.page-item:last-child .page-link {
    border-top-right-radius: 2px !important;
    border-bottom-right-radius: 2px !important;
}

.page-item {
    margin-right: 10px;
}

.pagination {
    margin: 0;
}

.pagination {
    justify-content: end;
}

.btn-info.focus,
.btn-info:focus {
    box-shadow: none !important;
}

.page-link {
    background-color: #cbd6db !important;
    color: #23587c !important;
    border: none !important;
}

.page-link:hover {
    background-color: #cbd6db !important;
    color: #eb7f00 !important;
    cursor: pointer;
}

a:not([href]) {
    color: inherit;
    text-decoration: none;
}

.no-hitcount {
    display: none;
}

#wildcard_container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

#wildcard_selection {
    width: 110px;
    margin: 0;
    margin-left: auto;
    top: 52px
}

#wildcard_selection .option {
    padding: 5px;
    margin: 0;
}

.advanced_search {
    display: flex;
    margin: 0 5px;
    font-size: 14px;
}

.advanced_search.collapsed i,
.advanced_search i {
    display: none;
}

.advanced_search.collapsed i.fa-angle-down,
.advanced_search:not(.collapsed) i.fa-angle-up {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.advanced_search>p {
    margin: 0 5px;
    cursor: pointer;
}