﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

a > label {
    cursor: pointer;
}
.top-row {
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        border-bottom: 1px solid #d6d5d5;
    }

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .navbar-menu {
    margin-top: 10px;
    border-top: 1px solid #aaa;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

/* Padding for icon bar */
.pl-4, .px-4 {
    padding-left: 0.7rem !important
}

span.oi.oi-home.wide.baseTextColor {
    top: -6px;
}

li > a.sidebar-link, div.sidebar-link {
    padding: 0.6rem 0.1rem;
    display: block;
    cursor: pointer;
}

.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 {
        border-radius: 4px;
        height: 2rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.content {
    padding-top: 1.1rem;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    padding-top: 2px;
    font-size: 0.9em;
}

@media only screen and (min-device-width : 768px) and (orientation : landscape) {
    .sidebar {
        width: 200px;
        max-width: 210px;
        position: sticky;
        top: 0;
    }
}

@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }

    .version-row {
        display: none;
    }

    .navbar-toggler {
        padding: .25rem .25rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        /*height: 100vh;*/
        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;
    }
}

/* ===== Custom CSS ==== */

/* Body & General */
body {
    line-height: 1;
    font-size: 14px
}

.sidebar {
    padding-bottom: 10px;
}

/* Scroll below the top bar */
.top-row {
    z-index: 1
}

.template-body {
    padding-top: 10px;
}

.template-help {
    opacity: 0.9;
    z-index: 100;
    position: absolute;
    width: 50%;
    height: 50%;
}

/* Dialog */
.dialog-container {
    position: absolute;
    z-index: 2000;
    animation: dialog-container-entry 0.2s;
    resize: both;
    overflow: auto;
}

.dialog {
    display: flex;
    flex-direction: column;
    z-index: 2000;
    align-self: center;
    margin: auto;
    min-width: 700px;
    max-height: calc(100% - 3rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
    padding-top: 10px;
    resize: both;
}

.inlineform {
    border: 1px solid #dee2e6;
    padding: 5px;
}

.inlinedialog-body {
    margin-top: 7px;
}

.dialog-title {
    padding: 1.3rem 2rem;
}

    .dialog-title h2 {
        font-size: 1.4rem;
        margin: 0;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        line-height: 1.3rem;
    }

.dialog-body {
    flex-grow: 1;
    padding: 0.5rem 3rem 1rem 0;
}

    .dialog-body > div {
        display: flex;
        margin-top: 1rem;
        align-items: center;
    }

    .dialog-body label {
        text-align: right;
        width: 200px;
        margin: 0 1.5rem;
    }

    .dialog-body input, .dialog-body select {
        flex-grow: 1;
        width: unset;
    }

    .dialog-body .size-label {
        min-width: 110px;
        text-align: right;
    }


.dialog-buttons {
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

button.btn.btn-info.float-right {
    bottom: 27px;
}

.dialog-body > div {
    display: flex;
    margin-top: 1rem;
    align-items: center;
}

.dialog-body input, .dialog-body select {
    flex-grow: 1;
    width: unset;
}

.dialog-body .size-label {
    min-width: 110px;
    text-align: right;
}

/* Tabs */
.nav-tabs .active {
    padding-top: 5px;
}

.nav-tabs > li {
    margin-bottom: -1px;
}

.nav-tabs-body {
    border-top-width: 0;
}

.oi {
    cursor: pointer;
    padding: 1px;
}

    .oi.no-click {
        cursor:not-allowed;
    }

/* Grid */
div.header > div[class^=col-] {
    font-weight: bold;
}

/* Forms */

.form-group {
    margin-bottom: 7px;
}

div.form-group > label {
    margin-bottom: 2px;
    font-size: 14px;
}

input[type^=checkbox].form-control {
    width: 19px;
    height: 19px;
}

.form-control {
    height: 24px;
    font-size: 14px;
    padding: 2px 5px 2px 5px;
}

/* Forms with 2 columns */
.row > div > input.form-control, .row > div > textarea {
    margin-bottom: 10px;
}

.row > div > select.form-control {
    margin-bottom: 10px;
}

form.label {
    margin-top: 5px;
}

.p-4 {
    padding: 1rem !important;
}

.scrollable {
    word-break: break-all;
}


table.TestResultTable {
}

    table.TestResultTable > tr, td {
        padding: 5px;
    }

div.testresultlabel-True > h5 > button.btn.btn-link,
div.testresultlabel-success > h5 > button.btn.btn-link,
div.testresultlabel-danger > h5 > button.btn.btn-link,
div.testresultlabel-primary > h5 > button.btn.btn-link,
div.testresultlabel-False > h5 > button.btn.btn-link {
    text-decoration: underline;
}

li.list-group-item-dark {
    opacity: 0.3;
}

.pointer {
    cursor: default;
}



/* Release Info */
.iconspacing {
    margin-right: 10px;
}


/* CSS For Multiple selector Listbox component */
/* https://gavilan.blog/2020/01/16/blazor-multiple-selector-component/ */
.multiple-selector {
    margin-top: 5px;
}

.selectable-ul {
    overflow-y: auto;
    list-style-type: none;
    padding: 0;
    border-radius: 3px;
    border: 1px solid #ccc;
}

    .selectable-ul li {
        cursor: pointer;
        border-bottom: 1px #eee solid;
        padding: 2px 10px;
        font-size: 14px
    }

.multiple-selector-buttons {
    flex-direction: column;
    justify-content: center;
    padding: 5px
}

    .multiple-selector-buttons span {
        margin: 5px;
    }

/* Checkboxes */
/* The container */
label.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    margin-left: 0px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-top: 15px;
}

    /* Hide the browser's default checkbox */
    label.container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Spacing for filtercontrols */
div.componentspacing {
    padding-bottom:10px;
}

/* Blazor errors */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/*
        li > a.sidebar-link:hover
    */
/* NAV Submenu */
.sub-menu {
    display: none;
    flex-direction: column;
    padding-left: 0.5rem;
}

    .nav-item:hover .sub-menu,
    .sub-menu:hover, li > a.sidebar-link:hover {
        display: flex;
    }

    .sub-menu .nav-link {
        font-size: 0.8rem;
    }
