﻿body {
    padding-top: 45px;
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-top: 15px;
}
.body-content-no-sidebar {
    padding-top: 15px;
}

.navbar-brand-footer {
    position: absolute;
    top: 32px;
    left: 61px;
    color: #eee;
    opacity: 0.9;
    font-size: x-small;
    z-index: -1;
}

.tenant-logo {
    max-height: 45px;
    margin-right: 10px;
}

.tenant-logo-preview {
    max-height: 90px;
}

/* Reduce the header element top margin set by bootstrap */
h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 5px;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.margin-top-bottom-10 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.margin-left-5 {
    margin-left: 5px;
}

@media screen and (min-width: 768px) {
    .body-content {
        padding-left: 250px; /* Sidebar width */
    }
}

.font-italic {
    font-style:italic;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
.form-horizontal input,
.form-horizontal select,
.form-horizontal textarea,
.form-horizontal .input-group {
    max-width: 350px;
}

.table-borderless > tbody > tr > td,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > td,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > thead > tr > th {
    border: none;
}

.table-condensed {
    font-size: 12px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

.sidebar {
    position: fixed;
    width: 250px;
    top: 45px;
    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: #e6e6e6;
    border-right: 1px solid #eee;
}

@media screen and (max-width: 767px) {
    .sidebar {
        display: none;
    }
}

/* Override the default 20px top/bottom bootstrap margin */
.pagination {
    margin-top: 5px;
    margin-bottom: 5px;
}

.vertical-align {
    display: flex;
    align-items: center;
}

/* Make table headers easier to click */
th a {
    width: 100%;
    display: inline-block;
    vertical-align: middle;
}

/* Bootstrap navbar divider */
.navbar .divider-vertical {
    height: 30px;
    margin: 7px 5px;
    border-left: 1px solid rgba(0, 0, 0, 0.35);
}

.navbar-inverse .divider-vertical {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

@media (max-width: 767px) {
    .navbar-collapse .nav > .divider-vertical {
        display: none;
    }
}

/* remove button style for navbar buttons */
.nav button
{
    border: none;
    background-color: transparent;
    outline: none;
    width: 100%;
    text-align:left;
}

/* Fix for buttons nested inside input and btn groups */
.input-group-btn > .btn-group > .btn {
    float: none;
}

.color-icon-preview {
    display: inline-block;
    margin-right: 5px;
    border: 1px solid #888;
    width: 32px;
    height: 15px;
}

.color-cell-preview {
    display: inline-block;
    border: 1px solid #888;
    width: 80%;
    max-width: 75px;
    height: 18px;
}

.table-condensed .color-cell-preview {
    height: 13px;
}

.search-label {
    display: inline;
    padding: .3em .8em .4em;
    margin-right: .5em;
    font-size: 85%;
    line-height: 1;
    color: #fff;
    background-color: #3399f3;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.search-label a {
    margin-left: .3em;
    color: #333;
}

.protocol-settings {
    margin: 1em;
}
.protocol-settings textarea {
    width: 100%;
}

.use-newlines {
    white-space: pre-wrap;
}