/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-z6ucjuod7b] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-z6ucjuod7b] {
    flex: 1;
}

.sidebar[b-z6ucjuod7b] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-z6ucjuod7b] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-z6ucjuod7b]  a, .top-row[b-z6ucjuod7b]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-z6ucjuod7b]  a:hover, .top-row[b-z6ucjuod7b]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-z6ucjuod7b]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-z6ucjuod7b] {
        justify-content: space-between;
    }

    .top-row[b-z6ucjuod7b]  a, .top-row[b-z6ucjuod7b]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-z6ucjuod7b] {
        flex-direction: row;
    }

    .sidebar[b-z6ucjuod7b] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-z6ucjuod7b] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-z6ucjuod7b]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-z6ucjuod7b], article[b-z6ucjuod7b] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-z6ucjuod7b] {
    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-z6ucjuod7b] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-lfs0kyu8x5],
.components-reconnect-repeated-attempt-visible[b-lfs0kyu8x5],
.components-reconnect-failed-visible[b-lfs0kyu8x5],
.components-pause-visible[b-lfs0kyu8x5],
.components-resume-failed-visible[b-lfs0kyu8x5],
.components-rejoining-animation[b-lfs0kyu8x5] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-retrying[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-failed[b-lfs0kyu8x5],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-lfs0kyu8x5] {
    display: block;
}


#components-reconnect-modal[b-lfs0kyu8x5] {
    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-lfs0kyu8x5 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-lfs0kyu8x5 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-lfs0kyu8x5 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-lfs0kyu8x5]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-lfs0kyu8x5 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-lfs0kyu8x5 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-lfs0kyu8x5 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-lfs0kyu8x5 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-lfs0kyu8x5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-lfs0kyu8x5] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-lfs0kyu8x5] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-lfs0kyu8x5] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-lfs0kyu8x5] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-lfs0kyu8x5] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-lfs0kyu8x5] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-lfs0kyu8x5 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-lfs0kyu8x5] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-lfs0kyu8x5 {
    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/Shared/AiChatWindow.razor.rz.scp.css */
/* Scoped styles for the AI assistant panel.
   Deliberately plain CSS rather than Tailwind utilities: this is the only component that needs
   styling the committed wwwroot/app.css doesn't already contain, and Blazor's CSS isolation
   compiles this file into DxpVacSelect.styles.css on every `dotnet build` — so the panel styles
   correctly without anyone having to install the 40 MB standalone Tailwind CLI.

   Palette values are copied from tailwind.config.js (DXP 2026 style guide); keep them in sync.
   ::deep is required for anything rendered through a MarkupString (the Markdown answers) — that
   HTML doesn't receive the scope attribute, so it can only be reached as a descendant. */

/* Declared on BOTH roots, not just .chat: the launcher is the collapsed state and renders as a
   sibling of the panel, not inside it. Custom properties only inherit downwards, so scoping them
   to .chat alone left var(--dxp-blue) undefined on the launcher — which makes background-color
   invalid at computed-value time and resolves it to transparent, i.e. a white icon on a white
   page that only appeared on hover (the hover rule uses a literal hex). */
.chat[b-fte57czkyj],
.chat-launcher[b-fte57czkyj] {
    --dxp-blue: #005581;
    --dxp-blue-hover: #004268;
    --dxp-cyan: #00A5DF;
    --dxp-cyan-text: #00718F;
    --dxp-metallic: #A7A9AC;
    --dxp-charcoal: #474C56;
    --dxp-light: #E7E7E7;
}

/* ---- Launcher ------------------------------------------------------------------------------ */

.chat-launcher[b-fte57czkyj] {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: 0;
    border-radius: 9999px;
    background-color: var(--dxp-blue);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .2), 0 4px 6px -4px rgba(0, 0, 0, .2);
    transition: background-color .15s, box-shadow .15s;
}

.chat-launcher:hover[b-fte57czkyj] {
    background-color: var(--dxp-blue-hover);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .25), 0 8px 10px -6px rgba(0, 0, 0, .25);
}

.chat-launcher:focus-visible[b-fte57czkyj] {
    outline: 2px solid var(--dxp-cyan-text);
    outline-offset: 2px;
}

.chat-launcher-label[b-fte57czkyj] {
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    /* "ASK VAC SELECT" now contains a space and would otherwise wrap inside the pill. */
    white-space: nowrap;
}

/* ---- Panel shell --------------------------------------------------------------------------- */

.chat[b-fte57czkyj] {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: var(--dxp-charcoal);
    font-size: .875rem;
    /* Layered elevation. The tight 1px ring is what actually makes the edge readable: the panel
       sits in the viewport's bottom-right corner, so a single wide, downward-offset shadow spills
       off-screen on the two sides that matter and reads as nothing against a white page. */
    box-shadow:
        0 0 0 1px rgba(71, 76, 86, .12),
        0 8px 16px -4px rgba(0, 0, 0, .18),
        0 24px 48px -12px rgba(0, 0, 0, .28);
}

@media (min-width: 640px) {
    .chat[b-fte57czkyj] {
        inset: auto 1.25rem 1.25rem auto;
        width: 26rem;
        height: 36rem;
        max-height: calc(100dvh - 3rem);
        /* Metallic, not dxp-light: the style guide designates it for borders/dividers, and it is
           the lightest value that still separates a white panel from a white page. */
        border: 1px solid var(--dxp-metallic);
        border-radius: .5rem;
    }
}

.chat-header[b-fte57czkyj] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem;
    border-bottom: 3px solid var(--dxp-blue);
}

.chat-title[b-fte57czkyj] {
    margin: 0;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: var(--dxp-blue);
}

.chat-subtitle[b-fte57czkyj] {
    margin: 0;
    font-size: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-header-actions[b-fte57czkyj] {
    display: flex;
    flex: 0 0 auto;
    gap: .25rem;
}

.chat-icon-btn[b-fte57czkyj] {
    display: inline-flex;
    padding: .5rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--dxp-charcoal);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.chat-icon-btn:hover:not(:disabled)[b-fte57czkyj] {
    background-color: var(--dxp-light);
    color: var(--dxp-blue);
}

.chat-icon-btn:disabled[b-fte57czkyj] {
    opacity: .4;
    cursor: default;
}

/* ---- Transcript --------------------------------------------------------------------------- */

/* min-height:0 lets this flex child actually shrink so it — not the page — scrolls. */
.chat-transcript[b-fte57czkyj] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.chat-intro[b-fte57czkyj] {
    border: 1px solid rgba(167, 169, 172, .35);
    border-radius: .5rem;
    background-color: rgba(231, 231, 231, .7);
    padding: .75rem;
}

.chat-suggestion[b-fte57czkyj] {
    display: block;
    width: 100%;
    text-align: left;
    padding: .5rem .75rem;
    border: 1px solid rgba(167, 169, 172, .5);
    border-radius: .5rem;
    background-color: #fff;
    color: var(--dxp-charcoal);
    font: inherit;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.chat-suggestion:hover[b-fte57czkyj] {
    border-color: var(--dxp-blue);
    color: var(--dxp-blue);
}

.chat-suggestions[b-fte57czkyj] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.chat-row[b-fte57czkyj] {
    display: flex;
}

.chat-row-user[b-fte57czkyj] {
    justify-content: flex-end;
}

.chat-row-assistant[b-fte57czkyj] {
    justify-content: flex-start;
}

.chat-bubble-user[b-fte57czkyj] {
    max-width: 85%;
    padding: .5rem .75rem;
    border-radius: .5rem .5rem .125rem .5rem;
    background-color: var(--dxp-blue);
    color: #fff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-answer[b-fte57czkyj] {
    min-width: 0;
    max-width: 92%;
}

.chat-bubble-assistant[b-fte57czkyj] {
    padding: .5rem .75rem;
    border: 1px solid rgba(167, 169, 172, .45);
    border-radius: .5rem .5rem .5rem .125rem;
    background-color: rgba(231, 231, 231, .7);
    line-height: 1.625;
    overflow-wrap: anywhere;
}

.chat-bubble-error[b-fte57czkyj] {
    padding: .5rem .75rem;
    border: 1px solid #fca5a5;
    border-radius: .5rem .5rem .5rem .125rem;
    background-color: #fef2f2;
    color: #991b1b;
}

.chat-streaming-text[b-fte57czkyj] {
    white-space: pre-wrap;
}

.chat-caret[b-fte57czkyj] {
    display: inline-block;
    width: .375rem;
    height: .875rem;
    margin-left: .125rem;
    vertical-align: text-bottom;
    background-color: var(--dxp-cyan);
    animation: chat-blink-b-fte57czkyj 1s steps(2, start) infinite;
}

@keyframes chat-blink-b-fte57czkyj {
    to { visibility: hidden; }
}

.chat-pending[b-fte57czkyj] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border: 1px solid rgba(167, 169, 172, .45);
    border-radius: .5rem .5rem .5rem .125rem;
    background-color: rgba(231, 231, 231, .7);
}

.chat-spinner[b-fte57czkyj] {
    color: var(--dxp-blue);
    animation: chat-spin-b-fte57czkyj 1s linear infinite;
}

@keyframes chat-spin-b-fte57czkyj {
    to { transform: rotate(360deg); }
}

/* Tool-usage chips shown above an answer. */
.chat-trace[b-fte57czkyj] {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-bottom: .375rem;
}

.chat-trace-chip[b-fte57czkyj] {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    padding: .125rem .5rem;
    border-radius: 9999px;
    background-color: var(--dxp-light);
    font-size: 11px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Outside-source lookups are tinted so provenance is legible at a glance, not just readable. */
.chat-trace-chip-web[b-fte57czkyj] {
    background-color: rgba(0, 165, 223, .14);
    color: var(--dxp-cyan-text);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 143, .25);
}

/* ---- Rendered Markdown (MarkupString — reachable only via ::deep) ------------------------- */

.chat-bubble-assistant[b-fte57czkyj]  p {
    margin: 0 0 .5rem;
}

.chat-bubble-assistant[b-fte57czkyj]  ul,
.chat-bubble-assistant[b-fte57czkyj]  ol {
    margin: 0 0 .5rem;
    padding-left: 1.25rem;
}

.chat-bubble-assistant[b-fte57czkyj]  li + li {
    margin-top: .25rem;
}

.chat-bubble-assistant[b-fte57czkyj]  > :last-child {
    margin-bottom: 0;
}

.chat-bubble-assistant[b-fte57czkyj]  strong {
    font-weight: 600;
}

.chat-bubble-assistant[b-fte57czkyj]  a {
    color: var(--dxp-cyan-text);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(0, 165, 223, .5);
}

.chat-bubble-assistant[b-fte57czkyj]  a:hover {
    color: var(--dxp-blue);
}

.chat-bubble-assistant[b-fte57czkyj]  code {
    padding: .0625rem .25rem;
    border-radius: .25rem;
    background-color: var(--dxp-light);
    font-size: .85em;
}

/* ---- Composer ----------------------------------------------------------------------------- */

.chat-composer[b-fte57czkyj] {
    flex: 0 0 auto;
    padding: .75rem;
    border-top: 1px solid rgba(167, 169, 172, .4);
}

.chat-composer-row[b-fte57czkyj] {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
}

.chat-input[b-fte57czkyj] {
    flex: 1 1 auto;
    min-width: 0;
    max-height: 8rem;
    resize: none;
    padding: .5rem .75rem;
    border: 1px solid rgba(167, 169, 172, .6);
    border-radius: .5rem;
    color: var(--dxp-charcoal);
    font: inherit;
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

.chat-input[b-fte57czkyj]::placeholder {
    color: var(--dxp-metallic);
}

.chat-input:focus[b-fte57czkyj] {
    outline: 2px solid var(--dxp-cyan-text);
    outline-offset: -1px;
    border-color: transparent;
}

.chat-input:disabled[b-fte57czkyj] {
    background-color: rgba(231, 231, 231, .5);
}

.chat-send[b-fte57czkyj],
.chat-stop[b-fte57czkyj] {
    flex: 0 0 auto;
    display: inline-flex;
    padding: .625rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: background-color .15s;
}

.chat-send[b-fte57czkyj] {
    border: 0;
    background-color: var(--dxp-blue);
    color: #fff;
}

.chat-send:hover:not(:disabled)[b-fte57czkyj] {
    background-color: var(--dxp-blue-hover);
}

.chat-send:disabled[b-fte57czkyj] {
    opacity: .4;
    cursor: not-allowed;
}

.chat-stop[b-fte57czkyj] {
    border: 2px solid var(--dxp-blue);
    background-color: #fff;
    color: var(--dxp-blue);
}

.chat-stop:hover[b-fte57czkyj] {
    background-color: var(--dxp-light);
}

.chat-disclaimer[b-fte57czkyj] {
    margin: .375rem 0 0;
    font-size: 11px;
    color: var(--dxp-metallic);
}

.chat-setup[b-fte57czkyj] {
    border: 1px solid #fcd34d;
    border-radius: .5rem;
    background-color: #fffbeb;
    padding: .75rem;
    color: #78350f;
}

.chat-setup p[b-fte57czkyj] {
    margin: 0 0 .25rem;
}

.chat-setup code[b-fte57czkyj] {
    display: block;
    margin-top: .5rem;
    font-size: .75rem;
    overflow-wrap: anywhere;
}
