/*---- DEFAULT -----------------------*/
:root {
  --bs-border-width: 1px !important;
  --bs-border-radius-lg: 2rem;

  --bs-green-dark: #023b06;
  --bs-blue-dark: #011542;
  --bs-blue-light: #1491bb;
  --bs-gray-padrao: #d8d7d7;
  --bs-gray-500: #aaa8a8;
  --bs-blue-claro: #b6d7f5;
  --bs-white: #ffffff;
  --bs-yellow-claro: #f4cb27;
}

.bg-blue-dark {
  background-color: var(--bs-blue-dark);
}

.bg-green-dark {
  background-color: var(--bs-green-dark);
}

.bg-green-light {
  background-color: var(--bs-green-light);
}

.bg-white {
  background-color: var(--bs-white);
}

.bg-blue-claro {
  background-color: #cfe2ff61;
}

.bg-gray-500 {
  opacity: 0.7;
  background-color: var(--bs-gray-500);
}

.bg-gray-padrao {
  background-color: var(--bs-gray-padrao);
}

.bg-red {
  background-color: rgb(255, 0, 0);
}

* {
  padding: 0;
  margin: 0;
}

html,
body {
  max-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  width: 100%;
  height: 100%;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  -webkit-touch-callout: none;
  /* iPhone OS, Safari */
  -webkit-user-select: none;
  /* Chrome, Safari 3 */
  -khtml-user-select: none;
  /* Safari 2 */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
  user-select: none;
  /* Possível implementação no futuro */
}

body::before {
  content: "";
  background-color: aliceblue;
  background-image: url("../images/logo_base3.png");
  background-repeat: repeat;
  background-size: 15%;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
  opacity: 0.085;
  /* transform: rotate(-30deg); */
  z-index: -1;
}

.dt-print-view {
  overflow: auto !important;
  max-height: none;
  max-width: none;
  width: auto;
  height: auto;
  font-family: "Open Sans", sans-serif;
}

.dt-print-view table .text-nowrap {
  white-space: normal !important;
  font-size: 12px !important;
}

.fs-0 {
  font-size: 1rem;
}

a {
  cursor: pointer;
  text-decoration: none;
}

table > a {
  color: inherit;
}

a:hover {
  color: var(--bs-blue-light);
  /* #0458eb;*/
  font-weight: bold;
  font-style: italic;
}

.acao .btn > i {
  display: inline-block;
  transition: transform 0.3s ease;
  --angle: 0deg;
  transform: rotate(var(--angle));
}

.acao .btn > i.fa-rotate-270 {
  --angle: 270deg;
}

.acao .btn > i.fa-rotate-90 {
  --angle: 90deg;
}

.acao .btn > i.fa-rotate-45 {
  --angle: 45deg;
}

.acao .btn:hover > i {
  transform: rotate(var(--angle)) scale(1.3);
}

.content {
  max-height: calc(100vh - 5rem);
  min-height: calc(100vh - 5rem);
  height: calc(100vh - 5rem);
  overflow: hidden;
  max-width: calc(100vw - 5rem);
  max-width: calc(100vw - 5rem);
  width: calc(100vw - 5rem);
  min-width: calc(100vw - 5rem);
  position: absolute;
  margin-left: 4rem;
  margin-right: 4rem;
  transition: all 0.3s linear;
  transform-origin: top bottom;
  transform-style: preserve-3D;
}

/* configurações do layout com menu aberto ou não */
.content.menuaberto {
  max-width: calc(100vw - 20rem);
  width: calc(100vw - 20rem);
  min-width: calc(100vw - 20rem);
  position: absolute;
  margin-left: 20rem;
  margin-right: 4rem;
  transition: all 0.3s linear;
  transform-origin: top bottom;
  transform-style: preserve-3D;
}

.dataTable {
  width: 100% !important;
  /* transition: max-height 5s ease-out; */
  animation: showDtable 5s 5s 5s both;
}

.dataTables_scrollHead {
  display: flex;
}

@keyframes showDtable {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.title.menuaberto {
  padding-left: 17rem !important;
  transition: all 0.3s linear;
  transform-origin: top bottom;
  transform-style: preserve-3D;
}
.rodape.menuaberto {
  padding-left: 20rem !important;
  transition: all 0.3s linear;
  transform-origin: top bottom;
  transform-style: preserve-3D;
}

/* Fim das configurações do Layout menu aberto ou não */

.content_modal {
  height: 40vh;
  overflow: hidden;
  margin-top: 5rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.title,
.title-modal {
  position: fixed;
  top: 0rem;
  left: 0rem;
  max-height: 4rem;
  min-height: 4rem;
  height: 4rem;
  padding: 0.5rem 1rem;
  max-width: calc(100vw);
  width: calc(100vw);
  min-width: calc(100vw - 4rem);
  transition: all 0.3s linear;
  transform-origin: top bottom;
  transform-style: preserve-3D;
}

.title-modal {
  position: relative;
  display: inline;
  width: max-content;
}

.titulo {
  padding-left: 4rem;
  font-size: clamp(0.8rem, 2rem - 1vw, 1.5rem) !important;
}

.container {
  max-height: calc(100vh - 5rem);
  max-width: 98%;
  overflow: hidden;
  transition: all 0.2s linear;
  transform-origin: top;
  transform-style: preserve-3D;
}

/* .tab-content, */
/* .tab-content-prin { */
/* border: var(--bs-border-width) solid var(--bs-border-color); */
/* border-radius: 0 10px 10px 10px; */
/* } */

.tab-content > .tab-pane {
  max-height: calc(100vh - 9rem) !important;
  overflow-x: hidden;
  overflow-y: visible;
  height: auto;
  padding-bottom: 2rem !important;
  border-radius: 0 15px 15px 15px;
  transition: height 0.2s ease;
  /* min-height: 80vh; */
}

.tab-content-prin > .tab-pane-prin {
  max-height: 90vh;
  overflow: hidden;
  min-height: 90vh;
}

.tab-content > .tab-pane.show,
.tab-content-prin > .tab-pane-prin.show {
  box-shadow: inset -2px -2px 5px -5px var(--bs-gray-500);
  border: 1px solid var(--bs-gray-500);
  /* box-shadow: 0 -1px 1px 1px lightgrey; */
}

.nav-item > .nav-link {
  color: #aaa;
}

.nav-item > .nav-link:hover {
  color: #000;
}

.nav-item > .nav-link.active {
  margin-top: 3px;
  box-shadow: 0 -1px 1px 1px var(--bs-gray-500);
  color: #0d6efd;
}

.nav-link::before {
  content: "\f07b"; /* Unicode do ícone folder close */
  font-family: "Font Awesome 7 Free";
  font-weight: 400; /* Regular */
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-link.active::before {
  content: "\f07c"; /* Unicode do ícone folder open */
}

.form-label {
  font-weight: 400;
  font-style: italic;
}

.form-control:focus {
  box-shadow: inset 0 0 2.5px 0.1rem rgb(13 110 253 / 25%);
}

.input-group-required {
  display: flex;
  align-items: center;
  color: var(--bs-body-color);
  text-align: center;
  white-space: nowrap;
  background-color: var(--bs-tertiary-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: 2rem;
}

.obrigatorio {
  float: left;
  color: red;
  position: relative;
  z-index: 100;
}

:required:not(select):not([type="radio"]),
select:required + button.form-control {
  background-image: url(/assets/images/obriga2_red.png);
  background-size: 7px 15px;
  background-position: 0px 45%;
  background-repeat: no-repeat;
}

select:required {
  background-image:
    url(/assets/images/obriga2_red.png), var(--bs-form-select-bg-img),
    var(--bs-form-select-bg-icon, none);
  background-repeat: no-repeat;
  background-position:
    0px 45%,
    right 0.75rem center;
  background-size:
    7px 15px,
    16px 12px;
}

.form-control::placeholder {
  color: gray;
  opacity: 0.5;
  font-style: italic;
}

.errors li {
  list-style: none;
  width: 100%;
  text-align: center;
}

.errors ul {
  padding-left: 0;
  margin-bottom: 0;
}

.form-control,
.btn {
  border-radius: 1.5rem !important;
}

.form-control {
  background-color: rgb(235 246 253 / 50%);
  --bs-form-select-bg-img: none;
  min-width: auto !important;
}

input[type="date"].form-control {
  width: auto !important;
}

.input-group-text {
  border-top-right-radius: 1.5rem !important;
  border-bottom-right-radius: 1.5rem !important;
  margin-left: 0 !important;
  /* padding: .8rem .75rem; */
  background-color: rgb(235, 246, 253);
  opacity: 1;
  z-index: 100;
}

.input-group-text.input-group-addon {
  border-top-right-radius: 0rem !important;
  border-bottom-right-radius: 0rem !important;
  border-top-left-radius: 1.5rem !important;
  border-bottom-left-radius: 1.5rem !important;
  margin-right: 0 !important;
  margin-left: 0.1rem !important;
}

.show_password {
  pointer-events: all;
}
.show_password::before {
  content: "\f33f";
}

.show_password:hover::before {
  content: "\f341";
}

.header {
  max-height: 4rem;
  height: 4rem;
  min-height: 4rem;
  width: 100vw;
}

.bg-blue-dark {
  background-color: var(--bs-blue-dark);
  color: white;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #90a4ae;
  opacity: 0.5;
  /* cor do background que vai ocupar o body */
  z-index: 1000;
  /* z-index para jogar para frente e sobrepor tudo */
}

.msgprocessando {
  position: absolute;
  color: var(--bs-blue-dark);
  opacity: 1;
  top: 50%;
  /* centralizar a parte interna do preload (onde fica a animação)*/
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
}

table.dataTable.table-info > thead.table-default th {
  background-color: var(--bs-blue-dark);
  color: white;
}

table.dataTable.table-info > thead.table-default th.reordered {
  border: 2px solid yellow;
}

table.dataTable {
  user-select: none;
}

table.dataTable.table > :not(caption) > * > * {
  background-color: transparent;
  box-shadow: 0 0 0 0px #fff !important;
}

table.dataTable.table-info > tbody > tr.odd {
  background-color: white !important;
  box-shadow: 0 0 0 0px #fff !important;
}

table.dataTable.table-info > tbody > tr.even {
  background-color: var(--bs-blue-claro) !important;
}

table.dataTable.table-info > tbody > tr:hover,
table.dataTable.table-striped > tbody > tr > *:hover {
  background-color: rgb(131 178 198) !important;
  cursor: pointer;
}

table.dataTable > tbody > tr {
  vertical-align: middle;
}

.dataTables_length {
  width: auto;
  float: left;
}

.dt-buttons {
  /* width: 20%; */
  float: left;
  margin-right: 1%;
}

.dataTables_info {
  /* width: 38%; */
  float: left;
  line-height: 2.3rem;
  padding-top: 0.15em !important;
}

/* .dataTables_paginate {
  float: right;
  margin-top: -0.35em !important;
  width: auto;
} */

.btn-group > .btn {
  position: relative;
  flex: none;
}

div#table_processing {
  z-index: 100;
}

div.dataTables_processing > div:last-child > div,
div.msgprocessando > div:last-child > div {
  background-color: rgb(13 110 253);
}

.pagination,
.pagination > li,
.pagination > li > a {
  border-radius: 5rem !important;
}

/* SCROLLBAR PERSONALIZADO */
::-webkit-scrollbar {
  width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #011542;
  border-radius: 7px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #011542;
  border-radius: 7px;
  box-shadow: inset 0 0 5px white;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #011542;
}

/* end: Preloader */

.fade.in {
  opacity: 1;
}

.btn.hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.form-switch .form-check-input {
  transform: rotate(-90deg);
  margin: 0.5rem 0rem;
  padding-left: 0;
}

.form-switch .form-check-input.duasOpcoes.primeira {
  background-color: var(--bs-primary);
  opacity: 1;
}

.form-switch .form-check-input.duasOpcoes.segunda {
  background-color: var(--bs-secondary);
  transform: rotate(-270deg);
  opacity: 1;
}

.collapse-perfil.collapse:not(.show) {
  display: none;
}

.collapse-perfil.collapse {
  display: inline-block;
}

.collapse-perfil.collapsing {
  display: inline-block;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toast base */
.toast {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition:
    transform 0.4s ease-out,
    opacity 0.6s ease-out;
  display: block;
  min-width: 250px;
  max-width: 350px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  /* color: white; */
}

.toast:not(.show) {
  display: block !important;
}

.toast.toast-animar {
  opacity: 1;
  transform: scaleX(1);
}

/* Tipos de toast */
.toast .toast-header {
  /* background-color: transparent; */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
}

.toast.bg-success .toast-header {
  color: #198754;
}

.toast.bg-danger .toast-header {
  color: #dc3545;
}

.toast .toast-body {
  padding: 12px;
  /* color: white; */
}

.toast .btn-close {
  filter: invert(1);
}

.py-15 {
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
}

.bootstrap-select .dropdown-menu li a.selected {
  background-color: var(--bs-info);
}

.bootstrap-select .dropdown-menu {
  position: relative !important;
  will-change: transform;
  transform: none !important;
}

/* Remove o ::after do botão quando o select estiver desabilitado */
.bootstrap-select.disabled .dropdown-toggle::after {
  display: none !important;
}

.dropdown-toggle[aria-expanded="false"]::after {
  content: "\f0a5";
  right: 3.5rem;
  font-family: "Font Awesome 7 Free";
  background-image: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  vertical-align: middle; /* font-family: "Font Awesome 6 Free"; ou "Font Awesome 6 Free" */
}

.dropdown-toggle[aria-expanded="true"]::after {
  content: "\f0a5";
  right: 3.5rem;
  font-family: "Font Awesome 7 Free";
  background-image: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  vertical-align: middle; /* font-family: "Font Awesome 6 Free"; ou "Font Awesome 6 Free" */
  -webkit-transform: rotate(-450deg);
  -o-transform: rotate(-450deg);
  transform: rotate(-450deg);
  transition: var(--bs-accordion-btn-icon-transition);
  border-left: 0;
}

.inner.show {
  max-height: 30vh !important;
}

.bootstrap-select > .dropdown-toggle {
  white-space: inherit !important;
}

.fs-7 {
  font-size: 0.75rem !important;
}

.textovertical {
  width: 1px;
  word-wrap: break-word;
  font-family: monospace;
  white-space: pre-wrap;
}

/* button.disabled {
    background-color: var(--bs-form-control-disabled-bg);
    opacity: 1;
    cursor: not-allowed;
} */

.table2 {
  transition: all ease 1s;
  border-bottom: 0.5px solid #ccc;
  width: 100%;
}

.w-90 {
  width: 90% !important;
}

.w-10 {
  width: 10% !important;
}

.valid-tab {
  transform: translate(-100%, 15%) !important;
}

.bootstrap-select.popup > .dropdown-menu.show {
  position: inherit !important;
  z-index: 1100;
  max-height: 15rem !important;
  margin-bottom: 1rem !important;
  top: -2rem !important;
  display: grid;
}

*/ table tbody td {
  white-space: nowrap;
}

.theadfilter {
  z-index: 200;
  position: fixed;
  opacity: 1;
}

.div-caract {
  font-size: xx-small;
  display: inline-flex;
  width: auto;
  height: 16px;
  bottom: -15px;
  position: absolute; /* permite sair do fluxo */
  /* top: 50%;                   centraliza verticalmente */
  left: 94%; /* posiciona à direita do input */
  /* transform: translateY(-50%);centraliza no eixo vertical */
  color: black;
  box-shadow: inset 0 0 2.5px 0.1rem rgb(13 110 253 / 25%);
}

.div-caract.acabou {
  color: red;
  left: 70%; /* posiciona à direita do input */
}

.iconpicker-popover {
  min-width: 10rem;
}

input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  /* border: none; */
  width: 80px !important;
  height: 33px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
}

.form-switch .form-check-input {
  width: 1.8em;
}

i w #stat_server {
  position: absolute;
  float: right;
  bottom: 3px;
  right: 2.5rem;
  z-index: 15000;
}

.input-group {
  flex-wrap: nowrap;
}

.form-number {
  padding-right: 1rem;
}

.up-num:hover,
.down-num:hover {
  background-color: var(--bs-info);
  cursor: pointer;
}

.invalid-feedback {
  display: none;
  width: auto;
  top: 22px;
  left: 22px;
  background: white;
  opacity: 0.8;
  border: 1px solid var(--bs-danger-text);
  border-radius: 9px;
  padding-left: 4px;
  padding-right: 4px;
  text-wrap: nowrap;
  font-size: 0.875em;
  height: fit-content;
  position: absolute;
  text-align: start;
  color: var(--bs-danger-text);
  z-index: 100;
}

/*Seleciona a classe form-control, desde que o elemento anterior tenha a classe .input-group-addon*/
.input-group-addon + .form-control {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/*Seleciona a classe form-control, desde que o próximo elemento tenha a classe .input-group-append*/
.form-control:has(+ .input-group-append) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group.disabled {
  cursor: not-allowed;
  /* Cursor de proibição */
}

.input-group-addon:has(+ input:disabled),
input[disabled] + .input-group-append,
input:disabled,
select:disabled,
button.disabled,
[aria-disabled="true"] * {
  cursor: not-allowed;
  /* Cursor de proibição */
  user-select: none;
  /* Impede a seleção de texto */
  pointer-events: none;
  /* Impede todos os cliques */
  background-color: var(--bs-form-control-disabled-bg);
}

input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.dropdown-menu {
  border-radius: 0px 0px 20px 20px;
  box-shadow: 2px 5px 5px -1px var(--bs-gray-500);
}

/* .form-check-input:disabled,
.form-check-input:disabled~.form-check-label,
.form-check-input[disabled]~.form-check-label {
    opacity: 1 !important;
    cursor: not-allowed;
    /* Cursor em forma de proibição 
}*/

.tooltip > .tooltip-inner {
  background-color: var(--bs-white);
  border: 1px solid var(--bs-dark);
  color: var(--bs-dark);
  box-shadow: 2px 2px 3px 3px var(--bs-secondary);
  opacity: 0.95;
  text-align: start;
  min-width: 10ch;
  max-width: 80ch;
  width: auto;
}

.filter-option-inner-inner {
  text-wrap: nowrap;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

div {
  /* border: 1px solid; */
}

/* Permite que o modal seja redimensionado */
.resize {
  resize: both;
  overflow: auto;
  max-width: 95vw;
  max-height: 85vh;
}

.vertical-th {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  white-space: nowrap;
  text-align: justify;
  vertical-align: middle;
  height: 80px;
}

.input-ajustado {
  border: 2px solid red !important;
  background-color: #ffe6e6;
}

/* deixa QUALQUER backdrop acima de tudo do site */
.modal-backdrop.bootbox {
  z-index: 5000 !important;
}

/* e os modais do bootbox acima do próprio backdrop */
.bootbox.modal {
  z-index: 5005 !important;
}

tr td {
  vertical-align: middle;
}

.dropdown-toggle.disabled,
.dropdown.bootstrap-select.disabled {
  background-color: var(--bs-secondary-bg);
}

.esconder {
  display: none;
}

.subline {
  margin-top: -14px;
  height: 22px;
  margin-left: 7px;
  border-left: 3px solid rgba(var(--bs-primary-rgb));
  padding-left: 6px;
  color: rgba(var(--bs-primary-rgb));
  border-bottom: 2px solid rgba(var(--bs-primary-rgb));
}
