@import '_content/Blazored.Modal/Blazored.Modal.bundle.scp.css';
@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-o224vjc300] {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
}

main[b-o224vjc300] { flex: 1 1 auto; }

.sidebar[b-o224vjc300] {
    background-image: linear-gradient(180deg, white 10%, #547a90 70%);
    transition: width 200ms ease, margin-left 200ms ease;
    overflow: hidden;
}

.header1[b-o224vjc300] {
    height: 125px;
    margin: 0;
    padding-bottom: 1em;
    background: #fff url(/Images/bannerfiller2.jpg) repeat-x;
    color: #000;
}

.top-row[b-o224vjc300] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-o224vjc300]  a, .top-row[b-o224vjc300]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-o224vjc300]  a:hover, .top-row[b-o224vjc300]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-o224vjc300]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-o224vjc300] {
        justify-content: space-between;
    }

    .top-row[b-o224vjc300]  a, .top-row[b-o224vjc300]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-o224vjc300] {
        flex-direction: row;
    }

    .sidebar[b-o224vjc300] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex: 0 0 250px;
    }

    /* When not collapsed, force the sidebar fully visible (clears any lingering transforms) */
    .page:not(.collapsed) .sidebar[b-o224vjc300] {
        transform: none !important;
        margin-left: 0 !important;
        width: 250px !important;
        flex-basis: 250px !important;
    }

    /* Also collapse when sidebar has direct flag class */
    .sidebar.is-collapsed[b-o224vjc300] {
        width: 0;
        transform: translateX(-250px);
        margin-left: 0;
        flex-basis: 0;
    }

    /* Collapsed state hides the sidebar to the left and frees space */
    .page.collapsed .sidebar[b-o224vjc300] {
        width: 0;
        transform: translateX(-250px);
        margin-left: 0; /* keep layout stable */
        flex-basis: 0;
    }

    .page.collapsed main[b-o224vjc300] {
        width: 100%;
    }

    /* When hovering the left edge (in SidebarHost), reveal the sidebar and reserve space */
    :global(.page.collapsed) .sidebar-edge:hover + .sidebar[b-o224vjc300] {
        width: 250px !important;
        margin-left: 0 !important;
        transform: none !important;
        flex-basis: 250px !important;
    }
    :global(.page.collapsed) .sidebar-edge:hover ~ main[b-o224vjc300] {
        margin-left: 0 !important;
    }

    /* Also when JS adds hover-open to .page, ensure main does not overlap */
    :global(.page.collapsed.hover-open) main[b-o224vjc300] {
        margin-left: 0 !important;
    }

    /* Ensure main never drifts left when sidebar collapses via transform */
    .page.collapsed main[b-o224vjc300] { margin-left: 0 !important; }

    .top-row[b-o224vjc300] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-o224vjc300]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-o224vjc300], article[b-o224vjc300] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-o224vjc300] {
    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[b-o224vjc300] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Controls */
.layout-controls[b-o224vjc300] {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .5rem 1rem;
}

.layout-controls .sidebar-toggle[b-o224vjc300],
.layout-controls .sidebar-pin[b-o224vjc300] {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #003366;
    padding: .25rem .75rem;
    cursor: pointer;
}

.layout-controls .sidebar-toggle:hover[b-o224vjc300],
.layout-controls .sidebar-pin:hover[b-o224vjc300] { background: #f0f6ff; }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ox7w9a550g] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-ox7w9a550g] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-ox7w9a550g] {
    height: 6rem;
    background: transparent; /* Let sidebar gradient show through for seamless blend */
    border-bottom: none;
    display: flex;
    align-items: center;
}

.navbar-brand[b-ox7w9a550g] {
    font-size: 1.1rem;
}

.bi[b-ox7w9a550g] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='midnightblue' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-ox7w9a550g] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-ox7w9a550g] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ox7w9a550g] {
        padding-bottom: 1rem;
    }

    .nav-item[b-ox7w9a550g]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-ox7w9a550g]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ox7w9a550g]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-ox7w9a550g] { display: block; }
/* Offset content by header height */
.nav-scrollable[b-ox7w9a550g] { padding-top: 6rem; }

@media (min-width: 641px) {
    .navbar-toggler[b-ox7w9a550g] { display: none !important; }

    .nav-scrollable[b-ox7w9a550g] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* When the page is collapsed, make inner nav non-interactive so clicks go through */
:global(.page.collapsed) .nav-scrollable[b-ox7w9a550g] {
    pointer-events: none;
}

/* Re-enable interactions while the sidebar is opened via hover */
:global(.page.collapsed.hover-open) .nav-scrollable[b-ox7w9a550g] {
    pointer-events: auto;
}

/* Icon buttons on the Nav bar (pin/unpin and hide/show) */
.nav-icons[b-ox7w9a550g] {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.icon-btn[b-ox7w9a550g] {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    cursor: pointer;
}

.icon-btn:hover[b-ox7w9a550g] { background-color: #f0f6ff; }

/* collapse/expand icons (chevrons) */
.icon-btn.collapse.expanded[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='midnightblue' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
}
.icon-btn.collapse.collapsed[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='midnightblue' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

/* pin/unpin icons */
.icon-btn.pin.pinned[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='midnightblue'%3E%3Cpath d='M16 3l5 5-4 4 3 7-7-3-4 4-5-5 4-4-3-7 7 3 4-4z'/%3E%3C/svg%3E");
}
.icon-btn.pin.unpinned[b-ox7w9a550g] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='midnightblue' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3l5 5-4 4 3 7-7-3-4 4-5-5 4-4-3-7 7 3 4-4z'/%3E%3C/svg%3E");
}
/* /Components/Layout/SidebarHost.razor.rz.scp.css */
@media (min-width: 641px) {
    .sidebar-edge[b-adnew0iqfs] {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 10px; /* easier to hit */
        z-index: 9999; /* above all */
        cursor: default; /* avoid window-resize illusion */
        background: rgba(84, 122, 144, 0.05); /* temp: faint, helps testing */
    }

    .sidebar[b-adnew0iqfs] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex: 0 0 250px;
        background-image: linear-gradient(180deg, white 10%, #547a90 70%);
        transition: width 200ms ease, margin-left 200ms ease;
        overflow: hidden;
        z-index: 10000; /* ensure above content */
    }

/* When the page is normal (not collapsed), guarantee the panel is visible */
:global(.page.pinned) .sidebar[b-adnew0iqfs],
:global(.page.unpinned) .sidebar[b-adnew0iqfs] {
    transform: none !important;
    margin-left: 0 !important;
    width: 250px !important;
    flex-basis: 250px !important;
}

/* Ensure the header content renders above the gradient but stays transparent */
.top-row[b-adnew0iqfs] { z-index: 2; position: relative; }

    .sidebar.is-collapsed[b-adnew0iqfs] {
        width: 0;
        /* use transform to hide without affecting layout */
        transform: translateX(-250px);
        margin-left: 0;
        flex-basis: 0;
    }

    /* When the root page has hover-open (set by JS), expand the sidebar */
    :global(.page.collapsed.hover-open) .sidebar[b-adnew0iqfs],
    .sidebar.hover-open[b-adnew0iqfs] {
        width: 250px !important;
        margin-left: 0 !important;
        transform: none !important;
        flex-basis: 250px !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        z-index: 10000 !important;
    }
}
/* /Components/Pages/Consumer/Relationships.razor.rz.scp.css */


[b-1jp3n7btuk] .quickgrid[theme=corporate] {
    font-family: 'Times New Roman', serif;
    color: black;
    width:100%;
    border:none;
}

    [b-1jp3n7btuk] .quickgrid[theme=corporate] .col-title {
        gap: 0.4rem; /* Separate the sort indicator from title text */
        font-weight: bold;
        /*text-transform: uppercase;*/
    }

    [b-1jp3n7btuk] .quickgrid[theme=corporate] .sort-indicator {
        color: blue;
    }

    [b-1jp3n7btuk] .quickgrid[theme=corporate] tr:nth-child(odd), tr:nth-child(odd) td[b-1jp3n7btuk] {
        background-color: #20485f;
        font-size: 16px;
        color: white;
        font-family: Arial;
        font-weight: 500;
        /*border: thick;
        border-color: #547a90;*/
    }
    [b-1jp3n7btuk] .quickgrid[theme=corporate] button.col-title:hover, [b-1jp3n7btuk] .quickgrid[theme=corporate] .col-options-button:hover {
        background-color: blanchedalmond;
    }

    [b-1jp3n7btuk] .quickgrid[theme=corporate] button.col-title:active, [b-1jp3n7btuk] .quickgrid[theme=corporate] .col-options-button:active {
        background-color: blue;
    }
/* /Helpers/ToggleSwitch.razor.rz.scp.css */
input[b-6rnq6nr7nf]{
    position: relative;
    height: 30px;
    width: 60px;
    -webkit-appearance: none;
    background: red;
    outline:none;
    border-radius:15px;
}

input[b-6rnq6nr7nf]:before {
    cursor: pointer;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    transform: scale(0.85);
    border-radius: 50%;
    background: white;
    transition: .5s;
}

    input:checked[b-6rnq6nr7nf]::before {
        left: 30px;
        background: blue;
    }
