.agm-dialog {
  max-width: 750px;
  max-height: 550px;
  display: block;
}

.agm-dialog-contents {
  position: absolute;
  top: 90px;
  left: 0px;
  right: 0px;
  bottom: 110px;
  background: white;
  overflow: auto;
}

.agm-dialog-content {
  display: none;
  height: auto;
  min-height: 50px;
  padding-top: 30px;
  padding-left: 100px;
  padding-right: 150px;
  flex-direction: column;
  gap: 0px;
  min-height: 200px;
}

.agm-dialog-content.flex-wrap {
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  align-content: flex-start;
}

.agm-dialog-content h4 {
  font-family: "Roboto", sans-serif;
  width: 100%;
  padding: 0px;
  min-height: 20px;
  line-height: 30px;
  height: 30px;
  color: #595959;
  font-size: 17px;
  font-weight: 400;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: 20px;
}

.agm-dialog-content .agm-dialog-image-label {
  position: relative;
  display: block;
  width: 180px;
  min-height: 100px;
  margin-right: 20px;
}

.agm-dialog-content .agm-dialog-image-box {
  position: relative;
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
}

.agm-dialog-content .agm-dialog-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  display: block;
  margin: 0 auto;
}

.agm-dialog-content .agm-dialog-image-label input[type="file"] {
  display: none;
}

.agm-dialog-content .agm-dialog-image-label span {
  color: #666666;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  width: 180px;
  display: block;
  margin-bottom: 20px;
}

.agm-dialog-content .agm-dialog-image-label span:hover {
  color: #0077b3;
  cursor: pointer;
}

.agm-dialog-contents .content-focus {
  display: flex;
}

.agm-dialog-tab-labels {
  left: 0px;
  right: 0px;
  bottom: 60px;
  height: 45px;
  padding-left: 15px;
  position: absolute;
  z-index: 100;
  display: flex;
  background: white;
  border-top: solid 1px rgba(0, 0, 0, 0.1);
}

.agm-dialog-tab-label {
  height: 40px;
  color: #666666;
  font-size: 14px;
  margin-top: -1px;
  padding-top: 10px;
  padding-left: 15px;
  padding-right: 15px;
  border-top: solid 2px transparent;
}

.agm-dialog-tab-labels .label-focus {
  color: #1a8cff;
  border-top-color: #1a8cff;
}

.agm-dialog-content .agm-dialog-row {
  position: relative;
  height: 45px;
  display: flex;
  margin: 0px;
}

.agm-dialog-input {
  outline: none;
  height: 25px;
  flex-grow: 1;
  color: #666666;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: solid 1px;
  border-bottom-color: #e6e6e6;
}

.agm-dialog-input:focus {
  outline: none;
  color: #0099e6;
  border-width: 2px;
  border-color: #0099e6;
}

.agm-dialog-input.is-readonly {
  color: darkorange;
}

.agm-dialog-label {
  height: 25px;
  font-size: 14px;
  line-height: 24px;
  min-width: 160px;
  padding-right: 20px;
  color: #999999;
  border-bottom: solid 1px;
  border-bottom-color: #e6e6e6;
}

.agm-dialog-row:has(.agm-dialog-input:focus) .agm-dialog-label {
  color: #666666;
}

.agm-dialog-input.is-invalid {
  border-bottom: 1px solid red;
  transition: border-color 0.2s ease;
}

.agm-error-msg {
  color: red;
  font-size: 12px;
  font-style: italic;
  margin-top: 2px;
  display: block;
  position: absolute;
  left: 140px;
  bottom: 0px;
  overflow: hidden;
  will-change: transform, opacity;
  animation: agmSlideDownErrorMsg 0.3s ease-out forwards;
}

@keyframes agmSlideDownErrorMsg {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 40px;
  }
}
