* {
  box-sizing: border-box
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  padding: 0;
  background-color: #ecedee;
  text-align: center;

}

header {
  
  background-image: linear-gradient(#013d7c, #003b77, #01366c);
  text-align: center;
  box-sizing: border-box;
  border-bottom: 2px solid #c19e00;
  color: white;
  padding: 12px 16px
}

header h1 {
  margin: 0;
  font-size: 18px
}

main {
  flex: 1;
  padding: 12px;
}

.controls {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px
}

.file-btn {
  background: #fff;
  border: 1px dashed #ccc;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer
}

.file-btn:hover {
  border: 1px solid #836b02;
}

.file-btn input {
  display: none
}

.inline {
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 20px;
  align-items: center;
  box-shadow: 0 3px 5px #836b02;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px
}

.thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee
}


.caption {
  width: 100%;
  padding: 6px;
  border: 1px solid #eee;
  border-radius: 6px
}

#botoes {
  margin-top: 20px;

}

.controls button {
  flex-direction: column;
  color: #384048;
  background-image: linear-gradient(rgb(199, 170, 36), rgb(193, 158, 0));
  background-origin: padding-box;
  background-repeat: repeat-x;
  border: 3px solid rgb(199, 170, 36);
  background-size: auto;
  padding: .375rem .75rem;
  border-radius: .25rem;
  font-weight: bold;
  height: 37px;
  text-align: center;
  vertical-align: middle;
  font-size: .875rem;
  cursor: pointer;
  float: right;
  line-height: 12px;
}

#reportNumber {
  border: 1px dashed #0000003b;
  width: auto;
  height: 39px;
  border-radius: 8px;
  padding: 9px 9px;
  font-size: .875rem;
  text-align: center;
}

.estilo1 {
  border: 1px dashed #0000003b;
  background-color: white;
  width: auto;
  height: 35px;
  border-radius: 8px;
  padding: 9px 9px;
  font-size: .875rem;
  text-align: center;
  cursor: pointer;
}

.estilo1:hover {
  border: 1px solid #836b02;
}

#reportNumber:hover {
  border: 1px solid #836b02;
}

.controls button:hover {
  color: white;
  background: #836b02;
  border: 3px solid transparent;
}

.card .actions {
  display: flex;
  gap: 6px;
  justify-content: space-between
}

#btnReinicio {
  background-color: firebrick;
  color: white;
}



#tipoDocumento {
  background-color: white;
  padding: 9px 9px;
  border: 1px dashed #0000003b;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

#tipoDocumento:hover {
  border: 1px solid #836b02;
}

#espaco {
  margin: 5px;
}

#config {
  margin-top: 12px;
  border: 2px solid #836b02;
  border-radius: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
}


footer {
  margin-top: auto;
  font-size: 12px;
  background-image: linear-gradient(#013d7c, #003b77, #01366c);
  text-align: center;
  box-sizing: border-box;
  border-bottom: 2px solid #c19e00;
  color: white;
  padding: 2px 2px;
}

.actions button {
  padding: 2px 5px;
  margin: 0 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s;
}

.actions button:hover {
  transform: scale(1.1);
}



/* Design responsivo */

@media (max-width:900px) {
  .controls {
    flex-direction: column;
    align-items: stretch
  }

  .inline {
    flex-direction: column;
    align-items: stretch
  }
  
}