@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, .main .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgba(0,160,226,1) 0%, rgba(186,231,249,1) 25%, rgba(214,237,249,1) 100%);
}

.sidebar .top-row {
    background-color: rgba(0,160,226,1)
}

.sidebar .bottom-row  {

}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: #7070af;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.sidebar .nav-item a.active {
    background-color: rgba(255,255,255,0.4);
    color: black;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #1010df;
}

.sidebar .nav-item a.active:hover {
    background-color: rgba(0,0,255,0.1);
    color: black;
}

.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;
}

.installation-error {
    background-color: white;
    border: 1px solid red;
    color: #a00000;
}

ul.flatlist {

}

.flatlist li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

table.installation {
    border-collapse: separate;
    border: solid silver 1px;
    border-radius: 6px;
    -moz-border-radius: 6px;
}

.installation td, th {
    border-left: solid #d6d5d5 1px;
    border-top: solid #d6d5d5 1px;
    border-right: solid #d0d0d0 1px;
    border-bottom: solid #d0d0d0 1px;
    padding: 0.1rem 0.25rem;
}

.installation th {
    background-color: #d6d5d5;
    border-top: none;
}

.installation td:first-child, th:first-child {
    border-left: none;
}

.installation td input {
    border: none;
    background-color: rgb(214,237,249);
}

.installation td input:hover {
    border: none;
    background-color: rgb(200,223,235);
}

.evengroup:nth-child(even) td {
    background-color: #eef;
}

.evengroup:nth-child(odd) td {
    background-color: #dde;
}

.oddgroup:nth-child(even) td {
    background-color: #efe;
}

.oddgroup:nth-child(odd) td {
    background-color: #ded;
}

#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;
}

span.action-required {
    color: #cc0000;
}
span.action-impending {
    color: #cc9900;
}
span.action-none {
}

.simple-tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

.simple-tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
}

.simple-tooltip:hover .tooltiptext {
    visibility: visible;
}

.switchbox {
    height: 24px;
    margin: auto;
}

.switch {
    position: relative;
    display: inline-block;
}

.switch-input {
    display: none;
}

.switch-label {
    display: block;
    width: 48px;
    height: 24px;
    text-indent: -150%;
    clip: rect(0 0 0 0);
    color: transparent;
    user-select: none;
}

.switch-label::before,
.switch-label::after {
    content: "";
    display: block;
    position: absolute;
    cursor: pointer;
}

.switch-label::before {
    width: 100%;
    height: 100%;
    background-color: #dedede;
    border-radius: 9999em;
    -webkit-transition: background-color 0.25s ease;
    transition: background-color 0.25s ease;
}

.switch-label::after {
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.45);
    -webkit-transition: left 0.25s ease;
    transition: left 0.25s ease;
}

.switch-input:checked + .switch-label::before {
    background-color: #48c2e0;
}

.switch-input:checked + .switch-label::after {
    left: 24px;
}

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialogbox {
    padding: 1rem;
    background-color: rgba(230, 230, 240, 0.9);
    border: 5px groove silver;
}

.item-alert {
    color: #aa0000;
}

.highlight {
    background-color: yellow;
}

.selectedPeriod {
    font-weight: bold;
}

.extrapolated td {
    color: #999;
}

.summarytable .summaryheader {
    font-weight: bold;
}

.summarytable .summaryrow:nth-child(even) {
    background-color: #eee;
}

.summarytable .summaryrow:hover {
    background-color: #444;
    color: #fff;
}

.InstName {
    word-break: break-all;
    line-height: 1rem;
}

.nobreak {
    word-break: keep-all;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 320px;
        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;
    }
}
