.rg-dialog__animation {
  position: fixed;
  border: 1px solid rgba(6, 6, 6, 0.6);
  background: rgba(6, 6, 6, 0.1);
  transition: all 0.2s ease-out;
}
.rg-dialog__animation.rg-dialog--notransition {
  transition: none !important;
}
.rg-dialog {
  overflow: hidden;
  background-color: #ffffff;
  min-width: 20vw;
  box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.1);
  max-height: 100vh;
  margin: 0;
  padding: 0;
  position: fixed;
  outline: 2px solid rgba(0, 0, 0, 0.1);
  border: none;
  width: fit-content;
  resize: none;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}
.rg-dialog.rg-dialog--floating-header .rg-dialog__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  border: none;
}
.rg-dialog.rg-dialog--inline-close-button .rg-dialog__header button {
  font-size: inherit;
  background: none;
}
.rg-dialog .rg-dialog__container {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.rg-dialog .rg-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
  background-color: #c2c2c2;
  cursor: move;
  height: 2em;
}
.rg-dialog .rg-dialog__header button {
  font-size: 2rem;
  border: none;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg width='1.5rem' height='1.5rem' viewBox='0 0 16 16' class='bi bi-x' fill='currentColor' xmlns='http://www.w3.org/2000/svg'><path fill-rule= 'evenodd' d= 'M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z' /></svg>");
  background-position: center;
  background-color: transparent;
}
.rg-dialog .rg-dialog__header.inactive {
  background-color: #e8e8e8;
}
.rg-dialog .rg-dialog__title {
  line-height: 1.5em;
  font-size: 1em;
  font-weight: 400;
  margin-left: 1em;
  margin-right: 1em;
}
.rg-dialog .rg-dialog__body {
  padding: 1rem;
  overflow-y: auto;
}
.rg-dialog .rg-dialog__body * {
  /* Foreground, Background */
  scrollbar-color: #6a6a6a #b1b1b1;
  scrollbar-width: thin;
}
.rg-dialog .rg-dialog__body h1 {
  margin-top: 0;
}
.rg-dialog .rg-dialog__body time {
  display: blocK;
  padding: 5px 0;
  border-bottom: 1px solid #e8e8e8;
}
.rg-dialog .rg-dialog__progress {
  display: block;
  padding: 0 1rem;
}
.rg-dialog .rg-dialog__progress .rg-dialog__progresstext {
  width: 100%;
  text-align: center;
  min-height: 30px;
  padding: 10px 0;
}
.rg-dialog .rg-dialog__progress .rg-dialog__progresscontainer {
  height: 20px;
  width: 100%;
  background: transparent;
  border: 1px solid #c1c1c1;
  position: relative;
}
.rg-dialog .rg-dialog__progress .rg-dialog__progresscontainer .rg-dialog__progressbar {
  height: 100%;
  width: 100%;
  background: #2d8dfa;
  text-align: center;
  color: #ffffff;
  position: absolute;
}
.rg-dialog .rg-dialog__progress .rg-dialog__progresscontainer .rg-dialog__progressbar.unknown {
  background: linear-gradient(90deg, #2d8dfa, #c2deff, #2d8dfa);
  background-size: 200% 100%;
  animation: progress 5s linear infinite;
}
.rg-dialog .rg-dialog__progress .rg-dialog__progresscontainer .rg-dialog__progressbartext {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 1.3rem;
}
@keyframes progress {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
.rg-dialog .rg-dialog__buttons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.rg-dialog .rg-dialog__buttons button,
.rg-dialog .rg-dialog__buttons button.btn,
#x-msg-box .rg-dialog .rg-dialog__buttons button.btn {
  margin: 10px;
  cursor: pointer;
  hyphens: auto;
  padding: 10px 10px;
  height: auto;
  width: auto;
  min-width: auto;
  line-height: normal;
  border-radius: 0;
}
.rg-dialog.rg-dialog--fullscreen {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
}
.rg-dialog.rg-dialog--sidebar {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  height: auto;
}
.rg-dialog.rg-dialog--sidebar .rg-dialog__header {
  cursor: auto;
}
.rg-dialog.rg-dialog--sidebar.rg-dialog--sidebar-left {
  left: 0;
  right: auto;
}
.rg-dialog.rg-dialog--sidebar.rg-dialog--sidebar-top {
  left: 0;
  top: 0;
  right: 0;
  width: auto;
  bottom: auto;
  max-width: 100% !important;
}
.rg-dialog.rg-dialog--sidebar.rg-dialog--sidebar-bottom {
  left: 0;
  top: auto;
  right: 0;
  width: auto;
  bottom: 0;
  max-width: 100% !important;
}
.rg-dialog.rg-dialog--resizeable {
  resize: both;
}
.rg-dialog.rg-dialog--show-animated {
  opacity: 0;
}
.rg-dialog::backdrop {
  background: rgba(176, 174, 174, 0.6);
  backdrop-filter: blur(10px);
}
.rg-dialog .timerElement {
  height: 2px;
  background: #0088ff;
  width: 100%;
  animation: timer 5s linear infinite;
}
@keyframes timer {
  0% {
    width: 0;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 100%;
  }
}
.rg-fallback .rg-dialog__header {
  border: none;
}
.rg-fallback#x-msg-box .scroll,
.rg-fallback .scroll {
  height: fit-content;
  min-width: 35vw;
}
:root {
  --viewmode: desktop;
}
@media (max-width: 1024px) {
  :root {
    --viewmode: tablet;
  }
}
@media (max-width: 768px) {
  :root {
    --viewmode: mobile;
  }
}
body.preview::after {
  content: "PREVIEW";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000000;
  padding: 10px;
  border: 1px dashed red;
  background: #ffffff;
}
input.required,
textarea.required,
select.required,
input[required],
textarea[required],
select[required] {
  outline: 2px solid #bfe0ed !important;
  outline-offset: 2px;
}
input.invalid,
textarea.invalid,
select.invalid,
input.valid[data-invalid],
input[data-invalid] {
  outline: 2px solid #ff9999 !important;
  outline-offset: 2px;
}
input.valid,
textarea.valid,
select.valid {
  outline: 2px solid #ccff99 !important;
  outline-offset: 2px;
}
input[type=text].waiting,
input.waiting,
textarea.waiting,
select.waiting {
  outline: 2px solid #ffcc00 !important;
  outline-offset: 2px;
}
input[disabled],
textarea[disabled],
select[disabled] {
  background: #ebebe4 !important;
  outline: none !important;
}
label {
  cursor: pointer;
}
span.at {
  text-decoration: inherit;
}
span.at::before {
  content: '@';
  display: inline-block;
  text-decoration: inherit;
  width: auto;
}
