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

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background-color: rgb(241, 242, 242);
}


header, footer {
    flex-shrink: 0;
}

section {
    flex-grow: 1;
    display: flex;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgb(157 163 168);
    border-right: 1px solid rgb(157 163 168);
    padding-top: 25px;
    padding-bottom: 45px;
    flex-grow: 1;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.content {
    padding-top: 11px;
}

.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: 6px 12.5px 7px 12.5px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 7.5px;
        top: 5px;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9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MjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 10px/18px, #b32121;
    padding: 10px 10px 10px 37px;
    color: white;
}

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


.btn-primary {
    font-family: proxima nova, montserrat, Arial, Helvetica, sans-serif;
    color: #fff;
    background: #003087;
    border-color: #003087;
    box-shadow: 0 1px 0 rgba(0,0,0,.15), inset 0 1px 0 0 hsla(0,0%,100%,.1);
    display: block;
    width: 100%;
    height: 50px;
}

div.data-display {
    padding: 10px;
    margin: 10px auto;
    color: #5e6367;
    font-family: Courier New, Courier, monospace;
    background-color: #f1f2f2;
    border: 1px dashed #5f6468;
}

/* Header Style */
#main-header {
    background: #003087;
    height: 90px;
    padding: 17px 0;
    display: flex;
    align-items: center;
    z-index: 50;
}

#header {
    margin: auto;
    position: relative;
    min-height: 60px;
    min-width: 310px;
    max-width: 1200px;
    flex-shrink: 0;
}

    #header .tb-wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 10px;
        display: flex;
        align-items: center;
    }

        #header .tb-wrap img {
            height: 54px; /* logo size spec */
            width: auto;
            display: block;
        }

#div-identity {
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: right;
    background-color: #fff;
}

#navbar-identity {
    color: #ffffff;
    position: absolute;
    right: 10px;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    font-size: 12px;
}

#st-authd-0 {
    font-size: 17px;
}

#navbar-identity li {
    list-style-type: none;
}

#navbar-identity a {
    text-decoration: none;
    color: #ffffff;
}

#navbar-navelements {
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    box-sizing: content-box;
    /*transition: max-height 0.1s ease-in, opacity .1s ease-in;*/
}


#navbar-ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0px;
}

#header-navigation-toggle-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    margin: 0px;
    flex-direction: column;
    height: 34px;
    row-gap: 4px;
    border: 1px solid #ffffff;
    border-radius: 0px;
    padding: 9px 10px;
    height: min-content;
    background-color: transparent;
}

    #header-navigation-toggle-btn:focus, #header-navigation-toggle-btn:active {
        box-shadow: none;
        outline: none;
    }


    #header-navigation-toggle-btn .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        border-radius: 1px;
    }


.nav-item a {
    font-family: Arial, sans-serif;
    padding: 10px;
    font-size: 14px;
    line-height: 14px;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    text-align: left;
    width: max-content;
    font-weight: 300;
}


#login-banner-cntr {
    position: relative;
}

#msgFrame {
    position: absolute;
    top: 20px;
    right: 10px;
}


/* Footer Styles */
footer {
    display: flex;
    flex-direction: column;
    padding-top: 3px;
    background-color: rgb(66, 65, 67);
    flex-shrink: 0;
}

#footer-navigation {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    height: 100%;
    justify-content: space-between;
}

#footer-navigation-div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 30px;
}

ul.footer-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    list-style-type: none;
}

    ul.footer-nav h2 {
        color: #ffffff;
        margin-top: 6px;
        margin-bottom: 18px;
        font-size: 18px;
        font-weight: 600;
        width: max-content;
    }

    ul.footer-nav ul {
        list-style-type: none;
        padding-left: 0px;
        padding-right: 0px;
    }

    ul.footer-nav > li {
        list-style-type: none;
        padding-left: -15px;
        margin-bottom: 15px;
    }

        ul.footer-nav > li > ul > li {
            margin-bottom: 0;
            line-height: 18px;
        }

    ul.footer-nav a {
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        line-height: 21px;
    }


#footer-branding {
    display: flex;
    flex-direction: column;
    padding-left: 0px;
    padding-right: 0px;
}

    #footer-branding a {
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
    }

#footer-terms {
    display: flex;
    flex-direction: column;
    padding-left: -5px;
    padding-right: -5px;
}

    #footer-terms ul {
        display: flex;
        flex-wrap: wrap;
        list-style-type: none;
        margin: 0;
        margin-bottom: 10px;
        padding: 0;
    }

    #footer-terms li {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 21px;
    }

    #footer-terms ul li a {
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
    }

    #footer-terms p {
        color: #ffffff;
        line-height: 18px;
        font-size: 12px;
        padding-left: 5px;
    }

#footer-branding-logo-link {
    display: flex;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 15px;
    white-space: nowrap;
}

#footer-branding-media {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0px;
}

@media (max-width: 991px) {

    #navbar-navelements {
        margin-top: 2px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .navbar-navelements-0 {
        opacity: 0;
        max-height: 0;
        /*transition: max-height 0.1s ease-in, opacity .1s ease-in;*/
    }

    .navbar-navelements-1 {
        opacity: 1;
        max-height: 440px;
        /*transition: max-height 0.1s ease-in, opacity .1s ease-in;*/
    }

    #navbar-identity {
        top: 10px;
        right: 20px;
    }

    #navbar-ul {
        margin-top: 50px;
        margin-bottom: 0px;
        border: 0px;
    }

        #navbar-ul > li {
            margin-bottom: 10px;
        }

    #login-banner-cntr {
        position: relative;
        min-height: 300px;
    }

    #msgFrame {
        left: 10px;
        right: 10px;
        width: 90%;
        margin: auto;
    }
}


@media (min-width: 992px) {
    #footer-navigation-div {
        flex-direction: row;
    }

    ul.footer-nav {
        flex-direction: row;
    }

        ul.footer-nav > li {
            margin-bottom: 0;
            min-width: fit-content;
        }

    #footer-branding {
        margin-left: auto;
    }

    #footer-terms {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -15px;
        margin-right: -15px;
    }

    #footer-branding-logo-link {
        justify-content: flex-end;
    }

    #footer-branding-media {
        justify-content: flex-end;
    }


    #navbar-navelements {
        opacity: 1 !important;
        height: max-content !important;
    }

    #header-navigation-toggle-btn {
        display: none;
    }

    #navbar-identity {
        top: 0px;
        right: 10px;
    }

    #navbar-ul {
        display: flex;
        flex-direction: row;
        margin-bottom: 0px;
        margin-top: 28px;
        margin-bottom: 20px;
        border: 0px;
    }

    #msgFrame {
        left: auto;
        right: auto;
    }
}

@media (min-width: 1200px) {
    #navbar-identity {
        top: 0px;
        right: 10px;
    }

    #navbar-ul {
        margin-top: 28px;
        margin-bottom: 12px;
        border: 0px;
    }

    #msgFrame {
        left: auto;
        right: 10px;
        width: 450px;
    }
}

@media print {
    footer {
        display: none;
    }
}

.mfa-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfa-modal-container {
    max-width: 420px;
    width: 100%;
    background: white;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.mfa-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.mfa-btn-outline,
.mfa-btn-primary {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid;
}

.mfa-btn-outline {
    background: #f8f9fa;
    color: #333;
    border-color: #ccc;
}

.mfa-btn-primary {
    background: #0061aa;
    color: #fff;
    border-color: #0061aa;
}

.mfa-banner {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1050;
    border-bottom: 1px solid #ddd;
}

/* Positioning for the overlay */
.mfa-btn {
    position: relative;
}

/* Hide the original label while overlay is shown (keeps button width) */ .mfa-btn-hidden {
    visibility: hidden;
}

/* Center the overlay over the button */ .mfa-btn .mfa-btn-overlay {
    position: absolute;
    inset: 0; /* top/right/bottom/left: 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* clicks are still blocked by disabled */
}

/* Optional fallback spinner if you don't use Bootstrap */ .mfa-spinner {
    width: 1rem;
    height: 1rem;
    border: .2rem solid rgba(255,255,255,.5);
    border-right-color: transparent;
    border-radius: 50%;
    animation: mfa-spin 1s linear infinite;
    display: inline-block;
}

@keyframes mfa-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   MOBILE HEADER + TOGGLE 
   ========================================================= */

@media (max-width: 768px) {

    /* 1) Let header grow (don?t force desktop height) */
    #main-header {
        height: auto !important;
        min-height: 56px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        align-items: flex-start !important;
    }

        /* 2) Keep logo + toggle on the same top row */
        #main-header #header .row {
            display: flex !important;
            flex-wrap: wrap !important; /* allows the menu to drop below */
            align-items: center !important;
        }

        /* Logo column */
        #main-header .tb-wrap {
            flex: 0 0 auto !important;
            width: auto !important;
        }

            /* Logo image sizing */
            #main-header .tb-wrap img,
            #main-header img.logo-image {
                height: 34px !important;
                max-height: 34px !important;
                width: auto !important;
                display: block !important;
            }

        /* Toggle container (#div-identity) pinned to the right */
        #main-header #div-identity {
            position: relative !important;
            margin-left: auto !important;
            display: flex !important;
            align-items: center !important;
        }

    /* 3) Force the hamburger button to be visible on mobile */
    #header-navigation-toggle-btn,
    .navbar-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 9999 !important;
    }

        /* Ensure the 3 bars show */
        #header-navigation-toggle-btn .icon-bar,
        .navbar-toggle .icon-bar {
            display: block !important;
        }

    /* 4) Make the collapsed menu become a full-width block UNDER the top row */
    #navbar {
        flex: 0 0 100% !important;
        width: 100% !important;
        order: 99 !important; /* pushes it below logo/toggle */
        float: none !important;
        clear: both !important;
        margin-top: 8px !important;
    }

        /* If any header wrappers have overflow/height constraints, remove them */
        #navbar,
        #navbar.navbar-collapse {
            max-height: none !important;
            overflow: visible !important;
        }

            /* 5) Bootstrap collapse display rules (supports BS3 .in and BS4/5 .show) */
            #navbar.collapse {
                display: none !important;
            }

                #https://url.us.m.mimecastprotect.com/s/AXMECQW2glFkqQVGgtxfVHGBgWU?domain=navbar.collapse.in,
                #navbar.collapse.show,
                #navbar.show {
                    display: block !important;
                }

            /* 6) Make nav items stack nicely */
            #navbar ul,
            #navbar .navbar-nav {
                display: flex !important;
                flex-direction: column !important;
                gap: 8px !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            #navbar li {
                list-style: none !important;
                width: 100% !important;
            }

            #navbar a {
                display: block !important;
                width: 100% !important;
                padding: 10px 12px !important;
            }
}


@media (max-width: 768px) {

    /* -------------------------------------------------
     1) Prevent clipping by parent containers
  -------------------------------------------------- */
    #main-header,
    #header,
    #header .row,
    #div-identity,
    .container-fluid {
        overflow: visible !important;
    }

    /* -------------------------------------------------
     2) FORCE toggle button to exist, be visible,
        clickable, and NOT clipped
  -------------------------------------------------- */
    #header-navigation-toggle-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important; /* avoids ALL layout issues */
        top: 12px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: #003087 !important; /* visible */
        border: 1px solid #ffffff !important;
        border-radius: 6px !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 2147483647 !important; /* above EVERYTHING */
    }

        /* -------------------------------------------------
     3) Hamburger icon bars
  -------------------------------------------------- */
        #header-navigation-toggle-btn .icon-bar {
            display: block !important;
            width: 22px !important;
            height: 2px !important;
            background-color: #ffffff !important;
            border-radius: 1px !important;
        }

            #header-navigation-toggle-btn .icon-bar + .icon-bar {
                margin-top: 4px !important;
            }

    /* -------------------------------------------------
     4) Navbar collapse behavior 
  -------------------------------------------------- */
    #navbar {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-top: 8px !important;
    }

        #navbar.collapse {
            display: none !important;
        }

    #https://url.us.m.mimecastprotect.com/s/PYdfCYEnqwhLZ7nDJc0fQHx3Uyd?domain=navbar.collapse.in {
        display: block !important;
    }

    /* -------------------------------------------------
     5) Vertical stacked menu items
  -------------------------------------------------- */
    #navbar ul,
    #navbar .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    #navbar li {
        list-style: none !important;
        width: 100% !important;
    }

    #navbar a {
        display: block !important;
        width: 100% !important;
        padding: 10px 12px !important;
    }
}