html {
  min-height: 100%;
}

body {
  min-height: 100%;
  background-color: #f9f9f9;
}

footer {
  color: #b2b2b2;
  border-top: 0.1rem solid #e2e2e2;
}

.conteudo {
  padding: 1rem 1rem 1rem 1rem;
  background-color: #ffffff;
  border-width: 0.1rem;
  border-style: solid;
  border-color: #e2e2e2;
  border-radius: 0.2rem;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.form-signin {
  max-width: 50rem;
}

.form-signin .checkbox {
  font-weight: 400;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

hr.vertical {
  margin: 0 auto;
  width: 2px;
  background-color: silver;
  height: 100%;
  border-radius: 2px;
}

#usuario {
  z-index: 2147483647 !important;
}

@media screen and (max-width: 768px) {
  .img-login {
    width: 35% !important;
  }
  .form-floating.rcp {
    text-align: center !important;
  }
}
.form-senha {
  max-width: 400px;
  width: 100%;
}

.page-item.active .page-link {
  background-color: #dc3545 !important;
  border-color: #adadad !important;
}
.accordion-button:not(.collapsed) {
  color: #dc3545 !important;
}

/*#region Semantic Dropdown Validation*/
/*.was-validated .ui.selection.dropdown:has(input[name][id]:invalid) > input.search {*/
.was-validated
  .ui.selection.dropdown:has(input[name][id]:invalid)
  > input.search {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(2em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
  padding-top: 0.6rem;
}

.was-validated
  .ui.multiple.selection.dropdown:has(input[name][id]:invalid)
  > input.search {
  background-position: right center !important;
  width: inherit !important;
}

.was-validated
  .ui.multiple.selection.dropdown:has(input[name][id]:valid)
  > input.search {
  padding-right: 0 !important;
  background-position: right -0.25rem center, center right 2.25rem !important;
  background-image: unset !important;
}

.was-validated .ui.selection.dropdown:has(input[name][id]:invalid) {
  border-color: #dc3545;
}

.was-validated
  .ui.selection.dropdown:has(input[name][id]:valid)
  > input.search {
  border-color: #198754 !important;
  padding-right: 4.125rem !important;
  /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;*/
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center, center right 2.25rem !important;
  background-size: 53px 20px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
  padding-top: 0.6rem;
}
.was-validated .ui.selection.dropdown:has(input[name][id]:valid) {
  border-color: #198754 !important;
}

.dropdown-menu .dropdown-item.active,
.dropdown-item:active {
  background: rgba(255, 0, 0, 0.3);
  color: #000;
}
/*#endregion*/

/*#region Datatable Personalizado*/
/*COR LETRA DO GROUP*/
table tbody > tr.color-row-group-e193 > th {
  color: #fff !important;
}

/*Group header vermelho*/
table > tbody > tr.color-row-group-e193,
table > tbody > tr.color-row-group-e193 > th,
table.dataTable.hover tbody tr.color-row-group-e193:hover {
  background-color: rgb(220 53 69 / 90%) !important;
  color: white;
}
/*Group header Cinza*/
table > tbody > tr.color-row-group-total-e193,
table.dataTable.hover tbody tr.color-row-group-total-e193:hover,
table > tbody > tr.color-row-group-total-e193 > td,
table.dataTable.hover tbody tr.color-row-group-total-e193:hover > td {
  background-color: rgb(99, 99, 99) !important;
  color: white;
}

table > tfoot > tr.color-footer-total-e193 > th {
  background-color: rgb(99, 99, 99) !important;
  text-align: center;
  color: white;
}

table > tbody > tr.color-row-group-total-e193 th {
  padding: 0px;
}
/*Hover toggle color*/
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
  background-color: #00000015 !important;
}
/*Hover toggle color*/
table.dataTable.hover tbody tr:hover > td,
table.dataTable.hover tbody tr:hover > th,
table.dataTable.display tbody tr:hover > td,
table.dataTable.display tbody tr:hover > th {
  background-color: #00000015 !important;
}
/*Adiciona classe de bordas no toggle Exibir Bordas*/
table.dataTable.cell-bordered tbody th,
table.dataTable.cell-bordered tbody td {
  border: 1px solid #000;
  border-collapse: collapse;
}

/*RESPONSIVE BREAK*/
table.dataTable tr > th {
  white-space: normal !important;
}

.break-string {
  white-space: normal !important;
}

/*Add class cursor que não existe no BS*/
.cursor-table {
  cursor: pointer;
}

/* Usada para Ocultar e depois remover o header de tabelas adaptadas*/
th.thide {
  display: none;
}

/*Força zerar as margerns default do bootstrap*/
table.table.dataTable.my-0 {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}
/* Adapta a caixa de busca para o Galaxy Fold*/
@media screen and (max-width: 281px) {
  input.form-control-sm {
    width: 8rem !important;
  }
}
/* Mostra o id printThisContent apenas no modo print*/
/*Tag Midia usada somente para o Print Ocorrencia em Guarnicao, Ajustar se usar em mais janelas*/
@media print {
  #printThisContent {
    display: contents !important;
  }
  /*Tabela Imprimir sem cortes verticais no colspam*/
  #printThisContent table {
    table-layout: fixed;
  }
  /*Não permite deixar repetir o thead ao trocar de pagina*/
  #printThisContent thead {
    display: table-row-group;
  }
  /*Não permite deixar repetir o tbody ao trocar de pagina*/
  #printThisContent tfoot {
    display: table-row-group;
  }
  /*Oculta o botao voltar*/
  #printThisContent input {
    display: none !important;
  }

  #printThisParte {
    display: contents !important;
  }

  #printThisParte table {
    margin-bottom: 1.5rem !important;
  }

  #printThisParte div.alert.primeira.alert-danger.text-center.fw-bold {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  #printThisParte .alert.alert-danger.text-center.fw-bold {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
  }
}

/*#endregion*/
/*Extend Bootstrap min-vh Values*/
.min-vh-25 {
  min-height: 25vh !important;
}

#txt_valido {
  background-color: unset;
  border: 0px;
  font-weight: bold;
}

.alter-filtros {
  background-color: #dc3546c2;
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border-radius: 0.25rem;
  font-weight: 700 !important;
  width: 100%;
}

.alter-filtros:hover {
  background-color: #dc3545;
  content: " - Teste";
}

.alter-content {
  display: none;
  overflow: hidden;
}

/*NAVBAR MULTLEVEL*/
.dropdown-menu {
  margin-top: 0;
}
.dropdown-menu .dropdown-toggle::after {
  vertical-align: middle;
  border-left: 4px solid;
  border-bottom: 4px solid transparent;
  border-top: 4px solid transparent;
}
.dropdown-menu .dropdown .dropdown-menu {
  left: 100%;
  top: 0%;
  margin: 0 20px;
  border-width: 0;
}
.dropdown-menu .dropdown .dropdown-menu.left {
  right: 100%;
  left: auto;
}
@media (min-width: 768px) {
  .dropdown-menu .dropdown .dropdown-menu {
    margin: 0;
    border-width: 1px;
  }
}

.ui.search.selection.dropdown > .text {
  /*padding: 0.375rem 2rem 0.375rem 0.75rem;*/
  padding: 0.375rem 0rem 0.375rem 0rem;

}

.ui.search.dropdown > .text {
  padding-top: 0;
  overflow: clip;
}

.custom-flex {
  display: flex;
  align-items: stretch;
}

.custom-flex .ui.dropdown {
  flex: 1; /* ocupa o espaço restante */
  min-width: 0; /* evita overflow horizontal */
}

.custom-flex .btn {
  white-space: nowrap; /* impede quebra de linha */
  flex-shrink: 0; /* impede o botão de encolher */
}

.navbar-btns-e {
  background-color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: none;
  color: #333;
  cursor: pointer;
  font-size: 20px;
  outline: none;
  padding: 0;
  transition: box-shadow 0.2s ease;
  width: 2em;
  height: 2em;
}

.navbar-btns-e:hover {
  box-shadow: 0px 0px 1em 1px rgb(126 3 3);
  transition: box-shadow 0.4s ease;
}

.navbar-btns-e i {
  display: block;
  margin: 0 auto;
  margin-top: 10px;
}
.nvuser_class,
.nvnotice_class {
  font-size: 1rem !important;
  margin: 0px !important;
}
.navbar-btns-e > i:hover {
  text-shadow: 0px 0px 16px rgb(131 0 0 / 68%);
  transition: text-shadow 0.5s ease;
}

@media (max-width: 992px) {
  #navbarSupportedContent > .mx-1 {
    margin-bottom: 0.5em;
  }
}
.nvnotice_class > .badge {
  font-size: 0.65em;
}
.nvnotice_class > .translate-middle {
  transform: translate(-80%, -50%) !important;
}
.nvnotice_class > span {
  background-color: #7a0303;
}
div#popupNotify,
div#popupUser {
  z-index: 9999;
}

/*Loggout*/
.nav-user-popup {
  top: 3em;
  right: 0.5em;
}

.nav-user-popup-content {
  min-width: 160px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 3em;
  right: 0.5em;
}

.nav-user-popup-item {
  padding: 10px;
  font-size: 14px;
  color: #333;
}

.nav-user-popup-item:hover {
  background-color: #f5f5f5;
  border-radius: 5px;
}

.nav-user-popup-content a {
  color: #333;
  text-decoration: none;
}

.nav-user-popup-item i,
.username-popup i {
  margin-right: 10px;
}

/*Popup Notificações*/
/* estilos para o botão de notificações */
.notif-btn {
  position: relative;
  display: inline-block;
  font-size: 20px;
  margin-right: 20px;
  cursor: pointer;
}

.notif-btn:hover {
  color: #fff;
}

/* estilo do popup de notificações */
.notif-popup {
  top: 3em;
  right: 0.5em;
  z-index: 999;
  width: 300px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.notif-popup .notif-header {
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  background-color: #f44336;
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.notif-popup .notif-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: scroll;
}

.notif-popup .notif-list ul li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.notif-popup .notif-list ul a {
  color: #333;
  text-decoration: none;
}

.notif-popup .notif-list ul li:hover {
  background-color: #f2f2f2;
}

a.link > .notif-footer {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  background-color: #f2f2f2;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-color: #c1c1c1;
  border-top-style: solid;
  border-top-width: 0.1em;
}
a.link > .notif-footer:hover {
  background-color: #dbdbdb;
}

a.link {
  text-decoration: none;
  color: #f44336 !important;
}

.notif-popup .link:hover {
  text-decoration: underline;
}

.notify_panel {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-column-gap: 15px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.notify_panel:hover {
  background-color: #f2f2f2;
}

.notify_panel-title {
  font-size: 18px;
  font-weight: bold;
}

.notify_panel-actions {
  display: flex;
  justify-content: flex-end;
}

.notify_panel-actions button {
  background-color: transparent;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.notify_panel-actions button:hover {
  color: #333;
}

.notify_panel-actions .btn-view {
  margin-right: 10px;
}

i.btn-delete {
  color: #f44336;
}
.notif-timestamp {
  bottom: -0.7em;
  right: 1em;
  transform: translateY(-50%);
  font-size: 12px;
  color: #919191;
}

tr.not-read {
  font-weight: bold;
  background-color: #f5f5f5;
}
.username-popup {
  padding: 10px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.tox.tox-tinymce.focus_valid {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.tox.tox-tinymce.valid {
  border: 1px solid #198754;
}

.tox.tox-tinymce.focus_invalid {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.tox.tox-tinymce.invalid {
  border: 1px solid #dc3545;
}

.tab-content > div > div > .tox-tinymce {
  border-width: 0px 1px 1px 1px !important; /* Adiciona bordas em todos os lados, exceto na parte superior */
  border-style: solid !important;
  border-color: var(--bs-border-color) !important;
  border-radius: 0px !important;
}
.nav-link {
  color: black;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: red;
  border-width: 1px 1px 0px 1px !important; /* Adiciona bordas em todos os lados, exceto na parte superior */
}
.nav-link:focus,
.nav-link:hover {
  color: rgb(131, 2, 2);
}

.map-layer-custom-icon {
  font-size: 24px; /* Tamanho da fonte em pixels */
  text-shadow: 3px 3px 2px rgb(0 0 0);
  text-shadow: -1px -1px 3px #000, 1px -1px 3px #000, -1px 1px 3px #000,
    1px 1px 3px #000;
}

input.leaflet-control-layers-selector.leaflet-layerstree-sel-all-checkbox {
  margin-right: 0.2em;
}

/* Estilo para o balão de popup */
.leaflet-popup-content-wrapper {
  background-color: transparent; /* Fundo transparente */
  box-shadow: none; /* Sem sombra */
  border: none; /* Sem borda */
}

/* Estilo para o conteúdo dentro do balão */
.leaflet-popup-content-wrapper #map_link {
  color: #fff; /* Cor do texto branco */
  border-radius: 6px; /* Cantos arredondados */
}

/* Estilo para o link dentro do balão */
.leaflet-popup-content-wrapper #map_link p#map_link_oc {
  color: #ff0000; /* Cor do link laranja */
  text-decoration: none; /* Remove sublinhado */
  font-weight: bold; /* Texto em negrito */
  cursor: pointer; /* Altera o cursor para indicar que é clicável */
}

/* Altera o estilo do link quando passa o mouse sobre ele */
.leaflet-popup-content-wrapper #map_link p#map_link_oc:hover {
  text-decoration: underline; /* Adiciona sublinhado ao passar o mouse */
}

#map_camadas
  .leaflet-control-layers-overlays
  div
  div
  div
  div
  div
  div
  .leaflet-layerstree-children {
  padding-left: 42px;
}

.aud-row-delete td {
  background-color: #dc354582;
}

.aud-row-update td {
  background-color: #84ce0c47;
  cursor: pointer;
}

td.aud-row-different-cell {
  background-color: #c5c90047;
}

#oc_table_oco_pendentes tr.dtrg-group.dtrg-start.dtrg-level-0 th {
  background-color: rgb(255 0 24 / 80%) !important;
  color: white;
}

#oc_table_oco_pendentes tr.dtrg-group.dtrg-start.dtrg-level-1 th {
  background-color: rgb(220 53 69 / 90%) !important;
  color: white;
}


#lightSwitch.no-anim .sun,
#lightSwitch.no-anim .moon,
#lightSwitch.no-anim .star,
#lightSwitch.no-anim .star.small,
#lightSwitch.no-anim .star::before,
#lightSwitch.no-anim .star::after {
  transition: none !important;
  animation: none !important;
}

.sun {
  width: 50%;
  height: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6) rotate(0deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;

  /*  white transparent for Safari  */
  /*background: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, #f0f0f0 50%);*/
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, #eb0a0a 50%);
}

.sun:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    #eb0a0a 30%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 50%,
    #eb0a0a 50%
  );
  transform: rotate(45deg);
}

.sun.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(180deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;
}

.moon {
  width: 50%;
  height: 50%;
  pointer-events: none;
  position: absolute;
  left: 6%;
  top: 18.75%;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 50%;
  box-shadow: 7px 3px 0px 0px #eb0a0a;
  opacity: 0;
  transform: scale(0.3) rotate(65deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;
}

.moon.visible {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;
}

.star {
  position: absolute;
  top: 5%;
  left: 0%;
  display: block;
  width: 0px;
  height: 0px;
  border-right: 7px solid rgba(0, 0, 0, 0);
  border-bottom: 5px solid #eb0a0a;
  border-left: 7px solid rgba(0, 0, 0, 0);
  transform: scale(0.55) rotate(35deg);
  opacity: 0;
  transition: all 0.2s ease-in 0.4s;
}

.star:before {
  border-bottom: 5px solid #eb0a0a;
  border-left: 3px solid rgba(0, 0, 0, 0);
  border-right: 3px solid rgba(0, 0, 0, 0);
  position: absolute;
  height: 0;
  width: 0;
  top: -3px;
  left: -5px;
  display: block;
  content: "";
  transform: rotate(-35deg);
}

.star:after {
  position: absolute;
  display: block;
  color: red;
  top: 0px;
  left: -7px;
  width: 0px;
  height: 0px;
  border-right: 7px solid rgba(0, 0, 0, 0);
  border-bottom: 5px solid #eb0a0a;
  border-left: 7px solid rgba(0, 0, 0, 0);
  transform: rotate(-70deg);
  content: "";
}

.moon.visible .star {
  opacity: 0.8;
  /*   transform: rotate(35deg); */
}

.star.small {
  transform: scale(0.35) rotate(35deg);
  position: relative;
  top: 50%;
  left: 17.5%;
  opacity: 0;
  transition: all 0.2s ease-in 0.45s;
}

.moon.visible .star.small {
  opacity: 0.7;
  transform: scale(0.45) rotate(35deg);
}

button.navbar-btns-e i.position-absolute {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

tr.dtrg-group.dtrg-level-0 th  {
  background-color: rgb(220 53 69 / 90%) !important;
  color: #fff !important;
}

tr.dtrg-group.dtrg-level-1 th  {
  background-color: rgb(220 53 69 / 90%) !important;
  color: #fff !important;
}
