
/* Utilizado nos campos com obrigatoriedade condicional */
.required-field > label::after {
  color: red;
  content: "*";
}

/* Adiciona em todos os campos required um '*' vermelho */
label.requiredField .asteriskField {
  color: red;
}

#debug-banner {
  width: 100%;
  display: block;
  background-color: #e74c3c;
  text-align: center;
  color: #ecf0f1;
  font-weight: bold;
}

.cursor-help {
  cursor: help;
}

/* Cor dos dropdown-menu no header */

@media (max-width: 767px) {
  .main-header .navbar .dropdown-menu li a {
    color: #777 !important;
  }
}

.trial-info-alert {
  border-radius: 0;
}

.trial-info-alert .close {
  color: white;
  opacity: 1;
}

.trial-info-alert .btn {
  color: #605ca8;
  font-weight: 600;
  text-decoration: none;
}

.mt27 {
  margin-top: 27px;
}

.no-text-decoration {
  text-decoration: none !important;
}

.msg-form-errors li {
  padding-bottom: 5px;
}

/* Usado em formsets */

@media only screen and (min-width: 768px) {
  .row-eq-height {
    display: flex;
    align-items: flex-end;
  }
}

/* django-tables2 */
table thead th.orderable {
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

table thead th.orderable a {
  text-decoration: none;
  color: inherit;
}

table thead th.orderable a:hover {
  text-decoration: none;
  color: inherit;
}

table thead th.orderable:after {
  opacity: 0.2;
  content: "\f0dc";
  font: normal normal normal 14px/1 FontAwesome;
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: block;
}

table thead th.asc.orderable:after {
  content: "\f160";
  opacity: 0.5;
}

table thead th.desc.orderable:after {
  content: "\f161";
  opacity: 0.5;
}

.spinner-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  transition: opacity 1s;
  opacity: 0.7 !important;
  z-index: 50;
}

/* htmx indicator */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: flex;
}

.htmx-request.htmx-indicator {
  display: flex;
}

/* htmx indicator fading */
.htmx-load-indicator {
  display: inline;
  transition: opacity 1s;
  opacity: 1 !important;
}

.htmx-load-indicator.htmx-request {
  opacity: 0.1 !important;
  transition: opacity 1s;
  pointer-events: none;
}

/* fix hr tag layout*/
hr {
  border-top: 1px solid #eee;
}

/* filter-modal css */
@media (min-width: 992px) {
  #filter-modal .modal-lg {
    width: 80%;
  }
}

@media (max-width: 1200px) {
  .btn-action {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }
}

.rejected-column {
  max-width: 250px;
  word-break: break-word;
  white-space: normal !important;
}

td,
th {
  vertical-align: middle !important;
}

/* ckeditor */
.django-ckeditor-widget {
  width: 100%;
}

/* jqueryui autucomplete */
.ui-autocomplete {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1050;
}
.ui-menu .ui-state-focus,
.ui-menu .ui-state-active {
  background-color: #3c8dbc;
  border: #3c8dbc;
}
.ui-menu .ui-menu-item-wrapper {
  padding: 6px 12px;
}
/* fim jqueryui autucomplete */

/* Alpinejs */
[x-cloak] {
  display: none !important;
}
/* fom Alpinejs */

/* fade-out and fade-in */
@keyframes fade-out {
  from {
    opacity: 100%;
  }
  to {
    opacity: 0%;
  }
}
@keyframes fade-in {
  from {
    opacity: 0%;
  }
  to {
    opacity: 100%;
  }
}
/* fom fade-out and fade-in */

/* Addanother */
a.related-widget-wrapper-link {
  text-decoration: none;
}
/* end Addanother */
