/* Additional profile actions in the dot menu */
@media only screen and (min-width: 990px) {
    .services-profile {
        display: none;
    }
}

.services-profile ul {
    margin: 0;
    padding: 0;
}

.services-profile a {
    color: inherit;
}

.services-profile a.btn-default:hover {
    text-decoration: underline;
}

/* Form validation error should not be white */
.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline {
    color: #c00
}

.has-error .form-control {
    border-color: #c00;
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075)
}

.has-error .form-control:focus {
    border-color: #c00;
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c00;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c00;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c00
}

.has-error .form-control-feedback {
    color: #c00
}

/* Custom margin for elements after floating */
.form-margin-xs, .form-margin-s, .form-margin-m, .form-margin-l, .form-margin-xl  {
    margin-top: 15px
}

.row-xs-center {
    display:flex;
    align-items:center;
}

@media (min-width: 520px) {
    .form-margin-s {
        margin: 0
    }

    .row-s-center {
        display:flex;
        align-items:center;
    }
}
@media (min-width: 768px) {
    .form-margin-m {
        margin: 0
    }

    .row-m-center {
        display:flex;
        align-items:center;
    }
}
@media (min-width: 990px) {
    .form-margin-l {
        margin: 0
    }

    .row-l-center {
        display:flex;
        align-items:center;
    }
}
@media (min-width: 1200px) {
    .form-margin-xl {
        margin: 0
    }

    .row-xl-center {
        display:flex;
        align-items:center;
    }
}

/* Some spacing around the progess button group. */
.progress {
    margin: 2em 0;
}

/* Button styles without hover for dummy progress (f.e. registration) */
.btn.nohover {
    cursor: default;
}

.btn-info.nohover:hover {
    /* Ssame as .btn-info */
    color: #333;
    background-color: #999;
    border-color: #999;
}

.btn-default.nohover:hover {
    /* Same as .btn-default */
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

/* Tabs */
.nav-tabs {
    margin-bottom: 21px;
}

/* Center the pagination */
nav.pagination-wrapper {
    text-align: center;
}

/* Each title on a separate line. */
.box-search-list-title span.multivalue {
    display: block;
}

/* Highlight */
span.highlight {
    background: yellow;
    font-weight: bold;
}

/* Static text in dropdown */
.dropdown-menu .gear-option-selected,
.dropdown-menu .gear-option-selected .fa {
    font-weight: normal;
    line-height: 21px;
    color: #333;
}

.dropdown-menu .gear-option-selected {
    display: block;
    padding: 3px 20px;
    clear: both;
    white-space: nowrap;
}

.dropdown-menu .gear-option-selected .fa {
    margin-left: -17px;
    position: absolute;
}

/* Reset custom styles for search input */
input#aspect_discovery_SimpleSearch_field_query {
    height: inherit;
    font-size: inherit;
    float: inherit;
    display: inherit;
}

/* Some fixes for the margins of the search-form box. */
div#toggle-filter-wrapper {
    margin-bottom: -20px;
}

.search-filter.filler {
    margin-bottom: 10px;
}

.box-search-list {
    margin-bottom: 0;
}

/* Fix link tags as buttons */
a.btn:active, a.btn:hover, a.btn:focus {
    border: 1px solid transparent;
}

a.btn-default {
    background-color: #fff;
}

a.btn-default:active, a.btn-default:hover, a.btn-default:focus {
    color: #333;
    background-color: #fff;
    border-color: #999;
}

a.btn-primary {
    color: #fff;
    background-color: #06c;
}

/* General helper. */
.text-center {
    text-align: center;
}

.no-margin {
    margin: 0;
}

/* Center the button toolbar */
.btn-toolbar.text-center > .btn-group, .btn-toolbar.text-center > .btn-group > .btn {
    float: none;
}

/* Center buttons in forms */
.form-group.text-center > div[class*='col-'] {
    float: none;
    display: inline-block;
    text-align: left;
}

.form-group.text-center > div[class*='col-'] > .btn {
    width: 100%;
    display: block;
    padding-left: 0;
    padding-right: 0;
}

/* Some space after the elements in inline forms. */
.form-inline label, .form-inline input, .form-inline select {
    margin-right: 5px;
}

/* Some box with a background (like box-search-form but without the extra margin). */
.box-bg {
    background-color: #eee;
    border: 1px solid #ddd;
}

/* Some space between the checkbox and the label. */
input[type="checkbox"], input[type="radio"]{
    margin-right: 10px;
}

/* Padding instead of margin for form boxes, so that the background is
   distributed equal around the input. */
.form-group.box {
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 20px;

}

/* Some background to see the different input fields. */
.form-group.box:nth-child(2n+1) {
    background: #eee;
}

/* Mark required fields. */
.required label {
    font-weight: bold;
    font-size: 1.1em;
}

/* The label for composite fields should be smaller. */
label.composite {
    padding-left: 12px;
    font-size: .8em;
    color: #999;
}

/* Highlight label for composite fields on focus. */
input:focus + label.composite,
select:focus + label.composite,
textarea:focus + label.composite {
    color: #000;
}

/* Fix vertical offset. */
label {
    line-height: 35px;
    vertical-align: middle;
    margin-bottom: 0;
}

/* Fix padding of the select boxes that are not fully stylable within webkit.*/
select.form-control {
    padding-left: 9px;
}

option {
    /* This is the default in webkit and does not seem to be changeable. */
    padding-left: 2px;
}

fieldset {
    margin-bottom: 30px;
}

fieldset.thick legend {
    margin-bottom: 0;
}

/* Authority confidence icons */
img.ds-authority-confidence {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    margin-bottom: 5px;
    padding: 0;
    vertical-align: middle;
    display: inline-block;
    background: transparent no-repeat center;
}

img.ds-authority-confidence.cf-unset {
    background-image: url(../../images/authority_control/confidence/bug.png);
}

img.ds-authority-confidence.cf-novalue {
    background-image: url(../../images/authority_control/confidence/3-circleslash.gif);
}

img.ds-authority-confidence.cf-rejected,
img.ds-authority-confidence.cf-failed {
    background-image: url(../../images/authority_control/confidence/2-errortriangle.gif);
}

img.ds-authority-confidence.cf-notfound {
    background-image: url(../../images/authority_control/confidence/3-thumb2.gif);
}

img.ds-authority-confidence.cf-ambiguous {
    background-image: url(../../images/authority_control/confidence/4-question.gif);
}

img.ds-authority-confidence.cf-uncertain {
    background-image: url(../../images/authority_control/confidence/5-pinion.gif);
}

img.ds-authority-confidence.cf-accepted {
    background-image: url(../../images/authority_control/confidence/6-thumb2.gif);
}

input.ds-authority-value {
    display: none;
}

.ub-datenbank-search .search-button {
    padding: 4px 0;
    right: 10px;
    top: 0;
    text-align: right;
}

.ub-datenbank-search {
    margin: 0;
}

/* Browse button group */
.browse {
    text-align: center;
    margin: 20px 0;
    clear: both;
}

/* Remove border-radius from bootstrap pager buttons. */
.pager li > a, .pager li > span {
    border-radius: 0;
}

/* no-javascript banner */
#no-js-warning {
    background: #c00;
    text-align: center;
    color: #fff;
    font-weight: bold;
}

/* Item view page */
img.thumbnail {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.file-name {
    font-weight: bold;
    color: #666;
}

.file-label {
    margin-bottom: 1em;
}

img.file-locked {
    position: absolute;
    top: -3px;
}

.box-search-list.list-group .box-search-list-label {
    display: block;
}

.box-search-list.list-group {
    float: none;
}

.box-search-list-language {
    color: #888;
}

.license {
    font-weight: bold;
}

.license-logo img {
    width: 100%;
    max-width: 200px;
}

/* Fix NexusSans font */
h1, h2, h3, /* later overwritten without NexusSans: h4, h5, h6, */
.h1, .h2, .h3, .h4, .h5, .h6,
.nada-identity-text,
.services-quick-access-caption,
.services-search .search-input,
.identity-text-parent-first, .identity-text-parent-second, .identity-text-parent-third,
.tabbed-breadcrumb .btn-group.level-0 .btn, .tabbed-breadcrumb .btn-group.level-1 .btn, .tabbed-breadcrumb .btn-group.level-2 .btn, .tabbed-breadcrumb .btn-group.level-3 .btn, .tabbed-breadcrumb .btn-group.level-4 .btn, .tabbed-breadcrumb .btn-group.level-5 .btn,
.main-nav-toggle-text,
.main-nav-item-link.level-1,
.box-text-headline {
    font-family: "NexusSansTF-Regular", "NexusSans", Arial, Helvetica, sans-serif;
}

@media only screen and (max-width: 989px) {
    .services .services-dropdown-button {
        font-family: "NexusSansTF-Regular", "NexusSans", Arial, Helvetica, sans-serif;
    }
}

.form-control.vocabulary a {
    display: block;
}

/* Recent submissions on the collection/community pages */
.box-recent-submission {
    border: 1px solid #ccc;
    padding: 14px 10px;
    margin-bottom: 21px;
}

.box-recent-submission .box-title {
    font-size: 19px;
    line-height: 21px;
    font-weight: bold;

    margin-bottom: .4em;
    display: block;
}

.box-recent-submission .box-date {
    float: right;

    font-size: .9em;
    color: #999;
}

.box-recent-submission .box-abstract {
    margin-top: .8em;
    font-size: .9em;
    color: #555;
}

.box-recent-submission .box-abstract .hide-abstract {
    text-align: center;
    background: #efefef;
    padding: 2px;
}

.box-recent-submission .box-abstract .panel {
    /* This is just a dummy panel to make the accordion like collapsing. So
       disable all visible spacers around. */
    margin: 0;
    border: 0;
    padding: 0;
}

/* Disable transitions for collapsible bootstrap component */
.collapsing {
    -webkit-transition: none;
    transition: none;
}

/* Help links in the submission form. */
.help-link {
    padding-left: 5px;
}

.help-link i {
    color: #6b9e1f;
}

/*
  Fix colors of alert boxes:
  The default green does not fit so well to the green from the FuCD.
  Border of the box should be darker than its content.
*/
.alert-success {
    background-color: #c4d7a7;
    border-color: #6b9e1f;
}

.alert-info {
    border-color: #aaa;
}

.alert-danger {
    border-color: #900;
}

.imported-description {
    white-space: pre-line;
}

.context-actions {
    float: right;
    font-size: 1.2em;
    margin: 24px 0 0;
    line-height: 1.6em;
}

.context-actions li {
    display: inline;
    margin-right: 5px;
}

.context-actions a {
    display: inline-block;
    width: 2em;
    text-align: center;
    border: 3px solid #6b9e1f;
    color: #6b9e1f;
}

.context-actions a:hover {
    color: #666;
    border-color: #666;
}

.create-context-action {
    font-weight: bold;
    font-style: italic;
}

.refubium-logo, .community-logo, .collection-logo {
    margin: 50px 0;
    text-align: center;
}

.refubium-logo img, .community-logo img, .collection-logo img {
    margin: 0;
}

@media (max-width: 1200px) {
    .refubium-logo img, .community-logo img, .collection-logo img {
        max-height: 200px;
    }
}

@media (min-width: 768px) {
    .refubium-logo, .community-logo, .collection-logo {
        float: right;
        margin-top: 0;
        margin-left: 50px;
    }
}

.login-option {
    border: 2px solid #ccc;
}
