.my-custom-shortcode .my-custom-table-wrapper {
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.my-custom-shortcode .my-container {
    display: flex; /* Enable Flexbox */
    gap: 20px; /* Space between items */
    padding: 10px; /* Padding around the container */
    width: 100%; /* Full width of the parent */
    max-width: none; /* Ensure no max-width constraints */
}

.my-custom-shortcode .my-table-container {
    flex: 0 0 auto; /* Allow it to grow naturally */
    overflow: visible; /* Allow content to overflow */
    padding: 10px; /* Optional padding */
}

.my-custom-shortcode .my-details-container {
    flex: 0 0 30%; /* Occupies 30% of the width */
    min-width: 250px; /* Minimum width for detail view */
}

.my-details-container button {
    margin-right: 10px; /* Space between buttons */
    padding: 8px 12px; /* Padding for buttons */
    border: 1px solid #007bff; /* Border color */
    background-color: #007bff; /* Button background color (blue) */
    color: white; /* Text color */
    cursor: pointer; /* Cursor change on hover */
    border-radius: 5px; /* Rounded corners */
}

.my-details-container button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    border-color: #0056b3; /* Darker border on hover */
}

.my-custom-shortcode #myTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.my-custom-shortcode #myTable th,
.my-custom-shortcode #myTable td {
    border: 1px solid #ddd;
    padding: 12px; /* Increased padding for better readability */
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    max-width: 300px; /* Increased max width for cells */
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-custom-shortcode #myTable th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.my-custom-shortcode #detailView {
    margin-top: 10px;
    padding: 15px; /* Increased padding for better readability */
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
}

/* Row Highlighting */
.my-custom-shortcode #myTable tbody tr.highlighted {
    background-color: #d0e9c6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .my-custom-shortcode .my-container {
        flex-direction: column; /* Stack items vertically on small screens */
    }

    .my-custom-shortcode #myTable {
        font-size: 14px; /* Smaller font size on mobile */
    }
}