﻿/*=========================================================================
Acesso Global
=========================================================================*/
:root {
    --verdefuture: rgb(59,146,53);
    --azulfuture: rgb(6,99,144);
    --azulfutureBorda: rgb(45,46,130);
    --shadowfuture: 0px 1px 10px rgba(0, 0, 0, 0.4);
}

.toast {
    z-index: 99999 !important;
}

#btnSuporteFlutuante {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1050;
    width: 70px !important;
    height: 70px !important;
    background-image: url('/img/chat.svg') !important;
    background-size: contain; /* Garante que a imagem caiba inteira no botão */
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    color: white;
    border: none !important;
    box-shadow: none;
    border-radius: 50% !important;
    transition: transform 0.2s ease;
    cursor: grab;
}

body.Login-Index #btnSuporteFlutuante {
    display: none;
}

    #btnSuporteFlutuante .e-btn-icon {
        display: none !important;
    }

    #btnSuporteFlutuante:hover {
        transform: scale(1.1);
        background-color: transparent !important;
        box-shadow: none;
    }

#btnSuporteFlutuante:active {
    cursor: grabbing;
}



/*=========================================================================
Diálogos
=========================================================================*/
.e-dialog {
    margin: 10px;
    max-height: 90vh;
}

#novaSenhaDialog,
#senhaTempDialog,
#senhaAntigaDialog,
#solicitarMFA,
#resetDialog{
    min-height: 300px;
}

#novidadesDialog,
#primeiroAcessoDialog {
    max-height: 600px !important;
}

#atCadastroDialog{
    max-height: 80vh !important;
}

#trocarPerfilDialog .container-md,
#novaSenhaDialog .container-md,
#senhaTempDialog .container-md,
#senhaAntigaDialog .container-md,
#solicitarMFA .container-md,
#resetDialog .container-md {
    max-width: 400px;
}

#repasseDialog .container-md{
    max-width: 500px;
}
#createDialog .container-md{
    max-width: 800px;
}

.e-dlg-header-content {
    justify-content: center !important;
    text-align: center !important;
}
.e-dlg-header-content,
.e-dlg-content,
.e-footer-content{
    background-color: whitesmoke;
}
.e-dlg-content {
    display: flex !important;
    flex-direction: column !important; /* Muda o eixo principal para o vertical (↓) */
    justify-content: center !important; /* Agora, centraliza no novo eixo */
    align-items: stretch  !important; /* Centraliza horizontalmente*/
    height: 100% !important;
}
/* Garante que o formulário ocupe a largura desejada */
.e-dlg-content form {
    width: 100% !important;
}

#atCadastroDialog .e-dlg-header,
#resetDialog .e-dlg-header,
#userDialog .e-dlg-header,
#newsletterDialog .e-dlg-header,
#repasseDialog .e-dlg-header {
    margin-left: 32px !important;
}

.e-dialog .e-dlg-header {
    color: var(--azulfuture);
    -webkit-text-stroke-width: 0.07px; /* Largura da borda */
    -webkit-text-stroke-color: var(--azulfutureBorda); /* Cor da borda */
    font-size: 18px !important;
}
.btnEnviar {
    background-color: var(--azulfuture) !important;
    color: white !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important; /* suaviza a animação */
    cursor: pointer !important; /* Muda o ponteiro para a mãozinha */
}
    .btnEnviar:hover {
        transform: scale(1.08); /* cresce o botão um pouco */
    
        }

.btnCancelar {
    background-color: white !important;
    color: var(--azulfuture) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important; /* suaviza a animação */
    cursor: pointer !important; /* Muda o ponteiro para a mãozinha */
}
    .btnCancelar:hover {
        transform: scale(1.08); /* cresce o botão um pouco */
    }

.btnAtualizar {
    background-color: whitesmoke !important;
    color: var(--azulfuture) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important; /* suaviza a animação */
    cursor: pointer !important; /* Muda o ponteiro para a mãozinha */
}
    .btnAtualizar:hover {
        transform: scale(1.08); /* cresce o botão um pouco */
    }

/*=========================================================================
MFA (Autenticação Multi-Fator)
=========================================================================*/
.mfa-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px;
}

.mfa-digit {
    width: 40px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.mfa-digit:focus {
    border-color: var(--azulfuture);
    outline: none;
}

#userDialog_Content b{
    color: var(--azulfuture)
}


/*=========================================================================
Informações do Usuário (Diálogo no MENU)
=========================================================================*/
#userDialog {
    min-height: 600px;
}

.userDialogTitulos{
    padding: 10px;
}

.userDialogModulos {
    padding: 10px;
    text-align: center;
    margin: 0 0 0 -20px !important;
}

#userDialog .container-md{
    max-width: 1100px;
}

#userDialog b {
    padding-left:30px;
}

#userInfo_Modulos {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
    gap: 8px; /* Cria um espaçamento de 8px entre cada etiqueta */
    margin-top: 10px;
    padding: 10px;
    padding-left: 0;
    border-radius: 10px;
    list-style-type: none; /* Remove os "pontinhos" da lista */
    box-shadow: var(--shadowfuture)
}

.userInfo_Etiquetas {
    background-color: var(--azulfuture);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap; /* Impede que o texto quebre a linha */
}

#userDialog_Content ul{
    columns: 2;
    list-style: none;
}
/*=========================================================================
STEPPER -> CRIAÇÃO DE USUÁRIO NO LOGIN
=========================================================================*/
.stepper-header {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.step {
flex: 1;
text-align: center;
padding: 15px 10px;
cursor: pointer;
position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-number {
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #e0e0e0;
color: #999;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 5px;
font-weight: bold;
}

.step.active .step-number {
background-color: var(--azulfuture);
color: white;
}

.step.active .step-title {
color: #007bff;
font-weight: bold;
}

.step.completed .step-number {
background-color: var(--verdefuture);
color: white;
}

/*Linha de status*/
.step:after {
margin-top: 5px;
padding-top: 5px;
transition: all 0.5s ease !important; /* suaviza a animação */
}
.step.active:after {
margin-top: 5px;
padding-top: 5px;
}

.step.completed:after {
background-color: var(--verdefuture);
margin-top: 5px;
padding-top: 5px;
}

/*Conteúdo do Stepper*/
.step-content {
display: none;
padding: 20px;
border: 1px solid #e0e0e0;
border-radius: 5px;
background-color: #f9f9f9;
height: 300px;
}
    .step-content.active {
        display: block;
    }

    .step-content p {
        margin: 10px;
        padding-left: 5px
    }

/* Estilo para o Tooltip da Syncfusion */
.e-tooltip-wrap {
    background-color: white !important;
    color: var(--azulfuture) !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 8px var(--shadowfuture);
    padding: 8px 12px !important;
    max-width: 300px; /* Evita que o tooltip fique muito largo */
}

    /* Estilo para a setinha do tooltip */
    .e-tooltip-wrap .e-arrow-tip-inner {
        color: white !important;
    }
/*=========================================================================
STEPPER -> TOUR DE BOAS VINDAS
=========================================================================*/

.welcome-grid {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
}
.welcome-grid h4{
    color: var(--azulfuture)
}

.welcome-text {
    flex: 1.2;
    text-align: left;
}

.welcome-image {
    flex: 1;
    text-align: center;
}

    .welcome-image img {
        max-width: 150px;
        height: auto;
    }

.welcome-title {
    color: var(--azulfuture);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}

/* Overlay para o tour guiado */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000; /* Camada 1: O fundo */
}

.tour-dialog-highlight {
    z-index: 10001 !important; /* Camada 2: O Diálogo (acima do overlay) */
}


.tour-highlight {
    z-index: 10002 !important; /* Camada 3: O Elemento destacado (acima do diálogo) */
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8) !important; /* Contorno branco, simulando brilho*/
    border-radius: 4px !important;
    transition: box-shadow 0.3s ease;
    background-color: transparent;
}

.tour-tooltip {
    position: fixed;
    z-index: 10003 !important; /* Camada 4: O Tooltip (acima de tudo) */
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 250px;
}

/* Deixa o layout responsivo em telas menores */
@media (max-width: 768px) {
    .welcome-grid {
        flex-direction: column-reverse;
    }

    .welcome-text {
        text-align: center;
    }

    .welcome-title {
        font-size: 1.8rem;
    }
}

/*=========================================================================
Formulário de Login
=========================================================================*/
.login-container {
    display: flex;
    min-height: 100vh;
}

/* lado esquerdo */
.login-left {
flex: 1;
display: flex;
flex-direction: column; /* distribui header, conteúdo e footer */
justify-content: space-between;
padding: 20px;
background: white;
background-size: cover;
box-shadow: var(--shadowfuture);
}
.login-header {
text-align: start;
padding-bottom: 10px;
}
.login-header img {
max-width: 150px;
height: auto;
}
.login-content {
flex: 1; /* ocupa espaço central */
display: flex;
align-items: center;
justify-content: center;
}
.form-options a{
text-decoration: none;
}
/* lado esquerdo */
.login-footer {
text-align: center;
font-size: 12px;
color: #666;
padding: 3px 0 0 0 ;
border-top: 1px solid #eee;
}
/* Acessibilidade */
.acessibilidade {
margin-top: 50px;
margin-bottom: 10px;
padding: 15px;
color: var(--azulfuture);
box-shadow: var(--shadowfuture);
border-radius: 10px;
background: rgba(0, 0, 0, 0.01);
font-size: 14px;
}
    .acessibilidade p {
    margin-right: 6px;
    color: var(--azulfuture);
    font-size: 15px;
    font-weight: bold;
    -webkit-text-stroke-width: 0.05px; /* Largura da borda */
    -webkit-text-stroke-color: var(--azulfutureBorda); /* Cor da borda */
    }
    .acessibilidade i {
    margin-right: 6px;
    color: var(--azulfuture);
    font-size: 14px;
    }
.login-left h3 {
margin: 0;
color: var(--azulfuture);
-webkit-text-stroke-width: 0.3px; /* Largura da borda */
-webkit-text-stroke-color: var(--azulfutureBorda); /* Cor da borda */
}
.login-left .login-btn {
background-color: var(--azulfuture);
color: white;
transition: all linear 160ms;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
min-width: 100%;
}
.login-left .login-btn:hover {
transform: scale(1.05);
background-color: var(--azulfuture);
color: white;
}
#capslock-warning{
color: red;
font-weight:bold;
display: none;
text-align:end;
font-size:13px;
-webkit-text-stroke-width: 0.07px; /* Largura da borda */
-webkit-text-stroke-color: var(--azulfutureBorda); /* Cor da borda */
}
/* lado direito */
.login-right {
flex: 1;
background: url('/img/fundoaplicacao.jpg') no-repeat center center;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
color: white;
padding: 40px;
}

.login-right .overlay {
background: rgba(0, 0, 0, 0);
padding: 30px;
border-radius: 10px;
width:100%;
height: 100%;
text-align: start;
}


/*=========================================================================
Newsletter
=========================================================================*/
#newsletterDialog {
    max-height: 99vh !important;
}

#noticiaDetalheDialog {
    max-height: 99vh !important;
}

/*Estilo caso exista CONTEUDO*/
.noticia-detalhe-imagem {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

/*Estilo caso NÃO exista CONTEUDO*/
.imagem-em-destaque .noticia-detalhe-imagem {
    max-height: 73vh;
    object-fit: contain;
}

.imagem-em-destaque .noticia_detalhe {
    display: none;
}

#noticiaDetalheDialog .e-dlg-header-content {
    max-height: 0;
    padding: 0;
}

.noticias-grid {
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-height: 80vh;
}

.noticia-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

    .noticia-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

.noticia-card-imagem {
    width: 100%;
    object-fit: cover;
}

.noticia-card-conteudo {
    padding: 15px;
}

.noticia-card-titulo {
    font-size: 18px;
    font-weight: bold;
    color: var(--azulfuture);
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card-meta {
    font-size: 12px;
    color: #888;
}


/*=========================================================================
Módulo de COMPRAS - NF Devolução
=========================================================================*/
.info-header {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .info-header h4 {
        color: var(--azulfuture);
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .info-header .info-block {
        margin-bottom: 1rem;
    }

    .info-header .info-label {
        font-weight: 500;
        color: #6c757d;
        display: block;
        font-size: 0.9em;
    }

    .info-header .info-value {
        font-size: 1.1em;
        color: #212529;
    }

.devolucao-badge {
    background-color: #ffc107;
    color: #333;
    padding: 0.3em 0.6em;
    border-radius: .25rem;
    font-weight: bold;
    font-size: 1em;
    vertical-align: middle;
    margin-left: 10px;
}

.devolucaoExistente-badge {
    background-color: red;
    color: white;
    padding: 0.1em 1em;
    margin: 0 10px 10px;
    border-radius: .25rem;
    font-size: 1em;
    vertical-align: middle;
    margin-left: 10px;
}

.card-body h5 {
    color: var(--azulfuture);
}


/*=========================================================================
Módulo de Suporte/Chamados
=========================================================================*/
.chamado-titulo {
    color: var(--azulfuture);
}

.card-chamados {
    font-size: 14px;
}

.e-textarea.e-disabled.e-read-only-padding::placeholder {
    padding-top: 10px;
}

.e-textarea.e-disabled.e-read-only-padding {
    padding: 10px 12px;
    white-space: pre-wrap;
}

#suporteDialog {
    max-height: 60vh !important;
}

.suporte-dialog-body {
    max-height: calc(80vh - 100px); /* deixa espaço para header e footer */
    padding-right: 10px; /* evita corte da scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #888 #f5f5f5;
    scroll-behavior: smooth;
}

    .suporte-dialog-body::-webkit-scrollbar {
        width: 8px;
    }

    .suporte-dialog-body::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 10px;
    }

        .suporte-dialog-body::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }

/*=========================================================================
Responsividade para telas pequenas
=========================================================================*/
@media (max-width: 1300px) {
    .login-left {
        padding: 0
    }
    .acessibilidade p {
        font-size: 13px;
    }
    .acessibilidade {
        font-size: 12px;
        padding: 5px 15px;
        margin-top: 0px;
        margin-bottom: 0px;
    }
    .login-header {
        padding: 0;
        max-height: 60px;
    }
        .login-header img {
            max-height: 90%;
        }
    .login-content h3 {
        font-size: 15px;
    }
    .login-right {
        padding: 0;
        font-size: 12px;
    }
        .login-right h2 {
            font-size: 25px;
        }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    .login-right {
        display: none; /* esconde imagem/textos no mobile */
    }
    .acessibilidade{
        display: none;
    }
    .login-left {
        flex: none;
        height: 100vh;
    }

    /*Diálogos*/
    .dialog-responsivo {
        min-height: auto;
    }
}