@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');



@media (max-width: 768px)
{
    .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert)
    {
        inset-block-start: initial !important; /* Always center, even on mobile */
    }
}
.rz-dialog-wrapper
{
    max-width: 100vw;    
}
.rz-dialog-confirm-buttons > button:nth-child(1)
{
    background-color: var(--rz-success) !important; /* OK btn should be green */
}
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;
}

.top-row {
    height: 2.5rem;
    display: flex;
    align-items: center;
}

.main {
    width: calc(100% - 250px);
}

.main .top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
}

.main .top-row > a {
    margin-left: 1.5rem;
}

.sidebar {
    background-image: linear-gradient(180deg, #617073 5%, #171a21 70%);
}

.sidebar .top-row {
    background-color: #617073;
}

.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);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.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;
}

.gridcontainer {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 10px;
    background-color: #fff;
    color: #444;
}
.gridcontainerSmall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0;
    background-color: #fff;
    color: #444;
}
.fill {
    margin-left: -15px;
    margin-right: -15px;
}

@media (max-width: 767.98px) {
    .scalingtext {
        font-size:small
    }
    .main {
        width: 100%;
    }

    .main .top-row {
        display: none;
    }

    .gridcontainer {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-gap: 0;
        background-color: #fff;
        color: #444;
    }
    .gridcontainerSmall {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 0;
        background-color: #fff;
        color: #444;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-height: 100vh;
        height: 100%;
        position: relative;
        /*position: sticky;*/
        top: 0;
    }

    .sidebar.sidebarCollapsed
    {
        width: 60px !important;
    }

    .main.sidebarCollapsed
    {
        width: calc(100% - 60px) !important;
    }

    .sidebar.sidebarCollapsed li
    {
        width: 60px;
    }

    .sidebar.sidebarCollapsed li p
    {
        display: none;
    }

    .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;
    }
    .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;
}

.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;
}

.scrolling-tabs ul {
    overflow-x: auto;
    overflow-y: hidden;
}
.scrolling-tabs li {
    min-width: 185px;
    text-align: center;
}
span.rz-column-title
{
    white-space: pre-wrap;
}
.print-only
{
    display: none !important;
}

/* https://stackoverflow.com/questions/12522455/centered-text-with-hr-like-line-on-both-sides-without-using-a-table https://jsfiddle.net/GeraldS/KbScQ/ */
fieldset.title {
    border-top: 1px solid #aaa;
    border-bottom: none;
    border-left: none;
    border-right: none;
    display: block;
    text-align: center;
}

    fieldset.title legend {
        padding: 5px 10px;
    }

.rz-layout
{
    display: initial !important;
    height: initial !important;
    box-sizing: initial !important;
    overflow: initial !important;
}

.rz-form-field-content > .rz-switch
{
    max-width: fit-content;
    transform: scale(0.6) translateY(3px);
    transform-origin: left;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Overrides default screw up of RadzenDataGrid on mobile:
   1. cells are drawn properly,
   2. Mobile printout of cell header on EVERY row is disabled (.rz-column-title display: none)
   3. Table header is shown
@media (max-width: 768px)
{
    .rz-datatable-reflow .rz-datatable-odd > td, .rz-datatable-reflow .rz-datatable-even > td { 
        display: table-cell !important;
        width: 2rem !important;
        text-align: center !important;
        border: solid 1px #dfe7eb !important;
    }
    .rz-datatable-reflow .rz-datatable-data td > .rz-column-title
    {
        display: none !important; 
    }
    .rz-datatable-reflow .rz-datatable-thead th
    {
        display: table-cell !important;
    }
}
*/

@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;
}

.Glass
{
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 1);
}