/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-86wmfk5qco] {
    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-86wmfk5qco] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-r9a5n3orie],
.components-reconnect-repeated-attempt-visible[b-r9a5n3orie],
.components-reconnect-failed-visible[b-r9a5n3orie],
.components-pause-visible[b-r9a5n3orie],
.components-resume-failed-visible[b-r9a5n3orie],
.components-rejoining-animation[b-r9a5n3orie] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-retrying[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-failed[b-r9a5n3orie],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-r9a5n3orie] {
    display: block;
}


#components-reconnect-modal[b-r9a5n3orie] {
    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-r9a5n3orie 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-r9a5n3orie 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-r9a5n3orie 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-r9a5n3orie]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-r9a5n3orie 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-r9a5n3orie {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-r9a5n3orie {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-r9a5n3orie {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-r9a5n3orie] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-r9a5n3orie] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-r9a5n3orie] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-r9a5n3orie] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-r9a5n3orie] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-r9a5n3orie] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-r9a5n3orie] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-r9a5n3orie 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-r9a5n3orie] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-r9a5n3orie {
    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/Home.razor.rz.scp.css */
/* ERP.IA - workspace da tela "Pergunta": sidebar esquerda (Marca + Atalhos +
   Historico) + Chat (direita) - tema dark verde-escuro/laranja (redesign
   "Workspace SCC.IA", ver Claude Design). Paineis internos sempre numa
   variacao proxima da mesma familia de cor, nunca um tom totalmente
   diferente - so o gradiente laranja (--ia-accent) quebra a paleta, como
   destaque de acao. */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.ia-workspace[b-tmnihcuimd] {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    font-family: 'Manrope', system-ui, sans-serif;

    /* paleta - custom properties herdam via DOM real, entao valem tambem
       dentro dos ::deep dos componentes filhos (AtalhoBox, ChatThread, etc). */
    --ia-bg-sidebar: #12302C;
    --ia-bg-chat: #0E2723;
    --ia-bg-elevado: #16403A;
    --ia-bg-toolbar: #12302C;
    --ia-borda-sutil: rgba(255, 255, 255, 0.06);
    --ia-borda: rgba(255, 255, 255, 0.10);
    --ia-borda-forte: rgba(255, 255, 255, 0.18);
    --ia-accent: linear-gradient(135deg, #E8842B, #E4571F);
    --ia-accent-solido: #E8842B;
    --ia-accent-texto: #F0A25E;
    --ia-texto: #EAF2EF;
    --ia-texto-secundario: #DCE7E3;
    --ia-texto-mudo: #8FA5A0;
    --ia-texto-mudo-2: #7E938E;
}

.ia-sidebar[b-tmnihcuimd] {
    flex: 0 0 26%;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--ia-bg-sidebar);
}

/* Botao "hamburguer" que abre/fecha o menu (sidebar) no celular - so aparece
   abaixo do breakpoint mobile (ver media query no fim do arquivo). No
   desktop a sidebar fica sempre visivel do lado, entao o botao nem existe
   visualmente. */
.ia-menu-mobile-toggle[b-tmnihcuimd] {
    display: none;
}

.ia-menu-mobile-fundo[b-tmnihcuimd] {
    display: none;
}

/* Menu mobile: em telas estreitas a sidebar (Marca + Atalhos + Historico) nao
   cabe do lado do chat - vira um painel que abre/fecha a partir do topo,
   sobrepondo o chat, acionado pelo botao .ia-menu-mobile-toggle. */
@media (max-width: 860px) {
    .ia-workspace[b-tmnihcuimd] {
        position: relative;
    }

    .ia-menu-mobile-toggle[b-tmnihcuimd] {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.6rem;
        left: 0.6rem;
        z-index: 30;
        width: 2.3rem;
        height: 2.3rem;
        border-radius: 8px;
        border: 1px solid var(--ia-borda);
        background: var(--ia-bg-elevado);
        color: var(--ia-texto);
        cursor: pointer;
        font-size: 1.1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    }

    .ia-menu-mobile-fundo[b-tmnihcuimd] {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 15;
        background: rgba(0, 0, 0, 0.5);
    }

    .ia-sidebar[b-tmnihcuimd] {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 20;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .ia-sidebar.ia-sidebar-mobile-aberta[b-tmnihcuimd] {
        max-height: 80vh;
        overflow-y: auto;
    }

    .ia-splitter-v[b-tmnihcuimd], .ia-splitter-h[b-tmnihcuimd] {
        display: none;
    }

    .ia-chat[b-tmnihcuimd] {
        padding-top: 3.4rem;
    }

    /* Marca (logo + nome da empresa) do PromptBox sai da linha do campo de
       pergunta (que fica apertada no celular) e vai pro lado do botao de
       menu, no topo. Absoluto relativo ao .ia-workspace (position:relative
       acima) - funciona mesmo o DOM real estando dentro do ChatThread/
       PromptBox, bem mais abaixo na arvore. */
    [b-tmnihcuimd] .prompt-empresa {
        position: absolute;
        top: 0.7rem;
        left: 3.2rem;
        z-index: 30;
        margin: 0;
    }

    /* Com o menu aberto, a marca do PromptBox (acima) fica bem em cima da
       marca da propria sidebar (ia-marca) que acabou de aparecer - some
       enquanto o menu estiver aberto pra nao "fantasmar" duas marcas juntas. */
    .ia-workspace-menu-aberto[b-tmnihcuimd]  .prompt-empresa {
        display: none;
    }
}

/* Marca (logo + nome da empresa + nome do sistema) - topo da sidebar */
.ia-marca[b-tmnihcuimd] {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--ia-borda-sutil);
    flex: 0 0 auto;
}

.ia-marca-logo[b-tmnihcuimd] {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 10px;
    background: var(--ia-bg-chat);
    border: 1px solid rgba(232, 132, 43, 0.35);
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

.ia-marca-nome[b-tmnihcuimd] {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--ia-texto);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ia-marca-sub[b-tmnihcuimd] {
    font-size: 11px;
    color: var(--ia-texto-mudo);
    letter-spacing: 0.03em;
}

/* No celular a marca divide a mesma linha do botao .ia-menu-mobile-toggle
   (flutuante em top:0.6rem/left:0.6rem, 2.3rem de lado) em vez de ficar
   embaixo dele - economiza a linha que sobraria vazia so pro botao. Essa
   regra precisa vir depois da .ia-marca base acima pra vencer no cascade. */
@media (max-width: 860px) {
    .ia-marca[b-tmnihcuimd] {
        padding: 0.5rem 0.75rem 0.5rem 3.2rem;
    }
}

.ia-atalhos[b-tmnihcuimd] {
    flex: 0 0 55%;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    min-height: 80px;
}

.ia-atalhos-titulo[b-tmnihcuimd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ia-texto-mudo);
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ia-nova-caixa[b-tmnihcuimd] {
    text-transform: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ia-accent-texto);
    border: 1px solid rgba(232, 132, 43, 0.4);
    background: rgba(232, 132, 43, 0.12);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

.ia-nova-caixa:hover[b-tmnihcuimd] {
    background: rgba(232, 132, 43, 0.2);
}

.ia-nova-caixa:active[b-tmnihcuimd] {
    transform: translateY(1px);
}

.ia-atalhos-lista[b-tmnihcuimd] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ia-atalhos-vazio[b-tmnihcuimd] {
    color: var(--ia-texto-mudo);
    font-size: 0.85rem;
}

/* "Conversas Recentes" - caixa fixa, sempre por ultima na sidebar (nao e
   um menu accordion como as caixas de atalhos acima dela). Altura ajustavel
   pelo splitter-h-sidebar (ver splitter.js / painel-atalhos). */
.ia-historico[b-tmnihcuimd] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
}

.ia-historico-titulo[b-tmnihcuimd] {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ia-texto-mudo);
    padding: 0.75rem 1rem 0.4rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ia-chat[b-tmnihcuimd] {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    min-width: 0;
}

.ia-splitter[b-tmnihcuimd] {
    background: var(--ia-borda-sutil);
    flex: 0 0 auto;
}

.ia-splitter-v[b-tmnihcuimd] {
    width: 6px;
    cursor: col-resize;
}

.ia-splitter-h[b-tmnihcuimd] {
    height: 6px;
    cursor: row-resize;
}

.ia-splitter:hover[b-tmnihcuimd] {
    background: var(--ia-accent-solido);
}

/* AtalhoBox */
[b-tmnihcuimd] .atalho-box {
    background: var(--ia-bg-elevado);
    border: 1px solid var(--ia-borda);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

[b-tmnihcuimd] .atalho-box-cabecalho {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

[b-tmnihcuimd] .atalho-box-aberta .atalho-box-cabecalho {
    margin-bottom: 0.5rem;
}

[b-tmnihcuimd] .atalho-box-chevron {
    font-size: 0.7rem;
    color: var(--ia-texto-mudo);
    width: 0.8rem;
    flex: 0 0 auto;
}

[b-tmnihcuimd] .atalho-box-nome {
    flex: 1 1 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ia-texto-mudo);
}

[b-tmnihcuimd] .atalho-box-renomear,
[b-tmnihcuimd] .atalho-box-remover {
    border: none;
    background: transparent;
    color: var(--ia-texto-mudo);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}

[b-tmnihcuimd] .atalho-box-remover:hover {
    color: #ff6b6b;
}

[b-tmnihcuimd] .atalho-box-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* AtalhoTile - botao 3d (estilo "popup" classico, como os botoes do SCC) */
[b-tmnihcuimd] .atalho-tile {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.15));
    padding: 0.5rem 0.6rem 0.5rem 0.9rem;
    cursor: pointer;
    max-width: 220px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

[b-tmnihcuimd] .atalho-tile:hover {
    filter: brightness(1.05);
}

[b-tmnihcuimd] .atalho-tile:active {
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
}

[b-tmnihcuimd] .atalho-texto {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Editor de atalho (nome/cor/caixa) */
.atalho-editor-overlay[b-tmnihcuimd] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.atalho-editor[b-tmnihcuimd] {
    background: var(--ia-bg-elevado);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.atalho-editor h3[b-tmnihcuimd] {
    margin: 0 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--ia-texto);
}

.atalho-editor label[b-tmnihcuimd] {
    font-size: 0.78rem;
    color: var(--ia-texto-mudo);
    margin-top: 0.4rem;
}

.atalho-editor input[b-tmnihcuimd],
.atalho-editor select[b-tmnihcuimd] {
    padding: 0.45rem;
    border: 1px solid var(--ia-borda);
    border-radius: 6px;
    background: var(--ia-bg-chat);
    color: var(--ia-texto);
}

.atalho-editor input[type="color"][b-tmnihcuimd] {
    padding: 0.15rem;
    height: 2.2rem;
}

.atalho-editor-acoes[b-tmnihcuimd] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.atalho-editor-acoes button[b-tmnihcuimd] {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--ia-borda);
    background: transparent;
    color: var(--ia-texto);
}

.atalho-editor-acoes button:first-child[b-tmnihcuimd] {
    background: var(--ia-accent);
    color: white;
    border: none;
}

/* Confirmacao de exclusao - dialogo proprio do sistema, no lugar do
   confirm() nativo do navegador (que mostra "localhost diz") */
.confirmacao-overlay[b-tmnihcuimd] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirmacao-dialog[b-tmnihcuimd] {
    background: var(--ia-bg-elevado);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    width: 300px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.confirmacao-dialog h3[b-tmnihcuimd] {
    margin: 0 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: var(--ia-accent-texto);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.confirmacao-dialog p[b-tmnihcuimd] {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ia-texto);
}

.confirmacao-dialog label[b-tmnihcuimd] {
    display: block;
    font-size: 0.78rem;
    color: var(--ia-texto-mudo);
    margin-top: 0.6rem;
}

.confirmacao-dialog input[type="date"][b-tmnihcuimd] {
    width: 100%;
    padding: 0.45rem;
    border: 1px solid var(--ia-borda);
    border-radius: 6px;
    background: var(--ia-bg-chat);
    color: var(--ia-texto);
    box-sizing: border-box;
    margin-top: 0.2rem;
}

.confirmacao-acoes[b-tmnihcuimd] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.confirmacao-acoes button[b-tmnihcuimd] {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--ia-borda);
    background: transparent;
    color: var(--ia-texto);
}

.confirmacao-apagar[b-tmnihcuimd] {
    background: #b32121 !important;
    color: white;
    border-color: #b32121 !important;
}

/* HistoricoPrompts */
[b-tmnihcuimd] .historico-lista {
    display: flex;
    flex-direction: column;
}

[b-tmnihcuimd] .historico-vazio {
    color: var(--ia-texto-mudo);
    font-size: 0.85rem;
    padding: 1rem;
}

[b-tmnihcuimd] .historico-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--ia-borda-sutil);
    border-radius: 8px;
}

[b-tmnihcuimd] .historico-item-texto {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

[b-tmnihcuimd] .historico-apagar {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--ia-texto-mudo);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.2rem;
}

[b-tmnihcuimd] .historico-apagar:hover {
    color: #ff6b6b;
}

[b-tmnihcuimd] .historico-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[b-tmnihcuimd] .historico-item-selecionado {
    background: rgba(232, 132, 43, 0.14);
}

[b-tmnihcuimd] .historico-data {
    font-size: 0.72rem;
    color: var(--ia-texto-mudo);
}

[b-tmnihcuimd] .historico-descricao {
    font-size: 0.88rem;
    color: var(--ia-texto-secundario);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ChatThread */
[b-tmnihcuimd] .chat-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: var(--ia-bg-chat);
}

[b-tmnihcuimd] .chat-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--ia-bg-toolbar);
    border-bottom: 1px solid var(--ia-borda-sutil);
}

/* Botoes 3d (mesmo estilo "popup" do AtalhoTile/ia-nova-caixa) - cada
   .chat-btn-* abaixo define so a cor base (background-color), o gradiente/
   sombra aqui em cima e que da o relevo. */
[b-tmnihcuimd] .chat-toolbar button {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--ia-borda);
    background-color: transparent;
    color: var(--ia-texto-secundario);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

[b-tmnihcuimd] .chat-toolbar button:hover:not(:disabled) {
    border-color: var(--ia-borda-forte);
}

[b-tmnihcuimd] .chat-toolbar button:active:not(:disabled) {
    transform: translateY(1px);
}

[b-tmnihcuimd] .chat-toolbar button:disabled {
    opacity: 0.5;
    cursor: default;
}

[b-tmnihcuimd] .chat-btn-nova-conversa {
    background: var(--ia-accent) !important;
    color: white;
    border: none !important;
    font-family: 'Space Grotesk', sans-serif;
}

[b-tmnihcuimd] .chat-btn-editar-atalho {
    background-color: #e8701c !important;
    color: white;
    border-color: #e8701c !important;
}

[b-tmnihcuimd] .chat-btn-remover-atalho {
    background-color: #b32121 !important;
    color: white;
    border-color: #b32121 !important;
}

[b-tmnihcuimd] .chat-btn-fixar-atalho {
    background-color: #2e7d32 !important;
    color: white;
    border-color: #2e7d32 !important;
}

[b-tmnihcuimd] .chat-btn-atualizar-rotina {
    background-color: #6a3fa0 !important;
    color: white;
    border-color: #6a3fa0 !important;
}

[b-tmnihcuimd] .chat-mensagens {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--ia-bg-chat);
}

[b-tmnihcuimd] .btn-ir-para-fim {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--ia-borda);
    border-radius: 999px;
    background: var(--ia-bg-elevado);
    color: var(--ia-texto-secundario);
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    opacity: 0.9;
    z-index: 10;
}

[b-tmnihcuimd] .btn-ir-para-fim:hover {
    opacity: 1;
}

/* Estado vazio do chat - icone + titulo + subtexto + grade de sugestoes
   clicaveis (cada uma preenche o campo de pergunta via
   PromptBox.PreencherTexto, ver ChatThread.razor). */
[b-tmnihcuimd] .chat-vazio-container {
    max-width: 560px;
    width: 100%;
    margin: auto;
    text-align: center;
}

[b-tmnihcuimd] .chat-vazio-icone {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(232, 132, 43, 0.18), rgba(228, 87, 31, 0.08));
    border: 1px solid rgba(232, 132, 43, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

[b-tmnihcuimd] .chat-vazio-titulo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ia-texto);
}

[b-tmnihcuimd] .chat-vazio-sub {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ia-texto-mudo);
    line-height: 1.55;
}

[b-tmnihcuimd] .chat-sugestoes {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}

[b-tmnihcuimd] .chat-sugestao {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 15px;
    border: 1px solid var(--ia-borda);
    border-radius: 12px;
    background: var(--ia-bg-sidebar);
    color: var(--ia-texto-secundario);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

[b-tmnihcuimd] .chat-sugestao:hover {
    border-color: rgba(232, 132, 43, 0.4);
    background: var(--ia-bg-elevado);
}

[b-tmnihcuimd] .chat-sugestao-icone {
    color: var(--ia-accent-texto);
    font-size: 15px;
    line-height: 1.2;
}

[b-tmnihcuimd] .chat-bolha {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

[b-tmnihcuimd] .chat-bolha-pergunta {
    align-self: flex-end;
    background: var(--ia-accent);
    color: white;
}

[b-tmnihcuimd] .chat-bolha-resposta {
    align-self: flex-start;
    background: var(--ia-bg-elevado);
    color: var(--ia-texto-secundario);
}

[b-tmnihcuimd] .chat-bolha.chat-bolha-com-grid {
    align-self: stretch;
    max-width: 100%;
}

[b-tmnihcuimd] .chat-bolha .grid-resultado {
    margin-top: 0.5rem;
    background: var(--ia-bg-elevado);
    color: var(--ia-texto-secundario);
}

[b-tmnihcuimd] .grid-resultado-aggrid {
    margin-top: 0.5rem;
    width: 100%;
    min-width: 320px;
}

[b-tmnihcuimd] .grafico-resultado-container {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 480px;
    height: 300px;
    position: relative;
}

[b-tmnihcuimd] .btn-exportar-excel {
    background-color: #217346 !important;
    color: white;
    border-color: #217346 !important;
}

/* PromptBox - "pill" arredondado no topo do chat */
[b-tmnihcuimd] .prompt-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 1rem 0;
    padding: 0.4rem 0.4rem 0.4rem 0.75rem;
    border: 1px solid var(--ia-borda);
    border-radius: 14px;
    background: var(--ia-bg-sidebar);
}

[b-tmnihcuimd] .prompt-box:focus-within {
    border-color: rgba(232, 132, 43, 0.5);
}

[b-tmnihcuimd] .prompt-empresa {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.25rem;
}

[b-tmnihcuimd] .prompt-empresa-logo {
    height: 1.8rem;
    width: auto;
}

[b-tmnihcuimd] .prompt-empresa-nome {
    color: var(--ia-texto-secundario);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

[b-tmnihcuimd] .prompt-input {
    flex: 1 1 auto;
    padding: 0.6rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ia-texto);
}

[b-tmnihcuimd] .prompt-input::placeholder {
    color: var(--ia-texto-mudo-2);
}

[b-tmnihcuimd] .prompt-enviar {
    padding: 0.6rem 1.4rem;
    background: var(--ia-accent);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

[b-tmnihcuimd] .prompt-enviar:hover:not(:disabled) {
    filter: brightness(1.07);
}

[b-tmnihcuimd] .prompt-enviar:disabled {
    cursor: default;
    opacity: 0.6;
}

[b-tmnihcuimd] .prompt-cancelar {
    padding: 0.6rem 1rem;
    background: transparent;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}

[b-tmnihcuimd] .prompt-cancelar:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: #ff6b6b;
}

[b-tmnihcuimd] .prompt-atualizar-views {
    padding: 0.4rem 0.9rem;
    background: transparent;
    color: var(--ia-texto-secundario);
    border: 1px solid var(--ia-borda);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
}

[b-tmnihcuimd] .prompt-atualizar-views:hover:not(:disabled) {
    border-color: var(--ia-borda-forte);
}

[b-tmnihcuimd] .prompt-atualizar-views:disabled {
    cursor: default;
    opacity: 0.75;
}
