/* Responsive Tables for Medical Questions */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 0;
    padding: 0;
}

.lab-results {
    width: auto !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.875rem;
    display: table;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    direction: ltr !important;
}

.lab-results th:first-child,
.lab-results td:first-child {
    text-align: left !important;
}

.lab-results th,
.lab-results td {
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 0.875rem;
    line-height: 1.4;
}

.lab-results th {
    background: #f3f4f6;
    font-weight: 600;
    text-align: left;
}

.lab-results td {
    text-align: center;
}

/* Mobile Optimization */
@media (max-width: 640px) {
    .lab-results {
        font-size: 0.4rem;
        margin: 8px 0;
    }
    
    .lab-results th,
    .lab-results td {
        padding: 2px 3px !important;
        font-size: 0.4rem;
        line-height: 1.1;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .lab-results {
        font-size: 0.625rem;
    }
    
    .lab-results th,
    .lab-results td {
        padding: 4px 6px;
    }
}
