* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b1220;
  color: #ffffff;
}

.escondido {
  display: none !important;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #131c2e;
  border: 1px solid #24304a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
  text-align: center;
  color: #f4c542;
}

.login-card p {
  text-align: center;
  color: #cfd8e3;
  margin-bottom: 20px;
}

.login-ajuda {
  margin-top: 20px;
  padding: 14px;
  background: #0f1728;
  border: 1px solid #32415f;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.erro-login {
  color: #ff6b6b;
  text-align: center;
  min-height: 18px;
  margin-top: 10px;
}

.app {
  min-height: 100vh;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topo {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 1100px;
}

.topo h1 {
  margin: 0;
  font-size: 32px;
  color: #f4c542;
}

.topo p {
  margin-top: 8px;
  color: #cfd8e3;
}

.barra-usuario {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.botao-sair {
  width: auto;
  padding: 10px 14px;
  background: #ff4d4f;
  color: #fff;
}

.menu-abas {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.aba-btn {
  width: auto;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #1b2640;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.aba-btn.ativa {
  background: #f4c542;
  color: #111;
}

.perfil-box,
.aviso-bloqueio {
  width: 100%;
  max-width: 1100px;
  background: #0f1728;
  border: 1px solid #32415f;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: center;
  color: #cfd8e3;
}

.aba-conteudo {
  width: 100%;
  max-width: 1100px;
  display: none;
}

.aba-conteudo.ativa {
  display: block;
}

.card {
  width: 100%;
  background: #131c2e;
  border: 1px solid #24304a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.subtitulo {
  margin-top: 24px;
  margin-bottom: 10px;
  color: #f4c542;
}

.texto-ajuda {
  text-align: center;
  color: #cfd8e3;
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  margin-top: 14px;
  font-size: 14px;
  color: #dbe4f0;
}

input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #32415f;
  background: #0f1728;
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 10px;
}

button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  background: #f4c542;
  color: #111111;
  margin-top: 10px;
}

button:hover {
  opacity: 0.92;
}

.botao-verde {
  background: #25d366;
  color: #ffffff;
}

.botao-azul {
  background: #2f6fed;
  color: #ffffff;
}

.duplo-botao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.grid-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mini-resumo {
  margin-top: 16px;
}

.resumo-box,
.orc-numero-box,
.orc-total-box {
  background: #0f1728;
  border: 1px solid #32415f;
  border-radius: 12px;
  padding: 14px;
}

.resumo-box span,
.orc-numero-box span,
.orc-total-box span {
  display: block;
  font-size: 13px;
  color: #cfd8e3;
  margin-bottom: 8px;
}

.resumo-box strong,
.orc-numero-box strong,
.orc-total-box strong {
  font-size: 20px;
  color: #f4c542;
}

.financeiro-resumo strong#saldo {
  color: #00ff88;
}

#resultado {
  color: #f4c542;
}

.orc-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.orc-card-item {
  background: #0f1728;
  border: 1px solid #32415f;
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.orc-grid-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.orc-linhas-topo {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr 1fr 0.8fr;
  gap: 10px;
  padding: 10px 14px;
  background: #0f1728;
  border: 1px solid #32415f;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #cfd8e3;
  font-weight: bold;
}

.lista-premium {
  margin-top: 0;
}

.lista-premium li {
  list-style: none;
  background: #10192d;
  border: 1px solid #32415f;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.item-linha-premium {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr 1fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.item-produto {
  font-weight: bold;
  color: #ffffff;
}

.item-coluna {
  color: #dbe4f0;
  font-size: 14px;
}

#lista,
#listaClientes,
#listaProdutos,
#listaOrcamentos,
#listaRanking,
#listaHistoricoCliente,
#listaEstoque,
#listaProducao {
  margin-top: 15px;
  padding: 0;
}

#lista li,
#listaClientes li,
#listaProdutos li,
#listaOrcamentos li,
#listaRanking li,
#listaHistoricoCliente li,
#listaEstoque li,
#listaProducao li {
  list-style: none;
  background: #0f1728;
  border: 1px solid #32415f;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.item-info {
  font-size: 14px;
}

.tipo-entrada {
  color: #00ff88;
  font-weight: bold;
}

.tipo-saida {
  color: #ff6b6b;
  font-weight: bold;
}

.botao-excluir {
  width: auto;
  margin-top: 0;
  padding: 8px 12px;
  background: #ff4d4f;
  color: #ffffff;
  font-size: 13px;
}

.orc-historico-bloco {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #24304a;
}

.orc-historico-item {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  color: #dbe4f0;
  margin-top: 6px;
}

@media (max-width: 840px) {
  .orc-header,
  .orc-grid-form,
  .item-linha-premium,
  .orc-linhas-topo,
  .orc-historico-item {
    grid-template-columns: 1fr;
  }

  .orc-linhas-topo {
    display: none;
  }

  .item-linha-premium {
    gap: 6px;
  }

  .botao-excluir {
    margin-top: 8px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topo h1 {
    font-size: 26px;
  }

  .card,
  .login-card {
    padding: 18px;
  }
}
