#app-container {
  height: 100dvh;
  display: flex;
  justify-content: center !important;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5dvh 10px;
}

.form-outer-wrapper {
  max-width: 700px;
  width: 100%;
  height: 95%;
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

.form-outer-wrapper > .bg-white {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.risk-types-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
  margin-bottom: 0.5rem !important;
}

@media (min-width: 576px) {
  .risk-types-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.risk-type-item-wrapper {
  width: 100%;
  height: 100%;
}

.risk-type-item {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
}

.risk-type-item .shadow-sm {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  padding: 4px !important;
  width: 100%;
  height: 100%;
}

.radio-input:checked + .shadow-sm {
  border-color: #007bff;
  background-color: #f0f7ff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2) !important;
  transform: translateY(-2px);
}

.risk-type-img-container {
  width: 100%;
  height: 100%;
}

.risk-type-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.buttons {
  width: 50px;
  height: 50px;
  background-color: #e0e0e0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buttons > label {
  cursor: pointer;
}

input[hidden] {
  display: none !important;
}

.archive-item {
  background-color: #b3b3b3;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #222;
}

.archive-item i {
  font-size: 1.2rem;
}

#files-container {
  height: 8dvh;
  min-height: 40px;
  max-height: 110px;
}

.btn-xs {
  padding: 0.1rem 0.4rem;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.x-small {
  font-size: 0.8rem;
}

textarea#risk-description-modal-textarea {
  resize: none;
}

#success-modal-icon {
  font-size: 5rem;
}