* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

/* =========================
   Reset / Base do sistema
   ========================= */
*, *::before, *::after {
    box-sizing: border-box;
}


/* =========================
   ♿ Acessibilidade (visível só para leitores de tela)
   ========================= */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef1f8, #e5e9f2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/*Página de seleção de empreas */
.empresa-container{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* desloga o usuário */
.deslogar {
    position: fixed;
    top: 20px;
    right: 20px;

    padding: 8px 16px;
    border-radius: 999px;
    border: none;

    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    width: auto;              /* 🔥 essencial */
    max-width: max-content;   /* 🔥 Firefox fix */
    display: inline-flex;     /* 🔥 evita stretch */

    cursor: pointer;
    z-index: 20;
}

/* Wrapper */
.login-wrapper {
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Card de login */
.login-card {
    max-width: 400px;
    margin: auto;
    background: #fff;
    border-radius: 24px;
    padding: 45px 35px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    text-align: center;
}

/*Card de seleção de empresas */
.empresa-card{
    background: #fff;
    width: 100%;
    max-width: 420px;
    min-width: 300px;
    border-radius: 22px;
    padding: 30px 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
}

/* Card Cadastro de empresas*/
.empresa-card.large {
    max-width: 900px;
}

.linha {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.dupla{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quad {
    display:  grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

label {
    display:block;
    text-align: left;
    font-size: 13px;
    color: #555;
    margin: 8px 0 4px;
}

input {
    width: 100%;
    height: 48px;              /* 🔥 BASE DO SISTEMA */
    line-height: 48px;         /* 🔥 centraliza texto */
    padding: 0 16px;           /* só lateral */
    border-radius: 14px;
    background: #e6e6e6;
    border: 1px solid #bbb;
    box-sizing: border-box;
}


/* Títulos */
.login-card h1 {
    font-size: 30px;
    font-weight: 700;
    color: #222;
}

.empresa-card h1 {
    word-break: normal;
    white-space: normal;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
}

.empresa-card p {
    font-size: 14px;
    color: #555;
    margin: 6px 0 18px;
}

/*Pesquisa das empresas na seleção*/
.pesquisa {
    width: 100%;
    padding: 0px 16px; /* herda height do input*/
    border-radius: 16px;
    border: 1px solid #ddd;
    background: #fffec9;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Lista de empresas */
.lista-wrapper {
    background: #e1e1e1;
    border-radius: 18px;
    padding: 10px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.15);
}

.empresa-selecionada {
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    color: #fff;
    transform: scale(1.02);
}

.empresa-lista li.selecionada {
    background: #6c63ff;
    box-shadow: 0 6px 16px rgba(108, 99, 255, 0.4);
}

/* Scroll da lista de empresas - Chrome, Edge, Safari*/
.lista-wrapper::-webkit-scrollbar {
    width: 10px;
}

.lista-wrapper::-webkit-scrollbar-track {
    background: #d6d6d6;
    border-radius: 999px;
}

.lista-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    border-radius: 999px;
}

/* Firefox*/
.lista-wrapper{
    scrollbar-width: thin;
    scrollbar-color: #6c63ff #d6d6d6;
}

/* Itens da lista*/
.empresa-lista {
    list-style: none;
}

.empresa-lista li {
    background: #8fa2d9;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

/* Botões da seleção de empresas*/
.acoes {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* Mobile */
@media (max-width: 420px) {
    .acoes {
        flex-direction: column;
    }
}

/* Botão de Selecionar empresa*/
.btn.selecempre {
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    color: #fff;
}

/* Botão de Cadastrar empresa*/
.btn.cadasempre {
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    color: #fff;
}

.login-card p {
    font-size: 14px;
    color: #777;
    margin: 8px 0 30px;
}

/* Campos */
.field {
    position: relative;
    margin-bottom: 18px;
}

.field input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
}

.field input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
}

/* Senha */
.field.password input {
    padding-right: 50px;
}

.toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    color: #999;
}

/* Botão */
.btn {
    width: 100%;
    padding: 15px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.35);
}

/* Link */
.forgot {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: #6c63ff;
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

/* Fundo animado */
.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}


/* cadastro empresa largura dos campos*/
.tripla {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.col-2 { grid-column: span 1; }
.col-1 { grid-column: span 1; }


.logradouro-linha {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 12px;
}

/* Padroniza altura */
.linha-cnpj {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;

    align-items: stretch; /* 🔥 NÃO center */
}

.linha-cnpj input,
.linha-cnpj button {
    height: 48px;
    min-height: 48px;

    padding: 0 16px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: normal; /* 🔥 remove baseline */
}

.linha-cnpj .pesquisa {
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
}

.input-cnpj {
    background: #fffec9; /*mesmo visual*/
}

/*pagina da empresa selecionada*/
.empresa-card.large {
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
}

/* Header*/
.empresa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empresa-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* Linha */
.linha-separadora {
    height: 4px;
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    border-radius: 10px;
    margin: 16px 0 32px;
}

.subtitulo {
    color: #777;
    margin-bottom: 32px;
}

/* Card opção - empresa.html */
.opcoes {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.card-opcao {
    width: 280px;
    height: 120px;
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    border: none;
    border-radius: 20px;
    color:#fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
    transform: .3s;
}

.card-opcao:hover {
    transform: translateY(-4px);
}

/*Botões empresa.html */
.btn.sair, .btn.config {
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6c63ff, #8e7bff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn.config {
    margin-bottom: 1px;
}

/* Footer empresa.html */
.footer {
    padding: 20px;
    font-size: 14px;
    color: #00000055;
}

/* botões secundários menores */
.btn.secundario {
    width: auto;
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 999px;
}

/* quando o secundário for centralizado */
.btn.secundario.central {
    display: inline-block;
    margin: 0 auto;
}

.btn.config-grande {
    width: 60%;
    padding:  14px;
    font-size: 15px;
}

.card-opcao img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* =========================
   👁️ Botão de mostrar senha
   ========================= */
.field.password .toggle {
    /* quando for <button>, remove estilo padrão */
    background: transparent;
    border: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777;
    font-size: 22px;

    padding: 0 8px;
}

.field.password .toggle:focus {
    outline: none;
}
/* =========================================================
   DEPARTAMENTO PESSOAL - AJUSTE PARA O LAYOUT "DIREITA"
   Cole no final do style.css
   ========================================================= */

/* Container de 2 colunas (menu + conteúdo) */
.dp-wrap{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  margin-top: 12px;
  align-items: start;
}

/* Sidebar (botões da esquerda) */
.dp-menu{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

/* Botões do menu iguais ao seu estilo (cinza arredondado) */
.dp-menu .dp-btn{
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid #cfcfcf;
  background: #ededed;
  cursor: pointer;
  font-weight: 600;
}

/* Botão selecionado (INSS no seu exemplo) */
.dp-menu .dp-btn.active{
  border-color: #6c63ff;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.25);
}

/* Pro-labore com input pequeno */
.dp-prolabore{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 18px;
  padding: 10px 14px;
  border: 1px solid #cfcfcf;
  background: #ededed;
}
.dp-prolabore input{
  width: 74px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: 6px 8px;
}

/* Botão Limpar vermelho como o seu */
.dp-btn-limpar{
  margin-top: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  border: none;
  background: #ff3b30;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Área principal */
.dp-main{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Linha superior de inputs (salário, dependentes, calcular + checkbox à direita) */
.dp-top{
  display: grid;
  grid-template-columns: 1fr 180px 140px 1fr;
  gap: 16px;
  align-items: center;
}
.dp-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dp-field label{
  font-size: 12px;
  opacity: 0.8;
}
.dp-field input, .dp-field select{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  background: #f5f5f5;
}

/* Botão calcular roxo menor */
.dp-calcular{
  border-radius: 999px;
  padding: 10px 14px;
  border: none;
  background: #6c63ff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Checkbox em “bolha” à direita (como no seu) */
.dp-bolha{
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  background: #ededed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.dp-bolha input{
  width: 18px;
  height: 18px;
}

/* Cards das tabelas (centralizados e com borda suave) */
.dp-card{
  border-radius: 16px;
  background: #efefef;
  border: 1px solid #d3d3d3;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Tabelas internas */
.dp-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}
.dp-table th, .dp-table td{
  padding: 8px;
  border-bottom: 1px solid #dcdcdc;
  text-align: left;
}

/* Resultado + memória grande */
.dp-resultado{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dp-resumo{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  font-size: 13px;
}
.dp-memoria textarea{
  width: 100%;
  min-height: 320px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  background: #fff;
  resize: vertical;
}

/* Responsivo: vira 1 coluna */
@media (max-width: 980px){
  .dp-wrap{
    grid-template-columns: 1fr;
  }
  .dp-top{
    grid-template-columns: 1fr 1fr;
  }
}

/* Inputs com visual de botão */
.dp-input{
  appearance: textfield;
  text-align: center;
  outline: none;
}

/* Remove setas do number */
.dp-input::-webkit-outer-spin-button,
.dp-input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.dp-money{
  text-align: center;
  font-weight: 700;
}

/* Campos de resultado (INSS/IRRF) */
.dp-result{
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Pró-labore menor */
.dp-prolabore-mini{
  padding: 8px 12px;          /* menor que antes */
  border-radius: 14px;
}

/* Radio menor e mais alinhado */
.dp-prolabore-mini input[type="radio"]{
  width: 16px;
  height: 16px;
  transform: scale(0.95);
}

/* ===============================
   DP - Ajustes pedidos
   =============================== */

.dp-money{
  text-align: center;
  font-weight: 700;
}

.dp-result{
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Pró-labore menor */
.dp-prolabore-mini{
  padding: 8px 12px;
  border-radius: 14px;
}

/* Radio menor */
.dp-prolabore-mini input[type="radio"]{
  width: 16px;
  height: 16px;
  transform: scale(0.95);
}

/* Header da memória com botão imprimir */
.dp-memoria-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.dp-memoria-header h4{
  margin: 0;
  text-align: left;
}

.dp-print-btn{
  border-radius: 999px;
  padding: 8px 12px;
  border: none;
  background: #6c63ff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
/* ===============================
   DP - Topo (Calcular + checkbox)
   =============================== */
.dp-top{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dp-calcular-btn{
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  background: linear-gradient(135deg, #6c63ff, #8e7bff);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.dp-bolha{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #cfcfcf;
  background: #ededed;
  font-size: 12px;
}
