﻿:root {
    --brand-color: #ff6600;
    --brand-light-color: #ff7519;
    --brand-dark-color: #e55b00;
}

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
}

/* Helpers */

.text-brand {
    color: var(--brand-color);
}

a.text-brand:hover,
a.text-brand:focus {
    color: var(--brand-dark-color);
}

.bg-brand {
    color: #fff;
    background-color: var(--brand-color);
}

a.bg-brand:hover,
a.bg-brand:focus {
    color: #fff;
    background-color: var(--brand-dark-color);
}

/*
    Custom Scrollbar
*/

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.2) rgba(0,0,0,.05);
}

    /* Chrome, Edge, and Safari */
    *::-webkit-scrollbar {
        width: 8px;
    }

    *::-webkit-scrollbar-track {
        background: rgba(0,0,0,.05);
    }

    *::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.2);
        min-height: 32px;
    }

        *::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,.4);
        }

/* fixes iOS devices not being able to scroll an iframe page */
.no-scroll {
    left: 0;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    top: 0;
    width: 100%;
}

.ios-iframe-scroll {
    -webkit-overflow-scrolling: touch !important;
}

/* container for lists of filter options */
.filter-container {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 5px;
    max-height: 340px;
    overflow-y: auto;
}

    .filter-container .checkbox:first-child,
    .filter-container .radio:first-child {
        margin-top: -5px;
    }

/* shows text as originally entered */
.pre-wrap {
    white-space: pre-wrap;
}

/* remove styling from links */
.link-unstyled, .link-unstyled:link, .link-unstyled:hover {
    color: inherit;
    text-decoration: inherit;
}

/* don't remember what this was used for */
/*.panel:first-child {
    margin-top: 20px;
}*/

/* !!! DEPRECATED: Use bootstrap-treeview instead !!! */
div.treeview {
    min-width: 100px;
    min-height: 100px;
    max-height: 256px;
    overflow: auto;
    padding: 4px;
    margin-bottom: 20px;
    color: #555;
    border: solid 1px;
    border-radius: 4px;
}

    div.treeview ul:first-child:before {
        display: none;
    }

.treeview,
.treeview ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #555;
}

    .treeview ul {
        margin-left: 1em;
        position: relative;
    }

        .treeview ul ul {
            margin-left: .5em;
        }

        .treeview ul:before {
            content: "";
            display: block;
            width: 0;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 15px;
        }

    .treeview li {
        margin: 0;
        padding: 0 1em;
        line-height: 2em;
        position: relative;
    }

    .treeview ul li:before {
        content: "";
        display: block;
        width: 10px;
        height: 0;
        margin-top: -1px;
        position: absolute;
        top: 1em;
        left: 0;
    }

.tree-indicator {
    margin-right: 5px;
    font-size: 9px;
    cursor: pointer;
    position: relative;
    top: -1px;
}

.treeview li {
    margin: 8px;
    border-left: 4px solid #0955a1;
    border-radius: 4px;
    overflow: auto;
}

    .treeview li a {
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        margin-left: 4px;
        top: 4px;
    }

    .treeview li button,
    .treeview li button:active,
    .treeview li button:focus {
        text-decoration: none;
        color: inherit;
        border: none;
        background: transparent;
        margin: 0;
        padding: 0;
        outline: 0;
    }

.btn-group-treeview {
    vertical-align: initial;
    margin-bottom: 5px;
}

i.fa-circle-notch.fa-spin {
    color: var(--brand-color);
}

/* LOADER ANIMATION */
.loader-container {
    background: rgba(0,0,0,0.2);
    z-index: 1051;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    margin-top: -50px;
}

.loader {
    position: fixed;
    left: 50%;
    top: 33%;
    z-index: 1051;
    border: 4px solid var(--brand-color);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

.iframe-loader {
    position: fixed;
    left: 50%;
    top: 25%;
    z-index: 1051;
    border: 4px solid var(--brand-color);
    border-top: 4px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* FUNCTIONALITY FOR DISABLING LINKS */
a[disabled], a[disabled]:hover, .disabled {
    pointer-events: none;
    cursor: not-allowed;
}

/* MESSAGES */
.message-preview {
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* VESSEL MAP */
.map {
    height: 360px;
    width: 100%;
}

.iframe-map {
    min-height: 360px;
    width: 100%;
    height: 100%;
    border: 0;
}

/* IFRAME CUSTOMIZATIONS */
.iframe {
    width: 100%;
    height: 100%;
    min-height: calc(70vh - 5px);
    border: 0;
    margin-bottom: -5px;
}

.iframe-page {
    margin-top: -50px; /* Cancel out the body padding because the navbar should be hidden */
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* BOOTSTRAP CUSTOM CLASSES */

.navbar-brand-img {
    width: auto;
    height: 100%;
}

/* medium screens and up will not collapse by default */
@media (min-width: 992px) {
    .collapse-sm {
        display: block;
    }
}

/* toggles chevrons within a list group item */
.list-group-item .list-group-toggle {
    display: block;
}

    .list-group-item .list-group-toggle:after {
        font-family: 'FontAwesome';
        content: '\f077';
        float: right;
    }

    .list-group-item .list-group-toggle.collapsed:after {
        content: '\f078';
    }

/* toggles chevrons when item is a button */
.list-group-item.list-group-btn-toggle:after {
    font-family: 'FontAwesome';
    content: '\00a0\f077';
}

.list-group-item.list-group-btn-toggle.collapsed:after {
    content: '\00a0\f078';
}

.list-group-condensed {
    margin-bottom: 10px;
}

    .list-group-condensed > li,
    .list-group-condensed > a {
        padding: 5px;
        line-height: 1.3em;
    }

.progress-condensed {
    height: 15px;
    margin-bottom: 5px;
}

.modal-body-iframe {
    padding: 0;
    overflow: hidden;
}

.table > thead > tr.hidden-row > th,
.table > tbody > tr.hidden-row > th,
.table > tfoot > tr.hidden-row > th,
.table > thead > tr.hidden-row > td,
.table > tbody > tr.hidden-row > td,
.table > tfoot > tr.hidden-row > td {
    padding: 0;
}

    .table > thead > tr.hidden-row > th > div.collapse,
    .table > tbody > tr.hidden-row > th > div.collapse,
    .table > tfoot > tr.hidden-row > th > div.collapse,
    .table > thead > tr.hidden-row > td > div.collapse,
    .table > tbody > tr.hidden-row > td > div.collapse,
    .table > tfoot > tr.hidden-row > td > div.collapse,
    .table > thead > tr.hidden-row > th > div.collapsing,
    .table > tbody > tr.hidden-row > th > div.collapsing,
    .table > tfoot > tr.hidden-row > th > div.collapsing,
    .table > thead > tr.hidden-row > td > div.collapsing,
    .table > tbody > tr.hidden-row > td > div.collapsing,
    .table > tfoot > tr.hidden-row > td > div.collapsing {
        margin: 5px;
    }
