@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, div, span {
    font-family: var(--font-primary);
}

body {
    background-image: url("../images/background.png");
    background-color: var(--color-secondary-silver);
    background-attachment: fixed;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
}

.cmp-Welcome {
    background-image: url("../images/splash-gray-swoosh.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - var(--top-row-height));
    margin: 0;
    padding: 0;
    border: 0;
}

.cmp-Welcome-Logo {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.content-with-only-top-row {
    width: 100%;
    height: calc(100vh - var(--top-row-height)); /*! margin-top: var(--second-top-row-height); */
    position: fixed;
    top: calc(var(--top-row-height));
    z-index: -1;
}

.content-with-top-and-sub-row {
    width: 100%;
    height: calc(100vh - var(--top-row-height) - var(--second-top-row-height)); /*! margin-top: var(--second-top-row-height); */
    position: fixed;
    top: calc(var(--top-row-height) + var(--second-top-row-height));
    z-index: -1;
}

#map {
    height: 100%;
    /* calc(100vh - var(--top-row-height) - var(--second-top-row-height));100%; 400px; The height is 400 pixels */
    width: 100%; /* The width is the width of the web page */
}

a, .btn-link {
    color: var(--color-secondary-white, #0366d6);
}

.chatbox-container {
    margin: 10px auto;
    width: 60%;
}

.chatbox {
    max-height: 450px;
    width: 100%;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 10px;
    
    /*margin: 10px auto;*/
    /*border: 1px solid red;*/
}

.content a {
    color: var(--color-primary-pdi-blue-dark, #0366d6);
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 50%;
    max-height: 100%;
}

.full-center-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: var(--top-row-height);
    display: flex;
    align-items: center;
}

.navbar{
    padding: 0;
}

.navbar-toggler {
    padding: 0;
    margin-left: 10px;
    /*    margin-top: 10px;*/
    width: 37px;
    height: 33px;
    border: 1px solid var(--color-secondary-white-transparent) !important;
    background-color: transparent !important;
}

.navbar-toggler-icon {
    width: 1.1em;
    height: 1.1em;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.6)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

.navbar-brand {
    font-family: Arial,sans-serif;
    margin-left: 4.5rem;
}

.navbar-brand,
.top-row-collapsed .navbar-brand {
    position: fixed;
    left: calc(var(--sidebar-width) + 10px);
    top: 5px;
    white-space: nowrap;
    overflow: visible;    
}

.top-row-collapsed .navbar-brand {
    left: 58px;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: var(--color-primary-pdi-blue-dark, #f7f7f7);
        /*border-bottom: 1px solid #d6d5d5;*/
        justify-content: flex-end;

        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
    }

        .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 .navbar-brand {
    /*font-size: 1.2rem;*/
    font-weight: 500;
    font-size: 20px;
    /*font-weight: 200;*/
    text-shadow: 1px 1px 1px rgba(0,0,0,.25);
}

.sidebar .oi,
.sidebar .nav-link i{
    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: #d7d7d7;
            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.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
    padding: 0px !important;
    margin: 0px !important;
    width: 100%;
    /*height: 100%;*/
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

.sidebar .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1); /*rgba(255, 255, 255, 0.1);*/
/*    margin-top: -2px;*/
}

.sidebar {
    background-image: linear-gradient(180deg, var(--color-primary-pdi-blue-dark, rgb(5, 39, 103)) 0%, var(--color-tertiary-industry-logistic-blue, #3a0647) 70%);
    position: fixed !important;
    z-index: 99999;
    width: var(--sidebar-width);
    height: 100vh;
    top: 0;
}

.side-bar-collapsed {
    background-image: none;
    background-color: none;
    pointer-events: none;
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.1);
        pointer-events: auto;
    }

    .sidebar .top-row-collapsed {        
        background-color: var(--color-primary-pdi-blue-dark, rgb(5, 39, 103));
        pointer-events: auto;
    }

.nav-link .oi-chevron-right {
    margin-left: auto;
    margin-right: 0px;
}

.nav-link .oi-chevron-bottom {
    margin-left: auto;
    margin-right: 0px;
}

.nav-item .nav-link {
    cursor: pointer;
}

.sidebar .sidebar-nav {
    position: relative;
    width: var(--sidebar-width);
    height: calc(100vh - var(--top-row-height));
    z-index: 99999;
}

.sidebar-nav ul {
    max-height: 100%;
    width: 100%;
    overflow-y: auto;
}

.sidebar-nav ul li {
    width: 100%;
}

    .sidebar-nav ul li .nav-link:not(:first-child) {
        margin-left: 30px;
    }


[type="date"] {
    background: #fff url(https://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/calendar_2.png) 97% 50% no-repeat;
}

    [type="date"]::-webkit-inner-spin-button {
        display: none;
    }

    [type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
    }

label {
    display: block;
}

input, select, textarea {
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    background-color: #fff;
    padding: 3px 5px;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
    height: 34px;
    margin: auto;
    border-radius: 2px;
    width: 220px;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    opacity: initial
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 500px;
        height: 80px;
        background-color: var(--color-input-background-primary);
        color: var(--color-input-foreground-primary);
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        /* Position the tooltip */
        position: absolute;
        z-index: 9999999;
        bottom: 100%;
        left: 50%;
        margin-left: -60px;
        top: 20px;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
    }

.progressBarBelowSubRow {
    top: calc(var(--top-row-height) + var(--second-top-row-height));
    position: absolute;
    z-index: 9999999;
    width: 100%;
}

.progressBarBelowTopRow {
    top: calc(var(--top-row-height));
    position: absolute;
    z-index: 9999999;
    width: 100%;
}

.toolTipContainerIcon {
    position: absolute;
    top: 10px;
    margin-left: 5px;
    font-size: 0.9rem;
}

input[type="checkbox"], input[type="radio"] {
    box-shadow: none;
}

/* Parent Element must (!) be position:relative */
.lds-dual-ring-background-local {
    position: absolute;
    /*width: 100%;
    height: 100%;*/
    z-index: 29999;
    background-color: var(--color-secondary-silver);
    opacity: 0.5;
    /*top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.lds-dual-ring-local {
    display: inline-block;
    z-index: 30000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lds-dual-ring-background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 29999;
    background-color: var(--color-secondary-silver);
    opacity: 0.5;
}

.lds-dual-ring {
    display: inline-block;
    z-index: 30000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .lds-dual-ring:after, .lds-dual-ring-local:after {
        content: " ";
        display: block;
        width: 64px;
        height: 64px;
        margin: 8px;
        border-radius: 50%;
        border: 6px solid #06409E;
        border-color: #06409E transparent #06409E transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }

    

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.drag-drop-zone {
    border: 3px dashed #e68710;
    /*padding: 3rem;*/
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #aeaeae;
    font-size: 1.5rem;
    cursor: pointer;
    /*margin: 1.5rem 0 2rem 0;*/
    position: relative;
    height: 37px;
    margin-right: 10px;
    /*height: var(--second-top-row-height);*/
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

pre {
    background-color: #f0f0f0;
    overflow: auto;
    padding: 1rem;
    height: 10rem;
}

@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;
    }
}


/* Turn off parallax scrolling for all tablets and phones. Increase/decrease the pixels if needed */
@media only screen and (max-device-width: 1366px) {
    body {
        background-attachment: scroll;
    }
} 
