/* Wrapper: Enables horizontal scrolling on small screens */
.simple-table-wrapper {
	border-radius:3px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}

/* Force table to take full width */
.simple-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* Allows columns to auto-size */
}

/* Style table headers (keep them in one line) */
.simple-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    white-space: nowrap !important; /* Prevents headers from wrapping */
    padding: 8px;
    border: 1px solid #ddd; /* Ensures border consistency */
}

/* Style table cells (allow text to wrap normally) */
.simple-table td {
    word-break: break-word; /* Ensures long words break instead of overflowing */
    white-space: normal !important; /* Allows normal text wrapping */
    padding: 8px;
    border: 1px solid #ddd; /* Ensures border consistency */
}

/* Mobile: Force horizontal scrolling instead of tall cells */
@media (max-width: 768px) {
    .simple-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling */
    }

    .simple-table {
        width: max-content !important; /* Forces horizontal scrolling */
        min-width: 100% !important; /* Prevents shrinking */
        table-layout: fixed;
    }

    .simple-table th, .simple-table td {
        min-width: 100px; /* Prevents columns from becoming too narrow */
    }
}
