.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-top: 20px;
    overflow: hidden; /* Prevents content overflow outside the table bounds */
}

.styled-table-container {
    max-height: 400px; /* Limit vertical height for 10 records */
    max-width: 100%; /* Full width of the container */
    overflow: auto; /* Enables horizontal and vertical scrollbars */
    border: 1px solid #ddd; /* Border around the scrollable container */
}

.styled-table th,
.styled-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.styled-table th {
    background-color: var(--theme-color, #007BFF); /* Use theme color or default to deep blue */
    color: white;
    text-transform: capitalize;
    font-weight: bold;
}

.styled-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.styled-table tr:hover {
    background-color: #f1f1f1;
}

.styled-table td {
    vertical-align: top;
    word-wrap: break-word; /* Prevent text overflow */
}

/* Add scrollbar styles */
.styled-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.styled-table-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}
.styled-table-container::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}