﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@keyframes absoluteFadeInUpAnimation {
    0% {
        bottom: -100px;
        opacity: 0.0;
    }

    to {
        bottom: 0px;
        opacity: 1.0;
    }
}

.k-grid {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.1);
    margin: 3px;
}

.k-table .k-table-thead th {
    background-color: var(--primary);
    color: white !important;
}

.k-table th .k-icon {
    color: white !important;
}

.k-table .k-grid-header {
    background-color: var(--primary) !important;
}

spacer {
    margin: 1.0rem;
}

.gdst-padding {
    padding: 2rem !important;
}

.hide-form-group-headers .k-form-legend {
    display: none;
}

.gdst-red-box {
    box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.1);
    background-color: rgba(204, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 5px;
    margin: 3px;
    color: white;
}

    .gdst-red-box .kde {
        margin-top: 0.5rem;
    }

        .gdst-red-box .kde > label {
            font-size: 1.2rem;
            margin-bottom: 2px;
            color:  white;
            font-family: Consolas;
        }

        .gdst-red-box .kde div {
            font-size: 1.0rem;
        }

.gdst-grey-box {
    box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.1);
    background-color: #CEE5E8;
    padding: 1rem;
    border-radius: 5px;
    margin: 3px;
}

    .gdst-grey-box .kde {
        margin-top: 0.5rem;
    }

        .gdst-grey-box .kde > label {
            font-weight: bold;
            font-size: 0.9rem;
            margin-bottom: 2px;
            color: var(--secondary);
        }

        .gdst-grey-box .kde div {
            font-size: 1.0rem;
        }

.gdst-white-box {
    box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.1);
    background-color: #FFFFFF;
    padding: 1rem;
    border-radius: 5px;
    margin: 3px;
}

    .gdst-white-box .kde {
        margin-top: 0.5rem;
    }

        .gdst-white-box .kde > label {
            font-weight: bold;
            font-size: 0.9rem;
            margin-bottom: 2px;
            color: var(--secondary);
        }

        .gdst-white-box .kde div {
            font-size: 1.0rem;
        }

.box-shadow {
    box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.1);
    margin: 3px;
}

.k-form-field > .k-label {
    color: var(--primary) !important;
    margin-bottom: 2px !important;
    font-style: italic;
    font-size: 0.8rem;
}

.fadeInUp {
    animation: absoluteFadeInUpAnimation;
    animation-fill-mode: forwards;
    animation-duration: 1s;
}

.gdst-supplychainnode {
    border-radius: 10px;
    padding: 20px;
    border: 3px solid black;
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.25);
    background-color: lightblue;
}

    .gdst-supplychainnode .location_name {
        font-size: 2rem;
        font-weight: bold;
    }

    .gdst-supplychainnode .organization_name {
        font-size: 1.0rem;
        font-style: italic;
    }

    .gdst-supplychainnode .completeness {
        margin-top: 0.5rem;
        font-size: 1.5rem;
        font-style: italic;
    }

    .gdst-supplychainnode.red {
        background: rgba(121,0,0, 0.5);
        background: linear-gradient(90deg, rgba(121,0,0,0.5) 0%, rgba(150,0,0,0.5) 35%, rgba(182,0,0,0.5) 100%);
    }

    .gdst-supplychainnode.orange {
        background: rgba(198,109,0, 0.5);
        background: linear-gradient(90deg, rgba(198,109,0,0.5) 0%, rgba(182,107,0,0.5) 35%, rgba(255,136,0,0.5) 100%);
    }

    .gdst-supplychainnode.yellow {
        background: rgba(198,189,0, 0.5);
        background: linear-gradient(90deg, rgba(198,189,0,0.5) 0%, rgba(182,180,0,0.5) 35%, rgba(255,226,0,0.5) 100%);
    }

    .gdst-supplychainnode.lightgreen {
        background: rgba(127,198,0, 0.5);
        background: linear-gradient(90deg, rgba(127,198,0,0.5) 0%, rgba(144,182,0,0.5) 35%, rgba(168,255,0,0.5) 100%);
    }

    .gdst-supplychainnode.green {
        background: rgba(87,198,0, 0.5);
        background: linear-gradient(90deg, rgba(87,198,0,0.5) 0%, rgba(34,182,0,0.5) 35%, rgba(95,255,0,0.5) 100%);
    }

.error {
    color: red;
    font-style: italic;
}

h1 {
    color: var(--secondary);
}

a.link {
    color: var(--secondary) !important;
    cursor: pointer;
    font-style: italic;
}

    a.link:hover {
        color: #2d556f !important;
        text-decoration: underline !important;
    }

.k-window-titlebar {
    background-color: white !important;
    border-top: 5px solid #5ba7b0 !important;
    border-bottom: unset;
}

.k-dialog-title {
    color: #5ba7b0 !important;
    justify-content: center !important;
}

.k-dialog-actions > button{
    width:100px!important;
}


.red-btn {
    background-color: red !important;
    color: white !important;
}

.green-btn {
    background-color: forestgreen !important;
    color: white !important;
}

.notification {
    z-index: 1000000 !important;
    position: absolute;
}


.warning {
    color: gold !important;
    font-style: italic !important;
    padding: 5px;
}

    .warning .fa {
        margin-right: 7.5px !important;
    }

.margin-right {
    margin-right: 10px;
}

.k-button .fa {
    margin-right: 7px;
}

.k-loader-container-overlay {
    opacity: 0.19 !important;
}

.k-notification {
    z-index: 100 !important;
    display: flex !important;
}

.k-button .svg-inline--fa {
    margin-right: 7.5px;
}

.nav-link .svg-inline--fa {
    margin-right: 7.5px;
}

.grid-toolbar {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    padding: 10px;
    background-color: #5ba7b0;
    display: flex;
}

    .grid-toolbar > div.left {
        flex: 1;
    }

.grid-toolabr .k-button {
    margin-left: 10px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

a, .btn-link {
    color: #0366d6;
}

.k-card-header {
    color: #fff !important;
    background-color: #5ba7b0 !important;
}

.k-button:not(.k-icon-button) {
    border-radius: 30px !important;
    /*padding: 10px 20px !important;*/
}

.k-primary {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.page {
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.icon-button {
    cursor: pointer;
    color: #5ba7b0
}

    .icon-button:hover {
        text-shadow: 1px 1px 1px gray;
        color: #37646a;
    }

.main {
    flex: 1;
    min-width: 0px;
}

    .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-color: #5ba7b0;
    box-shadow: 0px 0px 5px 3px rgba(0,0,0,0.2);
    border-right: 3px solid var(--secondary);
}

    .sidebar .top-row {
        /*background-color: rgba(0,0,0,0.4);*/
    }

    .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: #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;
}

.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;
}

#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;
    }


.k-window-title {
    color: white;
}

.k-window {
    border: none !important;
    box-shadow: 0px 0px 5px 3px rgba(0,0,0,0.1) !important;
}

.k-window-titlebar .k-icon {
    color: white !important;
}

:root {
    --primary: #5ba7b0;
    --secondary: #135570;
    --background: #E7F4F6;
    --success: #4ebc01;
    --warning: orange;
    --error: #fe5151;
    --delete: #fe5151;
}

.success-badge {
    background: var(--success);
    color: white;
    border: var(--success);
    box-shadow: 1px 1px 3px 1px lightgrey;
}

.warning-badge {
    background: var(--warning);
    color: white;
    border: var(--warning);
    box-shadow: 1px 1px 3px 1px lightgrey;
}

.error-badge {
    background: var(--error);
    color: white;
    border: var(--error);
    box-shadow: 1px 1px 3px 1px lightgrey;
}

.none-badge {
    background: gray;
    color: white;
    border: gray;
    box-shadow: 1px 1px 3px 1px lightgrey;
}



@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) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 300px;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .main .top-row {
        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;
    }
}
