/* /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/Pages/Admin.razor.rz.scp.css */
/* Scoped CSS for the Reps table, not Tailwind: wwwroot/app.css is a committed generated file and
   tailwindcss.exe is per-machine, so a new utility class would render unstyled where the binary is
   missing. Palette hex values are copied from tailwind.config.js; keep them in sync. */

.reps-card[b-ly9xw2bfn4] {
    --dxp-blue: #005581;
    --dxp-charcoal: #474C56;
    --dxp-light: #E7E7E7;
    --dxp-metallic: #A7A9AC;

    margin-top: 2rem;
}

.reps-head[b-ly9xw2bfn4] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reps-sub[b-ly9xw2bfn4] {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--dxp-charcoal);
}

.reps-select[b-ly9xw2bfn4] {
    border: 1px solid var(--dxp-metallic);
    border-radius: 0.375rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--dxp-charcoal);
    background-color: #fff;
}

.reps-scroll[b-ly9xw2bfn4] {
    overflow-x: auto;
}

.reps[b-ly9xw2bfn4] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: var(--dxp-charcoal);
}

.reps th[b-ly9xw2bfn4] {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--dxp-light);
    white-space: nowrap;
}

.reps td[b-ly9xw2bfn4] {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--dxp-light);
    white-space: nowrap;
}

.reps .num[b-ly9xw2bfn4] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.reps tr.idle td[b-ly9xw2bfn4] {
    color: var(--dxp-metallic);
}

.tag[b-ly9xw2bfn4] {
    margin-left: 0.5rem;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dxp-blue);
    background-color: var(--dxp-light);
}

.reps-note[b-ly9xw2bfn4] {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--dxp-charcoal);
}
/* /Components/Pages/ExecReport.razor.rz.scp.css */
/* Scoped CSS, not Tailwind — see the note in MonthlyReport.razor. Palette hex values are copied
   from tailwind.config.js; keep them in sync. */

.report[b-8so76k1u92] {
    --dxp-blue: #005581;
    --dxp-cyan-text: #00718F;
    --dxp-metallic: #A7A9AC;
    --dxp-charcoal: #474C56;
    --dxp-light: #E7E7E7;
    --up: #15803D;
    --down: #B91C1C;

    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    color: var(--dxp-charcoal);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ---- masthead ---- */

.masthead[b-8so76k1u92] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--dxp-blue);
}

.logo[b-8so76k1u92] {
    height: 2.5rem;
    width: auto;
}

.masthead-text[b-8so76k1u92] {
    border-left: 1px solid var(--dxp-light);
    padding-left: 1rem;
}

.masthead-text h1[b-8so76k1u92] {
    margin: 0;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dxp-blue);
}

.masthead-text p[b-8so76k1u92] {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
}

.masthead-actions[b-8so76k1u92] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.masthead-actions select[b-8so76k1u92] {
    font: inherit;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--dxp-metallic);
    border-radius: 0.375rem;
    background: #fff;
    color: inherit;
}

.masthead-actions button[b-8so76k1u92] {
    font: inherit;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--dxp-blue);
    border-radius: 0.375rem;
    background: var(--dxp-blue);
    color: #fff;
    cursor: pointer;
}

.masthead-actions button:hover[b-8so76k1u92] {
    background: #00446A;
}

.masthead-actions a[b-8so76k1u92] {
    color: var(--dxp-cyan-text);
    text-decoration: none;
    font-weight: 500;
}

.masthead-actions a:hover[b-8so76k1u92] {
    text-decoration: underline;
}

/* ---- notices ---- */

.callout[b-8so76k1u92] {
    margin: 1.25rem 0 0;
    padding: 0.625rem 0.875rem;
    background: #F1F8FB;
    border-left: 3px solid var(--dxp-cyan-text);
    border-radius: 0 0.375rem 0.375rem 0;
}

.callout.warn[b-8so76k1u92] {
    background: #FEF6E7;
    border-left-color: #B45309;
}

.error[b-8so76k1u92] {
    margin-top: 1.5rem;
    color: var(--down);
}

.muted[b-8so76k1u92] {
    color: var(--dxp-metallic);
}

/* ---- headline numbers ---- */

.kpis[b-8so76k1u92] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.kpi[b-8so76k1u92] {
    padding: 0.875rem 1rem;
    border: 1px solid var(--dxp-light);
    border-radius: 0.5rem;
    background: #fff;
}

.kpi-label[b-8so76k1u92] {
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dxp-blue);
}

.kpi-value[b-8so76k1u92] {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--dxp-blue);
    margin-top: 0.125rem;
}

.kpi-delta[b-8so76k1u92] {
    font-size: 0.8125rem;
    font-weight: 500;
}

.kpi-delta.up[b-8so76k1u92] { color: var(--up); }
.kpi-delta.down[b-8so76k1u92] { color: var(--down); }
.kpi-delta.flat[b-8so76k1u92] { color: var(--dxp-metallic); }

.kpi-denominator[b-8so76k1u92],
.kpi-target[b-8so76k1u92] {
    font-size: 0.75rem;
    color: var(--dxp-charcoal);
}

.kpi-target[b-8so76k1u92] {
    color: var(--dxp-cyan-text);
    font-weight: 500;
}

/* ---- panels ---- */

.cols[b-8so76k1u92] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.panel[b-8so76k1u92] {
    border: 1px solid var(--dxp-light);
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
    break-inside: avoid;
}

.panel h2[b-8so76k1u92] {
    margin: 0;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dxp-blue);
}

.panel .sub[b-8so76k1u92] {
    margin: 0.125rem 0 0.625rem;
    font-size: 0.75rem;
    color: var(--dxp-charcoal);
}

.panel table[b-8so76k1u92] {
    width: 100%;
    border-collapse: collapse;
}

.panel td[b-8so76k1u92] {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--dxp-light);
    vertical-align: top;
}

.panel tr:last-child td[b-8so76k1u92] {
    border-bottom: 0;
}

.figure[b-8so76k1u92] {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.delta[b-8so76k1u92] {
    text-align: right;
    white-space: nowrap;
    width: 4.5rem;
    font-variant-numeric: tabular-nums;
}

.delta.up[b-8so76k1u92] { color: var(--up); }
.delta.down[b-8so76k1u92] { color: var(--down); }
.delta.flat[b-8so76k1u92] { color: var(--dxp-metallic); }

.model[b-8so76k1u92] {
    display: block;
    font-weight: 500;
}

.meta[b-8so76k1u92] {
    display: block;
    font-size: 0.75rem;
    color: var(--dxp-metallic);
}

.cols + .cols[b-8so76k1u92] {
    margin-top: 1.25rem;
}

.unit[b-8so76k1u92] {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--dxp-metallic);
}

.spacer[b-8so76k1u92] {
    height: 0.75rem;
}

/* ---- share bars ---- */

.bars td[b-8so76k1u92] {
    padding: 0.25rem 0;
    border-bottom: 0;
    vertical-align: middle;
}

.bar-label[b-8so76k1u92] {
    width: 34%;
    white-space: nowrap;
}

.bar-cell[b-8so76k1u92] {
    padding-right: 0.75rem !important;
}

.bar[b-8so76k1u92] {
    height: 0.5rem;
    border-radius: 999px;
    background: var(--dxp-light);
    overflow: hidden;
    /* Bars are backgrounds; without this, printing drops them. */
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.bar > span[b-8so76k1u92] {
    display: block;
    height: 100%;
    background: var(--dxp-blue);
}

/* ---- weekly trends ---- */

.section-title[b-8so76k1u92] {
    margin: 1.5rem 0 0.75rem;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dxp-blue);
}

.trend[b-8so76k1u92] {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.trend-axis[b-8so76k1u92] {
    stroke: var(--dxp-light);
    stroke-width: 1;
}

.trend-bar[b-8so76k1u92] {
    fill: var(--dxp-blue);
}

.trend-gap[b-8so76k1u92] {
    stroke: var(--dxp-metallic);
    stroke-width: 2;
    stroke-linecap: round;
}

.trend[b-8so76k1u92]  .trend-value {
    font-size: 9px;
    font-weight: 700;
    fill: var(--dxp-charcoal);
}

.trend[b-8so76k1u92]  .trend-label {
    font-size: 8px;
    fill: var(--dxp-charcoal);
}

.trend-note[b-8so76k1u92] {
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    color: var(--dxp-metallic);
}

/* ---- definitions ---- */

.definitions[b-8so76k1u92] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dxp-light);
    break-inside: avoid;
}

.definitions h2[b-8so76k1u92] {
    margin: 0 0 0.5rem;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dxp-blue);
}

.definitions dl[b-8so76k1u92] {
    margin: 0;
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.definitions dt[b-8so76k1u92] {
    font-weight: 700;
}

.definitions dd[b-8so76k1u92] {
    margin: 0;
}

.definitions code[b-8so76k1u92] {
    font-size: 0.6875rem;
    background: var(--dxp-light);
    padding: 0 0.25rem;
    border-radius: 0.1875rem;
}

.generated[b-8so76k1u92] {
    margin: 0.75rem 0 0;
    font-size: 0.6875rem;
    color: var(--dxp-metallic);
}

/* ---- narrow screens ---- */

@media (max-width: 720px) {
    .kpis[b-8so76k1u92] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols[b-8so76k1u92] { grid-template-columns: minmax(0, 1fr); }
    .definitions dl[b-8so76k1u92] { grid-template-columns: minmax(0, 1fr); }
    .definitions dd[b-8so76k1u92] { margin-bottom: 0.375rem; }
}

/* ---- print: this is the deliverable, so Ctrl+P has to look right ---- */

@media print {
    .report[b-8so76k1u92] {
        max-width: none;
        padding: 0;
        font-size: 9pt;
    }

    .no-print[b-8so76k1u92] { display: none !important; }

    .kpis[b-8so76k1u92] { gap: 0.5rem; margin: 0.75rem 0; }
    .kpi[b-8so76k1u92] { padding: 0.5rem; }
    .kpi-value[b-8so76k1u92] { font-size: 16pt; }
    .cols[b-8so76k1u92] { gap: 0.5rem; }
    .panel[b-8so76k1u92] { padding: 0.5rem; }

    /* Keep borders and the up/down colors when the browser drops backgrounds. */
    .kpi[b-8so76k1u92], .panel[b-8so76k1u92] { border-color: #999; }
    .section-title[b-8so76k1u92] { margin: 0.75rem 0 0.5rem; }
}
/* /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;
}
