/* 
- Geraldo
- custom CSS classes para SGA
*/

/* === General Custom settings ===  */

.mt {
  margin: 1.5rem 0 !important;
}

.m0 {
  margin: 0 !important;
}
.mt8 {
  margin-top: 8px;
}
.mt30 {
  margin-top: 30px;
}

.mt10 {
  margin-top: 10px !important;
}
.mt20 {
  margin-top: 20px !important;
}
.mt30 {
  margin-top: 30px !important;
}
.mt50 {
  margin-top: 50px !important;
}
.mbock30 {
  margin-block: 30px;
}

.mb {
  margin-bottom: 1.5rem;
}

.txt1x5 {
  font-size: 1.5rem;
}

.txt2x {
  font-size: 2rem;
}

.top_logosga img {
  width: 50%;
  margin-left: -130px;
}

.required:after {
  content: '*' !important;
  font-size: 1.5rem;
  color: rgba(255, 0, 0, 0.6) !important;
}

.is-invalid {
  border: 1px solid rgba(255, 0, 0, 0.4) !important;
  background-color: #fff5f5 !important;
}

/* Bloqueia botões de editar, utilizar na div e utilizar 'readonly' no select */
.bloquear-acoes-mouse {
  pointer-events: none;
  cursor: not-allowed !important;
  color: #6c757d !important;
}

.bloquear-acoes-mouse:hover,
.bloquear-acoes-mouse:focus {
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* ==================== Central Unificada - CTU001 ==================== */

.centralUnificada.modal-dialog {
  max-width: 92vw;
  width: 100%;
}

.required:after {
  content: '*';
  color: rgba(255, 0, 0, 0.6) !important;
}

span.toggleInput-eye-slash {
  position: absolute !important;
  right: 15px !important;
  top: 27px !important;
  cursor: pointer !important;
}

/* tamanho minimo de alguns elementos */
.minwid {
  min-width: 100px;
}

.hovereffectbuttons:hover,
i:hover {
  transition: all 0.5s;
  transform: rotate(3deg);
}

.disabledinput {
  color: #a1a1a1;
}

i[disabled] {
  color: #a1a1a1;
}

/* badge nas tables - status  */
.badgeTable {
  background: #7089ac !important;
  padding: 4px 10px;
  color: #fff;
  border-radius: 4px !important;
  width: fit-content;
}
.badgeTableGreen {
  background: #1d9720 !important;
  padding: 4px 10px;
  color: #fff;
  border-radius: 4px !important;
  width: fit-content;
}
.badgeTableGray {
  background: gray !important;
  padding: 4px 10px;
  color: #fff;
  border-radius: 4px !important;
  width: fit-content;
}

.badgeTableVencido {
  background: #9e2a2b !important;
  padding: 4px 10px;
  width: fit-content;
  color: #fff;
  border-radius: 4px !important;
}
.badgeTableBloqueado {
  background: #f0ad4e !important;
  padding: 4px 10px;
  width: fit-content;
  color: #fff;
  border-radius: 4px !important;
}

.badgeTablePrimary {
  background: var(--primaryColor) !important;
  padding: 4px 10px;
  width: fit-content;
  color: #fff;
  border-radius: 4px !important;
}

/* 
* @since: 10/01/2024
* @Author: Geraldo Costa
* @Description: Faz o style da paginação na CON001
*/
.pagination li {
  background: #7089ac;
}

.pagination > li > a,
.pagination > li > span {
  background: #7089ac !important;
  color: #fff;
  margin: 0 1px;
  border-radius: 0.3125rem;
  &:hover {
    background-color: #0a2a56 !important;
    color: #fff;
  }
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
  background-color: #0a2a56 !important;
}

/* custom class para alinhamentos dos checkboxs */
.checkboxs {
  display: flex;
  align-items: center;
  gap: 5px;
  & label {
    margin: 0 !important;
    margin-left: 10px;
    cursor: pointer;
  }
}

.checkboxs.black {
  color: #000;
}

.form-group {
  margin-top: 10px;
  margin-bottom: 5px;
}

.tabelaPrograma > thead > tr > th {
  position: sticky;
  top: -1px;
  background: linear-gradient(#202a44, #0a2a56);
}

/* === Display Flex by Geraldo === */

.dflex {
  display: flex;
}

.flexcol {
  flex-direction: column;
}

.just-between {
  justify-content: space-between;
}
.just-around {
  justify-content: space-around;
}

.just-evenly {
  justify-content: space-evenly;
}
.just-center {
  justify-content: center;
}
.just-start {
  justify-content: flex-start;
}

.just-end {
  justify-content: flex-end;
}

.aligncenter {
  align-items: center;
}

.flexstart {
  align-items: flex-start;
}

.flexend {
  align-items: flex-end;
}

.flexgap2 {
  gap: 2rem;
}

.flexgap05 {
  gap: 0.5rem;
}

.flexgap1 {
  gap: 1rem;
}

.flex55 {
  flex: 1 0 50%;
}
.flex1 {
  flex: 1 !important;
}

.flexwrap {
  flex-wrap: wrap;
}

.relative {
  position: relative;
}

.none {
  display: none;
}

.hidden {
  visibility: hidden;
}

/* ESPECIFICAMENTE PARA O COMPONENT DE TOGGLE PASSWORD */
span.toggleInput-eye-slash_sga {
  position: absolute !important;
  right: 5px !important;
  top: 8px;
  cursor: pointer !important;
  & i {
    font-size: 2rem;
  }
}

/* === snipper para DataTables === */
.spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
}

.spinner-wrapper2 {
  position: relative;
  width: 40px;
  height: 40px;
}

.spinnerTable {
  width: 100%;
  height: 100%;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-left: 5px solid #0a2a56;
  border-radius: 50%;
  animation: spinTable 1s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
}

.spinnerTable.border_blue {
  border-left: 5px solid #87b2ec;
}

@keyframes spinTable {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-text {
  position: absolute;
  font-family: 'Roboto', 'Helvetica Neue', Arial, 'Droid Sans';
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #3498db;
}

.popover-content {
  color: #000;
}

/* hide all menu and sga logo */

.xdataTables_wrapper {
  display: flex;
  flex-direction: column;
}

txable.dataTable {
  width: 100%;
  table-layout: auto; /* Deixa a tabela flexível */
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.popover {
  display: none; /* inicialmente hidden */
  position: absolute;
  right: 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* elemento rotacionar */
.rotate {
  display: inline-block;
  animation: spin 2s linear infinite;
}

/* CORES */
.text-red {
  color: #e74c3ce0;
}

.text-coral {
  color: #ff8000;
}

.text-bold {
  font-weight: bold;
}

.text-green {
  color: #01af66;
}

.text-white {
  color: #fff;
}
.text-black {
  color: #000;
}

/* component de detalhes - para ser usado para qualquer página */
.card_details_sga {
  background: var(--primaryColor) !important;
  color: #fff;
  border-radius: 5px;
  padding: 2rem;
  font-size: 1.5rem;
  gap: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.target_link::after,
[target='_blank']:not(form, .notIconLink)::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 5px 0 3px;
}

.alert_info.danger {
  & p {
    color: red;
  }
}

.details_fluxo_card {
  background: linear-gradient(#202a44, #0a2a56);
  color: #fff;
  border-radius: 5px;
  padding: 10px;
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.badge_alert {
  background: #f0ad4e;
  padding: 5px 10px;
  color: #fff;
  border-radius: 4px !important;
}

/* Norberto - classes bootstrap 5 em 3/2/2025 */
.text-truncate {
  max-width: 97%;
  width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-warning {
  /* color: #212529; */
  background-color: #ffc107 !important;
  width: auto !important;
  height: auto !important;
  padding: 4px 6px !important;
  border-radius: 50% !important;
}
.badge.badge-warning:hover,
.badge.badge-warning:focus,
.badge.badge-warning:active {
  color: #212529 !important;
  background-color: #ffc107 !important;
}

.badge-ajustado {
  padding: 5px 10px !important;
  text-transform: lowercase;
  margin-left: 5px;
  vertical-align: baseline;
  font-weight: 600;
}

.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-inline-block {
  display: inline-block;
}

.p-0 {
  padding: 0rem;
}
.p-1 {
  padding: 1rem;
}
.p-2 {
  padding: 1.25rem;
}
.p-3 {
  padding: 1.5rem;
}

.pb-0 {
  padding-bottom: 0rem;
}
.pb-1 {
  padding-bottom: 1rem;
}
.pb-2 {
  padding-bottom: 1.25rem;
}
.pb-3 {
  padding-bottom: 1.5rem;
}

.pl-0 {
  padding-left: 0rem;
}
.pl-1 {
  padding-left: 1rem;
}
.pl-2 {
  padding-left: 1.25rem;
}
.pl-3 {
  padding-left: 1.5rem;
}

.pr-0 {
  padding-right: 0rem;
}
.pr-1 {
  padding-right: 1rem;
}
.pr-2 {
  padding-right: 1.25rem;
}
.pr-3 {
  padding-right: 1.5rem;
}

.pl-15 {
  padding-left: 15px;
}
.pl-10 {
  padding-left: 10px;
}
.p-5 {
  padding: 5px;
}
.pt-10 {
  padding-top: 10px;
}

.pt-20 {
  padding-top: 20px !important;
}

.pb-10 {
  padding-bottom: 10px;
}
.mb-15 {
  margin-bottom: 15px;
}
.mb-0 {
  margin-bottom: 0px;
}
.mt-0 {
  margin-top: 0px !important;
}

.mt-10 {
  margin-top: 10px !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.ml-5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px !important;
}

.mr-5 {
  margin-right: 5px !important;
}

.mr-10 {
  margin-right: 10px !important;
}

.text-center {
  text-align: center;
}

.w100 {
  width: 100% !important;
}

.table-row-stripe > .row:nth-child(even),
.table-row-stripe > div > .row:nth-child(even) {
  background-color: #fff !important;
  padding: 5px 0px;
}
.table-row-stripe > .row:nth-child(odd),
.table-row-stripe > div > .row:nth-child(odd) {
  background-color: #f0f6ff !important;
  padding: 5px 0px;
}

.badge-xl-box-grupo {
  font-size: 20px;
  padding: 10px 10px !important;
  position: absolute;
  right: 5px;
}
.badge-xl-box-grupo .label {
  font-size: 12px;
  font-weight: normal;
  color: #000;
  letter-spacing: 0.05rem;
}

.max-height-300 {
  max-height: 300px;
  overflow: auto;
}

@media (min-width: 992px) {
  .modal-lg {
    width: 90%;
  }
}

.btnHtmlGrupo {
  color: blue;
}
.btnHtmlGrupo:hover {
  text-decoration: underline;
}

.steps_button {
  background-color: #0a2a56;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
.steps_button:hover {
  background-color: #7089ac;
}

/* fecha norberto */

.fas.fa-check {
  color: #1d9720;
}
.fas.fa-times {
  color: #ff0000;
}

.disabled {
  background: #a1a1a1 !important;
  border-color: #a1a1a1 !important;
}

.disabledbtn {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.inactive_tab {
  pointer-events: none;
  background-color: #c2c2c2 !important;
}

/* novos efeitos CSS - Geraldo */

.highlight-effect {
  background-image: linear-gradient(90deg, #ffeb3b, #ffeb3b); /* Cor do destaque */
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s ease-in-out;
}

.highlight-effect:hover {
  background-size: 100% 100%; /* Expande o destaque ao passar o mouse */
}

@keyframes highlight {
  0% {
    background-size: 0% 100%;
  }
  100% {
    background-size: 100% 100%;
  }
}

.auto-highlight {
  background-image: linear-gradient(90deg, #a63939, #a63939);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  animation: highlight 1.8s ease-in-out forwards;
}

.auto-highlight-green {
  background-image: linear-gradient(90deg, #a8edea, #a8edea);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  color: #1a1a1a;
  border-radius: 5px;
  padding: 5px;
  animation: highlight 1.8s ease-in-out forwards;
}

.fa-file-csv:before {
  content: '\f6dd';
  color: green;
}

summary {
  cursor: pointer;
  &:hover {
    color: #a3a5a3;
  }
}

/* custom modal size - modal com tamanho personalizado - gmapdev */
.modal_custom_size {
  max-width: 800px;
  margin: 0 auto;
}

.smaller {
  font-size: smaller;
}

.risco_radius {
  padding: 5px;
  border-radius: 5px;
}

/*  botão moderno, com visual "poderoso", que siga o tom #7089ac (um azul acinzentado elegante), com toque de profissionalismo + suavidade + responsividade. - GeraldoDev - 18/04 */
.custom-sga-button {
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(112, 137, 172, 0.3);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-sga-button:hover {
  background-color: var(--dark-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(112, 137, 172, 0.4);
}

.custom-sga-button:disabled,
.custom-sga-button.disabled {
  background-color: #c2c9d6 !important;
  color: #7a7a7a !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.7;
  transform: none;
}

.custom-sga-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(112, 137, 172, 0.2);
}

.custom-sga-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(112, 137, 172, 0.4);
}
/* destacar title no modal */
.title-processo {
  background-color: #1468cb;
  padding: 2px;
  border-radius: 4px;
  padding-inline: 10px;
}

.scroll {
  overflow: scroll;
}

.btn-excel {
  background-color: #28a745; /* Verde */
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  font-weight: bold;
}

.btn-excel:hover {
  background-color: #218838;
}

/* STATUS ONLINE */
.status-container {
  display: inline-flex;
  align-items: center;
  background-color: #eafbe7;
  border: 1px solid #4caf50;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: Arial, sans-serif;
  font-size: 1.4rem;
  color: #4caf50;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 150px;
  width: 100%;
  margin-bottom: 5px;
}

.status-container_laranja {
  display: inline-flex;
  align-items: center;
  background-color: #fff1e6;
  border: 1px solid #ff5722;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #ff5722;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}

/* deixa o elemento junto ao menu quando é realizado o scroll da página */
.sticky {
  position: sticky;
  top: 54px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background-color: #4caf50;
  box-shadow: 0 0 8px #4caf50;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 8px #4caf50;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 16px #4caf50;
    transform: scale(1.3);
  }
  100% {
    box-shadow: 0 0 8px #4caf50;
    transform: scale(1);
  }
}
/* container do link */
.link-relatorio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
}

/* pílula de fundo (estilo "Atualizado em...") */
.link-relatorio .pill-info {
  display: inline-flex;
  align-items: center;

  background-color: #fff4ec; /* fundo claro */
  color: #ff6b2c; /* texto laranja */

  border: 1px solid #ff6b2c; /* contorno */
  border-radius: 999px; /* pílula */

  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;

  white-space: nowrap;

  /* garante sobreposição */
  position: relative;
  z-index: 2;
}

/* ícone */
.link-relatorio .fa-circle {
  color: #ff6b2c;
}

/* hover elegante */
.link-relatorio:hover .pill-info {
  background-color: #ffe6d8;
}

.dot_laranja {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background-color: #ff5722;
  box-shadow: 0 0 8px #ff5722;
  animation: pulse_laranja 1.5s infinite;
}

@keyframes pulse_laranja {
  0% {
    box-shadow: 0 0 8px #ff5722;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 16px #ff5722;
    transform: scale(1.3);
  }
  100% {
    box-shadow: 0 0 8px #ff5722;
    transform: scale(1);
  }
}

.btnatualizariscos {
  cursor: pointer;
  gap: 0.1rem;
}

.pointer {
  cursor: pointer;
}

.disabled {
  background: #a1a1a1;
  border-color: #a1a1a1;
  pointer-events: none;
  cursor: not-allowed;
}
