
body{
  background-color: #edeef0;
}

/* general */
.not-allowed {
  cursor: not-allowed;
}

.not-allowed * {
  pointer-events: none;
}

.group-disabled{
  pointer-events: none!important; 
  opacity: 0.4!important;
}

.table.v-middle tbody tr td{
    vertical-align: middle;
}

.c-fade {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.c-fade.show {
  opacity: 1;
  pointer-events: auto;
}

.c-slide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.c-slide:not(.open) *{
  opacity: 0;
  transition: opacity 0.5s ease;
}

.c-slide.open {
  max-height: 500px; /* ou o valor máximo necessário */
}



/* header menu  */
.top-bar {
  background: #232323;
  padding: 8px 0 0 0;

}

.header-menu {
  position: relative;
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0 15px 0 0;
}

.header-menu li .dropdown-toggle::after,
.user-menu .dropdown-toggle::after{
  display: none!important;
}

.user-menu .dropdown-toggle,
.user-menu .dropdown-toggle.show{
  border: none!important;
}


.header-menu a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
}

.header-menu > li{
  position: relative;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  list-style: none;
  height: 105%;
}
.header-menu a:hover, .header-menu > li a.active:not(.dropdown-item) {
  color: #f63f06;
}


.header-menu:hover>li a:not(.show).active::before{
  transform: translateY(8px)!important;
}

.header-menu:hover>li:not(:hover) a{
  color: #ccc;
}

.header-menu li a.active::before, 
.header-menu li a.show::before, 
.header-menu li a.dropdown-toggle:not(.active):hover::before{
  color: #fff;
  border-color: transparent transparent #fff transparent;
  border-style: solid;
  border-width: 0 8px 8px 8px;
  bottom: -15px;
  content: '';
  height: 0;
  left: 50%;
  transform: translateY(0);
  margin-left: -8px;
  position: absolute;
  width: 0;
  transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
  z-index: 100;
}


.header-menu li a:not(.active):hover::after{
  color: #fff;
  width: 40px;
  height: 30px;
}


.main-navbar .nav-row {
  display: block; /* Oculta inicialmente */
}

.top-bar:hover + .main-navbar .nav-row {
  display: none; /* Tenta mostrar quando o mouse está sobre a .top-bar inteira */
}

.top-bar .header-menu a:hover + .main-navbar .nav-row {
  display: none !important; 
}

.main-navbar {
  background: #ffffff;
  padding: 5px 0;
  webkit-box-shadow: 0 4px 2px -2px rgba(0, 0, 0, .2);
  box-shadow: 0 4px 2px -2px rgba(0, 0, 0, .2);
}

.nav-section {
  display: flex;
  gap: 30px;
  align-items: center;
}


.nav-section a {
  position: relative;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
}

.nav-section:hover>a:not(:hover)  {
  color: #777;

}
.nav-section a:hover {
  color: #000;
}

.nav-section a:not(.dropdown-toggle):not(.dropdown-item).active::after {
  background-color: #f63f06;
  bottom: -10px;
  content: '';
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.nav-section a.dropdown-toggle.active::before {
  background-color: #f63f06;
  bottom: -10px;
  content: '';
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.more-dropdown ul:hover>li:not(:hover) a.active{
  background-color: #f5f5f5;
  color: #000!important;
  font-weight: 500;
}


.dropdown-item.active, .dropdown-item:active {
  color: #fff!important;
  background-color: #f63f06;
  border-radius: 5px;
}


@media (max-width: 991.98px) {
  .header-menu li a::before {
    display: none !important;
  }

  .main-navbar .nav-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* suaviza a rolagem em iOS */
    gap: 30px; /* espaçamento entre seções */
  }

  .main-navbar .nav-row .nav-section {
    flex-shrink: 0; /* impede que quebre para nova linha */
    display: flex;
    gap: 30px;
  }

  .main-navbar .nav-row .nav-section a {
    white-space: nowrap; /* impede quebra do texto */
    width: auto; 
  }
  
  /* oculta mennu dropdown no mobile */
  .top-bar > .container .dropdown-menu:not(.dropdown-user-menu){ 
    display: none!important;
  }
}

.more-dropdown .dropdown-menu {
  border: none;
  margin-top: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  min-width: 250px;
  padding: 0.5rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.dropdown-toggle {
  outline: none!important;
}


.more-dropdown .dropdown-item,
.user-menu .dropdown-item {
  color: #000;
}

.more-dropdown .dropdown-item:hover,
.user-menu .dropdown-item:hover {
  background: #f63f06;
  color: white;
  border-radius: 5px;
}



.logo img {
  height: 40px;
  margin: 0 30px 10px 0
}

.search-icon {
  color: white;
  margin-left: 20px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* notifications */

.notification {
  position: fixed;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 9999;
  max-width: 400px;
  animation: slide-in 0.3s ease;
}

.notification.top {
  top: 20px;
}
.notification.bottom {
  bottom: 20px;
}

.notification.fade-out {
  animation: slide-out 0.3s ease forwards;
}

.notification-icon {
  font-size: 1.5rem;
}

.notification.success .notification-icon {
  color: #f63f06;
}

.notification.error .notification-icon {
  color: #e53e3e;
}

.notification.info .notification-icon {
  color: #3182ce;
}

.notification.warning .notification-icon {
  color: #ffc107;
}

.notification-content {
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #718096;
}

.notification-ref{
  display: none;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}


@media (max-width: 768px) {
  .table-responsive-card table thead {
    display: none;
  }
  .table-responsive-card table tbody, .table-responsive-card table tr, .table-responsive-card table td {
    display: block;
    width: 100%;
  }
  .table-responsive-card table tr {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
  }
  .table-responsive-card table tr td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .table-responsive-card table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 1rem;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
  }

  .table-responsive-card table td:last-child {
    padding-left: 1rem; /* Remove o padding-left de 50% */
    text-align: center; /* Centraliza os botões */
  }

  .table-responsive-card table td:last-child::before {
    content: none; /* Remove o rótulo (data-label) */
  }

  .top-bar:has(#mainMenu.collapsing) > nav .container .user-menu,
  .top-bar:has(#mainMenu.show) > nav .container .user-menu {
    display: none!important;
  }

  .main-navbar {
    overflow-x: scroll;
  }

  .main-navbar .user-menu{
    position: absolute;
    top: 7px;
    right: 10px;
  }

  .main-navbar .user-menu .fa-user-circle{
    color: #fff!important;
  }

}

.breadcrumb-title {
  font-size: 20px;
  border-right: 1.5px solid #aaa4a4
}
.page-breadcrumb .breadcrumb li.breadcrumb-item {
  font-size: 16px
}
.page-breadcrumb .breadcrumb li.breadcrumb-item a {
  color:#444;
}
.page-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  display: inline-block;
  padding-right: .5rem;
  color: #6c757d;
  font-family: "Font Awesome 5 Free";
  font-weight: 900; 
  content: "\f054"; 
}