@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-po2avdtpc9] {
    position: relative;
    display: flex;
    flex-direction: row;
}

main[b-po2avdtpc9] {
    flex: 1;
}

/* Sidebar must always be visible at full width regardless of browser size */
.sidebar[b-po2avdtpc9] {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    top: 60px !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: calc(100vh - 60px) !important;
    background: #ffffff !important;
    border-right: 1px solid #e5e5e5 !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 24px 0 !important;
    flex-shrink: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.top-row[b-po2avdtpc9] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-po2avdtpc9]  a, .top-row[b-po2avdtpc9]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-po2avdtpc9]  a:hover, .top-row[b-po2avdtpc9]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-po2avdtpc9]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-po2avdtpc9] {
        justify-content: space-between;
    }

    .top-row[b-po2avdtpc9]  a, .top-row[b-po2avdtpc9]  .btn-link {
        margin-left: 0;
    }
}

/* Sidebar is always visible - styles moved to MainLayout.razor inline styles */

.top-row[b-po2avdtpc9] {
    position: sticky;
    top: 0;
    z-index: 1;
}

.top-row.auth[b-po2avdtpc9]  a:first-child {
    flex: 1;
    text-align: right;
    width: 0;
}

.top-row[b-po2avdtpc9], article[b-po2avdtpc9] {
    padding-left: 2rem !important;
    padding-right: 1.5rem !important;
}

#blazor-error-ui[b-po2avdtpc9] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-po2avdtpc9] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ut8y77xs3o] {
    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-ut8y77xs3o] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-ut8y77xs3o] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ut8y77xs3o] {
    font-size: 1.1rem;
}

.bi[b-ut8y77xs3o] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-nav-menu[b-ut8y77xs3o] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' 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-ut8y77xs3o] {
    font-size: 0.9rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

    .nav-item:first-of-type[b-ut8y77xs3o] {
        padding-top: 0;
    }

    .nav-item:last-of-type[b-ut8y77xs3o] {
        padding-bottom: 0;
    }

    .nav-item[b-ut8y77xs3o]  .nav-link {
        color: #000000;
        background: none;
        border: none;
        border-left: 4px solid transparent;
        border-radius: 0;
        height: auto;
        display: flex;
        align-items: center;
        width: 100%;
        padding: 10px 24px;
        margin: 0;
    }

.nav-item[b-ut8y77xs3o]  a.active {
    background-color: #f0f0f0;
    color: #000000;
    border-left-color: #000000;
    font-weight: 500;
}

.nav-item[b-ut8y77xs3o]  .nav-link:hover {
    background-color: #f7f7f7;
    color: #000000;
}

/* Nav scrollable is always visible - no responsive hiding */
.nav-scrollable[b-ut8y77xs3o] {
    display: block !important;
}

/* Settings section styles */
.settings-section[b-ut8y77xs3o] {
    /* Ensure same spacing as other nav items */
}

.settings-toggle[b-ut8y77xs3o] {
    cursor: pointer;
    color: #000000;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
    padding: 0;
    margin: 0;
}

    .settings-toggle .chevron-icon[b-ut8y77xs3o] {
        margin-right: 0.25rem;
        width: 0.75rem;
        flex-shrink: 0;
    }

    .settings-toggle .bi-gear[b-ut8y77xs3o] {
        margin-right: 0.75rem;
    }

    .settings-toggle:hover[b-ut8y77xs3o] {
        background-color: #f7f7f7;
        color: #000000;
    }

/* Settings submenu styles */
.nav-submenu[b-ut8y77xs3o] {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

    .nav-submenu .nav-link[b-ut8y77xs3o] {
        color: #000000;
        background: none;
        border: none;
        border-radius: 4px;
        height: 2.5rem;
        display: flex;
        align-items: center;
        line-height: 2.5rem;
        width: 100%;
        font-size: 0.85rem;
        padding-left: 3rem !important;
    }

    .nav-submenu .nav-link:hover[b-ut8y77xs3o] {
        background-color: #f7f7f7;
        color: #000000;
    }

    .nav-submenu .nav-link.active[b-ut8y77xs3o] {
        background-color: #f0f0f0;
        color: #000000;
    }

/* Hide navbar toggler - sidebar is always visible */
.navbar-toggler[b-ut8y77xs3o] {
    display: none !important;
}

/* Sidebar navigation is always visible and scrollable */
.nav-scrollable[b-ut8y77xs3o] {
    display: block !important;
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-5ol2sbf2dn],
.components-reconnect-repeated-attempt-visible[b-5ol2sbf2dn],
.components-reconnect-failed-visible[b-5ol2sbf2dn],
.components-pause-visible[b-5ol2sbf2dn],
.components-resume-failed-visible[b-5ol2sbf2dn],
.components-rejoining-animation[b-5ol2sbf2dn] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-retrying[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-failed[b-5ol2sbf2dn],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-5ol2sbf2dn] {
    display: block;
}


#components-reconnect-modal[b-5ol2sbf2dn] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-5ol2sbf2dn 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-5ol2sbf2dn 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-5ol2sbf2dn 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-5ol2sbf2dn]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-5ol2sbf2dn 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-5ol2sbf2dn {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-5ol2sbf2dn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-5ol2sbf2dn {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-5ol2sbf2dn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-5ol2sbf2dn] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-5ol2sbf2dn] {
    border: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-5ol2sbf2dn] {
        background-color: var(--color-primary-hover);
    }

    #components-reconnect-modal button:active[b-5ol2sbf2dn] {
        background-color: var(--color-primary);
    }

.components-rejoining-animation[b-5ol2sbf2dn] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-5ol2sbf2dn] {
        position: absolute;
        border: 3px solid var(--color-primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-5ol2sbf2dn 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-5ol2sbf2dn] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-5ol2sbf2dn {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Activate.razor.rz.scp.css */
/* =========================================================================
   Activate.razor.css — scoped styles for the owner account-activation page.
   Mirrors Login.razor.css so the two pages look identical (shared chrome,
   different action). #2563eb == var(--color-primary).
   ========================================================================= */

[b-ezt3makf0u] .auth-layout {
    align-items: stretch;
}

.login-shell[b-ezt3makf0u] {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 960px) {
    .login-shell[b-ezt3makf0u] { grid-template-columns: 1fr; }
    .brand-pane[b-ezt3makf0u] { display: none !important; }
}

/* ========== Brand pane (left) ========== */
.brand-pane[b-ezt3makf0u] {
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #2d2d2d;
}
.brand-pane[b-ezt3makf0u]::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 70% at 30% 25%, rgba(37, 99, 235, 0.30) 0%, rgba(37, 99, 235, 0) 70%),
        radial-gradient(55% 60% at 75% 80%, rgba(2, 132, 199, 0.22) 0%, rgba(2, 132, 199, 0) 72%),
        linear-gradient(165deg, #2d2d2d 0%, #232323 100%);
    z-index: -2;
    animation: drift-b-ezt3makf0u 28s ease-in-out infinite alternate;
}
@keyframes drift-b-ezt3makf0u {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
}
.brand-pane[b-ezt3makf0u]::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
    z-index: -1;
    opacity: 0.5;
}
.brand-logo[b-ezt3makf0u] {
    position: relative;
    z-index: 1;
    height: 48px;
    width: auto;
    display: block;
    opacity: 0.92;
}
.brand-copyright[b-ezt3makf0u] {
    position: absolute;
    bottom: 32px;
    left: 48px;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

/* ========== Form pane (right) ========== */
.form-pane[b-ezt3makf0u] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #ffffff;
    position: relative;
}
.form-card[b-ezt3makf0u] {
    width: 100%;
    max-width: 400px;
}

.form-logo-mobile[b-ezt3makf0u] {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}
.form-logo-mobile img[b-ezt3makf0u] { height: 32px; width: auto; }
@media (max-width: 960px) {
    .form-logo-mobile[b-ezt3makf0u] { display: block; }
}

.form-header[b-ezt3makf0u] { margin-bottom: 28px; }
.form-header h2[b-ezt3makf0u] {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.15;
}
.form-sub[b-ezt3makf0u] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

/* Alerts */
.alert[b-ezt3makf0u] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    border: 1px solid;
}
.alert i[b-ezt3makf0u] { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.alert-danger[b-ezt3makf0u] { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-danger i[b-ezt3makf0u] { color: #dc2626; }
.alert-success[b-ezt3makf0u] { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-success i[b-ezt3makf0u] { color: #16a34a; }

/* Form fields */
.field[b-ezt3makf0u] { margin-bottom: 16px; }
.field label[b-ezt3makf0u] {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}
.input-wrap[b-ezt3makf0u] { position: relative; display: flex; align-items: center; }
.input-wrap > i.bi[b-ezt3makf0u] {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.15s;
    z-index: 1;
}
.input-wrap[b-ezt3makf0u]  .input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.4;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input-wrap[b-ezt3makf0u]  .input::placeholder { color: #9ca3af; }
.input-wrap[b-ezt3makf0u]  .input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}
.input-wrap[b-ezt3makf0u]  .input.has-trailing { padding-right: 44px; }
.input-wrap:focus-within > i.bi[b-ezt3makf0u] { color: #2563eb; }

.toggle-pw[b-ezt3makf0u] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.toggle-pw:hover[b-ezt3makf0u] { color: #111827; background: #f3f4f6; }
.toggle-pw .bi[b-ezt3makf0u] { font-size: 15px; pointer-events: none; }

/* Primary submit / link button */
.btn-primary[b-ezt3makf0u] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.3);
    transition: box-shadow 0.15s, transform 0.05s, filter 0.15s;
}
.btn-primary:hover:not(:disabled)[b-ezt3makf0u] {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    color: #fff;
}
.btn-primary:active:not(:disabled)[b-ezt3makf0u] { transform: translateY(1px); }
.btn-primary:disabled[b-ezt3makf0u] { opacity: 0.7; cursor: not-allowed; }
.btn-primary .bi[b-ezt3makf0u] { font-size: 16px; transition: transform 0.15s; }
.btn-primary:hover:not(:disabled) .bi[b-ezt3makf0u] { transform: translateX(3px); }

.spinner[b-ezt3makf0u] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin-b-ezt3makf0u 0.7s linear infinite;
}
@keyframes spin-b-ezt3makf0u { to { transform: rotate(360deg); } }

[b-ezt3makf0u] .validation-message {
    color: #dc2626;
    font-size: 12.5px;
    margin-top: 6px;
    display: block;
}
/* /Components/Pages/LetterReviewWithAITracking.razor.rz.scp.css */
/* ========================================
   Client Relationship Sidebar Styles
   Scoped to this component
   ======================================== */

/* Client Sidebar Container */
[b-yd2whf1x7u] .client-sidebar {
    width: 340px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
}

/* Sidebar Header */
[b-yd2whf1x7u] .client-sidebar .sidebar-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    flex-shrink: 0;
}

[b-yd2whf1x7u] .client-sidebar .client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[b-yd2whf1x7u] .client-sidebar .client-avatar span {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

[b-yd2whf1x7u] .client-sidebar .client-info-header {
    flex: 1;
    min-width: 0;
}

[b-yd2whf1x7u] .client-sidebar .client-info-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

[b-yd2whf1x7u] .client-sidebar .client-since {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

[b-yd2whf1x7u] .client-sidebar .relationship-health {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

[b-yd2whf1x7u] .client-sidebar .health-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

[b-yd2whf1x7u] .client-sidebar .health-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Quick Stats */
[b-yd2whf1x7u] .client-sidebar .quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

[b-yd2whf1x7u] .client-sidebar .quick-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-secondary);
}

[b-yd2whf1x7u] .client-sidebar .quick-stats .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

[b-yd2whf1x7u] .client-sidebar .quick-stats .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sidebar Sections Container */
[b-yd2whf1x7u] .client-sidebar .sidebar-sections {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Individual Section */
[b-yd2whf1x7u] .client-sidebar .sidebar-section {
    border-bottom: 1px solid #e2e8f0;
}

/* Section Header (clickable) */
[b-yd2whf1x7u] .client-sidebar .sidebar-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    background: white;
}

[b-yd2whf1x7u] .client-sidebar .sidebar-section .section-header:hover {
    background: var(--bg-secondary);
}

[b-yd2whf1x7u] .client-sidebar .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

[b-yd2whf1x7u] .client-sidebar .section-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

[b-yd2whf1x7u] .client-sidebar .section-title > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
    background: #f59e0b;
    margin-left: 4px;
}

[b-yd2whf1x7u] .client-sidebar .chevron {
    width: 16px;
    height: 16px;
    color: var(--text-placeholder);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

[b-yd2whf1x7u] .client-sidebar .sidebar-section.expanded .chevron {
    transform: rotate(180deg);
}

/* Section Content (hidden by default) */
[b-yd2whf1x7u] .client-sidebar .section-content {
    display: none;
    padding: 0 16px 16px;
}

[b-yd2whf1x7u] .client-sidebar .sidebar-section.expanded .section-content {
    display: block;
}

/* Payment Section Styles */
[b-yd2whf1x7u] .client-sidebar .payment-metric {
    margin-bottom: 10px;
}

[b-yd2whf1x7u] .client-sidebar .payment-metric .metric-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

[b-yd2whf1x7u] .client-sidebar .metric-bar {
    height: 6px;
    background: var(--border-primary);
    border-radius: 3px;
    overflow: hidden;
}

[b-yd2whf1x7u] .client-sidebar .metric-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 3px;
}

[b-yd2whf1x7u] .client-sidebar .metric-fill.success {
    background: #10b981;
}

[b-yd2whf1x7u] .client-sidebar .payment-metric .metric-value {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 2px;
}

[b-yd2whf1x7u] .client-sidebar .section-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

[b-yd2whf1x7u] .client-sidebar .payment-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

[b-yd2whf1x7u] .client-sidebar .payment-item:last-child {
    border-bottom: none;
}

[b-yd2whf1x7u] .client-sidebar .invoice-number {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .payment-date {
    font-size: 11px;
    color: var(--text-placeholder);
}

[b-yd2whf1x7u] .client-sidebar .payment-amount {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

[b-yd2whf1x7u] .client-sidebar .payment-timing {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

[b-yd2whf1x7u] .client-sidebar .payment-timing.on-time {
    background: #d1fae5;
    color: #065f46;
}

[b-yd2whf1x7u] .client-sidebar .payment-timing.late {
    background: #fee2e2;
    color: #991b1b;
}

[b-yd2whf1x7u] .client-sidebar .payment-timing.early {
    background: var(--color-primary-bg);
    color: #1e40af;
}

[b-yd2whf1x7u] .client-sidebar .outstanding-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-top: 12px;
}

[b-yd2whf1x7u] .client-sidebar .balance-label {
    font-size: 12px;
    color: var(--text-muted);
}

[b-yd2whf1x7u] .client-sidebar .balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

/* Rejected Invoices Styles */
[b-yd2whf1x7u] .client-sidebar .reason-bar-item {
    margin-bottom: 8px;
}

[b-yd2whf1x7u] .client-sidebar .reason-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

[b-yd2whf1x7u] .client-sidebar .reason-name {
    font-size: 11px;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .reason-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

[b-yd2whf1x7u] .client-sidebar .reason-bar {
    height: 4px;
    background: var(--border-primary);
    border-radius: 2px;
    overflow: hidden;
}

[b-yd2whf1x7u] .client-sidebar .reason-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 2px;
}

[b-yd2whf1x7u] .client-sidebar .rejected-item {
    padding: 10px;
    background: var(--color-warning-bg);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #f59e0b;
}

[b-yd2whf1x7u] .client-sidebar .rejected-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

[b-yd2whf1x7u] .client-sidebar .rejected-amount {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
}

[b-yd2whf1x7u] .client-sidebar .rejected-reason {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: #92400e;
    margin-bottom: 4px;
}

[b-yd2whf1x7u] .client-sidebar .rejected-reason svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

[b-yd2whf1x7u] .client-sidebar .rejected-date {
    font-size: 11px;
    color: var(--text-placeholder);
}

/* Work Types Styles */
[b-yd2whf1x7u] .client-sidebar .work-category {
    margin-bottom: 16px;
}

[b-yd2whf1x7u] .client-sidebar .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

[b-yd2whf1x7u] .client-sidebar .status-dot.completed {
    background: #10b981;
}

[b-yd2whf1x7u] .client-sidebar .status-dot.in-progress {
    background: #3b82f6;
}

[b-yd2whf1x7u] .client-sidebar .work-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 6px;
}

[b-yd2whf1x7u] .client-sidebar .work-type-item.active {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

[b-yd2whf1x7u] .client-sidebar .work-type-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .work-type-count {
    font-size: 10px;
    color: var(--text-placeholder);
}

[b-yd2whf1x7u] .client-sidebar .work-type-revenue {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

[b-yd2whf1x7u] .client-sidebar .wip-label {
    font-size: 10px;
    color: var(--text-muted);
}

[b-yd2whf1x7u] .client-sidebar .wip-amount {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
}

/* Budget & Rates Styles */
[b-yd2whf1x7u] .client-sidebar .rate-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

[b-yd2whf1x7u] .client-sidebar .rate-effective {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

[b-yd2whf1x7u] .client-sidebar .rate-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-primary);
}

[b-yd2whf1x7u] .client-sidebar .rate-row:last-child {
    border-bottom: none;
}

[b-yd2whf1x7u] .client-sidebar .rate-role {
    font-size: 12px;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .rate-amount {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

[b-yd2whf1x7u] .client-sidebar .budget-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

[b-yd2whf1x7u] .client-sidebar .budget-matter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

[b-yd2whf1x7u] .client-sidebar .matter-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .budget-year {
    font-size: 11px;
    color: var(--text-placeholder);
}

[b-yd2whf1x7u] .client-sidebar .budget-bar {
    height: 6px;
    background: var(--border-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

[b-yd2whf1x7u] .client-sidebar .budget-actual {
    height: 100%;
    background: #6366f1;
    border-radius: 3px;
}

[b-yd2whf1x7u] .client-sidebar .budget-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

[b-yd2whf1x7u] .client-sidebar .budget-labels .actual {
    font-weight: 600;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .budget-labels .budgeted {
    color: var(--text-placeholder);
}

[b-yd2whf1x7u] .client-sidebar .budget-variance {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
    display: inline-block;
}

[b-yd2whf1x7u] .client-sidebar .budget-variance.under {
    background: #d1fae5;
    color: #065f46;
}

[b-yd2whf1x7u] .client-sidebar .budget-variance.over {
    background: #fee2e2;
    color: #991b1b;
}

[b-yd2whf1x7u] .client-sidebar .rate-change-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

[b-yd2whf1x7u] .client-sidebar .rate-change-item .change-date {
    font-size: 11px;
    color: var(--text-placeholder);
    min-width: 60px;
}

[b-yd2whf1x7u] .client-sidebar .rate-change-item .change-detail {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

[b-yd2whf1x7u] .client-sidebar .rate-change-item .change-description {
    font-size: 12px;
    color: var(--text-secondary);
}

[b-yd2whf1x7u] .client-sidebar .rate-change-item .change-percent {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
}

/* Sidebar Footer */
[b-yd2whf1x7u] .client-sidebar .sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

[b-yd2whf1x7u] .client-sidebar .btn-view-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

[b-yd2whf1x7u] .client-sidebar .btn-view-full:hover {
    background: var(--bg-secondary);
    border-color: var(--text-faint);
}

[b-yd2whf1x7u] .client-sidebar .btn-view-full svg {
    width: 16px;
    height: 16px;
}

/* Scrollbar Styling */
[b-yd2whf1x7u] .client-sidebar .sidebar-sections::-webkit-scrollbar {
    width: 6px;
}

[b-yd2whf1x7u] .client-sidebar .sidebar-sections::-webkit-scrollbar-track {
    background: transparent;
}

[b-yd2whf1x7u] .client-sidebar .sidebar-sections::-webkit-scrollbar-thumb {
    background: var(--text-faint);
    border-radius: 3px;
}

/* ─── Revision history view ───────────────────────────────────────
   Palette: dark emerald green. Distinct from the yellow/amber used
   elsewhere for true read-only/signed states so users can immediately
   tell they're in "browsing history" mode rather than a locked letter. */

[b-yd2whf1x7u] .revision-readonly-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px 0;
    padding: 10px 14px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-left: 4px solid #065f46;
    border-radius: 8px;
    color: #064e3b;
    font-size: 13px;
    line-height: 1.4;
}

[b-yd2whf1x7u] .revision-readonly-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #a7f3d0;
    color: #065f46;
}

[b-yd2whf1x7u] .revision-readonly-banner-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

[b-yd2whf1x7u] .revision-readonly-banner-text strong {
    font-weight: 600;
    color: #064e3b;
}

[b-yd2whf1x7u] .revision-readonly-banner-meta {
    font-size: 12px;
    color: #065f46;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-yd2whf1x7u] .revision-readonly-banner-hint {
    font-size: 11px;
    color: #047857;
    font-style: italic;
}

[b-yd2whf1x7u] .revision-readonly-banner-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #065f46;
    border-radius: 6px;
    color: #064e3b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

[b-yd2whf1x7u] .revision-readonly-banner-action:hover {
    background: #ecfdf5;
}

[b-yd2whf1x7u] .document-wrapper.is-revision-view {
    position: relative;
}

[b-yd2whf1x7u] .document-wrapper.is-revision-view .document-paper {
    box-shadow: 0 0 0 2px #065f46, 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(rgba(209, 250, 229, 0.22), rgba(209, 250, 229, 0.22));
    transition: box-shadow 0.2s ease;
}

[b-yd2whf1x7u] .document-wrapper.is-revision-view::before {
    content: "HISTORY";
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 5;
    padding: 3px 10px;
    background: #065f46;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* =========================================================================
   Login.razor.css — scoped styles for the modernized login page
   Drop alongside Login.razor; Blazor scopes them automatically.
   ========================================================================= */

/* AuthLayout uses flex centering — override for our full-bleed split */
[b-w0aue3o70x] .auth-layout {
    align-items: stretch;
}

.login-shell[b-w0aue3o70x] {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 960px) {
    .login-shell[b-w0aue3o70x] { grid-template-columns: 1fr; }
    .brand-pane[b-w0aue3o70x] { display: none !important; }
}

/* ========== Brand pane (left) — minimal & clean ========== */
.brand-pane[b-w0aue3o70x] {
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #2d2d2d;
}

/* Soft blue aurora — calm, slow drift */
.brand-pane[b-w0aue3o70x]::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 70% at 30% 25%, rgba(37, 99, 235, 0.30) 0%, rgba(37, 99, 235, 0) 70%),
        radial-gradient(55% 60% at 75% 80%, rgba(2, 132, 199, 0.22) 0%, rgba(2, 132, 199, 0) 72%),
        linear-gradient(165deg, #2d2d2d 0%, #232323 100%);
    z-index: -2;
    animation: drift-b-w0aue3o70x 28s ease-in-out infinite alternate;
}

@keyframes drift-b-w0aue3o70x {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
}

/* Subtle dot grid, faded edges */
.brand-pane[b-w0aue3o70x]::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
    z-index: -1;
    opacity: 0.5;
}

.brand-logo[b-w0aue3o70x] {
    position: relative;
    z-index: 1;
    height: 48px;
    width: auto;
    display: block;
    opacity: 0.92;
}

.brand-copyright[b-w0aue3o70x] {
    position: absolute;
    bottom: 32px;
    left: 48px;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

/* ========== Form pane (right) ========== */
.form-pane[b-w0aue3o70x] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #ffffff;
    position: relative;
}

.form-card[b-w0aue3o70x] {
    width: 100%;
    max-width: 400px;
}

/* Mobile-only logo (brand pane is hidden) */
.form-logo-mobile[b-w0aue3o70x] {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}
.form-logo-mobile img[b-w0aue3o70x] {
    height: 32px;
    width: auto;
}
@media (max-width: 960px) {
    .form-logo-mobile[b-w0aue3o70x] { display: block; }
}

.form-header[b-w0aue3o70x] {
    margin-bottom: 28px;
}
.form-header h2[b-w0aue3o70x] {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.15;
}

/* Alerts */
.alert[b-w0aue3o70x] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    border: 1px solid;
}
.alert i[b-w0aue3o70x] {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}
.alert-warning[b-w0aue3o70x] {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
.alert-warning i[b-w0aue3o70x] { color: #d97706; }
.alert-danger[b-w0aue3o70x] {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.alert-danger i[b-w0aue3o70x] { color: #dc2626; }

/* SSO button */
.btn-sso[b-w0aue3o70x] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn-sso:hover[b-w0aue3o70x] {
    background: #f3f4f6;
    border-color: #6b7280;
    color: #111827;
    text-decoration: none;
}
.btn-sso:active[b-w0aue3o70x] { transform: translateY(1px); }

.ms-logo[b-w0aue3o70x] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 16px;
    height: 16px;
    gap: 1.5px;
}
.ms-logo span[b-w0aue3o70x] { display: block; }
.ms-logo span:nth-child(1)[b-w0aue3o70x] { background: #f25022; }
.ms-logo span:nth-child(2)[b-w0aue3o70x] { background: #7fba00; }
.ms-logo span:nth-child(3)[b-w0aue3o70x] { background: #00a4ef; }
.ms-logo span:nth-child(4)[b-w0aue3o70x] { background: #ffb900; }

/* Divider */
.divider[b-w0aue3o70x] {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 18px 0;
}
.divider[b-w0aue3o70x]::before, .divider[b-w0aue3o70x]::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Form fields */
.field[b-w0aue3o70x] { margin-bottom: 16px; }
.field label[b-w0aue3o70x] {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.input-wrap[b-w0aue3o70x] {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap > i.bi[b-w0aue3o70x] {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.15s;
    z-index: 1;
}

/* InputText renders a plain <input>; ::deep targets the rendered child */
.input-wrap[b-w0aue3o70x]  .input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.4;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input-wrap[b-w0aue3o70x]  .input::placeholder { color: #9ca3af; }
.input-wrap[b-w0aue3o70x]  .input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}
.input-wrap[b-w0aue3o70x]  .input.has-trailing { padding-right: 44px; }
.input-wrap:focus-within > i.bi[b-w0aue3o70x] { color: #2563eb; }

.toggle-pw[b-w0aue3o70x] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.toggle-pw:hover[b-w0aue3o70x] {
    color: #111827;
    background: #f3f4f6;
}
.toggle-pw .bi[b-w0aue3o70x] {
    font-size: 15px;
    pointer-events: none;
}

/* Remember + forgot row */
.row-between[b-w0aue3o70x] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 22px;
}
.check[b-w0aue3o70x] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.check input[b-w0aue3o70x] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}
.check input:checked[b-w0aue3o70x] {
    background: #2563eb;
    border-color: #2563eb;
}
.check input:checked[b-w0aue3o70x]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Primary submit */
.btn-primary[b-w0aue3o70x] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.3);
    transition: box-shadow 0.15s, transform 0.05s, filter 0.15s;
}
.btn-primary:hover:not(:disabled)[b-w0aue3o70x] {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.btn-primary:active:not(:disabled)[b-w0aue3o70x] { transform: translateY(1px); }
.btn-primary:disabled[b-w0aue3o70x] {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-primary .bi[b-w0aue3o70x] {
    font-size: 16px;
    transition: transform 0.15s;
}
.btn-primary:hover:not(:disabled) .bi[b-w0aue3o70x] { transform: translateX(3px); }

.spinner[b-w0aue3o70x] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin-b-w0aue3o70x 0.7s linear infinite;
}
@keyframes spin-b-w0aue3o70x { to { transform: rotate(360deg); } }

/* Validation messages from DataAnnotationsValidator */
[b-w0aue3o70x] .validation-message {
    color: #dc2626;
    font-size: 12.5px;
    margin-top: 6px;
    display: block;
}

.sso-only-note[b-w0aue3o70x] {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}
/* /Components/Shared/AppErrorBoundary.razor.rz.scp.css */
.app-error[b-fqvj2wqm18] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}

.app-error-card[b-fqvj2wqm18] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 440px;
    width: 100%;
    padding: 32px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.app-error-icon[b-fqvj2wqm18] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: var(--radius-full);
    background: var(--color-danger-bg);
    color: var(--color-danger);
    font-size: 26px;
}

.app-error-card h3[b-fqvj2wqm18] {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-error-card p[b-fqvj2wqm18] {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.app-error-card .btn i[b-fqvj2wqm18] {
    margin-right: 6px;
}
/* /Components/Shared/ConfirmModal.razor.rz.scp.css */
.confirm-backdrop[b-qk2u1q9t4h] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    /* Top layer — above the shared <Modal> (a confirm can pop over a form modal) and above any
       page's own overlays (Letter Review runs some up near z-index 100001). */
    z-index: 1000002;
    padding: 24px;
}

.confirm-card[b-qk2u1q9t4h] {
    width: 100%;
    max-width: 440px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 24px;
}

/* Header — coloured icon chip + title inline (no gradient band). */
.confirm-head[b-qk2u1q9t4h] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.confirm-icon[b-qk2u1q9t4h] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    font-size: 18px;
}

.confirm-icon.is-danger[b-qk2u1q9t4h]  { background: var(--color-danger-bg);  color: var(--color-danger); }
.confirm-icon.is-primary[b-qk2u1q9t4h] { background: var(--color-primary-bg); color: var(--color-primary); }
.confirm-icon.is-success[b-qk2u1q9t4h] { background: var(--color-success-bg); color: var(--color-success); }
.confirm-icon.is-warning[b-qk2u1q9t4h] { background: var(--color-warning-bg); color: var(--color-warning); }

.confirm-head h3[b-qk2u1q9t4h] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-message :deep(p)[b-qk2u1q9t4h] {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.confirm-warning[b-qk2u1q9t4h] {
    color: var(--color-danger) !important;
    font-size: 13px;
}

.confirm-error[b-qk2u1q9t4h] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--color-danger-bg-subtle);
    border: 1px solid var(--color-danger-border);
    color: var(--color-danger-dark);
    font-size: 13px;
    line-height: 1.4;
}

/* Footer — buttons bottom-right. */
.confirm-footer[b-qk2u1q9t4h] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.confirm-btn[b-qk2u1q9t4h] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.confirm-btn:disabled[b-qk2u1q9t4h] {
    opacity: 0.6;
    cursor: not-allowed;
}

.confirm-btn-cancel[b-qk2u1q9t4h] {
    background: var(--bg-primary);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

.confirm-btn-cancel:hover:not(:disabled)[b-qk2u1q9t4h] {
    background: var(--bg-secondary);
}

.confirm-btn-confirm[b-qk2u1q9t4h] {
    color: #fff;
}

.confirm-btn-confirm.is-danger[b-qk2u1q9t4h]  { background: var(--color-danger); }
.confirm-btn-confirm.is-danger:hover:not(:disabled)[b-qk2u1q9t4h]  { background: var(--color-danger-hover); }
.confirm-btn-confirm.is-primary[b-qk2u1q9t4h] { background: var(--color-primary); }
.confirm-btn-confirm.is-primary:hover:not(:disabled)[b-qk2u1q9t4h] { background: var(--color-primary-hover); }
.confirm-btn-confirm.is-success[b-qk2u1q9t4h] { background: var(--color-success); }
.confirm-btn-confirm.is-success:hover:not(:disabled)[b-qk2u1q9t4h] { background: var(--color-success-light); }
.confirm-btn-confirm.is-warning[b-qk2u1q9t4h] { background: var(--color-warning); }
.confirm-btn-confirm.is-warning:hover:not(:disabled)[b-qk2u1q9t4h] { background: var(--color-warning-hover); }
/* /Components/Shared/Modal.razor.rz.scp.css */
/* Unique `eng-modal-*` class names so the shared wrapper is fully isolated from any page's
   own global `.modal-*` rules during the incremental migration (#301).

   Design matches the GenerateLetterModal reference: a clean WHITE header (icon + dark title,
   gray-square close X) with a bottom border — not a gradient band. */

.eng-modal-backdrop[b-zsxpak15ic] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Top layer. A modal must sit above ALL page chrome — some pages (e.g. Letter Review) run
       their own overlays up around z-index 100001, so the shared modal deliberately clears that. */
    z-index: 1000000;
}

.eng-modal[b-zsxpak15ic] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: 550px;
    max-width: 90vw;
    max-height: 90vh;      /* single internal scroll — body handles its own overflow */
    overflow: hidden;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    z-index: 1000001;
}

/* Size variants */
.eng-modal.eng-modal-lg[b-zsxpak15ic] { width: 720px; }
.eng-modal.eng-modal-xl[b-zsxpak15ic] { width: 900px; }
.eng-modal.eng-modal-confirm[b-zsxpak15ic] { width: 440px; }

/* Header — white band with a bottom border. Icon + title left, optional pills, close X right. */
.eng-modal-header[b-zsxpak15ic] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.eng-modal-title[b-zsxpak15ic] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.eng-modal-title h2[b-zsxpak15ic] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eng-modal-title > i[b-zsxpak15ic] {
    font-size: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.eng-modal-close[b-zsxpak15ic] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.eng-modal-close:hover:not(:disabled)[b-zsxpak15ic] {
    background: var(--border-primary);
    color: var(--text-secondary);
}

.eng-modal-close:disabled[b-zsxpak15ic] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Body — flexes and scrolls; the modal itself never shows a second scrollbar. */
.eng-modal-body[b-zsxpak15ic] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-primary);
}

/* Footer — actions grouped bottom-right, on a subtle top border. */
.eng-modal-footer[b-zsxpak15ic] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-primary);
    flex-shrink: 0;
}
