@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: #479cc8;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}
.ql-font-serif {
    font-family: Georgia, Times New Roman, serif;
}

.ql-font-monospace {
    font-family: Monaco, Courier New, monospace;
}

.ql-size-small {
    font-size: 0.75em;
}

.ql-size-large {
    font-size: 1.5em;
}

.ql-size-huge {
    font-size: 2.5em;
}
.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    width: calc(100% - 250px);
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

.main .top-row > a {
    margin-left: 1.5rem;
}


.button-success {
    background-image: linear-gradient(180deg, #9adf66 5%, #007436 70%);
}

    .sidebar .top-row-end {
        justify-content: flex-end;
    }

    .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 !important;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        cursor: pointer;
    }

        .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);
}

.validation-message {
    color: red;
}

.centered {
    align-self: center;
    padding-bottom: 5px
}

.navbar-notvisible {
    display: none;
}

.module {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ql-container {
    height: auto !important;
    min-height: 150px;
}

.fill {
    margin-left: -15px;
    margin-right: -15px;
}

@media (max-width: 991.98px) {
    #toast-container
    {
        margin-top: 60px; /* Move it underneath top bar */
    }
    .scalingtext {
        font-size: small
    }

    .main {
        width: 100%;
    }

    .main .top-row {
        display: none;
    }

    .categoryTitle
    {
        max-width: calc(100vw - 250px); /* Leave some space for the buttons to the right */
    }

    .hide-on-mobile {
        visibility: hidden !important;
        height: 0px !important;
        width: 0px !important;
    }
    .show-on-pc-only {
        visibility: hidden !important;
        height: 0px !important;
        width: 0px !important;
        min-width: 0px !important;
        max-height: 0px !important;
    }
}

@media (min-width: 992px) {
    app {
        flex-direction: row;
    }

    .show-on-mobile-only {
        visibility: hidden !important;
        height: 0px !important;
        width: 0px !important;
        min-width: 0px !important;
        max-height: 0px !important;
    }

    .sidebar {
        min-width: 250px;
    }

    .sidebar-left {
        position: sticky;
        top: 0;
        margin-left: 3px;
        margin-right: 3px;
        transform: translateY(50%);
        height: 50vh;
        bottom: 25%;
        overflow-y: auto;
    }

    .sidebar-right {
        align-content: end;
        position: sticky;
        transform: translateY(50%);
        margin-left: 3px;
        margin-right: 3px;
        top: 0%;
        height: 50vh;
        bottom: 25%;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sidebar-right-1 {
        align-content: end;
        position: sticky;
        /* transform: translateY(2vh); */
        margin-left: 3px;
        margin-right: 3px;
        top: 0%;
        /*max-height: 50vh;*/
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sidebar-right-2 {
        align-content: end;
        position: fixed;
        transform: translateY(60vh);
        margin-left: 3px;
        margin-right: 3px;
        top: 0%;
        max-height: 40vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-col {
        max-width: calc(100% - 500px) !important;
    }

    .main .top-row {
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-visible {
        display: none;
    }

    .navbar-notvisible {
        display: flex;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.chart-container2 {
    position: relative;
    margin: auto;
    height: 20vh;
    width: 80vw;
}

.chartcontainer2000 {
    width: 300px !important;
    height: 300px !important;
    flex: none;
    padding-bottom: 60px;
    padding-right: 30px;
}

@media print {
    body * {
        visibility: hidden;
    }

    .printablearea * {
        visibility: visible;
    }

    .ui-button {
        display: none !important;
    }

    .btn {
        display: none !important;
    }

    .printhidden {
        display: none !important;
    }

    .printablearea {
        position: absolute;
        top: 40px;
        left: 0px;
        width: calc(100% - 3.5rem);
    }

    .chartcontainer300 {
        width: 300px !important;
        height: 300px !important;
        max-height: 300px !important;
        max-width: 300px !important;
        flex: none;
    }

    .pagebreak {
        page-break-before: always;
    }
    /* page-break-after works, as well */
}

.borderless * /* Used for lists in datalist: .ui-datalist-data > li, .ui-g > div*/ {
    border: 0px !important
}

#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;
    }

tr.blankrow {
    background-color: white;
}

.whitebox {
    background-image: none !important;
    background-color: white !important;
    border-color: #AAAAAA !important;
    border-width: 2px !important;
    border-radius: 10px !important;
    padding: 8px !important;
}
.whitebox label
{
    white-space: normal;
}
#background {
    -moz-transform: scale(1.0);
    -webkit-transform: scale(1.0);
    -ms-transform: scale(1.0);
    transform: scale(1.0);
    -webkit-backface-visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(max(100%, 100vh));
    z-index: -1;
    content: '';
    display: block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.background-stretch {
    -moz-transform: scale(1.0);
    -webkit-transform: scale(1.0);
    -ms-transform: scale(1.0);
    transform: scale(1.0);
    -webkit-backface-visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    content: '';
    display: block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.background-no-stretch {
    -moz-transform: scale(1.0);
    -webkit-transform: scale(1.0);
    -ms-transform: scale(1.0);
    transform: scale(1.0);
    -webkit-backface-visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    content: '';
    display: block;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.redoutline input
{
    border-color: red !important;
}

.top-btn-fixed {
    position: fixed !important;
    margin: 30px;
}

#components-reconnect-modal
{
    z-index: 9999999 !important;
}

.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}


@keyframes GlowAnimation
{
    0%
    {
        box-shadow: 0 0 5px #2ba805;
    }

    50%
    {
        box-shadow: 0 0 45px #2bff2b;
    }

    100%
    {
        box-shadow: 0 0 5px #2ba805;
    }
}

@keyframes GrowAnimation
{
    0%
    {
        transform: scale(1)
    }

    50%
    {
        transform: scale(1.5);
    }

    100%
    {
        transform: scale(1);
    }
}

.Glow
{
    animation: GlowAnimation 2.5s ease-in-out infinite;
}

.Grow
{
    animation: GrowAnimation 1.5s ease-in-out infinite;
}