.tableandfiles-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Cabeçalho */
.taf-header {
    display: grid;
    gap: 1rem;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #495057;
}

.taf-header-field {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

/* Linhas de dados */
.taf-row {
    display: flex;
    padding: 0;
}

.taf-row:hover {
    background-color: #9EC3FA;
    transition: background-color 0.2s ease-in-out;
}

.taf-row--even {
    background-color: #f5f5f5;
}

.taf-row--odd {
    background-color: #ffffff;
}

.taf-content {
    flex: 1;
}

.taf-details {
    display: grid;
    gap: 1rem;
    align-items: start;
    padding: 0.75rem 1rem;
    min-height: 50px;
}

.taf-field {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    word-break: break-word;
}

/* Aplicar line-clamp apenas na coluna objetivo */
.taf-field.taf-title-field {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.taf-field-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    max-width: 100%;
}

.taf-field.taf-title-field {
    font-weight: 400;
    color: #171c66;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.taf-field strong {
    color: #333;
    font-weight: 600;
}

.taf-related-text {
    color: #555;
    font-size: 14px;
    word-break: break-word;
    line-height: 1.4;
}

.taf-related-file {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
}

.taf-related-file .taf-related-text {
    font-size: 14px;
    color: #555;
    word-break: break-word;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.taf-field.taf-title-field strong {
    display: none;
}

.taf-button {
    background-color: #00be6b;
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    font-size: 14px;
    line-height: 18px;
    padding: 10px 38px;
    white-space: nowrap;
}

.taf-button:hover {
    background-color: #00a058;
    color: #FFFFFF;
    text-decoration: none;
}

.taf-button--related {
    background-color: #6c757d;
    font-size: 12px;
    padding: 8px 20px;
}

.taf-button--related:hover {
    background-color: #5a6268;
}

/* Dispositivos com largura menor que 768px (tablets e celulares) */
@media (max-width: 768px) {
    .taf-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .taf-header-field {
        font-size: 12px;
    }

    .taf-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .taf-field {
        min-height: auto;
        font-size: 13px;
    }

    .taf-field.taf-title-field {
        font-size: 14px;
        line-height: 1.4;
    }

    .taf-button {
        font-size: 12px;
        padding: 8px 15px;
        width: 100%;
        text-align: center;
    }
}

/* Telas muito pequenas (< 480px) */
@media (max-width: 480px) {
    .taf-header-field {
        font-size: 11px;
    }

    .taf-field {
        font-size: 12px;
    }

    .taf-field.taf-title-field {
        font-size: 13px;
    }

    .taf-button {
        font-size: 11px;
        padding: 6px 10px;
    }
}
