* {
  text-shadow: none;
}

.Grid {
  display: grid;
  grid-gap: 10px;
}

.Section {
  background: white;
  padding: 5px;
  border-radius: .5em;
  margin: 10px 0;
}

.Section.Dark {
  background: #333;
  color: #fff;
}

.Overflow {
  overflow: auto;
}

#Popup form {
  margin: 0;
  max-height: 80vh;
  overflow: auto;
}

#Popup .Title,
#FilePopup .Title {
  font-size: 20px;
}

@media(min-width:420px) {
  #Popup .Section.Max {
    max-width: 50vw;
  }
}

#Popup .Section>.Title,
#FilePopup .Section>.Title {
  font-size: 18px;
}

.Table {
  background: white;
  margin: 5px 0;
  font-size: 14px;
}

.Table>tr>*:not(.Spacer):not(.NoBrdrR),
.Table>*>tr>*:not(.Spacer):not(.NoBrdrR),
.BrdrR {
  border-right: 1px solid #aaa;
}

.Table>tr>*:not(.Spacer):not(.NoBrdrB),
.Table>*>tr>*:not(.Spacer):not(.NoBrdrB),
.BrdrB {
  border-bottom: 1px solid #aaa;
}

.Table>tr>*:first-child:not(.Spacer):not(.NoBrdrL),
.Table>*>tr>*:first-child:not(.Spacer):not(.NoBrdrL),
.BrdrL {
  border-left: 1px solid #aaa;
}

.Table>*:first-child>tr:first-child>*:not(.Spacer):not(.NoBrdrT),
.BrdrT {
  border-top: 1px solid #aaa;
}

.Subtitle {
  font-size: 14px;
  color: grey;
}

.Title>.Subtitle {
  font-size: 16px;
  color: grey;
}

.NoWrap {
  white-space: nowrap;
}

.NoWrap>* {
  display: inline-block;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.MarginAuto {
  margin: auto;
}

.Inline {
  display: inline-block;
}

.Inline>.ui-controlgroup-label {
  display: inline-block;
}

.Small>.ui-input-text {
  margin: 0;
}

.Purple {
  color: purple;
}

.Orange {
  color: orange;
}

textarea {
  resize: vertical;
}

.IconDiv {
  display: inline-block;
}

.IconDiv .fa-file-pdf {
  color: red;
}

.IconDiv .fa-file-image {
  color: #5555ff;
}

.Blue {
  color: rgb(0, 89, 255);
}

.GreenBG {
  background: #e2ffe2;
}

.RedBG {
  background: #ffe2e2;
}

.OrangeBG {
  background: #ffe6b8;
}

.YellowBG {
  background: #ffffb6;
}

.GreyBG {
  background: #eee;
}

.Form .Tasks .List li>* {
  pointer-events: none;
}

@media(min-width:1140px) {
  .Form {
    max-width: 75vw;
  }
}

@media(min-width:420px) {
  .Fields>.Grid {
    grid-template-columns: 1fr 1fr;
  }

  .Fields>.Grid>.Section {
    margin: 5px 0;
  }
}

.UploadsDiv .fas {
  font-size: 24px;
  padding: 10px;
  border-radius: .5em;
}

.UploadsDiv .fas:hover {
  background: #eee;
}

#FilePopup img {
  max-width: 50vw;
  max-height: 50vh;
  border-radius: .5em;
}

#FilePopup iframe {
  width: 50vw;
  height: 50vh;
  border-radius: .5em;
}

.alert {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 16px;
  padding-right: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  z-index: 999;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.success-alert .alert-close:hover {
  background: rgba(0, 100, 0, 0.2);
}

.error-alert .alert-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.warning-alert .alert-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.info-alert .alert-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.success-alert {
  background-color: springgreen;
  color: black;
}

.error-alert {
  background-color: #ff6b6b;
}

.warning-alert {
  background-color: #ffa726;
}

.info-alert {
  background-color: #42a5f5;
}

.alert.auto-hide {
  animation: fadeInOut 5s ease forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }

  10%,
  90% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(20px);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }

  10%,
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {

  0%,
  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(20px);
  }
}