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

.modal__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
}

.modal__header a {
  text-decoration: none;
}

.modal__content {
  background-color: white;
  padding: 20px;
  max-width: 50%;
  margin: 30px auto;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__body {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.modal__body section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  margin-bottom: 1rem;
}

.modal__text-field,
.form__toggle {
  font-size: 10pt;
  display: flex;
  flex-direction: column;
}

.modal__text-field input,
.modal__text-field select {
  padding: 10px;
  border: 1px solid gray;
  border-radius: 5px;
}

.modal__close {
  text-decoration: none;
  position: absolute;
  top: 0;
  right: 10px;
  cursor: pointer;
  font-size: 20pt;
  color: black;
}

.modal__title {
  margin-top: 0;
  font-size: 24px;
}

.modal__subtitle {
  margin-bottom: 0;
}

.modal__form {
  margin-top: 2rem;
}

.modal__confirmation-button-group {
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
}

.modal__cancel-button {
  color: black;
  border: 1px solid gray;
  border-radius: 8px;
  background-color: transparent;
  width: 50%;
}

.modal__confirmation-button {
  font-weight: 600;
  border-radius: 8px;
  width: 50%;
}

.modal__text-field__label--error {
  color: red;
}

.modal__text-field--error {
  color: red;
  font-size: 0.875rem;
}

.modal__body .doc__selector {
  width: 350px;
  max-width: 500px;
}

.modal__body.doc__selector--body {
  align-items: center;
  gap: 20px;
}

.modal--visible{
  display: block;
}

.modal__footer{
  margin-top: 1rem;
  text-align: center; 
}
