/*
 * CleftGeneDB Bootstrap 3 compatibility layer for Bootstrap 4.6.2.
 *
 * Provides presentation compatibility for legacy Bootstrap 3 markup
 * while the application runs on Bootstrap 4.6.2.
 */

/* Bootstrap 3 fixed navbar equivalent */
.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

/* Existing site uses the Bootstrap 3 inverse navbar */
.navbar-inverse {
    background-color: #222;
    border-color: #080808;
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
    color: #9d9d9d;
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff;
}

/* Preserve legacy navbar list behavior */
.navbar-nav {
    list-style: none;
}

.navbar-nav > li > a {
    display: block;
    padding: .5rem 1rem;
}

.navbar-right {
    margin-left: auto;
}

/* Bootstrap 3 panel compatibility */
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
}

.panel-default {
    border-color: #ddd;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-default > .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.panel-body {
    padding: 15px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
}

/* Bootstrap 3 image helpers */
.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Bootstrap 3 grid offsets used by CleftGeneDB */
@media (min-width: 768px) {
    .col-md-offset-1 {
        margin-left: 8.333333%;
    }

    .col-md-offset-3 {
        margin-left: 25%;
    }
}

/* Legacy stacked nav */
.nav-stacked {
    flex-direction: column;
}

/* Bootstrap 3 screen-reader helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * Glyphicons are no longer shipped by Bootstrap 4.
 * Preserve dimensions/alignment and provide simple text-symbol fallbacks.
 */
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    min-width: 1em;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-align: center;
}

.glyphicon-list-alt::before,
.glyphicon-th-list::before,
.glyphicon-tasks::before {
    content: "\2630";
}

.glyphicon-stats::before,
.glyphicon-signal::before {
    content: "\25A5";
}

.glyphicon-arrow-right::before,
.glyphicon-chevron-right::before {
    content: "\2192";
}

.glyphicon-chevron-left::before,
.glyphicon-hand-left::before {
    content: "\2190";
}

.glyphicon-download-alt::before {
    content: "\2193";
}

.glyphicon-search::before {
    content: "\2315";
}

.glyphicon-leaf::before {
    content: "\2666";
}

.glyphicon-file::before,
.glyphicon-duplicate::before {
    content: "\25A1";
}

.glyphicon-repeat::before {
    content: "\21BB";
}

.glyphicon-wrench::before {
    content: "\2699";
}

.glyphicon-level-up::before {
    content: "\2191";
}

.glyphicon-info-sign::before {
    content: "\2139";
}

.glyphicon-envelope::before {
    content: "\2709";
}
