<<<<<<< HEAD
/* BASE GLOBAL */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  text-align: center;
}

.container {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.logo-canto {
  width: 90px;
  position: absolute;
  top: 20px;
  left: 20px;
}

h1 {
  color: #2c3e50;
}

/* BOTÃO EXPORTAR */
.btn-exportar {
  background-color: #8e44ad;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.btn-exportar:hover {
  background-color: #9b59b6;
}

/* TOTALIZADORES */
.totalizadores {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.card {
  background: #ecf0f1;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.card.entrada {
  border-left: 6px solid #27ae60;
}

.card.despesa {
  border-left: 6px solid #c0392b;
}

.card.nf {
  border-left: 6px solid #2980b9;
}

.card.saldo {
  background: #ffffff;
  border-left: 6px solid #8e44ad;
  color: #2c3e50;
  margin: 0 auto 40px;
}

/* FILTROS */
.filtros-linha1,
.filtros-linha2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-end;
  justify-content: flex-start;
}

.filtros-linha1 label,
.filtros-linha2 label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 14px;
}

.filtros-linha1 select,
.filtros-linha1 input[type="date"],
.filtros-linha2 select,
.filtros-linha2 input[type="text"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
  min-width: 160px;
  transition: all 0.2s ease;
}

.filtros-linha2 input[type="text"]::placeholder {
  color: #888;
  font-style: italic;
}

.filtros-linha1 select:focus,
.filtros-linha2 select:focus,
.filtros-linha1 input:focus,
.filtros-linha2 input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 5px #3498db55;
}

.bloco-filtrar {
  margin-left: auto;
}

.btn-filtrar {
  background-color: #2ecc71;
  color: white;
  padding: 10px 14px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  height: 40px;
  transition: background 0.3s ease;
}

.btn-filtrar:hover {
  background-color: #27ae60;
}

/* GRÁFICOS */
.graficos-pares {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin: 30px 0;
}

.grafico-container {
  flex: 1 1 calc(50% - 30px);
  min-width: 350px;
  height: 400px;
}

#grafico-por-data {
  height: 400px;
}


/* IMPRESSÃO */
@media print {

  .logo-canto,
  .btn-exportar,
  .filtros-linha1,
  .filtros-linha2,
  a[href="index.html"] {
    display: none !important;
  }

  body {
    margin: 0;
    background: white;
  }

  .container {
    padding: 0;
  }

  /* Exibe título do relatório */
  .titulo-print {
    display: block !important;
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
  }

  /* Faz a tabela expandir e mostra o rodapé */
  .tabela-container {
    max-height: none !important;
    overflow: visible !important;
  }

  #tabela {
    page-break-inside: auto;
    width: 100%;
    border-collapse: collapse;
  }

  #tabela thead {
    display: table-header-group;
  }


  /* Mantém legibilidade dos dados */
  #tabela td,
  #tabela th {
    padding: 6px;
    border: 1px solid #ccc;
  }
}

/* ========================
   FORMULÁRIO MODERNO
======================== */
.form-box {
  max-width: 700px;
  margin: auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-box h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.form-box label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 14px;
  color: #34495e;
}

.form-box input,
.form-box select {
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
}

.item-grupo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
  align-items: end;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.btn-add,
.btn-submit {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-add:hover {
  background-color: #2980b9;
}

.btn-submit {
  background-color: #2ecc71;
}

.btn-submit:hover {
  background-color: #27ae60;
}

.btn-remove {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  align-self: center;
}

.btn-remove:hover {
  background-color: #c0392b;
}

.btn-voltar {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  text-decoration: none;
  color: #3498db;
}

.btn-voltar:hover {
  text-decoration: underline;
}

.itens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card-item {
  background: #fefefe;
  border: 1px solid #ddd;
  border-left: 6px solid #3498db;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-item label {
  font-weight: bold;
  font-size: 14px;
  color: #2c3e50;
}

.card-item input,
.card-item select {
  margin-top: 6px;
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.card-item .btn-remove {
  align-self: flex-end;
  margin-top: 10px;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card-item .btn-remove:hover {
  background: #c0392b;
}

/* ===== FORMULÁRIO ENTRADA FUTURISTA AJUSTADO ===== */
.form-box {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.form-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 13px;
}

.form-box input,
.form-box select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
  font-size: 13px;
  background-color: #fcfcfc;
  box-sizing: border-box;
}

.form-box hr {
  margin: 20px 0 10px;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* ===== BOTÕES ===== */
.btn-submit,
.btn-add {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  margin-right: 8px;
  transition: background 0.3s ease;
}

.btn-submit:hover,
.btn-add:hover {
  background-color: #219150;
}

.btn-voltar {
  display: inline-block;
  margin-top: 20px;
  color: #555;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s ease;
}

.btn-voltar:hover {
  color: #216f9c;
}

/* ===== GRUPO DE ITENS DINÂMICOS ===== */
.itens-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.card-item {
  background-color: #fefefe;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
  position: relative;
}

.card-item label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 12.5px;
  color: #2c3e50;
}

.card-item input,
.card-item select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  background-color: #fff;
}

.btn-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #c0392b;
}

.btn-remove:hover {
  color: #e74c3c;
}

/* Ajuste de margens entre título e botão Adicionar Item */
.form-box h3 {
  margin-bottom: -10px;
}

#itens-container {
  margin-bottom: -10px;
}

.btn-add {
  margin-top: 0;
}

/* Efeito visual temporário após envio bem-sucedido */
.sucesso {
  border: 2px solid #27ae60 !important;
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.4);
  transition: all 0.3s ease-in-out;
}

.rodape {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
  border-top: 4px solid #2980b9;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

/* === Ocultar elementos na impressão === */
@media print {

  .filtros-linha1,
  .filtros-linha2,
  .bloco-filtrar,
  .btn-exportar,
  .logo-canto,
  a[href],
  footer {
    display: none !important;
  }

  body {
    margin: 0;
    padding: 0;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
}

/* === Tabela visual moderna === */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

thead tr {
  background-color: #00587a;
  color: white;
  text-align: left;
  font-weight: bold;
}

thead th,
tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
  background-color: #f6f9fc;
}

tbody tr:hover {
  background-color: #e3f2fd;
  cursor: pointer;
}

/* === Rodapé fixo para impressão bonita === */
footer.rodape {
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
  color: #ffffff;
}

/* === Logo responsiva === */
.logo-canto {
  width: 90px;
  position: absolute;
  top: 15px;
  left: 15px;
}

@media print {
  .titulo-print {
    display: block !important;
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
  }
}

/* Container com rolagem vertical */
.tabela-container {
  max-height: 500px;
  overflow-y: auto;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #ccc;
}

/* Fixar cabeçalho da tabela */
.tabela-container thead th {
  position: sticky;
  top: 0;
  background-color: #00587a;
  /* Azul institucional */
  color: white;
  z-index: 10;
  text-align: left;
  padding: 10px;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilo geral da tabela */
#tabela {
  border-collapse: collapse;
  width: 100%;
}

/* Estilo das células */
#tabela td,
#tabela th {
  padding: 8px 10px;
  border: 1px solid #ddd;
}

/* Listras alternadas para linhas */
#tabela tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Realce no hover */
#tabela tbody tr:hover {
  background-color: #eef6fa;
}

/* Container com rolagem */
.tabela-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ccc;
  margin-top: 15px;
}

/* Cabeçalho da tabela fixo */
#tabela thead th {
  position: sticky;
  top: 0;
  background-color: #8e44ad;
  /* Roxo escuro */
  color: #fbfbfc;
  /* Branco gelo */
  z-index: 10;
  padding: 8px;
  border-bottom: 2px solid #000000;
  text-align: left;
}

/* Forçar layout correto da tabela */
#tabela {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

@media print {
  body {
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  .btn-exportar,
  .btn-filtrar,
  a[href],
  .rodape {
    display: none !important;
  }

  .titulo-print {
    display: block !important;
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
  }

  .filtros-linha1,
  .filtros-linha2 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 15px;
  }

  label {
    font-weight: bold;
    margin-right: 15px;
  }

  select,
  input[type="date"],
  input[type="text"] {
    border: none;
    background: transparent;
    font-weight: normal;
    pointer-events: none;
  }
}

.linha-saldo {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.card.saldo {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.totalizadores {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

/* Cards da linha superior */
.linha-superior {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.linha-superior .card {
  flex: 1 1 250px;
  max-width: 300px;
  min-width: 220px;
}

/* Card de saldo estimado isolado */
.linha-saldo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.card.saldo {
  width: 100%;
  max-width: 960px;
  background-color: #e7f4ff;
  font-size: 18px;
  border-left: 6px solid #8e44ad;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-resetar {
  padding: 8px 14px;
  margin-left: 8px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.btn-resetar:hover {
  background-color: #45a049;
}

.bloco-filtrar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-filtrar,
.btn-resetar {
  height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-filtrar {
  background-color: #2ecc71;
  color: white;
}

.btn-filtrar:hover {
  background-color: #27ae60;
}

.btn-resetar {
  background-color: #4CAF50;
  color: white;
}

.btn-resetar:hover {
  background-color: #45a049;
}

.filtro-empresa-botoes {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 280px;
}

.filtro-empresa-botoes label {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 14px;
  min-width: 160px;
}

.grupo-botoes-filtro {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.btn-filtrar,
.btn-resetar {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-filtrar {
  background-color: #2ecc71;
  color: white;
}

.btn-filtrar:hover {
  background-color: #27ae60;
}

.btn-resetar {
  background-color: #4CAF50;
  color: white;
}

.btn-resetar:hover {
  background-color: #45a049;
}

#grafico-por-data {
  width: 100%;
  height: 280px;
  /* Altura reduzida */
  margin-top: 30px;
}

.voltar-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.graficos-pares {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.grafico-container {
  flex: 1;
  min-width: 420px;
  height: 400px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.grafico-centralizado {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.grafico-container-largo {
  width: 95%;
  max-width: 1100px;
  height: 500px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  overflow: hidden;
}

#grafico-por-data,
#grafico-comparativo {
  width: 100% !important;
  height: 400px;
  margin-top: 30px;
}

#grafico-comparativo {
  width: 100% !important;
  height: 100% !important;
  padding-bottom: 30px;
  /* aumenta espaço para datas */
  box-sizing: border-box;
}

.logo-canto {
  cursor: pointer;
}

/* ajusta pagina inicial 2 colunas */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #dceeff, #ffffff);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.04);
  margin: 0;
  padding: 0;
  text-align: center;
}

.container {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  color: #2c3e50;
  margin-bottom: 50px;
}

.logo-canto {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 90px;
}

.botoes-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.coluna {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.btn {
  background: #2980b9;
  color: white;
  padding: 16px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn:hover {
  background: #3498db;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .botoes-grid {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
}
.filtros-linha1 label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: bold;
}

.filtros-linha1 input,
.filtros-linha1 select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 100%;
}
.filtros-linha1 label {
  margin-right: 15px;
}
=======
/* BASE GLOBAL */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  text-align: center;
}

.container {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.logo-canto {
  width: 60px;
  position: absolute;
  top: 20px;
  left: 20px;
}

h1 {
  color: #2c3e50;
}

/* BOTÃO EXPORTAR */
.btn-exportar {
  background-color: #8e44ad;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.btn-exportar:hover {
  background-color: #9b59b6;
}

/* TOTALIZADORES */
.totalizadores {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.card {
  background: #ecf0f1;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.card.entrada    { border-left: 6px solid #27ae60; }
.card.despesa    { border-left: 6px solid #c0392b; }
.card.nf         { border-left: 6px solid #2980b9; }

.card.saldo {
  background: #ffffff;
  border-left: 6px solid #8e44ad;
  color: #2c3e50;
  margin: 0 auto 40px;
}

/* FILTROS */
.filtros-linha1,
.filtros-linha2 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
  align-items: flex-end;
  justify-content: flex-start;
}

.filtros-linha1 label,
.filtros-linha2 label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 14px;
}

.filtros-linha1 select,
.filtros-linha1 input[type="date"],
.filtros-linha2 select,
.filtros-linha2 input[type="text"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
  min-width: 160px;
  transition: all 0.2s ease;
}

.filtros-linha2 input[type="text"]::placeholder {
  color: #888;
  font-style: italic;
}

.filtros-linha1 select:focus,
.filtros-linha2 select:focus,
.filtros-linha1 input:focus,
.filtros-linha2 input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 5px #3498db55;
}

.bloco-filtrar {
  margin-left: auto;
}

.btn-filtrar {
  background-color: #2ecc71;
  color: white;
  padding: 10px 14px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  height: 40px;
  transition: background 0.3s ease;
}

.btn-filtrar:hover {
  background-color: #27ae60;
}

/* GRÁFICOS */
.graficos-pares {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin: 30px 0;
}

.grafico-container {
  flex: 1 1 calc(50% - 30px);
  min-width: 350px;
  height: 400px;
}

#grafico-por-data {
  width: 100%;
  height: 400px;
  margin-top: 30px;
}

/* IMPRESSÃO */
@media print {
  .logo-canto,
  .btn-exportar,
  .filtros-linha1,
  .filtros-linha2,
  a[href="index.html"] {
    display: none !important;
  }

  body {
    margin: 0;
    background: white;
  }

  .container {
    padding: 0;
  }
}
/* ========================
   FORMULÁRIO MODERNO
======================== */
.form-box {
  max-width: 700px;
  margin: auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-box h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.form-box label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 14px;
  color: #34495e;
}

.form-box input,
.form-box select {
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
}

.item-grupo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
  align-items: end;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.btn-add, .btn-submit {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-add:hover {
  background-color: #2980b9;
}

.btn-submit {
  background-color: #2ecc71;
}

.btn-submit:hover {
  background-color: #27ae60;
}

.btn-remove {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  align-self: center;
}

.btn-remove:hover {
  background-color: #c0392b;
}

.btn-voltar {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  text-decoration: none;
  color: #3498db;
}

.btn-voltar:hover {
  text-decoration: underline;
}
.itens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card-item {
  background: #fefefe;
  border: 1px solid #ddd;
  border-left: 6px solid #3498db;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-item label {
  font-weight: bold;
  font-size: 14px;
  color: #2c3e50;
}

.card-item input,
.card-item select {
  margin-top: 6px;
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.card-item .btn-remove {
  align-self: flex-end;
  margin-top: 10px;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card-item .btn-remove:hover {
  background: #c0392b;
}
/* ===== FORMULÁRIO ENTRADA FUTURISTA AJUSTADO ===== */
.form-box {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.form-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 13px;
}

.form-box input,
.form-box select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
  font-size: 13px;
  background-color: #fcfcfc;
  box-sizing: border-box;
}

.form-box hr {
  margin: 20px 0 10px;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* ===== BOTÕES ===== */
.btn-submit,
.btn-add {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  margin-right: 8px;
  transition: background 0.3s ease;
}

.btn-submit:hover,
.btn-add:hover {
  background-color: #219150;
}

.btn-voltar {
  display: inline-block;
  margin-top: 20px;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s ease;
}

.btn-voltar:hover {
  color: #216f9c;
}

/* ===== GRUPO DE ITENS DINÂMICOS ===== */
.itens-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.card-item {
  background-color: #fefefe;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
  position: relative;
}

.card-item label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 12.5px;
  color: #2c3e50;
}

.card-item input,
.card-item select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  background-color: #fff;
}

.btn-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #c0392b;
}

.btn-remove:hover {
  color: #e74c3c;
}
/* Ajuste de margens entre título e botão Adicionar Item */
.form-box h3 {
  margin-bottom: -10px;
}

#itens-container {
  margin-bottom: -10px;
}

.btn-add {
  margin-top: 0;
}

/* Efeito visual temporário após envio bem-sucedido */
.sucesso {
  border: 2px solid #27ae60 !important;
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.4);
  transition: all 0.3s ease-in-out;
}
.rodape {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
  border-top: 4px solid #2980b9;
}
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

>>>>>>> 17f529ea21bfb71e259e195e0936c9c0e448366d
