.body {
	min-height:  100vh ;
	width: 100%;
}

.VERM {
  background-color: #fc4c4c !important; 
  color: #000;
}

.VERD {
  background-color: #32CD32 !important; 
}
.AMARELO {
  background-color: #FFD700 !important; 
}
tr{  color: #000 !important;
text-align:center;
height: 10px !important;
}

table td {
 padding: 2px !important;
  text-align:center;
  z-index: 2 !important;
  
}
.selected_table {
  background-color: #08c !important; 
}

.table-responsive {
  min-height: 350px !important;
  height: calc(100vh - 150px) !important; /* Ajuste o valor 100px conforme necessário */
  
}

::placeholder {
color: #fff !important;
}  
.text-input{
position: absolute;
top: 0;
left: 0;
height: 100%;
width:100%;
padding: 0 0px;
background-color: transparent;
}
.text-input2{
width:100px !important;
}
.text-input4{
width:150px !important;
}
.text-input5{
width:250px !important;
}
.text-input3{
width:80px !important;
}
.verm {
background: #8B0000;
color: #fff;
}
.red{
color: #FF0000 !important;
font-weight: bold;
}
#card_section {
overflow: scroll !important;
height: 550px !important;
width: 100%;
background: #FFF;
}
.card-body-nopadding{
background: #FFF !important;
}

.coluna-fixa {
  /* Ajuste a largura conforme necessário */
  width: 60px;
  position: sticky;
  left: 0;
  z-index: 1002  !important;
  background-color: white;}
.coluna-fixa-th {
  /* Ajuste a largura conforme necessário */
  width: 60px;
  position: sticky;
  left: 0;
  z-index: 1003  !important;
  background-color: white;}
th span {
/*color: transparent;*/
user-select: none; /* Evita que o texto seja selecionado */
}

.tab-content {
  height: 97%; /* Defina a altura total do conteúdo da aba */
}

.tab-pane {
  height: calc(100vh - 170px); /* Defina a altura das abas, ajustando conforme necessário */
  overflow-y: auto; /* Adicione overflow para permitir o scroll vertical */
  padding: 3px; /* Adicione algum padding se necessário */
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
  position: relative;
  width: 100% ;
  min-height: 1px ;
  padding-right: 3px !important;
  padding-left: 3px !important;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: 3px !important;
  margin-left: 3px !important;
}
.form-control{
  padding: 0.00rem !important;
}
.col-form-label{
  padding-top: calc(0.1rem + 1px) !important;
  padding-bottom: calc(0.1rem + 1px) !important;
}

.material-icons, .material-symbols-outlined{
  font-weight: 100;
  font-size: 16px;
}

.status-sidebar {
  width: 100%;
  background: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1000;
  max-height: 85vh; 
  overflow-y: auto;
}
.status-card {
  background: #f5f5f5;
  padding: 10px;
  margin: 5px 0;
  border-radius: 3px;
  z-index: 1000;
}
#mapa {
position: relative; /* ou static */
z-index: 1;

}
.status-card.selecionado {
  background-color: #2b5d85;
  color: white;
  border: 1px #2b5d85;
}

.info-window button {
  width: 20px;
  height: 20px;
  font-size: 10px;
  padding: 2px;
}

.info-window button i {
  font-size: 14px;
}

input:invalid {
    border-color: #dc3545;
}
input:valid {
    border-color: #28a745;
}

td, th {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: auto !important;          /* Célula cresce conforme conteúdo */
  width: auto !important;               /* Largura automática */
}

.table {
  table-layout: auto !important;        /* Permite que colunas cresçam */
  width: 100% !important;
}

th {
  position: relative;
  z-index: 100;
}

/* Adicione estas classes no seu CSS */
.PENDENTE {
  background-color: #EEE8AA !important;  /* Laranja para Pendente */
  color: #000;
}

.EXECUCAO {
  background-color: #00BFFF !important;  /* Amarelo para Em Execução */
  color: #000;
}

.AGUARDANDO {
  background-color: #3CB371 !important;  /* Verde claro para Liberado */
  color: #000;
}

.FINALIZADO {
  background-color: #A9A9A9 !important;  /* Verde para Finalizado */
  color: #000;
}

.FINALIZADO_PROTHEUS {
  background-color: #006400 !important;  /* Verde escuro para Finalizado Protheus */
  color: #FFF;
}

/* Mantenha as classes existentes que você já tem */
.VERM {
  background-color: #fc4c4c !important; 
  color: #000;
}

.VERD {
  background-color: #32CD32 !important; 
}

.AMARELO {
  background-color: #FFD700 !important; 
}

/* Garantir que a tabela ocupe toda a largura */
.table {
    width: 100% !important;
    table-layout: auto;
}

/* CORREÇÃO PARA O SCROLL FUNCIONAR */
#torre_grid {
    height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    display: block !important;
}

#grid {
    height: calc(100vh  ) !important;
    overflow-y: auto !important;
    display: block !important;
}

#grid .table {
    width: 100%;
    margin-bottom: 0;
}

/* Garantir que a tabela ocupe todo o espaço */
#torre_grid .table {
    width: 100%;
    margin-bottom: 0;
}

/* Estilo para a mensagem de carregamento */
#carregando {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    position: sticky;
    bottom: 0;
    z-index: 1000;
}

/* Melhorar a visualização da tabela */
#dados-tbody tr {
    height: 20px;
}

#dados-tbody td {
    vertical-align: middle;
    padding: 0px 0px !important;
}

/* Estilo para o botão de exportar */
#btnExportarExcel {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
}

#btnExportarExcel:hover {
    background-color: #138496 !important;
    border-color: #117a8b !important;
}

#btnExportarExcel:disabled {
    opacity: 0.6;
    cursor: wait;
}

.dropdown-menu {
  z-index: 1050 !important;
}
.btn-filter-toggle {
    color: #fff;
    border-color: #fff;
}

/* Destaque para motoristas/funcionários inativos */
.motorista-inativo,
option.motorista-inativo,
.select2-results__option.motorista-inativo {
    background-color: #ffe6e6 !important;
    color: #999 !important;
}

.select2-results__option.motorista-inativo:hover {
    background-color: #ffd6d6 !important;
}

/* Campos readonly com fundo cinza devem ter texto visível */
input[readonly],
textarea[readonly],
select[readonly] {
    color: #495057 !important;
}

/* Placeholders dos campos readonly também devem ser visíveis */
input[readonly]::placeholder,
textarea[readonly]::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

input[readonly]::-webkit-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

input[readonly]:-ms-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

input[readonly]::-ms-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.select2-results__option.motorista-inativo:hover {
    background-color: #ffd6d6 !important;
}
