/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding: 80px 0 0 0;
}


/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}
@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        margin-top: -29px;
        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;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -15px;
}

.nav-sidebar > h4 {
    padding-left: 15px;
}

.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 30px !important;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}


/*
 * Main content
 */

.main {
    padding: 20px;
    position: absolute !important;
    top: 45px !important;
}
@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}
.main .page-header {
    margin-top: 0;
}

.input-group {
    padding: 0px 20px 10px 20px;
}

.role-checkbox {
    display: inline-block;
    margin: 10px;
}

.project-panel {
    margin: 10px;
}

input[type=checkbox] {
    vertical-align: text-bottom;
    margin-right: 5px !important;
}

.role-input {
    margin-left: 10px;
    padding-left: 10px;
    display: inline-flex !important;
    width: 25% !important;
}

.role-input .form-control {
    padding: 1px 10px !important;
    height: inherit !important;
}

.project-input {
    margin: 10px 20px 0 20px;
}

.button {
    margin: 10px 0 10px 10px !important;
}

.pointer {
    cursor: pointer;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.method-param, .item-field {
    margin-bottom: 12px !important;
    display: block;
}

.item-field-name, .method-param-name {
    color: #777;
    margin-bottom: 3px;
}

.item-view .input-group, .dropdown-toggle .input-group {
    padding: 0px !important;
    margin-bottom: 10px !important;
}

.item-view .form-control[readonly] {
    background-color: #fff;
}

.alert {
    position: fixed;
    z-index: 10000;
    width: 600px;
    margin-left: -300px;
    left: 50%;
}

.jsoneditor {
    border-color: #428bca !important;
    border-radius: 2px;
}

.jsoneditor-tree {
    resize: both;
}

.jsoneditor-menu {
    border-bottom-color: #428bca !important;
    background-color: #428bca !important;
}

.method-param .btn {
    margin-left: 15px;
}

.json-editor-container {
    margin-top: 0px !important;
    margin-bottom: 20px;
}

.upload-image {
    margin-top: 5px;
    border: 1px solid #ccc;
    /*max-width: 100%;
    max-height: 100px;*/
}

textarea {
    max-width: 100%;
}

.panel {
    margin-bottom: 10px !important;
}

.panel-body {
    padding: 5px 15px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.sidebar-error {
    margin-left: 20px;
}

.pagination-container {
    text-align: center;
}

.logs-filter {
    margin: 10px 10px 0px 10px !important;
}

.tab-pane {
    padding: 15px 10px;
}

.popup {
    top: 100px;
    position: fixed;
    width: calc(90vh);
    margin-left: calc(-45vh);
    left: 50%;
    vertical-align: middle;
    z-index: 10000;
}

.popup .btn {
    margin-left: 10px;
    margin-top: -5px;
}

.popup textarea {
    height: calc(100vh - 220px) !important;
    resize: none;
}

.loading-background {
    position: fixed;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    background-color: rgba(55, 55, 55, .5);
    z-index: 10000;
}

.loading-image {
    background: url("/css/img/rolling.svg");
    width: 50px;
    height: 50px;
    left: 50%;
    position: fixed;
    top: 45%;
    margin-left: -25px;
    z-index: 10001;
}

.display-none {
    display: none;
}

.display-block {
    display: block;
}

.pagination li {
    cursor: pointer;
}

.input-params {
    height: 500px !important;
    margin-top: 30px !important;
}

.pagination {
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

.overflow-y {
    overflow-y: auto;
}

.jsoneditor-tree {
    max-height: 400px;
}

.local-date {
    margin-bottom: 15px !important;
}

.copy-button {
    margin-left: 5px;
}

.pre {
    white-space: pre;
}

.project-menu-head {
    cursor: pointer;
}

span.menu-down {
    display: none;
}

.hide-menu > .nav-sidebar {
    display: none;
}

.hide-menu .menu-up {
    display: none;
}

.hide-menu .menu-down {
    display: inline;
}

.project-menu {
    border-bottom: 1px solid black;
}

.prod-indication {
    border: 5px solid #5a9ebf;
    background: #facaca;
}

.input-group-with-checkbox  span.input-group-addon {
    border-right: 1px solid #ccc;
}

.input-group-with-checkbox input.form-control {
    width: 34px;
    margin-top: 0px;
    margin-left: 4px;
}