/* Estilos para a página de Estoque Baixo */

/* Animação de spinning para o ícone de loading */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Estilo para os balões de ajuda */
.container-baloes-ajuda {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.balao-ajuda {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    flex: 1;
    min-width: 250px;
}

.balao-ajuda.alert-warning {
    background-color: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}

.balao-ajuda p {
    margin: 0;
    font-size: 14px;
}

.balao-ajuda strong {
    font-weight: 600;
}

/* Estilo para o alerta de estoque baixo */
.alert-warning h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Estilos para a tabela */
#tabEstoqueBaixo {
    font-size: 13px;
}

#tabEstoqueBaixo thead th {
    background-color: #f5f5f5;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

#tabEstoqueBaixo tbody tr:hover {
    background-color: #f9f9f9;
}

/* Estilos para os labels de situação */
.label {
    display: inline-block;
    padding: .3em .6em;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    min-width: 70px;
}

.viewitemestoque-medicamento {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: #5abfb2;
    color: #fff;
    border-radius: 4px;
}

.viewitemestoque-produto {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: #2f948a;
    color: #fff;
    border-radius: 4px;
}

/* Espaçamento dos checkboxes */
.form-group label input[type="checkbox"] {
    margin-right: 5px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container-baloes-ajuda {
        flex-direction: column;
    }
    
    .balao-ajuda {
        min-width: 100%;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Destaque para linhas com estoque crítico */
#tabEstoqueBaixo tbody tr[data-critico="true"] {
    background-color: #f2dede !important;
}

#tabEstoqueBaixo tbody tr[data-critico="true"]:hover {
    background-color: #ebcccc !important;
}

/* Estilo para botões de ação na tabela */
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* Ajuste de espaçamento entre botões */
.btn-group-xs > .btn,
.btn-xs {
    margin-right: 3px;
}

.btn-xs:last-child {
    margin-right: 0;
}