body {
  min-height: 100vh;
}

html {
  height: -webkit-fill-available;
}

main {
  height: 100vh;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}

.container-class {
  width: 100%;
  padding-left: 2%;
  padding-right: 2%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dropdown-toggle { outline: 0; }

.btn-toggle {
  padding: .25rem .5rem;
  font-weight: 600;
  color: #f6f6f6;
  background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: #212529;
  background-color: var(--bs-tertiary-bg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg);
}

.scrollarea {
  overflow-y: auto;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  flex-direction: row;
  padding: 1px 20px 1px 2px;
}

.menu-item span {
  display: flex;
  flex-direction: column;
}

.menu li i {
  margin: 10px 10px 10px 0px;
}

.menu-item i {
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
}

.menu-wrapper {
  width: 200px;
  height: 100vh;
  background-color: #212529;
  color: #ddd;
  display: flex;
  flex-direction: column; 
  padding: 5px;
  overflow-y: auto;
  padding: 1.5rem;
}

.submenu {
  list-style: none;
  padding-left: 20px;
  margin: 0;
  display: none; /* Esconde os subitens */
  width: 100%;
}

.link-body-emphasis {
  color: #ddd !important;
}

.content {
  padding: 12px;
  margin-top: 20px;
  border: solid 1px var(--bs-border-color);
  border-radius: 5px;
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 5px;
  height: 100vh;
}

#campo-pesquisa {
  width: 40vw;
}

.table-responsive {
  border-radius: 9px;
  overflow-x:visible;
}

table.dataTable {
  border-radius: 10px;
  overflow: hidden; 
  font-size: 0.9rem;
}

.table {
  border: solid 1px var(--bs-border-color);
  border-radius: 9px;
  width: 100%;
}

.table-head {
  height: min-content;
}

.table th,
.table td {
  max-width: 20vw;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.9rem;

}

.funcional {
  width: 3%;;
}

.table th,
.table td:hover {
  cursor: pointer;
}

.dt-search {
  display: none;
}

.pagination {
  display: flex;
  justify-content: end;
  list-style-type: none;
  padding: 0;
}
.pagination li {
  margin: 0 5px;
}
.pagination li a {
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #ddd;
  color: #007bff;
}
.pagination li a.active {
  background-color: #007bff;
  color: white;
}
.pagination li a.disabled {
  color: #aaa;
  pointer-events: none;
}

.sortable {
  cursor: pointer;
  text-decoration: none;
  color: #f6f6f6;
}

.autocomplete-list {
  position: absolute;
  background-color: #f1f1f1;
  border: 1px solid #d4d4d4;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.autocomplete-list div {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-list div:hover {
  background-color: #e9e9e9;
}

.select2-container--open {
  z-index: 1100; 
}

.select2-container--default .select2-selection--multiple{
  border: 1px solid #ced4da !important;
  border-radius: .25rem !important;
  min-height: 100px;
}

@media (max-width: 834px) {
  footer {
    margin-bottom: 74px;
  }

  .table {
    overflow-x: scroll;
  }

  .menu-wrapper {
    position: fixed;
    bottom: 0%;
    height: 74px;
    width: 100%;
    justify-content: space-around;
    overflow-y: hidden;
  }

  .btn-toggle-nav a {
    margin-left: 0;
  }  

  .menu {
    display: flex;
    justify-content: space-around;
    height: 100%;
  }

  .menu-lista {
    display: flex;
    justify-content: space-around;
  }

  .menu-item {
    border-bottom: none !important;
    padding: 3px;
    margin-top: -10px;
  }

  #cadastro-collapse {
    position: fixed;
    bottom: 74px;
    left: 0;
    background-color: #282c30;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    left: auto;
    margin-left: -30px;
  }
  #operacional-collapse {
    position: fixed;
    bottom: 74px;
    left: 0;
    background-color: #282c30;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    left: auto;
    margin-left: -25px;
    width: 100px;
  }
  #ged-collapse {
    position: fixed;
    bottom: 74px;
    left: 0;
    background-color: #282c30;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    left: auto;
    margin-left: -20px;

  }
  #administrativo-collapse {
    position: fixed;
    bottom: 74px;
    left: 0;
    background-color: #282c30;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    left: auto;
    margin-left: -10px;
  }
  .submenu {
    list-style: none;
    margin: 0;
    display: none; /* Esconde os subitens */
    width: 100%;
  }

  .menu-item span {
    display: none;
  }

  .menu-wrapper:hover {
    width: 100%;
  }

  .menu li i {
    margin: 10px 10px 10px 10px;
  }

.menu-item i {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

}


