/* Responsive Tables for Project Detail Pages */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.project-table th,
.project-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.project-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.project-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.project-table tr:hover {
    background-color: #f0f0f0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .project-table {
        font-size: 0.85rem;
    }
    
    .project-table th,
    .project-table td {
        padding: 0.5rem;
    }
}

/* Option for stacked tables on small screens */
@media (max-width: 480px) {
    .project-table.stack-on-mobile {
        border: 0;
    }
    
    .project-table.stack-on-mobile thead {
        display: none;
    }
    
    .project-table.stack-on-mobile tr {
        margin-bottom: 1rem;
        display: block;
        border: 1px solid #e0e0e0;
    }
    
    .project-table.stack-on-mobile td {
        display: block;
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .project-table.stack-on-mobile td:last-child {
        border-bottom: 0;
    }
    
    .project-table.stack-on-mobile td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}
