/* CRITICAL TABLE FIX - Override all previous table styles */
/* This must be loaded AFTER style_v3.css */

/* Force the Community Daily Summary card to be full-width and not float */
#tab-my-runs>.card:first-child,
#tab-my-runs>.responsive-table-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    position: static !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    clear: both !important;
}

.table-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-top: 10px !important;
    background: var(--bg-card) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    position: relative !important;
    white-space: normal !important;
    float: none !important;
    clear: both !important;
}

.table-wrapper table {
    min-width: 500px !important;
    /* Smaller for mobile */
    width: auto !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

/* Ensure table cells don't force expansion */
.table-wrapper th,
.table-wrapper td {
    white-space: nowrap !important;
    padding: 8px 4px !important;
    font-size: 0.85em !important;
}

/* Sticky first column */
.table-wrapper th:first-child,
.table-wrapper td:first-child {
    position: sticky !important;
    left: 0 !important;
    background: var(--bg-card) !important;
    z-index: 2 !important;
    min-width: 100px !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 600px) {

    .table-wrapper th,
    .table-wrapper td {
        padding: 6px 3px !important;
        font-size: 0.75em !important;
    }

    .table-wrapper th:first-child,
    .table-wrapper td:first-child {
        min-width: 80px !important;
    }
}.run-cell { animation: table-fix; } 
