CSS Aprimorado Consolidado para Detalhes.php:
CSS

/* Basic styling */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  width: 1000px;
  margin: 50px auto;
  border: 1px solid #ddd;
  padding: 20px;
}

h2 {
  margin-top: 0;
}

ul.info-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

li {
  margin-bottom: 5px;
}

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

th, td {
  padding: 5px;
  border: 1px solid #ddd;
  word-wrap:break-word;
}

#imagens {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

#imagemPrincipal {
  flex: 3;
  padding: 5px;
}

#imagemPrincipal img{
  flex: 2;
  width: 100%;
  padding: 5px;
  
}

#imagensMenores {
  flex: 1;
  padding: 5px;
}

#imagensMenores img {
  width: 100%;
  margin-bottom: 10px;
}

.acoes a {
  text-decoration: none;
  color: #000;
  padding: 10px;
  border: 1px solid #ddd;
}

/* Redefinição de estilos padrão */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Cores */
body {
  background-color: #f5f5f5;
  color: #444;
}

h1, h2 {
  color: #333;
}

.info-list li {
  color: #777;
}



table {
  border-color: #ddd;
}

th, td {
  color: #444;
}

.acoes a {
  color: #007bff;
}

/* Tipografia */
body {
  font-family: "Roboto", sans-serif;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Sombreamento */
h1, h2 {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.acoes a {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Bordas arredondadas */
.acoes a {
  border-radius: 5px;
}
nfeproc{
    display:none;
    
}


/* Ícones */
.acoes a:before {
  content: "";
  margin-right: 10px;
}

#downloadXml:before {
  content: "\f019";
}

#downloadDanfe:before {
  content: "\f157";
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }
  table {
    font-size: 14px;
  }
}

/* Animações */
.acoes a:hover {
  transform: scale(1.1);
}

#produtos {
  animation: fade-in 2s ease-in-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Table Sortability (requires JavaScript) */
/* (This is an example, you'll need to implement the sorting logic using JavaScript) */
.sortable th {
  cursor: pointer;
}

.sortable th:after {
  content: "";
  display: inline-block;
  width: 0px;
  height: 0px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
}

.sortable th.asc {
  border-bottom: none;
  border-top: 5px solid currentColor;
}

/* Table Resizable Columns */
.resizable th {
  cursor: col-resize;
}

.resizable th:after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background-color: #ddd;
}

/* Table Hover Effects */
tr:hover {
  background-color: #eee;
}

/* Empty Table Handling */
#empty-table {
  text-align: center;
  padding: 10px;
}

/* Text Wrapping and Ellipsis */
td {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Redefinição de estilos padrão */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo geral do container */
.container {
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Estilo do título */
h1 {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #444;
  border-bottom: 1px solid #ddd;
}

/* Estilo do formulário */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Estilo do label */
label {
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Estilo do input */
#chaveAcesso {
  width: 100%;
  padding: 15px 20px;
  font-family: Arial, sans-serif;
  font-size: 1.4rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Estilo do botão */
button {
  margin-top: 10px;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  border: 1px solid #000;
  border-radius: 5px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background-color: #444;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
  .container {
    width: 100%;
  }

  /* Ajustar o tamanho da fonte e espaçamento em telas menores */
  h1 {
    font-size: 1.6rem;
  }

  label {
    font-size: 1rem;
  }

  #chaveAcesso {
    font-size: 1.2rem;
  }

  button {
    font-size: 1rem;
  }
}
/* General styles */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.agrupamento {
  display: flex;
  flex-direction: column;
  margin-top: 1em;
}

/* Radio button styles */
.agrupamento p {
  margin: 0.5em 0;
  display: flex;
  align-items: center;
  cursor: pointer; /* Set cursor to pointer on hover */
}

input[type="radio"] {
  opacity: 0;
  position: absolute;
  height: 0;
  width: 0;
}

input[type="radio"] + label {
  position: relative;
  padding-left: 20px;
  font-weight: normal;
}

/* Radio button indicator */
input[type="radio"] + label::before {
content: "";
  display: block;
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
}

input[type="radio"]:checked + label::before {
  background-color: #4CAF50;
}

/* Label styles */
label span {
  margin-left: 1em;
  font-size: 0.8em;
  color: #999;
}

/* Button styles */
button[type="submit"] {
  
  color: white;
  padding: 1.5em 5em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1em;
  font-size:150%;
}

#imprimeUltimo {
  
padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1em;
  background-color: #cacaca;
}


.alerta, .invalid{
   
color: red;
  line-height: 40px;
}

/* Media query for tablets (adjust width as needed) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  .agrupamento {
    flex-direction: row;
    justify-content: space-around;
  }

  .agrupamento p {
    margin: 0 1em;
  }
}
#errorMessage{
        display:none;
color: red;
  line-height: 40px;
    
}

