.g4admin-link {
  position: fixed;
  top: 4mm;
  left: 2mm;
}

.g4admin-link a {
  background-color: #7ea8f8;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 10pt;
  border-radius: 2mm;
  padding: 2mm;
}

.g4admin-link a:hover {
  background-color: red;
  color: white;
}

.badge {
  background-color: darkred;
  color: white;
  font-size: 9pt;
  font-weight: bold;
  margin-left: 1em;
  padding: 0.4em;
  border-radius: 0.5em;
}

/*
  dialogs
*/

dialog {
  border: 1px solid black;
  margin: 0;
  padding: 1mm;
  background-color: #e1ede4;
  filter: drop-shadow(5px 9px 7px #000000);
  position: fixed;
  top: 25vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  max-width: 50%;
}

dialog::backdrop {
  background-color: black;
  opacity: 0.5;
}

.dialog-title {
  font-size: 12pt;
  font-weight: bold;
  border-bottom: 1px solid gray;
  margin-bottom: 1mm;
}

.dialog-content {
  display: block;
}

.dialog-controls {
  border-top: 1px solid gray;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.display-controls-left {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.display-controls-right {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.dialog-fields {
  display: flex;
  flex-direction: column;
}

.dialog-field {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  height: 2em;
}

.dialog-field-label {
  display: inline-block;
  font-size: 10pt;
  margin-right: 0.5em;
  font-weight: bold;
  text-align: right;
  user-select: none;
  text-wrap: nowrap;
}

.dialog-field-checkbox {
  margin-top: 1mm;
}

.dialog-field-checkbox-label {
  display: inline-block;
  font-size: 10pt;
  margin-left: 0.5em;
  user-select: none;
  text-wrap: nowrap;
}

.dialog-field-input {
  padding: 1mm;
  margin-bottom: 1mm;
}

.dialog-field-select {
  padding: 1mm;
  margin-bottom: 1mm;
}

.dialog-field-checkbox {
  padding: 1mm;
  margin-bottom: 1mm;
}

/*
  toasts
*/

.toaster-layer {
  z-index: 20;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
}

.toasts {
  display: flex;
  flex-direction: column;
  margin: 1mm;
}

.toast {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  margin-bottom: 1mm;
  text-align: right;
  font-size: 12pt;
  font-weight: bold;
  border-radius: 0.25rem;
  text-wrap: nowrap;
}

.toast-info {
  color: white;
  background-color: blue;
}

.toast-warning {
  color: black;
  background-color: yellow;
}

.toast-error {
  color: white;
  background-color: red;
}

.fade-in {
  animation: fadeIn linear 0.5s;
}

.fade-out {
  animation: fadeOut linear 0.5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    max-height: 0px;
  }

  100% {
    opacity: 1;
    max-height: 100px;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    max-height: 100px;
  }
  100% {
    opacity: 0;
    max-height: 0;
  }
}
