/* /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 (Atalhos + Historico)
   + Chat (direita) - tema dark em tons de slate/verde-acinzentado (sidebar
   mais escura, paineis internos sempre numa variacao proxima da mesma
   familia de cor, nunca um tom totalmente diferente). */

.ia-workspace[b-tmnihcuimd] {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

.ia-sidebar[b-tmnihcuimd] {
    flex: 0 0 26%;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    background: #203737;
}

.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-weight: 600;
    color: #9aa1ab;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ia-nova-caixa[b-tmnihcuimd] {
    text-transform: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: #e6e8eb;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #345454;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25));
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ia-nova-caixa:active[b-tmnihcuimd] {
    box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.4);
    transform: translateY(1px);
}

.ia-atalhos-lista[b-tmnihcuimd] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ia-atalhos-vazio[b-tmnihcuimd] {
    color: #98a0ad;
    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-weight: 600;
    color: #9aa1ab;
    padding: 0.75rem 1rem 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ia-chat[b-tmnihcuimd] {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    min-width: 0;
}

.ia-splitter[b-tmnihcuimd] {
    background: #2c4747;
    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: #2451a8;
}

/* AtalhoBox */
[b-tmnihcuimd] .atalho-box {
    background: #2f4f4f;
    border: 1px solid #3f5f5f;
    border-radius: 8px;
    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: #98a0ad;
    width: 0.8rem;
    flex: 0 0 auto;
}

[b-tmnihcuimd] .atalho-box-nome {
    flex: 1 1 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9aa1ab;
}

[b-tmnihcuimd] .atalho-box-renomear,
[b-tmnihcuimd] .atalho-box-remover {
    border: none;
    background: transparent;
    color: #98a0ad;
    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: 6px;
    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: #2f4f4f;
    border-radius: 8px;
    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-size: 1rem;
    color: #e6e8eb;
}

.atalho-editor label[b-tmnihcuimd] {
    font-size: 0.78rem;
    color: #9aa1ab;
    margin-top: 0.4rem;
}

.atalho-editor input[b-tmnihcuimd],
.atalho-editor select[b-tmnihcuimd] {
    padding: 0.45rem;
    border: 1px solid #3f5f5f;
    border-radius: 4px;
    background: #1a2f2f;
    color: #e6e8eb;
}

.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: 4px;
    cursor: pointer;
    border: 1px solid #3f5f5f;
    background: #345454;
    color: #e6e8eb;
}

.atalho-editor-acoes button:first-child[b-tmnihcuimd] {
    background: #2451a8;
    color: white;
    border-color: #2451a8;
}

/* 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: #2f4f4f;
    border-radius: 8px;
    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-size: 0.95rem;
    color: #e8701c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.confirmacao-dialog p[b-tmnihcuimd] {
    margin: 0;
    font-size: 0.9rem;
    color: #e6e8eb;
}

.confirmacao-dialog label[b-tmnihcuimd] {
    display: block;
    font-size: 0.78rem;
    color: #9aa1ab;
    margin-top: 0.6rem;
}

.confirmacao-dialog input[type="date"][b-tmnihcuimd] {
    width: 100%;
    padding: 0.45rem;
    border: 1px solid #3f5f5f;
    border-radius: 4px;
    background: #1a2f2f;
    color: #e6e8eb;
    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: 4px;
    cursor: pointer;
    border: 1px solid #3f5f5f;
    background: #345454;
    color: #e6e8eb;
}

.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: #98a0ad;
    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 #2c4747;
}

[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: #98a0ad;
    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: #2c4747;
}

[b-tmnihcuimd] .historico-item-selecionado {
    background: #2f6f6f;
}

[b-tmnihcuimd] .historico-data {
    font-size: 0.72rem;
    color: #98a0ad;
}

[b-tmnihcuimd] .historico-descricao {
    font-size: 0.88rem;
    color: #e6e8eb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ChatThread */
[b-tmnihcuimd] .chat-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

[b-tmnihcuimd] .chat-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #243d3d;
    border-bottom: 1px solid #2c4747;
}

/* 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 #3f5f5f;
    background-color: #345454;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.18));
    color: #e6e8eb;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[b-tmnihcuimd] .chat-toolbar button:active:not(:disabled) {
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.4);
    transform: translateY(1px);
}

[b-tmnihcuimd] .chat-toolbar button:disabled {
    opacity: 0.5;
    cursor: default;
}

[b-tmnihcuimd] .chat-btn-nova-conversa {
    background-color: #2451a8 !important;
    color: white;
    border-color: #2451a8 !important;
}

[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: #1a2f2f;
}

[b-tmnihcuimd] .btn-ir-para-fim {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.9rem;
    border: 1px solid #3f5f5f;
    border-radius: 999px;
    background: #345454;
    color: #e6e8eb;
    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;
}

[b-tmnihcuimd] .chat-vazio {
    color: #98a0ad;
    text-align: center;
    margin-top: 2rem;
}

[b-tmnihcuimd] .chat-bolha {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.92rem;
}

[b-tmnihcuimd] .chat-bolha-pergunta {
    align-self: flex-end;
    background: #2451a8;
    color: white;
}

[b-tmnihcuimd] .chat-bolha-resposta {
    align-self: flex-start;
    background: #2f4f4f;
    color: #e6e8eb;
}

[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: #2f4f4f;
    color: #e6e8eb;
}

[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 */
[b-tmnihcuimd] .prompt-box {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2c4747;
}

[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: #e6e8eb;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

[b-tmnihcuimd] .prompt-input {
    flex: 1 1 auto;
    padding: 0.6rem;
    border: 1px solid #3f5f5f;
    border-radius: 4px;
    background: #ffffff;
    color: #1a2f2f;
}

[b-tmnihcuimd] .prompt-enviar {
    padding: 0.6rem 1.2rem;
    background: #2451a8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

[b-tmnihcuimd] .prompt-enviar:disabled {
    cursor: default;
}

[b-tmnihcuimd] .prompt-atualizar-views {
    padding: 0.6rem 1.2rem;
    background: #e07b1e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

[b-tmnihcuimd] .prompt-atualizar-views:disabled {
    cursor: default;
    opacity: 0.75;
}
