﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: monospace;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        border-bottom: 1px solid #d6d5d5;
        background-color: #47555E;
    }

.sidebar {
    border-right: solid gray 1px;
    min-width: 230px;
    max-width: 230px;
    overflow: auto;
}

    .sidebar .top-row {
        background-color: #47555E;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-category {
    font-size: 1.2rem;
    vertical-align: text-top;
    color: #47555E;
    padding-bottom: 0.5rem;
}

.dropdown-menu {
    color: white;
    background-color: rgba(255,255,255,0.25);
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    background-color: #47555E;
}

    .nav-item a.active {
        background-color: #32393d;
    }

    .nav-item a:hover {
        background-color: #3b464c;
    }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.box {
    border-radius: 5px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.green {
    border: 1px solid #0f9136;
    background-color: #0f9136;
}

.red {
    border: 1px solid #d63333;
    background-color: #d63333;
}

img {
    max-width: 100%;
    max-height: 100%;
}

.page-header {
    color: #47555E;
    padding-bottom: 5px;
}

.structure {
    font-size: larger;
    border-collapse: collapse;
    width: 25%;
    white-space: nowrap;
}

    .structure td {
        border: 1px solid #ccc;
    }

    .structure .absorbing-column {
        width: 100%;
    }

    .structure th.align-left,
    .structure td.align-left {
        text-align: left;
    }

    .structure th.align-right,
    .structure td.align-right {
        text-align: right;
    }

.padding-left {
    padding-left: 20px;
}

.padding-right {
    padding-right: 20px;
}

.alpp {
    text-align:left;
    padding-left: 15px;
    padding-right: 15px;
}

.arpp {
    text-align: right;
    padding-left: 15px;
    padding-right: 15px;
}

.ar {
    text-align: right;
}

.al {
    text-align: left;
}

.arpr {
    text-align: right;
    padding-right: 20px;
}

.arpl {
    text-align: right;
    padding-left: 20px;
}

.alpr {
    text-align: left;
    padding-right: 20px;
}

.alpl {
    text-align: left;
    padding-left: 20px;
}

.split-third-line tr:nth-of-type(3n) td {
    border-bottom: 3px solid #47555E;
}

.split-second-line tr:nth-of-type(2n) td {
    border-bottom: 3px solid #47555E;
}

.sectionTable {
    font-size: larger;
    border-collapse: collapse;
    width: 100%;
}

    .sectionTable td {
        border: 1px solid #ccc;
        min-width: 50px;
    }

        .sectionTable th.align-right,
        .sectionTable td.align-right {
            text-align: right;
        }


.hoverBold:hover {
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
}

.drag-drop-zone {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #47555E;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 1.5rem 0 2rem 0;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

/*Scrollbar form Firefox*/
.scroller {
    overflow-y: auto;
    scrollbar-color: #47555E white;
    scrollbar-width: thin;
}

/*Scrollbar for Chrome*/ 
::-webkit-scrollbar {
    width: 5px;
    background: white;
}

::-webkit-scrollbar-thumb {
    background: #47555E;
}
