  /* CRIAR SUBMENU EM DROPDOWNS */
.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu li:hover>.dropdown-submenu {
  display: block;
}


  /* FLASH */
#flash-message {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  color: #fff;
  background-color: transparent;
  z-index: 100000 !important;
  /* Fundo transparente inicialmente */
}


/* tree view */
ul.tree,
ul.tree ul {
  list-style-type: none;
  background: url(../img/vline.png) repeat-y;
  margin: 0;
  padding: 0;
}

ul.tree ul {
  margin-left: 40px;
  /* Aumentado para dar mais espaçamento entre os itens */
}

ul.tree li {
  margin-top: 20px;
  /* Aumentado para dar mais espaçamento entre os itens */
  margin: 2;
  padding: 0 12px;
  line-height: 20px;
  background: url(../img/node.png) no-repeat;
}

ul.tree h5 {
  font-weight: bold;
  color: blue;
}

ul.tree li.last {
  background: #fff url(../img/node_last.png) no-repeat;
}

ul.tree li:last-child {
  background: #fff url(../img/node_last.png) no-repeat;
}

ul.tree li.no-style {
  list-style-type: none;
  background: none;
  margin: 0;
  padding: 0;
  line-height: normal;
}

ul.tree ul.no-style {
  list-style-type: none;
  background: none;
  margin: 0;
  padding: 0;
  line-height: normal;
}






.tree .dropdown-menu {
  background-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: auto !important;
  background-image: none !important;
  background-clip: padding-box;
  isolation: isolate !important;
  position: absolute !important;
  z-index: 9999 !important;
  transform: translateZ(0);
  will-change: transform;
  box-shadow: 0 0 0 1000px #ffffff inset;
  /* 🔹 Força o fundo branco */


  border: 1px solid #ccc !important;
  /* Cor da borda */
  border-radius: 8px !important;
  /* Cantos arredondados */
  margin: 8px !important;
  /* Margem ao redor do dropdown */
  padding: 6px 0 !important;
  /* Ajuste no espaçamento interno */
}



/* 🔹 Estilizar os itens do menu */
.tree .dropdown-menu .dropdown-item {
  padding: 6px 12px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 🔹 Hover no menu */
.tree .dropdown-menu .dropdown-item:hover {
  background-color: #f1f1f1;
}

/* 🔹 Garantir que a estrutura da árvore não afete o menu */
.tree .dropdown-menu,
.tree .dropdown-menu li {
  background: none !important;
  list-style: none !important;
  padding: 0;
  margin: 0;
}

/* 🔹 Ajustar o botão do dropdown */
.tree .dropdown-toggle {
  background: none;
  border: none;
  padding: 2px 4px;
  color: #555;
  display: inline-flex;
  align-items: center;
}

/* 🔹 Remover espaçamento extra dentro do menu */
.tree .dropdown-menu li:first-child .dropdown-item {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.tree .dropdown-menu li:last-child .dropdown-item {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* 🔹 Evitar espaçamento extra no topo do menu */
.tree .dropdown {
  position: relative;
  display: inline-block;
}




.tree input[type="checkbox"] {
  margin: 0 4px 0 0;
  vertical-align: middle;
}

.tree label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  /* diminui o espaço entre checkbox e texto */
  margin-bottom: 0;
}



.tree li {
  background: url("../img/node.png") no-repeat 0 0;
  padding-left: 20px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.tree li:last-child {
  background: url("../img/node_last.png") no-repeat 0 0;
}

.tree ul {
  background: url("../img/vline.png") repeat-y 0 0;
  margin-left: 20px;
  padding-left: 10px;
}



.tree .text-muted {
  color: #999 !important;
}



/* Regras para o modulo de permissões */
.permissoes-page .accordion-button {
  background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px 20px;
  border: none;
  box-shadow: none;
}

.permissoes-page .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #bbdefb 0%, #90caf9 100%);
  color: #0d47a1;
}

.permissoes-page .accordion-button:focus {
  box-shadow: none;
  border: none;
  outline: none;
}

.permissoes-page .accordion-button::after {
  filter: brightness(0.4);
}

.permissoes-page .accordion-item {
  margin-top: 20px;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.permissoes-page .accordion-body {
  background: #fdfdfd;
  padding-top: 0px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.permissoes-page .accordion {
  border: none;
  background: none;
}





/*--------------------------------------------------------------
# SUMMERNOTE - EDITOR DE PÁGINAS
--------------------------------------------------------------*/
.note-editable {
  overflow-x: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.note-editor.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: #fff !important;
}