@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a {
            margin-left: 1.5rem;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .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-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;
    }

        .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.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;
    }
}

.note-editor:focus {
    height: 100px;
}

.input-group-text.primary {
    color: rgb(255, 255, 255);
    background-color: rgb(50, 118, 177);
    border-color: rgb(40, 94, 142);
}

.input-group-text.success {
    color: rgb(255, 255, 255);
    background-color: rgb(92, 184, 92);
    border-color: rgb(76, 174, 76);
}

.input-group-text.info {
    color: rgb(255, 255, 255);
    background-color: rgb(57, 179, 215);
    border-color: rgb(38, 154, 188);
}

.input-group-text.warning {
    color: rgb(255, 255, 255);
    background-color: rgb(240, 173, 78);
    border-color: rgb(238, 162, 54);
}

.input-group-text.danger {
    color: rgb(255, 255, 255);
    background-color: rgb(217, 83, 79);
    border-color: rgb(212, 63, 58);
}

.columns-container {
    display: table-cell;
    height: 100%;
    width: 600px;
    text-align: center;
}

.input-table {
    width: 100%
}

.mr-original-value {
    width: 300px;
}

.price-col {
    width: 250px;
}

.quantity-col {
    width: 150px;
}

.mr-label {
    width: 200px;
}

.disabled-embedded-conf {
    pointer-events: none;
    filter: grayscale(100%);
    opacity: 0.5;
}

.form-field-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 12px -4px;
}

.form-field-full-width {
    flex-grow: 1;
    margin: 0 4px;
}

.form-field-half-width {
    flex-grow: 2;
    margin: 0 4px;
}

/*.form-field-row .mdc-select {
    .mdc-select__anchor
    {
        width: 100%;
    }

    .mdc-select__menu {
        width: 100%;
    }
}
*/

.roofCard {
    width: 220px;
    min-height: 350px;
    border: 2px solid #AAAAAAAA;
}

    .roofCard .card-header {
        padding: .6rem .6rem;
        min-height: 130px;
    }

.roofCard:hover {
    border: 2px dashed #B4D8FC;
}

.roofType {
    width: 100%;
    height: 100%;
}

.help-popover .popover {
    max-width: 800px;
}

.simpleRoofImage {
    max-width: 300px;
    max-height: 300px;
}

.page-item {
    min-width: 60px;
}

.bs-tree a {
    cursor: pointer;
}

.bs-tree > ul.nav ul.nav {
    margin: 0 0 0 2.5rem;
}

.bs-tree > ul.nav ul {
    display: none;
}

    .bs-tree > ul.nav ul.show {
        display: flex;
    }

.tree-toggle {
    transform: rotate(-90deg);
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.tree-spacer {
    display: inline-block;
    margin-left: .855em;
}

.tree-toggle.open {
    transform: rotate(0deg);
}

.konf-checkbox {
    width: 30px;
    height: 30px;
}

.konf-checkbox-sm {
    width: 20px;
    height: 20px;
}