/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
}

/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.parentheses-wrap {
    quotes: "(" ")";
}

.parentheses-wrap::before {
    content: open-quote;
}

.parentheses-wrap::after {
    content: close-quote;
}

/*
 * Main Nav
 */

.navbar .navbar-collapse .dropdown-toggle {
    padding-top: 14px;
    color: #999;
}

.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus {
    color: #ffffff;
}

.dropdown-menu > li.info {
    clear: both;
    color: #333333;
    display: block;
    font-weight: normal;
    line-height: 20px;
    padding: 3px 20px;
    white-space: nowrap;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}
@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 10px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #fcfcfc;
        border-right: 1px solid #eee;
        width: 240px;
    }

    /* Toying with the idea of a minimized sidebar */
    .minimized-sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
        width: 70px;
    }

    .minimized-nav-li {
        text-align: center;
        font-size: 2em;
    }
    .minimized-nav-label {
        text-align: center;
        font-size: 0.4em;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}
.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover {
    color: #fff;
    background-color: #428bca;
}

.sidebar .dropdown-menu {
    top: 0;
    left: 180px;
}
.sidebar .caret-right {
    float: right;
    margin-top: 7px;
    opacity: 1;
}

/* Entity Nav Arrows */

.sw-entity-nav-arrows-component {
    float: right;
}

/*
 * Main content
 */

@media (min-width: 768px) {
    .main {
        padding-left: 240px;
    }
}

.right-column {
    padding: 25px;
    background-color: #dddddd;
    position: fixed;
    top: 51px;
    bottom: 0;
    right: 0;
}

.page-actions {
    margin-bottom: 20px;
}

/* Sequence */
.sequence {
    word-break: break-all;
}
.stackwave-grid .stackwave-sequence {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Protein Sequence Card */
.stackwave-protein-sequence-card dl {
    margin: 0;
}
.stackwave-protein-sequence-card dt {
    margin-top: 15px;
}
.stackwave-protein-sequence-card dt:first-child {
    margin-top: 0;
}
.stackwave-protein-sequence-card .btn-toolbar {
    margin-bottom: 15px;
}

.stackwave-protein-sequence-card ul {
    padding: 0;
    list-style: none;
}

ul.stackwave-protein-sequence-card-plasmids {
    margin: 10px 0;
}
ul.stackwave-protein-sequence-card-plasmids:after {
    display: table;
    content: " ";
    clear: both;
}
ul.stackwave-protein-sequence-card-plasmids li {
    float: left;
}
ul.stackwave-protein-sequence-card-plasmids .panel {
    margin-bottom: 0;
}
ul.stackwave-protein-sequence-card-plasmids .panel-body {
    padding: 8px;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

/*
* Reused Mockup Control Classes
*/

.resource-details table {
    table-layout: fixed;
    margin-bottom: 0;
}
.resource-details th {
    width: 190px;
}

.breadcrumb {
    padding: 0px;
    margin-top: 5px;
    background: none;
}
.breadcrumb .icon-home {
    opacity: 0.4 !important;
}
.breadcrumb .icon-home:hover {
    opacity: 0.7 !important;
}

/*
 * Bootstrap adjustments
 */
.glyphicon-undo {
    transform: scale(-1, 1);
}
.glyphicon-undo:before {
    content: "\e095";
}

td.stackwave-status-column {
    text-align: center;
    vertical-align: middle;
}

td.stackwave-status-column .glyphicon {
    font-size: large;
}

.green-text {
    color: #3c763d;
}

.red-text {
    color: #a94442;
}

.gray-text {
    color: #777;
}

.clear {
    clear: both;
}

footer {
    clear: both;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.powered-by-stackwave {
    position: relative;
}
.powered-by-stackwave small {
    position: absolute;
    left: 0px;
    top: 0px;
    color: #9f9f9f;
}
.powered-by-stackwave img {
    margin-top: 20px;
}

/* Prevent links from spanning multiple rows */
.stackwave-grid a {
    white-space: nowrap;
}

/* Flex discussions */
.flex-row {
    display: flex;
}

.details-discussion-column {
    position: relative;
    min-height: 250px;
    max-height: 380px;
}

.details-discussion-column .discussion-component {
    position: static;
    width: calc(100% - 30px);
}

.details-discussion-column .stackwave-discussion {
    height: 100%;
}

.sw-entity-attachments-component-container {
    float: right;
}

.stackwave-drawer {
    position: fixed;
    top: 0;
    transition: 0.5s;
    height: 100%;
    width: 470px;
    background-color: #fff;
    border-left: 1px solid rgba(0,0,0,.2);
    outline: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    z-index: 1040;
}
    .stackwave-drawer {
        right: -470px;
        transition: 0.5s;
    }
    .stackwave-drawer.open {
        right: 0;
        transition: 0.5s;
    }
    .stackwave-drawer-content {
        height: 100%;
    }
    .stackwave-drawer-header {
        padding: 15px;
        border-bottom: 1px solid #e5e5e5;
    }
    .stackwave-drawer-body {
        padding: 15px;
        max-height: calc(100% - 135px);
        overflow-y: auto;
    }
    .stackwave-drawer-footer {
        padding: 15px;
        text-align: right;
        border-top: 1px solid #e5e5e5;
    }
    .stackwave-drawer-footer .btn + .btn {
        margin-bottom: 0;
        margin-left: 5px;
    }
    .stackwave-drawer-body .stackwave-entity-toolbar {
        top: 86px;
        right: 15px;
    }

#exception-message {
    word-wrap: break-word;
}

.no-wrap {
    white-space: nowrap;
}

/*
 * ASP.NET validation classes
*/

.validation-summary-errors {
    color: #a94442;
    margin-top: 5px;
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
    }

