﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('switcher-resources/themes.css');
@import url('switcher-resources/theme-switcher.css');

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.icon {
    display: inline-block;
    text-rendering: auto;
    font-family: "demo-icons" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.icon-settings:before {
    content: "\E01B";
}

.main {
    flex: 1;
}

    .main .top-row {
        border-bottom: 1px solid #d6d5d5;
    }

.sidebar > div:not(.top-row) {
    border-bottom: 1px solid #d6d5d5;
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.app-sidebar > .nav-pills > .nav-item:first-of-type {
    padding-top: 1rem;
}

.app-sidebar > .nav-pills > .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.app-sidebar .nav-pills > .nav-item a {
    border-radius: 0px;
    display: flex;
    align-items: center;
}

.app-sidebar > .nav-pills > .nav-item > a {
    font-size: 1rem !important;
    padding: .5rem 1rem;
    font-weight: 600 !important;
}

    .app-sidebar > .nav-pills > .nav-item > a[aria-expanded] ~ ul {
        background-color: rgba(0,0,0,.08);
        margin: 0;
    }

.app-sidebar .nav-pills > .nav-item a:not(.active) {
    color: inherit !important;
}

.app-sidebar .nav-pills .nav-item .nav-link > span:not(.expand-btn):not(.image):not(.badge) {
    flex: 1;
}

.app-sidebar .nav-pills .nav-item .nav-link > span.expand-btn {
    margin-right: 9px;
}

.app-sidebar .nav-pills .nav-item .nav-link > span.badge {
    flex: 0;
    border-radius: 0.25rem !important;
    min-width: 2.7em;
}

.dxbs-tree.app-sidebar > ul.nav ul.nav {
    margin: 0;
}

    .dxbs-tree.app-sidebar > ul.nav ul.nav .nav-item {
        padding-bottom: 0;
    }

    .dxbs-tree.app-sidebar > ul.nav ul.nav .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 1rem 0.5rem 2rem;
        font-weight: 400;
    }

.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;
}

.PopupGridSelection {
    max-width: 80vw !important;
    width: 80vw !important;
}


/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.slideshow-prev, .slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.slideshow-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    /* On hover, add a black background color with a little bit see-through */
    .slideshow-prev:hover, .slideshow-next:hover {
        background-color: rgba(0,0,0,0.8);
    }

.slideshow-numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}
/* Fading animation */
.slideshow-fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

.custom-balance-popUp {
    width: 50% !important;
    max-width: 50% !important;
}

.notification {
    background-color: #555;
    color: white;
    text-decoration: none;
    padding: 7px 8px;
    position: relative;
    display: inline;
    border-radius: 2px;
    background: no-repeat center center;
    background-size: 100% 100%;
    background-image: url("../images/notificationLight.svg");
}
    .notification:hover {
        background-color: rgba(245, 198, 203, 0.2)
    }

    .notification .badge {
        position: absolute;
        top: -10px;
        right: 0px;
        /*padding: 5px 10px;*/
        border-radius: 50%;
        background: red;
        color: white;
    }


.highlighted-item > td {
    background-color: rgba(245, 198, 203, 0.2);
    font-weight: 600;
}

.custom-group-row-class{
    font-size: 1.2em;
    font-weight: 700;
}

.custom-data-row-class {
    font-size: 1.1em;
    font-weight: 500;
}

.alt-item {
    background-color: color-mix(in srgb, white, transparent 90%);
}

.client-logo-image {
    width: 7rem;
    height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 0;
    margin-right: 10px;
    max-width:10vw;
    max-height:80%;
}

.selectFileButtonCss {
    font-size: 14px;
    padding-bottom: 4px;
    padding-top: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.ktk-new-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    margin-left: 1rem;
    margin-right: 1.7rem;
    width: 100%;
}

.ktk-new-row-div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.grid-toolbar-advance-calculation {
    height: 16px;
    width: 16px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    -webkit-mask-image: url("../images/advance-calculation16-16.svg");
    mask-image: url("../images/advance-calculation16-16.svg");
}

.grid-toolbar-annul-calculation {
    height: 16px;
    width: 16px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    -webkit-mask-image: url("../images/annul_calculation16-16.svg");
    mask-image: url("../images/annul_calculation16-16.svg");
}

.grid-toolbar-out-direction {
    height: 16px;
    width: 16px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    -webkit-mask-image: url("../images/out-direction.svg");
    mask-image: url("../images/out-direction.svg");
}

.grid-toolbar-show-total {
    height: 16px;
    width: 16px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    -webkit-mask-image: url("../images/show-total.svg");
    mask-image: url("../images/show-total.svg");
}

.grid-toolbar-storage-closing {
    height: 16px;
    width: 16px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    -webkit-mask-image: url("../images/storage-closing16-16.svg");
    mask-image: url("../images/storage-closing16-16.svg");
}

.grid-toolbar-cancel-storage-closing {
    height: 16px;
    width: 16px;
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    -webkit-mask-image: url("../images/cancel-storage-closing16-16.svg");
    mask-image: url("../images/cancel-storage-closing16-16.svg");
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

@media (max-width: 1199.98px) {
    /*.main .top-row {
        display: none;
    }*/
}

@media (min-width: 1200px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 300px;
        min-width: 300px;
        height: 100%;
        position: sticky;
        top: 0;
        display: flex;
        flex-flow: column nowrap;
    }

        .sidebar .top-row {
            flex: 0 0 auto;
        }

        .sidebar > div:not(.top-row) {
            flex: 1 1 auto;
            border-bottom: none;
            border-right: 1px solid #d6d5d5;
            box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.24);
        }

    .main {
        
    }

        .main .top-row {
            position: fixed;
            top: 0;
            width: calc(100% - 300px);
        }

    #settingsbar {
        height: 100vh;
        position: fixed;
    }

    /*.main > div {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }*/

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block !important;
    }
}

#blazor-error-ui {
    background: darkgray;
    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;
    }

.checkbox-margin {
    margin-top: 0.5em;
}
