html {
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f8fb;
  margin: 0;
  padding: 0;
  color: #003366;
}

h1 {
  text-align: center;
  color: #003366;
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 2em;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: -2em;
}

.logo {
  display: block;
  margin: auto;
  max-width: 120px;
}

h1 {
  text-align: center;
  color: #003366;
}

/* Accordion aberto */
.accordion-btn.active {
  background-color: #00509e;
}

button.accordion-btn,
a.accordion-btn {
  display: block;
  width: 100%;
  margin: 14px 0;
  padding: 16px 1px;
  border: 0;
  border-radius: 8px;
  background: #05335f;   /* use o mesmo azul dos outros */
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none; /* remove sublinhado do <a> */
  cursor: pointer;
}

button.accordion-btn:hover,
a.accordion-btn:hover {
  filter: brightness(1.05);
}

.panel {
  padding: 1em;
  display: none;
  overflow: hidden;
  background-color: #f0f4f8;
  border-radius: 0 0 4px 4px;
  margin-bottom: 10px;
  transition: max-height 0.3s ease-out;
  margin-top: 20px;
}

.hint {
  font-family: Roboto, sans-serif;
  text-align: center;
  font-size: 12px;
  margin-top: 12px;
  color: #003366;
}

form input, form select {
  width: 95%;
  padding: 0.5em;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  background-color: #0077cc;
  color: white;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#mensagem-sucesso {
  color: green;
  margin-top: 10px;
}

#form-produto {
    margin-top: 29px;
}

#venda-form {
    margin-top: 6px;
}

.btn-primario,
.btn-secundario {
  background-color: #0077cc;
  color: white;
  padding: 0.5em 1em;
  margin-right: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-secundario {
  background-color: #555;
}

.btn-primario:hover {
  background-color: #005fa3;
}

.btn-secundario:hover {
  background-color: #333;
}

.icones-acao {
  display: inline-flex;
  gap: 4px;
  background-color: #f5f5f5;
  padding: 4px;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.item-produto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.icones-acao {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  font-size: 16px;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.tabela-produtos {
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  background-color: white;

  /* Ajuste para desktop */
  margin: 0 -41px;   /* centraliza horizontalmente */
  width: 108%;       /* define uma largura */
}

.tabela-produtos-gerenciar {
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  background-color: white;

  /* Ajuste para desktop */
  margin: 0 3px;   /* centraliza horizontalmente */
  width: 100%;       /* define uma largura */
}

.tabela-produtos-gerenciar th,
.tabela-produtos-gerenciar td {
  border: 1px solid #ccc;
  padding: 8px;

}

.tabela-produtos-gerenciar th {
  background-color: #00509e;
  color: white;
}

.tabela-produtos th,
.tabela-produtos td {
  border: 1px solid #ccc;
  padding: 8px;

}

.tabela-produtos th {
  background-color: #00509e;
  color: white;
}

.linha-par {
  background-color: #f9f9f9;
}

.formulario-venda label {
    display: block;
    margin-bottom: -20px;
    font-family: 'Roboto', sans-serif;
}

.linha-impar {
  background-color: #ffffff;
}

.formulario-venda input,
.formulario-venda select,
.formulario-venda button {
  width: 100%;
  max-width: 535px;
  padding: 8px;
  font-size: 16px;
  box-sizing: border-box;
  margin-top: 5px;
}
.relatorio {
   font-family: 'Roboto', sans-serif;
}

  .relatorio table {
  width: 100%;
  border-collapse: collapse;
}

.relatorio th, .relatorio td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}

.relatorio thead th {
  background: #f2f2f2;
}

.acoes-relatorio {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.container-login {
  max-width: 400px;
  margin: 80px auto;
  padding: 20px;
  background: white;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.container-login input {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.container-login button {
  width: 95%;
  padding: 10px;
  background-color: #00509e;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.btn-sair:hover {
  background: #b52b27;
}

.container-sair {
  text-align: center;      /* Centraliza horizontalmente */
  margin-top: 10px;        /* Espaço do topo */
}

.btn-sair {
  background: #003366;
  color: white;
  border: none;
  padding: 8px 54px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
  margin-left: 464px;
}

.texto-justificado {
  text-align: justify;
  font-size: 16px;
  line-height: 1.6;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.modal-buttons button {
  width: 120px;
  padding: 10px 0;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

/* Botão "Sim" */
#confirmar-logout {
  background-color: #083366;
  color: white;
  margin: 6px;
}

/* Botão "Cancelar" */
#cancelar-logout {
  background-color: #ddd;
  color: #333;
  margin: 6px;
}

.btn-primario {
  background-color: #00509e;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancelar {
  background-color: #ccc;
  color: black;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.voluntario {
    background-color: #083366;
    color: white;
    margin: 6px;
}

.voluntario-cancelar {
    background-color: #ddd;
    color: #333;
    margin: 6px;
}

.btn.danger {
  background: #b00020;
  color: white;
}
.btn.danger:hover {
  filter: brightness(1.1);
}


/* Responsivo */
@media (max-width: 768px) {
  .tabela-produtos {
    margin-left: -14%;
    width: 110%;

  }

  .btn-sair {
    margin-left: 181px;
  }

}
