/* Arquivo: static/css/style.css */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    
}

/* Cabeçalhos */
h1 {
    color: #007bff;
}

/* Botões */
.btn {
    
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    border:none;
}

.btn:hover {
    background-color: #0056b3;
}
.btn-warning:hover {
    background-color: #bf7215;
    color:#FFF;
}

a.btn.btn-primary.btn-sm,
a.btn.btn-info.btn-sm {
    margin: 3px;
}
#loading {
    position: fixed; /* Fixa o elemento na tela */
    bottom: 20px; /* Distância do rodapé */
    right: 20px; /* Distância do canto direito */
    background: rgba(145, 224, 255, 0.8); /* Fundo escuro translúcido */
    color: white; /* Texto branco */
    padding: 10px 20px; /* Espaçamento interno */
    border-radius: 8px; /* Bordas arredondadas */
    font-size: 14px; /* Tamanho da fonte */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra leve */
    display: none; /* Esconder por padrão */
    z-index: 9999; /* Mantém sobre outros elementos */
    
}
        /* Estilos básicos
        #loading {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: rgba(145, 224, 255, 0.8);
            padding: 10px;
            border-radius: 8px;
            display: none;
            z-index: 9999;
        }
             */


.sla-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    margin-top: 20px;
}

.sla-box {
    width: 20px;
    height: 80px;
    border-radius: 4px;
}

.green { background-color: rgb(58 209 18); }
.yellow { background-color: #ffa000; }
.red { background-color: #ee7070; }
.gray { background-color: gray; } /* 🔹 Cor para horas futuras */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espaço entre as divs */
}

.flex-container > div {
    flex: 1; /* Divide igualmente */
    min-width: 300px; /* Define um tamanho mínimo */
}


tbody {
    overflow-x: auto;
    white-space: nowrap;
}
/* Celulares pequenos */
@media (max-width: 360px) {
    

}
@media (max-width: 576px) {
    .btn-sm {
        padding: 5px 8px; /* Botões menores */
        font-size: 12px;
    }
    .btn {
        display: inline-block; /* Evita botões muito largos */
        margin: 2px;
    }
    
    /* Garante que a tabela role horizontalmente em telas pequenas */
    .table-responsive,
    thead.table-dark
    tbody {
        overflow-x: auto;
        white-space: normal;
    }
}

/* Tablets e celulares grandes */
@media (max-width: 768px) {
    table {
        font-size: 12px; /* Reduz a fonte para economizar espaço */
    }
    th, td {
        padding: 5px; /* Reduz o padding das células */
    }
}


/* Layout para telas grandes */
@media (min-width: 1201px) {
    
}
/* Esconder colunas em telas pequenas */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    th:first-child, td:first-child {
        width: 70px;
        min-width: 70px;
        max-width: 150px;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }            
}