
/* largura padrão da scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

/* trilho (fundo) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

/* “polegar” (parte que você arrasta) */
::-webkit-scrollbar-thumb {
    background-color: #7C8A6A;
    border-radius: 4px;
    border: 2px solid #f1f1f1; /* destaca thumb sobre o track */
}

/* thumb ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
    background-color: #5b694f;
}


/* Reset geral */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

html, body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;  /* suaviza o scroll no iOS */
}


body {
    background-color: #474745;
    color: #fff;
    min-height: 100vh;
    display: block; /* Tirar flex */
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 360px;
    margin: 40px auto 0; /* Centraliza só o container */
    padding: 20px 0;
}


/* Logo e título */
.logo {
    text-align: center;
    margin-bottom: 24px;
}
.logo h1 {
    font-size: 26px;
    font-weight: bold;
}
.logo img {
    max-width: 180px;
    margin-bottom: 10px;
}

.logo span {
    display: block;
    font-size: 1.1rem;
    margin-top: 10px;
    color: #ccc;
}

/* Formulário */
.form-login, .form-cadastro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
}

input[type="email"], input[type="password"], input[type="text"], input[type="date"], select {
    width: 100%;
    padding: 12px;
    padding-right: 36px; /* espaço para setinha no select */
    border-radius: 8px;
    border: none;
    font-size: 14px;
    color: #000;
    background: #fff;
}

.form-login {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-icon.login input,
.input-password.login input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f8f8;
}

/* Estiliza o select */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYgOEwwIDBMNSA1LjVMMTAgMFY4SDBaIiBmaWxsPSIjN0I3QjdCIi8+PC9zdmc+') no-repeat right 12px center;
    background-size: 12px;
}

select::-ms-expand {
    display: none;
}

/* Botão */
.button {
    background-color: #7C8A6A;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

/* Alertas */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

/* Alerta de Erro */
.alert-error {
    background-color: #ff4c4c;
    color: #fff;
}

/* Alerta de Sucesso */
.alert-success {
    background-color: #6fcf97;
    color: #fff;
}

/* Links */
.links {
    margin-top: 20px;
    font-size: 0.95rem;
}
.links a {
    color: #bbb;
    text-decoration: none;
    margin: 0 5px;
}

.links_aceite {
    color: #bbb;
    text-decoration: none;
}

.forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 12px;
    font-size: 13px;
}
.forgot-password a {
    color: #bbb;
    text-decoration: none;
}

/* Mensagem de erro do jQuery Validate */
label.error {
    color: #ffb3b3;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* Spinner padrão para todos botões */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid #7C8A6A; /* Cor diferente na borda superior */
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

/* Animação de rotação */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Botão - Div internamente controlada */
#btnReenviar .btn-text,
#btnConfirmar .btn-text,
#btnCadastrar .btn-text {
    display: inline-block;
}

#btnReenviar .spinner,
#btnConfirmar .spinner,
#btnCadastrar .spinner {
    display: none; /* O spinner começa escondido */
}

.input-password {
    position: relative;
}

.input-password input {
    padding-right: 40px; /* Espaço para o botão */
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    outline: none;
}

.input-icon,
.input-password {
    position: relative;
}

.input-icon input, /* Para o cadastro (sem ícone) */
.input-password input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    color: #000;
    background: #fff;
}

/* Para o login (com ícone 📩/🔒) */
.form-login .input-password input,
.form-login .input-icon input {
    padding-left: 40px; /* espaço para o ícone no login */
}


.input-icon .icon,
.input-password .icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
}

/* Título das seções */
.section-title {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

/* Cards de performance */
.cards-performance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.card {
    background: #E6E5DC;
    color: #333;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.card .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.card .value {
    font-size: 18px;
    font-weight: bold;
}

/* Cards de indicação */
.card-indicacao {
    background: #E6E5DC; /* tom bege claro */
    color: #333; /* cor de texto escura */
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* sombra leve */
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-indicacao:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header do Card */
.card-indicacao strong {
    font-size: 16px;
    color: #3A3A39;
}

.badge-novo {
    background: #7C8A6A;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Texto das informações (cargo, telefone, e-mail) */
.card-indicacao div {
    font-size: 14px;
    color: #666;
    display: flex;
}

/* Ícones */
.card-indicacao div span {
    margin-right: 8px;
}

/* Footer do Card */
.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.info-footer small {
    font-size: 12px;
    color: #999;
}

/* Botão "Detalhes" */
.btn-detalhes {
    background: #7C8A6A;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-detalhes:hover {
    background: #6b795a;
}


/* Botão Flutuante */
.btn-flutuante {
    position: fixed;
    bottom: 2px;
    right: 5px;
    background: #555;
    color: #fff;
    font-size: 15px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.menu-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #f1f1f1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ccc;
}

.menu-footer a {
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    color: #555;
    flex: 1;
    padding: 8px 0;
}

.menu-footer a.active {
    color: #7C8A6A;
    font-weight: bold;
}

.user-icon img {
    height: 32px;
    width: 32px;
    background: #7C8A6A;
    padding: 6px;
    border-radius: 50%;
}

/* Modal de Mensagem */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 300px;
    text-align: center;
    color: #333;
}

.modal-close {
    margin-top: 15px;
    background-color: #7C8A6A;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.perfil-topo {
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.perfil-logo img {
    height: 30px;
}

.perfil-fechar img {
    width: 35px;
    cursor: pointer;
}

.perfil-container {
    text-align: center;
    padding: 20px;
    margin-top: 35px;
}

.perfil-user-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 10px;
}

.perfil-nome {
    font-size: 20px;
    margin: 10px 0 5px;
}

.perfil-profissao {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 20px;
}

.perfil-card {
    background: #E6E5DC;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 20px;
    text-align: left;
    max-width: 350px;
}

.perfil-card-titulo {
    font-size: 18px;
    margin-bottom: 15px;
    color: #3A3A39;
}

.perfil-dado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E6E5DC;
}

.perfil-dado:last-child {
    border-bottom: none;
}

.perfil-dado-icone {
    font-size: 20px;
    margin-right: 10px;
}

.perfil-dado-texto {
    flex: 1;
    font-size: 14px;
    color: #3A3A39;
}

.perfil-dado-valor {
    font-weight: bold;
    color: #3A3A39;
}

.perfil-botoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-editar,
.btn-sair {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
}

.btn-editar {
    background: transparent;
    border: 2px solid #7A8A64;
    color: #7A8A64;
}

.btn-sair {
    background: #7A8A64;
    color: #fff;
    border: none;
}

.topo-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999999999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #3E3E3D;

}


.logo-dashboard img {
    height: 40px;
}

.user-icon {
    display: flex;
    align-items: center;
}

.user-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-link img:hover {
    transform: scale(1.1);
}

/* Adicionar Contato - Estilos dos Steps */
.step {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #333; /* fundo levemente diferente para steps */
    border-radius: 12px;
    margin-bottom: 20px;
}

.step.active {
    display: flex;
}

/* Rótulos para grupos de opções */
.step label {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 6px;
}

.step input[type="radio"] {
    margin-right: 8px;
}

/* Texto dos radio buttons */
.step input[type="radio"] + label,
.step label input[type="radio"] {
    font-size: 14px;
    color: #fff;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    color: #000;
    background: #fff;
    resize: vertical;
    min-height: 80px;
}

/* Botões entre os passos */
.button {
    background-color: #7C8A6A;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

/* Navegação entre Steps */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.button-voltar,
.button-continuar,
.button-finalizar {
    flex: 1;
}


/* Indicador de progresso (os círculos 1,2,3) */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 12px;
}

.progress-indicator .circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.progress-indicator .circle.active {
    background: #7C8A6A;
    color: #fff;
}

a.btn-detalhes {
    display: inline-block;
    margin-top: 10px;
    text-align: center;
}

.status-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background-color: #ccc;
    color: #333;
    font-size: 13px;
    font-weight: bold;
    opacity: 0.5;
}

.status-badge.ativo {
    background-color: #7C8A6A; /* Verde padrão DavoConnect */
    color: #fff;
    opacity: 1;
}

body.detalhes-contato {
    background-color: #E6E5DC;
    color: #333;
}

.linha-detalhe {
    border: 0;
    border-bottom: 1px solid #eee;
    margin: 10px 20px; /* 20px de margem nas laterais */
}


/* Título das seções */
.section-title-detalhes {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #3A3A39;
}

.container-login {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Container principal */
.container-detalhes {
    width: 100%;
    max-width: 400px;
    margin: 80px auto 40px;
    padding: 0 20px;
    background: #E6E5DC;
}

/* Card geral */
.card-detalhes {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Nome do contato */
.card-detalhes strong {
    font-size: 20px;
    color: #333;
}

.card-detalhes p {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* Bloco de informação (telefone, email, localização) */
.detalhe-bloco {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.detalhe-icone {
    font-size: 22px;
    color: #7C8A6A;
}

.detalhe-texto small {
    font-size: 12px;
    color: #999;
}

.detalhe-texto {
    font-size: 14px;
    color: #333;
}

.detalhe-texto a {
    color: #666;
    text-decoration: none;
    word-break: break-word;
}

.detalhe-texto a:hover {
    text-decoration: underline;
}

/* Container dos status */
.status-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Container de todos os status */
.status-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0 20px;
    flex-wrap: nowrap;
}

/* Cada badge de status */
.status-badge {
    display: flex;
    align-items: center;
    gap: 1px;
    background: #E6E5DC;
    color: #999;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.7;
    white-space: nowrap;
}

/* Status ativo */
.status-badge.ativo {
    background: #7C8A6A;
    color: #fff;
    opacity: 1;
}

/* Ícone do status */
.status-badge .status-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Títulos das seções */
.section-title-detalhes {
    font-size: 18px;
    font-weight: bold;
    color: #3A3A39;
    margin-top: 5px;
    margin-bottom: 10px;
}


/* Perfil de Interesse */
.perfil-interesse {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

/* Dados Contextuais */
.dados-contextuais-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.dados-contextuais-item:last-child {
    border-bottom: none;
}

.dados-contextuais-icone {
    font-size: 20px;
    color: #7C8A6A;
}

.dados-contextuais-texto {
    display: flex;
    flex-direction: column;
}

.dados-contextuais-titulo {
    font-weight: bold;
    font-size: 14px;
    color: #3A3A39;
}

.dados-contextuais-descricao {
    font-size: 13px;
    color: #666;
}

/* Notas */
.notas-texto {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

/* Topo compacto dos detalhes */
.topo-detalhes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E6E5DC;
    padding: 8px 12px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 15px;
}

/* Botão voltar */
.btn-voltar {
    color: #7C8A6A;
    text-decoration: none;
    margin-right: 10px;
}

/* Título centralizado */
.titulo-detalhes {
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    color: #3A3A39;
    margin: 0;
    line-height: 20px;
}

/* Botão editar */
.btn-editar-detalhes {
    color: #7C8A6A;
    background: transparent;
    border-radius: 12px;
    padding: 4px 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Botão "Detalhes" */
.btn-deletar {
    background: #8d4654;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.select-status {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
}

.btn-alterar-status {
    margin-top: 10px;
    background-color: #7C8A6A;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
.historico-status-item {
    margin-bottom: 10px;
}

.historico-status-item {
    margin-bottom: 10px;
}

.historico-status-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.select-status-busca {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYgOEwwIDBMNSA1LjVMMTAgMFY4SDBaIiBmaWxsPSIjN0I3QjdCIi8+PC9zdmc+') no-repeat right 12px center;
    background-size: 12px;
    padding-right: 36px; /* espaço pra setinha */
    border-radius: 8px;
    border: none;
    font-size: 14px;
    color: #333;
}

/* Foto do usuário no editar perfil */
.foto-atual {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.foto-atual img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #7C8A6A; /* Bordinha verde DavoConnect */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mensagem-senha {
    display: block;
    font-size: 12px;
    color: #bbb;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: left;
}

.detalhe-icone-circulo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #758065; /* Verde similar ao da imagem */
    border-radius: 50%;
    margin-right: 12px;
}

.detalhe-icone-circulo svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.icone-circulo-pequeno {
    width: 28px;
    height: 28px;
    background: #768066;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linha-info-contato {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}


.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #D1CFC2;
    color: #000;
    font-size: 9px;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: bold;
}


.icon-circulo {
    background-color: #7d8b6d;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.status-icon {
    width: 15px;
    height: 15px;
    background-color: #e9e9e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.input-icon.login,
.input-password.login {
    position: relative;
}

.input-icon-svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon-svg svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.input-icon.login input,
.input-password.login input {
    padding-left: 40px; /* Espaço para o ícone */
}

.filho-bloco {
    margin-bottom: 16px;
    border-radius: 6px;
}

.filho-bloco input {
    margin-bottom: 8px;
}

.segunda-residencia-bloco {
    margin-bottom: 16px;
    border-radius: 6px;
}

.segunda-residencia-bloco input {
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

/* container do círculo */
.dados-contextuais-item .detalhe-icone-circulo{
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #7E8B5E;          /* sua cor do card */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;               /* evita “apertar” no flex */
}

/* normaliza os SVGs */
.dados-contextuais-item .detalhe-icone-circulo svg{
    width: 18px;
    height: 18px;
    display: block;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}