@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');


:root{
  --color-default: #2e394b;
  --color-second: #002afa;
  --color-white: #ffffff;
  --color-body: #000000;
  --color-light: #2e394b;
}

body {
  margin-left: 100px;  /* Ajuste este valor para a margem desejada */
  margin-right: 20px;  /* Remove a margem à direita */
}


@keyframes is-rotating {
  to {
      transform: rotate(1turn);
  }
}


*{
  padding: 0%;
  margin: 0%;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}



.sidebar{
  min-height: 100vh;
  width: 78px;
  padding: 6px 14px;
  z-index: 99;
  background-color: var(--color-default);
  transition: all .5s ease;
  position: fixed;
  top:0;
  left: 0;
}

.sidebar.open{
  width: 250px;
}

.sidebar .logo_details{
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

.sidebar .logo_details .icon{
  opacity: 0;
  transition: all 0.5s ease ;
}



.sidebar .logo_details .logo_name{
  color:var(--color-white);
  font-size: 22px;
  font-weight: 600;
  opacity: 0;
  transition: all .5s ease;
}

.sidebar.open .logo_details .icon,
.sidebar.open .logo_details .logo_name{
  opacity: 1;
}

.sidebar .logo_details #btn{
  position: absolute;
  top:50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 23px;
  text-align: center;
  cursor: pointer;
  transition: all .5s ease;
}

.sidebar.open .logo_details #btn{
  text-align: right;
}

.sidebar i{
  color:var(--color-white);
  height: 60px;
  line-height: 60px;
  min-width: 50px;
  font-size: 25px;
  text-align: center;
}

.sidebar .nav-list{
  margin-top: 20px;
  height: 100%;
}

.sidebar li{
  position: relative;
  margin:8px 0;
  list-style: none;
}

.sidebar li .tooltip{
  position: absolute;
  top:-20px;
  left:calc(100% + 15px);
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.sidebar li:hover .tooltip{
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top:50%;
  transform: translateY(-50%);
}

.sidebar.open li .tooltip{
  display: none;
}

.sidebar input{
  font-size: 15px;
  color: var(--color-white);
  font-weight: 400;
  outline: none;
  height: 35px;
  width: 35px;
  border:none;
  border-radius: 5px;
  background-color: var(--color-second);
  transition: all .5s ease;
}

.sidebar input::placeholder{
  color:var(--color-light)
}

.sidebar.open input{
  width: 100%;
  padding: 0 20px 0 50px;
}

.sidebar .bx-search{
  position: absolute;
  top:50%;
  left:0;
  transform: translateY(-50%);
  font-size: 22px;
  background-color: var(--color-second);
  color: var(--color-white);
}

.sidebar li a{
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  text-decoration: none;
  background-color: var(--color-default);
  position: relative;
  transition: all .5s ease;
  z-index: 12;
}

.sidebar li a::after{
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  background-color: var(--color-white);
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
  transform-origin: left;
  z-index: -2;
}

.sidebar li a:hover::after{
  transform: scaleX(1);
  color:var(--color-default)
}

.sidebar li a .link_name{
  color: var(--color-white);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: auto;
  transition: all 0.4s ease;
  pointer-events: none;
  opacity: 0;
}

.sidebar li a:hover .link_name,
.sidebar li a:hover i{
  transition: all 0.5s ease;
  color:var(--color-default)
}

.sidebar.open li a .link_name{
  opacity: 1;
  pointer-events: auto;
}

.sidebar li i{
  height: 35px;
  line-height: 35px;
  font-size: 18px;
  border-radius: 5px;
}

.sidebar li.profile{
  position: fixed;
  height: 60px;
  width: 78px;
  left: 0;
  bottom:-8px;
  padding:10px 14px;
  overflow: hidden;
  transition: all .5s ease;
}

.sidebar.open li.profile{
  width: 250px;
}

.sidebar .profile .profile_details{
  display: flex;
  align-items: center;
  flex-wrap:  nowrap;
}

.sidebar li img{
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
}

.sidebar li.profile .name,
.sidebar li.profile .designation{
  font-size: 15px;
  font-weight: 400;
  color:var(--color-white);
  white-space: nowrap;
}

.sidebar li.profile .designation{
  font-size: 12px;
}

.sidebar .profile .logout-link {
  position: absolute;
  top:50%;
  right: 20px; /* Adicione esta linha */
  transform: translateY(-50%);
  font-size: 22px;
  background-color: var(--color-second);
  color: var(--color-white);
  width: 100%;
  height: 60px;
  line-height: 60px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.5s ease;
  text-decoration: none; /* Adicione isso para remover o sublinhado do link */
  color: inherit; /* Adicione isso para herdar a cor do texto do elemento pai */
}

.sidebar .profile .logout-link {
  display: flex;
  justify-content: center;
  align-items: center;
  /* restante do seu código CSS */
}


.sidebar .profile .logout-link i {
  padding-left: 10px; /* Ajuste este valor conforme necessário */
}

.logout-name {
  display: none; /* Oculte o nome por padrão */
  color: white; /* Mude a cor do texto para branco */
  
}

.sidebar.open .logout-name {
  display: inline; /* Mostre o nome quando a barra lateral estiver aberta */
}

.logo_details img {
  display: none; /* Esconda o logo por padrão */
}

.sidebar.open .logo_details img {
  display: block; /* Mostre o logo quando a barra lateral estiver aberta */
}

.sidebar.open .profile #log_out{
  width: 50px;
  background: none;
}

.home-section {
  position: absolute;
  top: 0;
  left: 78px; /* ou 250px quando a barra lateral estiver aberta */
  width: calc(100% - 78px);
  transition: all .5s ease;
  z-index: 2;
}

.content-container {
  margin-left: 70px; /* Ajuste este valor para a largura da sua barra lateral fechada mais a distância desejada */
  transition: margin-left .5s ease; /* Esta transição faz a mudança de margem parecer suave */
}

.sidebar.open ~ .content-container {
  margin-left: 250px; /* Ajuste este valor para a largura da sua barra lateral aberta mais a distância desejada */
}

.home-section .text{
  display: inline-block;
  color:var(--color-default);
  font-size: 25px;
  font-weight: 500;
  margin: 18px;
}

body {
  font-family: Arial, sans-serif;
}

.form-container {
  width: 60%;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group button {
  padding: 10px 20px;
  background-color:var(--color-default);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-group button:hover {
  background-color:var(--color-default);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0px;
}

form {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

h3 {
  text-align: center;
  margin-bottom: 20px;
}

.form-label {
  font-weight: bold;
  margin-bottom: 10px;
}

.form-select {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-bottom: 20px;
}

.btn {
  
  
  background-color: var(--color-default);
  
}

.btn hover {
  background-color: var(--color-second);
}

.custom-control-input:checked~.custom-control-label::before {
  color: #fff;
  border-color: #0866C6;
  background-color: #0866C6;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.filter-row fieldset {
  flex: 1;
  margin-right: 5px;
}
.filter-row fieldset:last-child {
  margin-right: 0;
}

#loading {
  display: none; /* Escondido por padrão */
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  margin: -80px 0px 0px -80px;
  background-color: transparent;
  border-radius: 50%;
  border: 2px solid #E3E4DC;
}

/* Restante do seu CSS... */

@keyframes Animasearch {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  15%,
  50% {
    transform: scale(0.5);
    opacity: 0;
  }
  65% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
    clip: rect(0px, 35px, 35px, 0px);
  }
  50% {
    clip: rect(0px, 40px, 40px, 0px);
  }
  100% {
    transform: rotate(360deg);
    clip: rect(0px, 35px, 35px, 0px);
  }
}

@keyframes rotate2 {
  0% {
    transform: rotate(0deg);
    clip: rect(0px, 164px, 150px, 0px);
  }
  50% {
    clip: rect(0px, 164px, 0px, 0px);
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(720deg);
    clip: rect(0px, 164px, 150px, 0px);
  }
}

@keyframes rotate3 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Recuo visual dos subitens do menu (submenu) */
.sidebar .submenu li a {
  padding-left: 15px;
}

/* Ícone de seta rotacionável */
.seta-submenu {
  transition: transform 0.3s ease;
  font-size: 16px;
  margin-left: auto;
}

/* Aplica rotação na seta quando submenu está aberto */
.seta-submenu.rotacionar {
  transform: rotate(180deg);
}

/* Seta padrão do submenu */
.seta-submenu {
  transition: transform 0.3s ease;
  font-size: 16px;
  margin-left: auto;
  color: var(--color-white);
}

/* Quando a sidebar está fechada, oculta a seta */
.sidebar: not(.open) .seta-submenu {
  display: none;
}

/* Quando a sidebar está aberta, mostra a seta normalmente */
.sidebar.open .seta-submenu {
  display: inline-block;
}

/* Rotação da seta */
.seta-submenu.rotacionar {
  transform: rotate(180deg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.edit-icon {
  color: #333;
  font-size: 18px;
  transition: color 0.2s ease;
}

.edit-icon:hover {
  color: var(--color-second); /* sua cor vermelha personalizada */
  cursor: pointer;
}
select.form-control {
  height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}

#tabela-condicoes tbody tr {
  padding: 2px !important;
  height: 36px;
}
#tabela-condicoes td {
  padding: 5px 7px !important;
  font-size: 12px;
}
input.form-control,
select.form-control,
textarea.form-control {
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 13px;
  height: auto;
}

.form-group {
  margin-bottom: 4px !important;
}
.btn-sm {
  padding: 4px 12px !important;
  font-size: 13px;
}

#tabela-condicoes tbody tr:hover {
  background-color: #f0f0f0;
  transition: background-color 0.2s ease-in-out;
}

.btn-acao {
  min-width: 100px;
  padding: 6px 12px;
  font-size: 14px;
  height: 38px; /* altura igual ao btn-primary */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-voltar {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}
#tabela-condicoes th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  font-size: 12px;
}
#tabela-condicoes td {
  font-size: 12px;
  vertical-align: middle;
}
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_paginate {
  margin-bottom: 6px;
  white-space: nowrap;
}

.table-responsive {
  overflow-x: auto;
}

.datatable-top, .datatable-bottom {
  padding: 0 8px;
  white-space: nowrap;
  overflow-x: auto;
}

.datatable-top select,
.datatable-top input {
  max-width: 140px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 9999;
}

.campo-invalido {
  border: 2px solid red !important;
  background-color: #fff0f0 !important;
}

#tabela-permissoes td, #tabela-permissoes th {
  padding: 4px 8px;
  vertical-align: middle;
  font-size: 13px;
}
/* ✅ Estilo moderno e limpo para selects */
select.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px 10px;
  padding-right: 30px;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 38px;
  font-size: 14px;
  transition: border-color 0.2s;
}

select.custom-select:focus {
  border-color: #495057;
  outline: none;
}

/* 🔧 Ajuste fino específico para Choices.js no ERP */
.choices {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

.choices__inner {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 6px;
  font-size: 13px;
  padding: 6px 10px;
  box-sizing: border-box;
  min-height: 38px;
}

.choices__list--dropdown {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  z-index: 9999;
  overflow-x: auto !important;
  white-space: nowrap;
}

.choices__list--dropdown .choices__item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.choices[data-type*='select-one'] .choices__list--dropdown {
  position: absolute !important;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Força o dropdown a nunca ultrapassar o tamanho do campo */
.custom-choices {
  max-width: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.custom-choices .choices__list--dropdown {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  left: 0 !important;
  right: auto !important;
  position: absolute !important;
  z-index: 9999;
}

/* Oculta as setas dos submenus quando o menu lateral está recolhido */

.sidebar:not(.open) .seta-submenu {
  display: none !important;
}

  /* Ajustes visuais para botões da coluna Ações */
  .btn-group-sm .btn {
    padding: 2px 6px !important;
    font-size: 0.75rem;
    line-height: 1.2;
    height: auto;
    border-radius: 4px;
  }
  
  /* Remove espaçamento vertical extra da célula */
  td .btn-group {
    margin: 0;
  }
  

  #tabela-equipamentos td,
  #tabela-equipamentos th {
    white-space: nowrap;
    overflow: hidden;           
    text-overflow: ellipsis;
    max-width: 180px;
  }

