body {
    overflow-x: auto; /* Allow horizontal scrolling */
}

#patient_table_container
.wdr-ui-element{
    max-height: 400px; /* Adjust as needed */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    width: 100%; /* Ensure it takes full width */
}

#patient_table {
    width: 100%; /* Ensure the table takes full width */
    display: block; /* Ensure table rows do not wrap */
    overflow-x: auto; /* Enable horizontal scrolling within the table */
}

/* Container for the chart */
#chart_container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 600px; /* Adjust as needed */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    width: 100%;
}

/* Canvas for Chart.js */
#patientProgressChart {
    width: 100% !important;
    height: 100% !important;
}

/* Chart title styling */
.chartjs-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Tooltip styling */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 3px;
    padding: 5px;
}

/* Legend styling */
.chartjs-legend {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.chartjs-legend li {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.chartjs-legend span {
    display: block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* Custom styles for the tabs and content */
.tabs {
    overflow: hidden;
    background-color: #f1f1f1;
    margin-top: 20px;
}

.tablink {
    background-color: #999;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

.tablink:hover {
    background-color: #ddd;
}

.tablink.active {
    background-color: #3c6db8;
}

.tabcontent {
    display: none;
    padding: 20px;
    border-top: none;
}

/* Styles for draggable container */
#draggable-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    cursor: move;
}

#content-wrapper {
    padding: 20px;
}

.arrow-indicator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    display: none;
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }
