/* static/style.css or inline <style> tag */
.dataframe-container { /* Container for the table */
    height: 300px; /* Set a fixed height */
    overflow-y: scroll; /* Enable vertical scrolling */
    border: 1px solid black; /* Optional border for the container */
}

.dataframe {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Important: Fixes table layout for scrolling */
}

.dataframe th, .dataframe td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
    word-wrap: break-word; /* Allow text to wrap within cells */
}

.dataframe th {
    background-color: #f2f2f2;
}

/* Optional: Style the scrollbar (browser-specific) */
.dataframe-container::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

.dataframe-container::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the scrollbar track */
}

.dataframe-container::-webkit-scrollbar-thumb {
    background: #888; /* Color of the scrollbar thumb */
}