.interesting-author, .interesting-author:hover,
.recommended-author, .recommended-author:hover {
  color: #A93A38;
}

.subcats {
    display: none;
    position: absolute;
    z-index: 5;
    left: 0;
    background-color: #f5f5f5;
    width: 100%;
    padding: 0 0 5px 0;
    -moz-border-radius: 2px 2px 10px 10px;
    -webkit-border-radius: 2px 2px 10px 10px;
    border-radius: 2px 2px 10px 10px;

    -moz-box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.5);
    background: #f5f5f5;
}

    .subcats label {
        display: inline-block;
        margin-left: 10px;
        float:left;
    }

    .subcats .subcategory-filter {
        border-bottom: 1px solid #ccc;
        height: 32px;
        margin-bottom: 10px;
        background: #fff;
        padding-top: 10px;
        background-color: #fff;
    }

    .subcats .subcategory-filter-loading {
        display: inline-block;
        margin-left: -25px;
        margin-right: 10px;
    }

    .subcats .subcategory-filter-results {
        margin-bottom: 10px;
        background: #eee;
    }

    .subcats .idf-subcategory-label:nth-child(n+50) {
        display: none;
    }

    .subcats input {
        /*display: inline-block;*/
        float: left;
        margin-right: 5px;
    }
    .subcats .search {
        float: none;
        vertical-align: 0px;
        margin-bottom: 0;
        height: 15px;
    }

    .subcats .btn {
        float: right;
        margin-right: 5px;
        margin-top: -5px;
    }

    .subcats .select-all-label {
        float:right;
        margin-right:10px;
        font-weight:bold;
    }

    .subcats .ellipsis {
        margin-left: 10px;
        margin-bottom: 5px;
    }

.idf-category sup {
    margin: 0 2px;
}
.idf-filter {
    z-index: 3;

}
.idf-filter.switcher {
    position: relative;
}
.idf-filter .btn-group {
    text-align: right;
}
.btn.start-btn-group
{
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -webkit-border-top-left-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    -moz-border-radius-topleft: 4px;

}

#categories-accordion .help-inline {
    font-style: italic;
    vertical-align: baseline;
}
#categories-accordion .icon {
    float: right;
    margin-top: 3px;
}

.accordion-toggle sup {
    padding-right: 5px;
}

.settings-button.btn-group+.settings-button, .settings-button
{
    margin-left:10px;
}

.orderings-block {
    line-height: 30px;
}
    .orderings-links {
    }
    .orderings-block h5 {
        padding: 7px 0 3px;
        margin: 0 5px 0 0;
        float:left;
    }
    .saved-searches {
        display: block;
        float: left;
    }
    .saved-searches .responsived {
        margin-top: 4px;
    }
        .saved-searches .close {
            vertical-align: -1px !important;
            margin-right: -10px;
            margin-left: 5px;
        }

.bookmark-info {
    margin-top: -5px;
}

.switcher {
    margin-bottom: 10px;
}
.saved-searches
{
    position:relative;
}
.saved-searches>a
{
    z-index:1;
}
.saved-searches .ordering
{
    text-align:left;
}
.saved-searches .dropdown-menu
{
    min-width:100%;
    z-index:0;
    margin-top:-2px;
    border:none;
    -moz-box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.5);
}
/* To align dropdowned orderings vertically */
/*.saved-searches .dropdown-menu a
{
    padding-left:55px;
}*/
.saved-searches .btn.dropdown-toggle
{
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -webkit-border-top-right-radius: 0;
    -moz-border-radius-bottomright: 0;
    -moz-border-radius-topright: 0;
}
.btn-group .btn.close-btn-group
{
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    -moz-border-radius-topright: 4px;
}

#concepts_list .expanded {
    display: inline !important;
}
#concepts_list .show-more, #concepts_list .show-less {
    display: none;
}
#concepts_list .modal-body .label,
.article-extended .label {
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}
#concepts_list .modal-body h4 {
    margin: 3px 0 10px;
}
#concepts_list .modal-body h4 .label {
    vertical-align: 3px;
}

ul.articles {
    list-style-type: none;
    margin-left: 0;
}

    .article {
        padding-bottom: 10px;
        padding-top: 10px;
        margin-top: 5px;
        margin-right: -5px;
        padding-right: 5px;
        border-top: 2px solid #fff;
        -moz-box-shadow: inset 0 3px 3px -2px rgba(0, 0, 0, 0);
        -webkit-box-shadow: inset 0 3px 3px -2px rgba(0, 0, 0, 0);
        box-shadow: inset 0 3px 3px -2px rgba(0, 0, 0, 0);

        -ms-transition: border-top-color 0.1s ease-out;
        -o-transition: border-top-color 0.1s ease-out;
        -moz-transition: border-top-color 0.1s ease-out;
        -webkit-transition: border-top-color 0.1s ease-out;
        transition: border-top-color 0.1s ease-out;
    }
    .article-condensed {
        padding-bottom: 5;
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
        .article-condensed .row-fluid [class*="span"] {
            min-height: 15px;
        }
    .article.active, .articles hr {
        border-top-color: #B31B1B;
        -moz-box-shadow: inset 0 3px 3px -2px rgba(0, 0, 0, 0.5);
        -webkit-box-shadow: inset 0 3px 3px -2px rgba(0, 0, 0, 0.5);
        box-shadow: inset 0 3px 3px -2px rgba(0, 0, 0, 0.5);
    }

    .found-concepts {
        font-weight: normal;
        display: block;
        margin-top: 5px;
        padding:1px;
        line-height: 25px;
        white-space: normal;
    }
        .found-concepts .label {
            margin-right: 5px;
            display: inline-block;
        }
        .found-concepts hr, .found-concepts .popup-remark {
            display: none;
        }
        .article-extended hr, .article-extended .popup-remark,
        #concepts_list hr, #concepts_list .popup-remark {
            display: block;
        }
        .articles .found-concepts .label-default,
        .article-condensed .found-concepts .label,
        .articles .found-concepts .label.hide {
            display: none;
        }
        .articles .found-concepts .show-all {
            cursor: pointer;
        }
        .articles .article-condensed .found-concepts span:nth-child(-n+10) {
            display: none;
        }
        .articles .found-concepts span:nth-child(-n+10),
        .articles .article-condensed .found-concepts span:nth-child(-n+3),
        .articles .bookmarked-concepts span:nth-child(-n+6),
        .articles .found-concepts .visible,
        .article-extended .found-concepts .label {
            display: inline-block;
        }

    .articles .header {
        line-height: 27px;
    }
        .articles .header .label {
            font-size: 12px;
            position: relative;
            top: -3px;
        }
    .article-condensed .header {
        line-height: 20px;
    }

    .articles .authors-list {
        margin-top: 3px;
    }
    .article-condensed .authors-list {
        margin-top: 0;
    }

    .articles .categories .primary.badge {
        font-weight: bold;
    }

    .articles .categories .badge {
        display: inline-block;
        margin-right: 5px;
        font-weight: normal;
    }

    .articles .title {
        font-size: large;
        font-weight: bold;
        display: inline;
        vertical-align: middle;
        line-height: 21px;
    }
    .articles .title a, #concepts_list_title a {
        color: #000;
        padding-right: 5px;
    }
    .articles .title.large-title {
        font-size: 24px;
    }
        .articles .title .label {
            line-height: 21px;
            vertical-align: top;
        }
        .articles .title .label .icon {
            margin-top: 0;
        }
    .article-condensed .title {
        font-size: 15px;
        line-height: 15px;
    }
    .article-labels {
        position: relative;
        margin-top: 10px;
    }
        .edit-labels {
            font-size: 11px;
        }

    .articles .badge {
        font-size: 12px;
        cursor: default;
    }

.article .abstract {
    margin-top: 3px;
}

.article .abstract span.dt {
    font-weight: bold;
    display: inline-block;
    margin-bottom: 3px;
}

.article .abstract .btn {
    position: relative;
    top: 30px;
}
.article .abstract .btn-wide {
    width: 43px;
}


.flexbox .content .row {
    margin-left: 0;
}

#add_concepts {
    width:300px;
}
#add_custom_concept_button {
    /*position: relative;
    left:310px;
    margin-top: -45px;*/
    font-style: normal;
}
#add_custom_concept_button i {
    margin-top: -1px;
}
#add_concepts_input {
    margin-bottom: 0;
}

#labels_list {
    width: 470px;
    height: 30px;
}

.labels-list .label, .important-list .label {
    margin-left:10px;
    margin-bottom: 10px;
    float: left;
    line-height: 20px;
    height:20px;
    cursor: pointer;
}

#labels_list b {
    display: none;
}

#labels_list b.disabled {
    display: inline;
}

#important-concepts-list {
    margin: 0 0 15px 0;
    line-height: 20px;
}
#important-concepts-list .close {
    margin-right: 0;
    right:0;
}

#save-search-dialog, #edit_order_dialog, #concepts_list {
    display: none;
}

#save-search-dialog .btn {
    width: 70px;
}

#save-search-dialog form {
    margin: 0;
}

.btn-group + .btn-group {
    margin-left: 0;
}

.row .time-filter {
    float: left;
    margin-right: 20px;
}

/*--------- Setup page  -------*/
.well.btn {
    display: block;
    padding: 24px;
    margin-bottom: 20px;
    text-align: left;
    float: none;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.well.btn:active, .well.btn.active {
    cursor: default;
    -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.well.btn.active > div.hidden {
    display: inline;
}

a.author.invisible {
    visibility: hidden;
}

button#gen, button#add_more {
    width: 190px;
}


/* TODO: move to style.css after switching to bootstrap */

.label-concept {
    cursor: pointer;
}

#concepts .label, #filter .label {
    white-space:normal;
}
.label-default {
    color: #666 !important;
}

.label-ordering-concept:hover {
    background-color: #DFF0D8;
}

.label-important-concept:hover, .important-list .label:hover {
    background-color: #F2DEDE;
}

.label .close {
    float: none;
    opacity: 0.5;
    text-shadow: 0 1px 0 #A1C4A2;
    margin-left: 3px;
    line-height: 17px;
    vertical-align: -1px;
}

.label .close:hover {
    opacity: 0.7;
}

.label-ordering-concept {
    background-color: #fff;
    border:1px solid #6D9C6E;
    color: #5D8C5E;
    text-shadow:none;
}

.label-important-concept, .important-list .label-ordering-concept, .important-list .label {
    background-color: #fff;
    color: #A93A38;
    border: 1px solid #B94A48;
    text-shadow:none;
}

.labels-list .last-added {
    background: #D6E9C6;
}

.label.label-default {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-color: #EEE;
    color: #333 !important;
    border: 1px solid #CCC;
}
a.label-default:hover {
    text-decoration: underline;
}

#setup_form .label-default:hover {
    background-color: #EEE;
}

.btn .close {
    float: none;
    line-height: 20px;
    vertical-align: -3px;
}

.add-more {
    display: none;
}

#chosen_concepts {
    display: none;
    padding-top: 10px;
}

.article-bookmark, .article-bookmark-count {
    opacity: 0.3;
    -ms-transition: opacity 0.3s ease-out;
    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition: opacity 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}
.article.active .article-bookmark,
.article.active .article-bookmark-count,
.article:hover .article-bookmark,
.article:hover .article-bookmark-count {
    opacity: 1;
}

.btn.article-bookmark-count {
    color: #000;
    border-color: #c5c5c5;
    /*opacity: 1;*/
}

.ordering-concept-popup {
    margin: -10px -10px 15px;
    padding: 10px;
    text-align: center;
}

.modal-body .keys {
    text-align: right;
}
.modal-body .shortcuts {
    padding-top: 10px;
}
.key {
    min-width: 18px;
    height: 18px;
    margin: 5px;
    padding: 5px;

    text-align: center;
    font: 14px/18px sans-serif;
    color: #777;

    background: #EFF0F2;
    border-top: 1px solid #F5F5F5;
    text-shadow: 0px 1px 0px #F5F5F5;
    -webkit-box-shadow: inset 0 0 25px #eee, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;
    -moz-box-shadow: inset 0 0 25px #eee, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;
    box-shadow: inset 0 0 25px #eee, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;

    display: inline-block;

    -moz-border-radius: 1px;
    border-radius: 1px;
}

.show-more a, .show-less a {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-color: #EEE;
    color: #333;
    border: 1px solid #CCC;
    padding: 0 3px 1px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 11.844px;
    font-weight: bold;
    line-height: 14px;
    vertical-align: baseline;
    white-space: nowrap;
}

#date_filter {
    margin-top: 10px;
    margin-left: 10px;
    float: left;
}

#date_filter .daterange {
    padding: 10px 0;
    font-size: 16px;
    border-color: #eee;
    width: 320px;
    text-align: center;
}

.daterangepicker .daterangepicker_start_input,
.daterangepicker .daterangepicker_end_input {
    display: none;
}

.daterangepicker .applyBtn,
.daterangepicker .cancelBtn {
    width: 78px;
}

.popover-centered {
    text-align: center;
}

.preview-pdf {
    height:550px;
    margin: 20px 0;
}

.pagination-wrapper {
    height: 80px;
    position: relative;
}
.pagination.affix, .pagination.affix-top {
    position:fixed;
    bottom: 0;
}
.pagination.affix-bottom {
    position:absolute;
}

.pagination ul {
    background-color: white;
    font-size: large;
}

.pagination-mini ul > li:first-child > a, .pagination-small ul > li:first-child > a,
.pagination-mini ul > li:first-child > span, .pagination-small ul > li:first-child > span {
    -webkit-border-bottom-left-radius: 3px;
    border-bottom-left-radius: 3px;
    -webkit-border-top-left-radius: 3px;
    border-top-left-radius: 3px;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-topleft: 3px;
}

.pagination.pagination-small {
    margin: 5px 0;
    height: 30px;
}
.pagination-wrapper.pagination-small {
    height: 30px;
}

.pagination-small ul > li > a, .pagination-small ul > li > span {
    padding: 2px 10px;
    font-size: 11.9px;
    line-height: 20px;
}

.pagination-mini ul > li > a, .pagination-mini ul > li > span {
    padding: 0 6px;
    font-size: 10.5px;
    line-height: 20px;
}

.truncated-articles :nth-child(n+51) {
    display: none;
}
