/* =============================================================================
   css/login.css — TELA DE LOGIN (index.php)
   =============================================================================
   O QUE ESTE ARQUIVO GUARDA
     • Cores da tela de login (variáveis no :root logo abaixo).
     • Painel da marca (esquerda): grade técnica, linha de processo animada, módulos, relógio.
     • Briefing do usuário (o painel da marca vira o resumo dele quando o e-mail é reconhecido).
     • Formulário de acesso (direita): campos, seletor de destino, botão, aviso de erro.

   O QUE VOCÊ EDITA AQUI
     • Cores: troque as variáveis do :root (a cor principal acompanha o COR_FUNDO_SISTEMA do config.js).
     • Velocidade da linha de processo: NÃO aqui — em js/telas/index.js (animarLinhaProcesso).
     • Largura do painel da marca: .stx-shell (grid-template-columns).
   ============================================================================= */

:root {
    --stx-marinho:        #081F45;   /* cor principal do Sentrix (config.js) */
    --stx-marinho-escuro: #04112a;
    --stx-marinho-claro:  #0f2d5e;
    --stx-ciano:          #38bdf8;   /* destaque da linha de processo */
    --stx-azul:           #3b82f6;
    --stx-verde:          #34d399;
    --stx-ambar:          #fbbf24;
    --stx-vermelho:       #f87171;

    --stx-papel:          #ffffff;   /* fundo do formulário */
    --stx-texto:          #0f172a;
    --stx-texto-suave:    #64748b;
    --stx-borda:          #e2e8f0;
    --stx-campo:          #f8fafc;

    --stx-fonte: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.hidden { display: none !important; }

html, body.stx-login { height: 100%; }
/* Reserva sempre o espaço da barra de rolagem: login e portal (que usa este mesmo arquivo) ficam
   exatamente na mesma posição, sem "pular" para o lado quando uma tela é mais alta que a outra */
html { overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #cbd5e1 #f1f5f9; }
html::-webkit-scrollbar { width: 6px; height: 6px; }
html::-webkit-scrollbar-track { background: #f1f5f9; }
html::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
html::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
body.stx-login {
    margin: 0;
    font-family: var(--stx-fonte);
    background: var(--stx-papel);
    color: var(--stx-texto);
    -webkit-font-smoothing: antialiased;
}

/* ----- Estrutura: duas colunas ------------------------------------------- */
.stx-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
}

/* =============================================================================
   PAINEL DA MARCA (ESQUERDA)
   ============================================================================= */
.stx-marca {
    position: relative;
    overflow: hidden;
    color: #e2e8f0;
    background:
        radial-gradient(1200px 600px at 85% 110%, rgba(56, 189, 248, .10), transparent 60%),
        radial-gradient(900px 500px at -10% -10%, rgba(59, 130, 246, .14), transparent 60%),
        linear-gradient(160deg, var(--stx-marinho-claro) 0%, var(--stx-marinho) 45%, var(--stx-marinho-escuro) 100%);
    padding: 44px 56px 36px;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* Grade técnica (papel milimetrado) que some nas bordas */
.stx-grade {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 45%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 70% at 40% 45%, #000 30%, transparent 85%);
}
/* Escudo gigante translúcido no canto (marca d'água) */
.stx-brilho {
    position: absolute; z-index: -1;
    right: -140px; bottom: -120px; width: 560px; height: 560px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3.9 12 2.25 4.5 4.9v6.35c0 4.75 3.15 8.95 7.5 10.25 4.35-1.3 7.5-5.5 7.5-10.25V9.6'/%3E%3Cpath d='m8.3 11.6 3 3L20.8 4.4'/%3E%3C/svg%3E");
    opacity: .09;
}

/* Topo: escudo + SENTRIX */
.stx-marca-topo { display: flex; align-items: center; gap: 14px; }
.stx-escudo {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, rgba(56, 189, 248, .22), rgba(59, 130, 246, .08));
    border: 1px solid rgba(125, 211, 252, .28);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .05), 0 10px 30px -10px rgba(56, 189, 248, .5);
}
.stx-escudo svg { width: 24px; height: 24px; }
.stx-marca-logo { height: 54px; width: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25)); }
.stx-wordmark { font-size: 17px; font-weight: 800; letter-spacing: .38em; color: #fff; line-height: 1.1; }
.stx-slogan { font-size: 11.5px; color: #94a3b8; letter-spacing: .02em; margin-top: 3px; }

/* Palco: os dois estados ocupam o mesmo lugar e trocam com fade */
.stx-palco {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 640px;
    transition: opacity .45s ease, transform .45s ease;
}
.stx-briefing { display: none; }
body.stx-identificado .stx-apresentacao { display: none; }
body.stx-identificado .stx-briefing { display: flex; animation: stxEntrar .5s ease both; }
@keyframes stxEntrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----- Estado 1: apresentação ------------------------------------------- */
.stx-sobretitulo {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #7dd3fc; margin: 0 0 18px;
}
.stx-manchete {
    font-size: clamp(34px, 4.1vw, 54px);
    line-height: 1.04; font-weight: 300; letter-spacing: -.02em;
    color: #fff; margin: 0 0 18px;
}
.stx-manchete span {
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #bae6fd 55%, var(--stx-ciano) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stx-apoio { font-size: 15px; line-height: 1.6; color: #a5b4c8; max-width: 470px; margin: 0 0 40px; }

/* Ponto pulsante (ao vivo) */
.stx-ponto-vivo {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--stx-verde); display: inline-block; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
    animation: stxPulso 2.2s infinite;
}
@keyframes stxPulso {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Linha de processo ------------------------------------------------------- */
.stx-linha {
    position: relative;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 22px 22px 18px;
    margin-bottom: 26px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .07);
    backdrop-filter: blur(6px);
}
.stx-trilho {
    position: absolute; top: 40px; left: calc(22px + 10%); right: calc(22px + 10%);
    height: 2px; background: rgba(148, 163, 184, .18); border-radius: 2px;
}
.stx-trilho-cheio {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--stx-azul), var(--stx-ciano));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(56, 189, 248, .7);
    transition: width 1.1s cubic-bezier(.65, 0, .35, 1);
}
.stx-etapa { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.stx-no {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--stx-marinho); color: #64748b;
    border: 1.5px solid rgba(148, 163, 184, .35);
    font-size: 12px; transition: all .45s ease;
}
.stx-no i { display: none; }
.stx-no b { font-weight: 700; }
.stx-etapa em { font-style: normal; font-size: 12px; font-weight: 600; color: #cbd5e1; margin-top: 4px; }
.stx-etapa small { font-size: 10px; color: #64748b; letter-spacing: .02em; transition: color .3s; }

.stx-etapa.atual .stx-no {
    color: #fff; border-color: var(--stx-ciano);
    box-shadow: 0 0 0 5px rgba(56, 189, 248, .12), 0 0 22px rgba(56, 189, 248, .45);
}
.stx-etapa.atual small { color: #7dd3fc; }
.stx-etapa.feita .stx-no {
    background: linear-gradient(145deg, #10b981, #059669); border-color: transparent; color: #fff;
    box-shadow: 0 6px 18px -6px rgba(16, 185, 129, .7);
}
.stx-etapa.feita .stx-no i { display: block; }
.stx-etapa.feita .stx-no b { display: none; }
.stx-etapa.feita small { color: #6ee7b7; }

/* Módulos */
.stx-modulos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }   /* 2 × 2: Análises · Monitoramento · Qualidade · POPs */
.stx-modulo {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .025);
    transition: border-color .2s, background .2s;
}
.stx-modulo:hover { border-color: rgba(125, 211, 252, .25); background: rgba(255, 255, 255, .045); }
.stx-modulo i {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #7dd3fc; background: rgba(56, 189, 248, .1); font-size: 13px;
}
.stx-modulo strong { display: block; font-size: 13px; color: #f1f5f9; font-weight: 700; }
.stx-modulo span { display: block; font-size: 11px; color: #8193ab; line-height: 1.4; margin-top: 2px; }

/* ----- Estado 2: briefing do usuário ------------------------------------ */
.stx-pessoa { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.stx-avatar {
    width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; letter-spacing: .04em; color: #fff;
    background: linear-gradient(145deg, var(--stx-azul), var(--stx-ciano));
    box-shadow: 0 12px 30px -10px rgba(56, 189, 248, .6);
}
.stx-saudacao { font-size: 13px; color: #94a3b8; }
.stx-nome { font-size: 28px; line-height: 1.15; font-weight: 300; color: #fff; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stx-pessoa #badgeNivel { margin-left: auto; flex-shrink: 0; }

.stx-contatos {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    padding: 14px 0 18px; margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.stx-contatos label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin-bottom: 3px; }
.stx-contatos span { display: block; font-size: 13px; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stx-bloco-titulo {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #94a3b8; margin: 0 0 10px;
}
.stx-bloco-titulo i { color: #7dd3fc; margin-right: 6px; }
.stx-tag-vivo {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; letter-spacing: .06em; color: #6ee7b7;
    padding: 3px 8px; border-radius: 999px; background: rgba(52, 211, 153, .1);
}

.stx-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.stx-numero {
    padding: 14px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06);
    font-size: 11px; color: #94a3b8; font-weight: 600;
    position: relative; overflow: hidden;
}
.stx-numero::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; }
.stx-numero span { display: block; font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stx-numero.azul     span { color: #60a5fa; }
.stx-numero.verde    span { color: var(--stx-verde); }
.stx-numero.ambar    span { color: var(--stx-ambar); }
.stx-numero.vermelho span { color: var(--stx-vermelho); }
.stx-numero.azul::before    { background: #60a5fa; }
.stx-numero.verde::before    { background: var(--stx-verde); }
.stx-numero.ambar::before    { background: var(--stx-ambar); }
.stx-numero.vermelho::before { background: var(--stx-vermelho); }

.stx-lista { max-height: 260px; }
.stx-lista::-webkit-scrollbar { width: 4px; }
.stx-lista::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .3); border-radius: 4px; }
.stx-lista::-webkit-scrollbar-track { background: transparent; }
.stx-lista { scrollbar-color: rgba(148, 163, 184, .3) transparent; }

/* Rodapé do painel */
.stx-marca-rodape {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    padding-top: 22px; margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.stx-relogio strong { display: block; font-size: 26px; font-weight: 300; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stx-relogio span { display: block; font-size: 12px; color: #8193ab; margin-top: 6px; }
.stx-status { display: flex; gap: 18px; font-size: 12px; color: #94a3b8; }
.stx-status > span { display: inline-flex; align-items: center; gap: 7px; }
.stx-status b { color: #e2e8f0; font-weight: 600; }

/* =============================================================================
   FORMULÁRIO DE ACESSO (DIREITA)
   ============================================================================= */
.stx-acesso {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 40px 32px 20px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(8, 31, 69, .04), transparent 70%),
        var(--stx-papel);
}
.stx-acesso-caixa { width: 100%; max-width: 380px; margin: auto 0; }

.stx-logo-empresa { height: 54px; display: flex; align-items: center; margin-bottom: 36px; }
.stx-logo-empresa img { max-height: 50px; max-width: 170px; object-fit: contain; }
.stx-logo-reserva {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: var(--stx-marinho);
}

.stx-titulo { font-size: 26px; font-weight: 700; letter-spacing: -.015em; color: var(--stx-texto); margin: 0 0 6px; }
.stx-subtitulo { font-size: 14px; color: var(--stx-texto-suave); margin: 0 0 28px; }

/* Aviso de erro */
.stx-aviso {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 14px; margin-bottom: 20px; border-radius: 12px;
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
    font-size: 13px; line-height: 1.45;
    animation: stxTremer .45s ease;
}
.stx-aviso i { margin-top: 2px; }
.stx-aviso strong { display: block; font-weight: 700; }
.stx-aviso span { display: block; color: #b91c1c; opacity: .9; }
.stx-aviso.ambar { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.stx-aviso.ambar span { color: #b45309; }
@keyframes stxTremer { 0%,100% { transform: none; } 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }

.stx-form { display: flex; flex-direction: column; gap: 18px; }
.stx-campo label { display: block; font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 7px; }

.stx-entrada { position: relative; }
.stx-entrada > i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: #94a3b8; pointer-events: none; transition: color .2s;
}
.stx-entrada input {
    width: 100%; height: 48px; box-sizing: border-box;
    padding: 0 44px 0 42px;
    font: inherit; font-size: 14px; color: var(--stx-texto);
    background: var(--stx-campo);
    border: 1px solid var(--stx-borda); border-radius: 12px;
    outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.stx-entrada input::placeholder { color: #a0aec0; }
.stx-entrada input:hover { border-color: #cbd5e1; }
.stx-entrada input:focus {
    background: #fff; border-color: var(--stx-marinho);
    box-shadow: 0 0 0 4px rgba(8, 31, 69, .08);
}
.stx-entrada:focus-within > i { color: var(--stx-marinho); }
.stx-entrada-acao {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; cursor: pointer; transition: background .2s, color .2s;
}
.stx-entrada-acao:hover { background: #f1f5f9; color: var(--stx-marinho); }

/* Usuário reconhecido: campo ganha selo verde */
body.stx-identificado #inputUsuario { border-color: #a7f3d0; background: #f0fdf4; }
body.stx-identificado #inputUsuario + .stx-entrada-acao,
body.stx-identificado .stx-entrada:has(#inputUsuario) > i { color: #059669; }

.stx-caps { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; font-weight: 600; color: #b45309; }

/* Seletor de destino (segmentado, com marcador deslizante) */
.stx-destino {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 4px; border-radius: 12px;
    background: #f1f5f9; border: 1px solid var(--stx-borda);
}
.stx-destino-marcador {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    border-radius: 9px; background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -4px rgba(15, 23, 42, .12);
    transition: transform .3s cubic-bezier(.65, 0, .35, 1);
}
.stx-destino.admin .stx-destino-marcador { transform: translateX(100%); }
.stx-destino button {
    position: relative; z-index: 1;
    height: 38px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer;
    transition: color .2s;
}
.stx-destino button i { font-size: 12px; }
.stx-destino button.ativo { color: var(--stx-marinho); }

.stx-lembrar { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #475569; cursor: pointer; user-select: none; }
.stx-lembrar input { width: 16px; height: 16px; accent-color: var(--stx-marinho); cursor: pointer; }

/* Botão principal */
button.stx-botao {
    position: relative; width: 100%; height: 50px; margin-top: 4px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: .01em; color: #fff;
    border-radius: 12px; cursor: pointer; overflow: hidden;
    background: linear-gradient(180deg, var(--stx-marinho-claro), var(--stx-marinho));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 12px 24px -10px rgba(8, 31, 69, .55);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
button.stx-botao::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .7s ease;
}
button.stx-botao:hover { filter: brightness(1.12); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 16px 30px -10px rgba(8, 31, 69, .6); }
button.stx-botao:hover::after { transform: translateX(100%); }
button.stx-botao:active { transform: translateY(1px); }
.stx-botao-seta { transition: transform .2s; font-size: 13px; }
button.stx-botao:hover .stx-botao-seta { transform: translateX(4px); }
.stx-botao-carregando { display: none; }
button.stx-botao.carregando { pointer-events: none; filter: saturate(.8); }
button.stx-botao.carregando .stx-botao-seta { display: none; }
button.stx-botao.carregando .stx-botao-carregando { display: inline-block; }
button.stx-botao.stx-botao-pequeno { height: 42px; font-size: 13px; margin-top: 0; }

.stx-ajuda {
    display: flex; gap: 9px; align-items: flex-start;
    margin: 26px 0 0; padding-top: 20px; border-top: 1px solid #f1f5f9;
    font-size: 12px; line-height: 1.5; color: #94a3b8;
}
.stx-ajuda i { margin-top: 2px; color: #cbd5e1; }

.stx-rodape { font-size: 11.5px; color: #a0aec0; padding-top: 20px; text-align: center; }
/* Assinatura da família de sistemas: "Sentrix · iA Suite" */
.stx-assinatura { font-weight: 700; color: var(--stx-marinho); letter-spacing: .01em; }
.stx-assinatura b { font-weight: 800; color: var(--stx-azul); }
.stx-rodape-sep { margin: 0 4px; }

/* =============================================================================
   TELAS MENORES
   ============================================================================= */
@media (max-width: 1180px) {
    .stx-marca { padding: 36px 40px 30px; }
    .stx-modulo span { display: none; }
}
@media (max-width: 960px) {
    .stx-shell { grid-template-columns: 1fr; }
    .stx-marca-logo { height: 42px; }
    .stx-marca { padding: 24px 20px; min-height: 0; }
    .stx-palco { flex: none; }
    .stx-apresentacao, .stx-marca-rodape, .stx-brilho { display: none !important; }
    .stx-briefing { margin-top: 20px; }
    .stx-nome { font-size: 22px; }
    .stx-numeros { grid-template-columns: repeat(2, 1fr); }
    .stx-acesso { padding: 32px 16px 16px; }
    .stx-logo-empresa { margin-bottom: 24px; }
}
@media (max-width: 420px) {
    .stx-contatos { grid-template-columns: 1fr; gap: 10px; }
    .stx-pessoa { flex-wrap: wrap; }
    .stx-pessoa #badgeNivel { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =============================================================================
   EMPRESA (MULTIEMPRESA) — caixa "Empresa: NOME · Trocar" e campo do código
   ============================================================================= */
.stx-conta {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; margin-bottom: 18px; border-radius: 12px;
    background: var(--stx-campo); border: 1px solid var(--stx-borda);
}
.stx-conta > i { color: var(--stx-marinho); font-size: 15px; }
.stx-conta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stx-conta label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--stx-texto-suave); }
.stx-conta strong { font-size: 14px; color: var(--stx-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stx-conta button {
    border: 0; background: transparent; color: var(--stx-azul); font-size: 12px; font-weight: 600; cursor: pointer;
    padding: 6px 8px; border-radius: 8px;
}
.stx-conta button:hover { background: #eff6ff; }
.stx-conta { position: relative; }
.stx-conta select {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 24px 0 0; margin: 0;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--stx-texto); cursor: pointer; width: 100%;
}
.stx-conta select:focus { outline: none; }
.stx-conta-seta { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #94a3b8; pointer-events: none; }
.stx-conta:has(select):hover { border-color: #cbd5e1; }
