/* Responsive Tables CSS */
/* This file contains styles for making tables responsive on mobile devices */

/* Hide table on mobile and show cards instead */
@media (max-width: 768px) {
    .responsive-table-container table {
        display: none;
    }
    
    .responsive-table-container .mobile-cards {
        display: block;
    }
    
    .responsive-table-container .mobile-card {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        overflow: hidden;
        background-color: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .responsive-table-container .mobile-card-header {
        padding: 0.75rem 1rem;
        background-color: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
        font-weight: 600;
    }
    
    .responsive-table-container .mobile-card-body {
        padding: 1rem;
    }
    
    .responsive-table-container .mobile-card-row {
        display: flex;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .responsive-table-container .mobile-card-row:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .responsive-table-container .mobile-card-label {
        width: 40%;
        font-weight: 500;
        color: #6b7280;
    }
    
    .responsive-table-container .mobile-card-value {
        width: 60%;
    }
    
    .responsive-table-container .mobile-card-actions {
        display: flex;
        justify-content: flex-end;
        padding: 0.75rem 1rem;
        background-color: #f9fafb;
        border-top: 1px solid #e5e7eb;
    }
}

/* Show table on desktop and hide cards */
@media (min-width: 769px) {
    .responsive-table-container .mobile-cards {
        display: none;
    }
    
    .responsive-table-container table {
        display: table;
    }
} 