﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    background-color: #F7F7F7 !important;
    font-family: 'Open Sans', sans-serif;
}

#app {
    width: 100%;
    height: 100%;
    background-color: #F7F7F7 !important;
}


.content-row {
    width: 100%;
    padding: 24px;
}

.content-row-wave {
    width: 100%;
}

div.dashboard-title {
    margin-bottom: -32px;
    margin-top: 3em;
}

    div.dashboard-title.first {
        margin-top: 0em;
    }

/* Blazor Page Loading Indicator */

.load-splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/images/tn/landing-background.png);
    background-size: cover;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--blazor-load-percentage, 0%);
    height: 15px;
    background-color: #91B942;
}

.loading-progress-text {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    font-size: 10px;
    line-height: 15px;
    text-align: center;
    vertical-align: middle;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

div.layout-transparent {
    background: transparent;
    background-color: rgba(0,0,0,0) !important;
}

.tn-login-logo {
    height: 50px;
}

.tn-logo {
    margin-left: 2em;
    height: 30px;
}

.splash-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.custom-form-item .ant-form-item-required::before {
    display: none !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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N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Y3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.ant-result-404,
.ant-result-500 {
    margin: 0 auto;
}

.app-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.centered-layout {
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
}

.wrapper-side-bar {
    margin-top: 50px;
    z-index: 999;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    border-right: 1px solid rgb(216, 216, 222);
}

    .wrapper-side-bar .ant-layout-sider-trigger {
        border-right: 1px solid rgb(216, 216, 222);
    }

.side-bar {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .side-bar:first-child {
        flex-grow: 1;
    }

aside.site-layout-background {
    padding-bottom: 0;
}

.user-avatar:hover {
    cursor: pointer;
}

.div-flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.div-flex-item {
    margin-left: 1em;
}


/* Global tour overlauy */

div.help-overlay {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    /*    transition: all 50ms ease-out;*/
    /*    transition: all 50ms ease-out;*/
}

div.help-overlay-container {
    position: fixed;
    z-index: 1002;
    transition: all 100ms ease;
}

div.help-overlay-top {
}

div.help-overlay-bottom {
}

div.help-overlay-left {
}

div.help-overlay-right {
}

/* Reverse order of antd notification so that new ones appear always on top */
.ant-notification > span {
    display: flex;
    flex-direction: column-reverse;
}

/* Don't show hand on pagination if only one page is visible */
/* Page 0 is shown if the table is empty - always show default cursor */
.ant-pagination-item-0,
.ant-pagination-item-0 a {
    cursor: default !important;
}
/* For page 1, show default cursor if the next element is the next button (instead of page 2) */
.ant-pagination-item-1:has(+ .ant-pagination-next),
.ant-pagination-item-1:has(+ .ant-pagination-next) a {
    cursor: default !important;
}

/* TODO(TruNorth) - why is this not working in the components css? */
.timeline > .ant-collapse-item > .ant-collapse-header {
    max-height: 38px;
    line-height: 14px;
}

.ant-modal-footer .ant-btn-primary {
    float: right;
    margin-left: 1%;
}

.editPopupDelete {
    float: left;
    margin-left: -1%;
}

.tabAlignLeft {
    flex-grow: 1;
    font-size: 16px;
}

.sequence-and-name {
    display: flex;
    align-items: flex-start;
}

.text-header {
    display: flex;
    justify-content: center;
    font-weight: 600;
}

.sequence {
    margin-left: -20px !important;
    margin-right: 30px; /* Adjust the margin value as needed */
}

.normal {
    margin-left: 20px !important;
}

/* TODO(TruNorth) - why is this not working in the components css? */
div.page-header-project div.ant-page-header-heading-extra {
    flex-grow: 3;
    align-self: center;
    padding-left: 4em;
    padding-right: 4em;
    display: flex;
}

    div.page-header-project div.ant-page-header-heading-extra div.page-header-project-steps-wrapper {
        flex-grow: 3;
        max-width: 880px;
        margin: 0 auto;
    }

div.page-header-scenario div.ant-page-header-heading-extra {
    flex-grow: 3;
    align-self: center;
    padding-left: 4em;
    padding-right: 4em;
    display: flex;
}

    div.page-header-scenario div.ant-page-header-heading-extra div.page-header-scenario-steps-wrapper {
        flex-grow: 3;
        max-width: 880px;
        margin: 0 auto;
    }

/* TODO(TruNorth) - why is this not working in the components css? */
li.result-item:hover {
    cursor: pointer;
    background-color: rgba(242, 242, 242, 0.3);
    transition: background-color 150ms ease;
}

li.result-item .ant-list-item-meta-content {
    display: flex;
    flex-direction: column-reverse;
}

span.project-rocket {
    position: absolute;
    margin-left: 1em;
    opacity: 0.0;
    transform: rotate(90deg);
    animation-name: project-rocket-launch;
    animation-duration: 4s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    z-index: 9999;
    bottom: 25px;
}

@keyframes project-rocket-launch {
    0% {
        margin-left: 1em;
        opacity: 1.0;
        color: black;
    }

    50% {
        color: red;
    }

    100% {
        margin-left: 5em;
        opacity: 0.0;
    }
}

.ant-affix .compare-header-add {
    right: -3em !important;
}

.timeline-slider-wapper .ant-slider-mark-text {
    transform: translateY(-79px) rotate(-45deg) !important;
}

.ant-menu-item .ant-badge-count,
.badge-default .ant-badge-count {
    background-color: lightgrey;
    color: #000;
}

.attrCatBtn {
    width: 100%;
    margin-bottom: 2%;
    /*    color: #1890ff;
    border-color: #1890ff*/
}

/** Settings | Snapshot menu page*/
#snapshotMenu .viewEnabled {
    color: #0e8fed;
}

#snapshotMenu .viewDisabled {
    color: rgba(0, 0, 0, 0.2);
}

/* Ant Blazor is bugged here... need our own media query to hide the column */
@media (max-width: 576px) {
    .hide-gridcol-xs {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hide-gridcol-sm {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .hide-gridcol-md {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .hide-gridcol-lg {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .show-lg {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .hide-lg {
        display: none !important;
    }
}

@media (max-width: 1600px) {
    .hide-gridcol-xl {
        display: none !important;
    }
}
.badge-selected .ant-badge-count,
.ant-menu-item.ant-menu-item-selected .ant-badge-count {
    background-color: #007CB0;
    color: #fff;
}


/* FONT DEFINITION */
/* open-sans-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/OpenSans/open-sans-v35-latin-300.woff2') format('woff2');
}
/* open-sans-300italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/OpenSans/open-sans-v35-latin-300italic.woff2') format('woff2');
}
/* open-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/OpenSans/open-sans-v35-latin-regular.woff2') format('woff2');
}
/* open-sans-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/OpenSans/open-sans-v35-latin-italic.woff2') format('woff2');
}
/* open-sans-500 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/OpenSans/open-sans-v35-latin-500.woff2') format('woff2');
}
/* open-sans-500italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/OpenSans/open-sans-v35-latin-500italic.woff2') format('woff2');
}
/* open-sans-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/OpenSans/open-sans-v35-latin-600.woff2') format('woff2');
}
/* open-sans-600italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/OpenSans/open-sans-v35-latin-600italic.woff2') format('woff2');
}
/* open-sans-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/OpenSans/open-sans-v35-latin-700.woff2') format('woff2');
}
/* open-sans-700italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/OpenSans/open-sans-v35-latin-700italic.woff2') format('woff2');
}
/* open-sans-800 - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/OpenSans/open-sans-v35-latin-800.woff2') format('woff2');
}
/* open-sans-800italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 800;
    src: url('../fonts/OpenSans/open-sans-v35-latin-800italic.woff2') format('woff2');
}

.cookie-menu-item > span {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.addAttrDrawer .ant-drawer-close {
    position:absolute;
    top:0;
    right:0;
    margin:0;
}

.ant-select-item-group {
    color: rgba(0,0,0,.85);
    font-weight: bold;
    font-size: medium;
}

span .text-success {
    color: #52c41a;
}

span .text-warning {
    color: #faad14;
}

span .text-failure {
    color: #ff4d4f;
}
