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

* {
    font-family: "Lato", sans-serif;
}

header {
    background: #ffffff;
}

.page-wrapper {
    min-height: 100vh; /* full viewport height */
}

.job-run-status {
    display: inline-block;
    margin-left: 1em;
    line-height: normal;
}

pre {
    white-space: pre-wrap !important; /* Since CSS 2.1 */
}

.job-status-icon {
    vertical-align: -0.03em !important;
    margin-left: 1em !important;
}

.view-job-log-button {
    margin-left: 1em !important;
}

.job-log-body {
    max-height: 25vw !important;
    overflow-y: auto !important;
}

.qlik-auth-type {
    font-size: 0.9em;
    margin: 0 auto;
    display: table;
}

.btn-icon {
    /*    display: flex;
    position: absolute;*/
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    /*    align-content: center;*/
    /*    margin-left: 12em;
    margin-top: -1em;*/
}

.transition-fade {
    transition: opacity 1s;
}

.tabs.tabs-card, .tabs.tabs-border-card {
    background: white !important;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.table-container .form-check {
    margin: 0 auto !important;
}

.content-box {
    flex: 1;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.fa-check {
    color: green;
}

-fa-hourglass-start{
    color:grey;
}

.fa-times {
    color: red;
}

.fa-info-circle {

}

.subscription-header {
    justify-content: center !important;
}


.spinner {
    border: 8px solid silver;
    border-top: 8px solid #337AB7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 700ms linear infinite;
/*    top: 40%; */
/*    left: 50%;*/
    position: relative;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.loading-spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    text-align: center;
    transform: translateX(-50%);
}

.loading-spinner-spanner {
    position: absolute;
    top: 50%;
    left: 0;
    background: #2a2a2a;
    width: 100%;
    display: block;
    text-align: center;
    height: 300px;
    color: #FFF;
    transform: translateY(-50%);
    z-index: 1000;
    visibility: hidden;
}

.loading-spinner-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999; /*Cover everything except the spanner itself! */
    visibility: hidden;
}

.loading-spinner-loader,
.loading-spinner-loader:before,
.loading-spinner-loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: loading-spinner-animation 1.8s infinite ease-in-out;
    animation: loading-spinner-animation 1.8s infinite ease-in-out;
}

.loading-spinner-loader {
    color: #ffffff;
    font-size: 10px;
    margin: 80px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.loading-spinner-loader:before,
.loading-spinner-loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loading-spinner-loader:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.loading-spinner-loader:after {
    left: 3.5em;
}

@-webkit-keyframes loading-spinner-animation {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

@keyframes loading-spinner-animation {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

.show {
    visibility: visible;
}

.loading-spinner-spanner.show, .loading-spinner-overlay.show {
    opacity: 1;
}

.pop-container {
    position: relative;
    display: inline-block;
}

.popconfirm {
    z-index: 1000;
    word-break: break-word;
    word-wrap: break-word;
    white-space: initial;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: lightblue;
    width: 250px;
    position: absolute;
    top: -50px;
    padding: 10px;
    border-radius: 8px;
}

label {
    font-weight: bold;
}

.fa {
    margin-right: 5px;
}

.blazored-toast-container {
    z-index: 9999 !important;
}

.dropdown-menu {
    max-height: 400px !important;
}

.qlikobjecttabselect-multiselect .disabled .form-check {
    display: none !important;
}

.qlikobjecttabselect-multiselect .multi-select-item .form-check-input {
    margin-top: -0.06em;
}

.custom-row {
    position: relative;
}

    .custom-row::after {
        content: "";
        position: absolute;
        left: -16px; /* Extend to left outside the row */
        right: 16px; /* Extend to right outside the row */
        bottom: 0;
        height: 1px;
        background-color: #dee2e6; /* Bootstrap border color */
    }

.list-label {
    font-weight: bold;
}


/* Balzor */
#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuO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IvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.dropdown-item {
    width: auto !important;
}

.action-button {
    margin-left: 0.1em;
    margin-right: 0.1em;
}

/* Style only the table cells in detail rows */
table .is-detail td,
table .is-detail th {
    background-color: #f8f9fa !important;
    --bs-table-bg-state: #f8f9fa !important;
}

/* Style only the table cells in master rows */
table .is-master td,
table .is-master th {
    background-color: white;
}

.nav-large-display {
    margin-top: -0.2rem;
    align-items: center;
}

/* Selected item */
.dropdown-item.active, .dropdown-item:active {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: unset;
    text-decoration: unset;
    /*    background-color: unset;*/
}

.tenant-dropdown {
    margin-top: -0.25rem;
}

.subtle-btn {
    font-size: 0.7rem; /* Smaller font size */
    font-weight: bold;
    padding: 2px 8px; /* Adjust padding for a more subtle look */
    border-radius: 5px; /* Softened corners */
    color: #404040; /* Muted text color */
}
.storage-divider.divider,
.storage-divider .divider-mask{
    background-color: var(--main-primary-color) !important;
}

.storage-divider.divider .divider-text {
    color: black !important;
}

    @media (min-width: 768px) {

        header .header-main-container {
            width: 100%;
            max-width: fit-content;
        }

    }
    /* less than tablet size */
    /* less than tablet size */
    @media (max-width: 993px) {
        .navbar-toggler[b-r7536mksc1] {
            display: none;
        }

        .collapse[b-r7536mksc1] {
            /* Never collapse the sidebar for wide screens */
            display: block;
        }

        .nav-scrollable[b-r7536mksc1] {
            /* Allow sidebar to scroll for tall menus */
            height: calc(100vh - 3.5rem);
            overflow-y: auto;
        }

        /* header main container */
        header .header-main-container {
            max-width: 500px;
            margin: 0 auto;
        }

        /* logo */
        header > div.d-flex > a.logo-link {
            padding-right: 0 !important;
            margin-right: auto;
            position: relative;
            z-index: 9;
        }

        /* nav */
        header.navbar {
            width: 100%;
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            margin-top: -4rem;
        }

        header .header-main-container,
        header .header-main-container > .d-flex {
            flex-direction: column;
            align-items: center;
            width: 100%;
            align-items: center !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        header .d-flex nav {
            width: 100%;
        }


        header .button-container {
            max-width: 300px;
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        header.navbar nav a.nav-item {
            padding: 1rem 1rem !important;
            background: rgba(255, 255, 255, 0.4);
            border-bottom: var(--bs-border-width) solid #8f8f8f;
            font-size: 1.1rem;
        }

        header .nav-container {
            margin-top: 3rem;
        }

        .navbar-toggler-icon {
            font-size: 1.6rem;
        }

        .button-container > a.btn {
            font-size: 1.2rem;
            margin-right: 0.3rem;
        }

        .navbar .dropdown-menu {
            width: 16rem !important;
        }

            .navbar .dropdown-menu a.dropdown-item {
                padding: 1rem;
            }
    }

.signalr-enabled {
    color: green;
    font-weight: bold;
    background-color: #e7f9ee;
    padding: 10px;
    border-radius: 5px;
}

.signalr-disabled {
    color: red;
    font-weight: bold;
    background-color: #f9e7e7;
    padding: 10px;
    border-radius: 5px;
}

.job-log-lines {
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background-color: white;
    color: #fff;
    border-radius: 4px;
    border: 1px solid #444;
}

.log-line {
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
}

.log-info {
    color: black;
}

.log-warning {
    color: #fff3cd;
    background-color: #664d03;
}

.log-error {
    color: #f8d7da;
    background-color: #842029;
}

.log-default {
    color: #fff;
}

#app-header {
    height: 75px;
    min-height: 75px;
    max-height: 75px;
    display: flex;
    align-items: center;
    background: white;
    z-index: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-logo {
    height: 55px !important;
}


/* Nav items container shrinks to content */
.qc-nav-items {
    display: inline-flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    gap: 1.6rem;
}

/* Base nav item style */
.nav-item-main {
    text-transform: uppercase;
    font-weight: normal;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    color: #222 !important;
    text-decoration: none;
}

    /* Active state */
    .nav-item-main.active {
        border-bottom-color: var(--stretch-pink);
        font-weight: 600;
    }

    /* Hover state (optional subtle underline) */
    .nav-item-main:hover {
        border-bottom-color: rgba(0,0,0,0.3);
    }


/* Ensure dropdown borders aren't affected */
.dropdown-menu .nav-item-main {
    border: none !important;
}

/* Remove default navbar spacing */
.qc-nav-links,
.navbar,
.navbar-nav,
.navbar-collapse {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.qc-navbar-wrapper 
{
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Ensure nav items align to header top */
.qc-nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Header border */
#app-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 1; /* prevents extra vertical space */
}

/* Ensure nav items sit above header border */
.qc-nav-links,
.qc-nav-items {
    line-height: 1; /* removes inherited line-height */
    padding-bottom: 0 !important; /* correct alignment */
    margin-bottom: -1px; /* pulls border up by one pixel */
}

/* Prevent Bootstrap nav-link padding from pushing items down */
.nav-item-main.nav-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1;
}

header .nav-container {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Move the logo/nav cluster to the left */
/*.qc-logo-nav-wrapper {
    margin-left: -15vw;*/ /* or adjust: -10vw, -12vw, -17vw etc. */
/*}*/

.qc-header-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* true centering */
    align-items: center;
    height: 75px;
    width: 100%;
    column-gap: 3rem;
}

/* Force left and right areas to shrink-to-fit */
.qc-header-left,
.qc-header-right {
    min-width: 0;
}

/* Center must truly center regardless of left/right */
.qc-header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    /* KEY FIX */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* optional: prevents menu wrapping */
    margin-bottom: -2px;
}
