html {
  scroll-behavior: smooth;
}
body { 
  font-family: Arial, sans-serif; 
  margin: 0;
  min-height: 100vh;
}

/* HEADER MOBILE */
.mobile-header {
  height: 50px;
  z-index: 1100;
}

/* MENU LATERAL */
.offcanvas {
  background-color: #212529;
  color: white;
  padding: 1rem;
  overflow-y: auto;
  border: none;
  z-index: 1045;
}

/* Links do menu */
.offcanvas-body a {
  color: #adb5bd;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.offcanvas-body a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

/* Estilos para desktop (>=768px) */
@media (min-width: 768px) {
  .offcanvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 250px !important;
    height: 100vh !important;
    visibility: visible !important;
    transform: none !important;
  }

  main.content {
    margin-left: 250px;
    padding: 1rem;
    min-height: 100vh;
    /*background-color: #121212;*/
    color: white;
  }

  /* Esconder botão fechar no desktop */
  .btn-close {
    display: none;
  }
}
.offcanvas-logo {
  height: 40px;
  width: auto;
}

/* Estilos para mobile (<768px) */
@media (max-width: 767.98px) {
    .offcanvas {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 250px !important;
        height: 100vh !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        transition: transform 0.1s ease-in-out;
    }
    .offcanvas.show {
        transform: translateX(0) !important;
        visibility: visible !important;
    }
    /* Botão menu com tamanho adequado */
    button.btn.btn-primary.d-md-none {
        height: auto !important;
        width: auto !important;
        padding: 0.375rem 0.75rem !important;
        font-size: 1.25rem !important;
        display: inline-block !important;
    }
    main.content {
        padding-top: 60px; /* altura do cabeçalho + espaçamento */
    }
    .offcanvas-logo {
        height: 30px;     /* reduz o tamanho no mobile */
    }
}

/* TABLES DESKTOP*/
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: transparent !important;
}
.custom-danger > th {
    background-color: #dc3545 !important;
    color: white;
}
.custom-primary > th {
    background-color: #0d6efd !important;
    color: white;
}
.custom-info > th {
    background-color: RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important;
    color: white;
}
.custom-secondary > th {
    background-color: RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important;;
    color: white;
}
.custom-sucess > th {
    background-color: green !important;
    color: white;
}
.custom-warning > th {
    background-color: #ffc107 !important;
    color: white;
}

/* TABLES MOBILE */
@media (max-width: 767.98px) {
    .colum-hidden thead th:nth-child(3),
    .colum-hidden thead th:nth-child(7),
    .colum-hidden thead th:nth-child(8),
    .colum-hidden tbody td:nth-child(3),
    .colum-hidden tbody td:nth-child(7),
    .colum-hidden tbody td:nth-child(8) {
        display: none;
    }
}

/* FORMS MOBILE */
.form-container input,
.form-container select,
.form-container textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

/* BOTAO VOLTAR AO TOPO */
.btn-voltar-topo {
  position: fixed;
  bottom: 20px;       /* distância do rodapé */
  right: 20px;        /* distância da borda direita */
  background-color: #007BFF; /* cor de fundo azul */
  color: white;       /* cor do texto */
  border: none;
  border-radius: 50%; /* botão arredondado */
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  line-height: 50px;  /* centraliza o texto verticalmente */
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
  text-decoration: none; /* remove sublinhado do link */
  z-index: 1000;       /* garante que fique acima de outros elementos */
}

.btn-voltar-topo:hover {
  background-color: #0056b3; /* cor ao passar o mouse */
}

/* TELA DE LOGIN */
.image-side{
  background-image: url("/statics/images/image-side.png");
  background-size: cover;
  background-position: center;
  height: 100vh;
}

/* CAMPO OBS */
.limited-text {
  max-width: 200px;          
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis; 
}

.table-row {
    cursor: pointer;
}