/* --- TABELAS RESPONSIVAS (MOBILE - LAYOUT CARD) --- */
@media (max-width: 768px) {
    /* Remove a largura mínima obrigatória no telemóvel */
    table {
        min-width: 0 !important; 
    }
    
    /* Esconde a barra de títulos (Data, Loja, etc.) */
    table thead {
        display: none; 
    }
    
    /* Transforma cada linha da tabela num "cartão" */
    table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid #333;
        border-radius: 10px;
        padding: 5px 15px;
    }

    /* Coloca os itens lado a lado dentro do cartão */
    table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 !important;
        border-bottom: 1px solid #222 !important;
        text-align: right !important;
    }

    /* Remove a borda da última linha do cartão */
    table tbody td:last-child {
        border-bottom: none !important;
    }

    table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ff4d4d;
        text-transform: uppercase;
        font-size: 0.8rem;
        text-align: left;
        margin-right: 15px;
    }
}