@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    z-index: 10;
}

.main {
    flex: 1;
}

    .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 {
    height:100%;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* User/logout area pinned to the bottom of the sidebar. */
.sidebar-footer {
    border-top: 1px solid color-mix(in srgb, var(--client-primary-text, #ffffff) 12%, transparent);
    margin-top: auto;
    padding: 12px;
}

.sidebar-logout {
    align-items: center;
    border-radius: 6px;
    color: var(--client-primary-text, #d7d7d7);
    display: flex;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 0.75rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .sidebar-logout:hover {
        background-color: color-mix(in srgb, var(--client-primary-text, #ffffff) 12%, transparent);
        color: var(--client-primary-text, #ffffff);
        text-decoration: none;
    }

    .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-icon {
        width: 2rem;
        min-width: 2rem;
        font-size: 1.1rem;
        text-align: center;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
        
    }
        .sidebar .nav-item .link-text {
            white-space: nowrap;
            text-overflow: ellipsis;
            max-width: 180px;
            overflow: hidden;
        }

        .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;
}

/* Toggle floats on the sidebar's right wall; hidden on mobile where the navbar-toggler is used. */
.sidebar-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    height: 22px;
    width: 22px;
    padding: 0;
    background-color: rgb(5, 39, 103);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.65rem;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .sidebar-toggle-btn:hover {
        background-color: #2563eb;
        border-color: #ffffff;
        color: #ffffff;
    }

.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: 10;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@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;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 20;
        transition: width 0.2s ease-in-out;
    }

    .main .top-row {
        position: sticky;
        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;
    }

    /* Desktop toggle button floats on the sidebar's right edge, vertically
       centered and half-overlapping the wall, so its position is identical
       whether the sidebar is expanded or collapsed. */
    .sidebar-toggle-btn {
        display: inline-flex;
        position: absolute;
        top: 50%;
        right: -11px;
        transform: translateY(-50%);
        z-index: 30;
    }

    /* Collapsed (docked) sidebar: icons only, main content reflows to fill. */
    .sidebar.collapsed {
        width: 60px;
    }

        .sidebar.collapsed .link-text {
            display: none;
        }

        /* Center the brand/logo within the narrow docked rail. The toggle is
           positioned on the sidebar wall, so it no longer participates here. */
        .sidebar.collapsed .top-row {
            justify-content: center;
            padding-left: 0;
            padding-right: 0;
        }

        .sidebar.collapsed .navbar-brand {
            margin: 0 auto;
            padding: 0;
        }

        .sidebar.collapsed .logo {
            width: 40px;
            height: auto;
            margin-left: 0;
        }

        .sidebar.collapsed .nav-item a {
            justify-content: center;
        }

        .sidebar.collapsed .oi,
        .sidebar.collapsed .nav-icon {
            width: auto;
            min-width: 0;
        }

        .sidebar.collapsed .sidebar-logout {
            justify-content: center;
            padding: 0;
        }
}


/* Custome Containers that are used for different purposes. */

.container {
    padding-right: 5px;
    padding-left: 5px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    justify-content: flex-start;
}

.tableau-container {
    margin: 5px;
}

.admin-container {
    margin: 5px;
}

.general-container {
    margin: 5px;
}

.details-container {
    margin: 5px;
}

.relationdiagram-container {
    margin: 5px;
}

.ganttchart-container {
    margin: 5px;
}

.label-text {
    font-size: 13px;
    letter-spacing: 0.39px;
}




.cta {
    background: #00CC80;
    width: calc(100% - 1em);
    display: block;
    color: #fff;
    border-radius: 20px;
    padding: .5em;
    text-decoration: none;
    font-size: 1.5em;
    margin: 3% auto 7%;
    position: center;
    z-index: 4;
    text-align: center;
    max-width: 300px;
}


/* Sets Logo Height and Width*/
.logo {
    width: 100px;
    height: 39px;
    max-width: 100%;
    margin-left: 12px;
    object-fit: contain;
    transition: width 0.2s ease-in-out, margin 0.2s ease-in-out;
}

.checkbox-control {
    margin: 25px 0 25px 25px;
    align-content: flex-start;
}

@media only screen and (max-width: 700px) {
    .checkbox-control {
        margin: 25px 0 0 25px;
    }

    .control-section {
        min-height: 200px;
    }
}

@media only screen and (max-width: 500px) {
    .control-section {
        min-height: 200px;
    }

    .checkbox-control {
        margin-top: 25px;
        margin-left: 25px;
        margin-bottom: 25px;
    }
}

.control-section .row {
    margin: 25px 0;
}


.body {
    min-height: 400px;
    margin-bottom: 100px;
    clear: both;
}

.footer {
    height: 50px;
}

.footer,
.push {
    height: 50px;
}

.wrapper {
    min-height: 93%;
}

.content {
    min-height: 100%;
}

.content-inside {
    padding: 20px;
    padding-bottom: 50px;
}

.filemanager {
    height: auto;
}


img-fluid {
    border-radius: .5rem;
    max-width: 100%;
    height: auto;
}
.pageheader {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #0f3865;
    border-radius: .5rem;
    text-align: center;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #FFFFFF 100%);
}

.jumbotron {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #0f3865;
    background-size: cover;
    border-radius: .5rem;
    text-align: center;
    
}

    .jumbotron .jumbotron-fluid {
        background-image: url("'../Content/Images/Logo/Tech background.png'");
        background-size: cover;
    }

/* Sets Logo Height and Width*/
.jumbotron-image .img-fluid {
    min-height: 50px;
    min-width: 50px;
    vertical-align: middle;
    margin: 1rem 1rem 2rem 1rem;
}

.jumbotron-fluid {
    padding-right: 2rem;
    padding-left: 2rem;
    border-radius: 6px;
}


.text-light {
    color: #e5e5e5 !important;
}


.icon {
    width: 100px;
    height: 100px;
    padding: .5rem;
    margin: .5rem;
    object-fit: contain;
    justify-content: center;
    z-index:5;
}


.drk-btn {
    background: #0f3865;
    width: calc(100% - 1em);
    display: block;
    color: #fff;
    border-radius: 20px;
    padding: .5em;
    text-decoration: none;
    font-size: .5em;
    margin: 3% auto 7%;
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 300px;
}

.container {
    padding-right: 5px;
    padding-left: 5px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    justify-content: flex-start;
}

.bg-dark {
    border-radius: .5rem;
}
.products-container {
    background-repeat: repeat;
    background-image: url('../content/images/logo/tech background.png');
    background-position: center;
    border-radius: .5rem;
}

.row {
    justify-content: space-evenly;
}

dropdown-toggle > a {
    margin-bottom: -1px;
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 1rem;
    color: #6c757d;
    white-space: nowrap;
}

.navbar-expand-sm .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.icon {
    width: 100px;
    height: 100px;
    padding: .5rem;
    margin: .5rem;
    object-fit: contain;
    justify-content: center;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    border-color: #ddd;
    background-size: 100% 100%;
    padding: .5rem;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
   
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
.navbar-dark .navbar-text a {
    color: #212529;
}




#List {
    display: block;
    margin: auto;
    border: 1px solid;
    border-color: #ccc;
    border-color: rgba(0, 0, 0, 0.12);
    width: 400px;
}

    #List .settings {
        height: auto;
    }

    #List .e-list-item {
        height: auto;
        padding: 0;
        cursor: pointer;
        box-sizing: border-box;
        border: 0.1px solid #ccc;
    }

    #List .e-list-header .e-text {
        font-family: sans-serif;
        font-size: 18px;
        line-height: 26px;
    }

    #List #content {
        margin: 3px;
    }

    #List .name {
        font-size: 12px;
        line-height: 25px;
    }



.dashboard-page .e-tbar-btn-text,
.dashboard-page #grid .e-tbar-btn-text {
    font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 16px;
    color: #545454 !important;
}
#daterange-overlay {
    width: 100%;
    height: 34px;
    background: #FFFFFF;
    border-radius: 4px;
}

#daterange-wrapper {
    width: 100%;
    height: 100%;
}
.line-chart-area .chart-container {
    padding-left: 0;
    padding-right: 0;
}

.column-chart-area .chart-container {
    padding-left: 16px;
    padding-right: 0;
}

.flex-column
{
    margin-top: 1px; 
}

.tableau-container {
    margin: 5px;
    margin-bottom: 50px;
    min-height: 400px;
    /* no max-height: it capped every dashboard at 750px whatever the window size */
}

.admin-container {
    margin: 5px;
}

.general-container {
    margin: 5px;
}
.relationdiagram-container {
    margin: 5px;
}
.ganttchart-container {
    margin: 5px;
}

.container-prezi {
    margin: 5px;
    min-height: 750px;
 display:flex;
}
.e-float-input {
    margin-top: 5px;
}

.form-row {
    margin: 10px;
}

.MainLayoutWrapper {
    height: calc(100% - 106px);
    overflow-y: auto;
    min-height: inherit;
    padding-bottom: 20px;
}

/* Temporary highlight applied to freshly cloned grid rows after a clone action. */
.e-grid td.e-rowcell.dpx-clone-pulse,
.e-grid tr.dpx-clone-pulse td.e-rowcell {
    animation: dpxClonePulse 1.6s ease-in-out 2;
}

@keyframes dpxClonePulse {
    0% { background-color: transparent; }
    30% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Display-only chrome toolbar buttons (data-driven grid buttons with no wired action).
   Keep them flat like the built-in Add/Edit/Delete items and stop them retaining the
   pressed/focus highlight, since clicking performs no action so focus stays on them. */
.e-toolbar .e-toolbar-item.chrome-display-btn .e-tbar-btn,
.e-toolbar .e-toolbar-item.chrome-display-btn .e-tbar-btn:focus,
.e-toolbar .e-toolbar-item.chrome-display-btn .e-tbar-btn.e-active,
.e-toolbar .e-toolbar-item.chrome-display-btn .e-tbar-btn:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.e-toolbar .e-toolbar-item.chrome-display-btn .e-tbar-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* Render the Font Awesome PrefixIcon instead of the default Syncfusion icon font.
   Font Awesome 6 Free (loaded in _Host.cshtml) uses weight 900 for the fa-solid style. */
.e-toolbar .e-toolbar-item.chrome-display-btn .e-tbar-btn .e-icons {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.e-toolbar .chrome-toolbar-btn-img {
    height: 1rem;
    width: auto;
    max-width: 1.25rem;
    object-fit: contain;
    vertical-align: middle;
}

.e-toolbar .chrome-toolbar-btn-content {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.e-toolbar .e-toolbar-item.chrome-built-in-btn .chrome-toolbar-btn-content i,
.e-toolbar .e-toolbar-item.chrome-display-btn .chrome-toolbar-btn-content i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
/* ------------------------------------------------------------------ Side menu: Areas (NavMenu.razor) */
/* Text and tints follow the client's Client_Web_Configuration (variables set in MainLayout.razor); the
   literal after each var() is the DataPhyx default when the client has none. New sidebar text should do the same. */
/* The menu scrolls on its own so a long Areas list never pushes the logout area off screen. */
.sidebar .nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .nav-section-title {
    border-top: 1px solid color-mix(in srgb, var(--client-primary-text, #ffffff) 12%, transparent);
    color: color-mix(in srgb, var(--client-primary-text, #ffffff) 55%, transparent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0.25rem 0.75rem 0;
    padding-top: 0.75rem;
    text-transform: uppercase;
}

/* Engagement heading in Areas when several engagements are selected (NavMenu.razor). */
.sidebar .nav-area-engagement {
    color: color-mix(in srgb, var(--client-primary-text, #ffffff) 75%, transparent);
    font-size: 0.75rem;
    font-weight: 700;
    list-style: none;
    margin: 0.5rem 0.75rem 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar.collapsed .nav-area-engagement {
    margin: 0.5rem 0.5rem 0.1rem;
}

.sidebar .nav-area {
    padding-bottom: 0.15rem;
}

    .sidebar .nav-area:first-of-type {
        padding-top: 0.25rem;
    }

.sidebar .nav-area-toggle {
    align-items: center;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--client-primary-text, #d7d7d7);
    display: flex;
    gap: 0.25rem;
    height: 2.5rem;
    text-align: left;
    width: 100%;
}

    .sidebar .nav-area-toggle:hover,
    .sidebar .nav-area-toggle.open {
        background-color: color-mix(in srgb, var(--client-primary-text, #ffffff) 10%, transparent);
        color: var(--client-primary-text, #ffffff);
    }

.sidebar .nav-area-count {
    background-color: color-mix(in srgb, var(--client-primary-text, #ffffff) 15%, transparent);
    border-radius: 999px;
    font-size: 0.7rem;
    margin-left: auto;
    padding: 0 0.45rem;
}

.sidebar .nav-area-chevron {
    font-size: 0.7rem;
    margin-left: 0.35rem;
}

.sidebar .nav-area-entities {
    border-left: 1px solid color-mix(in srgb, var(--client-primary-text, #ffffff) 15%, transparent);
    margin: 0.15rem 0 0.4rem 1.5rem;
    padding-left: 0.5rem;
}

.sidebar .nav-area-category {
    color: color-mix(in srgb, var(--client-primary-text, #ffffff) 50%, transparent);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.25rem 0.15rem;
    text-transform: uppercase;
}

/* Managed Areas: a sub section is a button that opens its pages. */
.sidebar button.nav-area-sub-toggle {
    align-items: center;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    gap: 0.35rem;
    text-align: left;
    width: 100%;
}

    .sidebar button.nav-area-sub-toggle:hover,
    .sidebar button.nav-area-sub-toggle.open {
        color: rgba(255, 255, 255, 0.85);
    }

    .sidebar button.nav-area-sub-toggle .fa-solid {
        font-size: 0.6rem;
        width: 0.7rem;
    }

    .sidebar button.nav-area-sub-toggle .nav-area-count {
        margin-left: auto;
    }

.sidebar a.nav-area-entity {
    border-radius: 4px;
    color: var(--client-primary-text, #c9c9c9);
    display: block;
    font-size: 0.82rem;
    line-height: 1.25rem;
    overflow: hidden;
    padding: 0.2rem 0.4rem;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .sidebar a.nav-area-entity:hover {
        background-color: color-mix(in srgb, var(--client-primary-text, #ffffff) 10%, transparent);
        color: var(--client-primary-text, #ffffff);
    }

    .sidebar a.nav-area-entity.active {
        background-color: color-mix(in srgb, var(--client-primary-text, #ffffff) 25%, transparent);
        color: var(--client-primary-text, #ffffff);
    }

.sidebar.collapsed .nav-section-title {
    margin: 0.25rem 0.5rem 0;
}

.sidebar.collapsed .nav-area-toggle {
    justify-content: center;
}
