.rdpl-content {
    margin-left: 200px;
}

.rdpl-sidebar {
    width: 200px;
    float: left;
}

.rdpl-button-nav-container {
    padding-top: 5px;
}

.rdpl-button {
    display: block;
    margin: 5px;
    padding: 8px 10px;
    width: calc(100% - 20px);
    background-color: #eee;
    border: none;
    cursor: pointer;
}

.rdpl-button:hover {
    background-color: #ddd;
}

.rdpl-button-container {
    padding-left: 20px;
}

.rdpl-sidebar-drop-zone {
    transition: height 0.3s ease;
}

.rdpl-sidebar-drop-after {
    padding: 15px 0 0 0;
}

.rdpl-sidebar-drop-on {
    border: 2px #e0e0e0;
}

.rdpl-display-title {
    font-size: 2em;
    padding-bottom: 20px;
}

.rdpl-display-title-controlrow {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Switch Styling */
.rdpl-title-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-left: 10px;
}

.rdpl-title-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rdpl-title-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.rdpl-title-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.rdpl-title-slider {
    background-color: #4CAF50;
}

input:checked+.rdpl-title-slider:before {
    transform: translateX(14px);
}

.rdpl-content-container {
    padding-bottom: 30px;
}

.rdpl-inline-warning {
    color: rgb(239, 132, 132);
}

.rdpl-chart-title {
    font-size: 1.5em;
    padding-bottom: 20px;
}

.rdpl-control-row {
    display: flex;
    justify-content: flex-end;
    /* Aligns content to the right */
    align-items: center;
    /* Centers items vertically */
    gap: 10px;
    /* Adds space between label and buttons */
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 25px;
}

.rdpl-control-button {
    padding: 5px 10px;
    /* Padding inside buttons */
    font-size: 12px;
    /* Smaller text size for small buttons */
    cursor: pointer;
    /* Cursor changes to pointer on hover */
}

.rdpl-chart-extra {
    font-size: 1em;
    padding-bottom: 20px;
}

.rdpl-dynamic-mainContainer {
    display: flex;
}

.rdpl-dynamic-container {
    width: 30%;
    min-height: 100px;
    max-height: 60vh;
    /* 60% of current display (viewport) height */
    border: 2px solid #AAA;
    margin: 10px;
    padding: 5px;
    background-color: #f4f4f4;
    font-size: 18px;
    overflow-y: auto;
    /* Enables vertical scrolling if overflowing */
}

.rdpl-dynamic-filter {
    position: relative;
    /* To position the ::before pseudo-element relative to the item */
    margin: 5px;
    padding: 5px;
    padding-right: 50px;
    /* Add space to the right for the background text */
    background-color: #ddd;
    border: 1px solid #ccc;
}

/* Styling for dynamic items with background text */
.rdpl-dynamic-item {
    position: relative;
    /* To position the ::before pseudo-element relative to the item */
    margin: 5px;
    padding: 5px;
    padding-right: 50px;
    /* Add space to the right for the background text */
    background-color: #ddd;
    border: 1px solid #ccc;
    cursor: move;
}

/* Background text displayed on the right */
.rdpl-dynamic-item::before {
    content: attr(data-value);
    /* Display value stored in data-value attribute */
    position: absolute;
    /* Position the text within the parent element */
    right: 1px;
    /* Align text 10px from the right edge */
    top: 80%;
    /* Vertically center the text */
    transform: translateY(-50%);
    /* Adjust for perfect centering */
    font-size: 11px;
    /* Adjust font size as needed */
    color: #888;
    /* Use a subdued color for background text */
    pointer-events: none;
    /* Ensure the text doesn't interfere with drag or mouse events */
}

.rdpl-new-select-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    flex-wrap: wrap;
}

.rdpl-new-select-container-one {
    padding-left: 30px;
    padding-right: 5px;
}

.rdpl-new-select-container-one-connect {
    padding-left: 2px;
    padding-right: 2px;
}

.rdpl-new-select-container-one-or {
    padding-left: 2px;
    display: inline-block;
    width: 25px;
    /* length of the line */
    border-bottom: 3px double #333;
    /* double line style */
    margin: 0 8px;
}

.rdpl-new-select-container-one-or:after {
    content: 'OR';
}

.rdpl-chart-reset-btn {
    cursor: pointer;
    /* Cursor indicates clickable */
    position: relative;
    bottom: -8px;
    border-radius: 5px;
    outline: none;
    padding: 5px 10px 5px 10px;
    margin-left: 10px;
    /* Ensure padding for aesthetics */
    border: 1px solid #ccc;
    /* Optional border */
    background-color: #f9f9f9;
    /* Light background */
}

.rdpl-chart-reset-btn::before {
    content: "\21A9";
}

.rdpl-left-right-button-container {
    display: flex;
    margin-bottom: 20px;
    align-items: stretch;
    /* Ensures the buttons stretch to match the table height */
}

.rdpl-nav-button {
    flex: 0 0 30px;
    cursor: pointer;
}

.rdpl-table-index-info-div {
    width: 150px;
    display: flex;
    /* Use Flexbox */
    align-items: center;
    /* Center text vertically */
    justify-content: center;
    /* (Optional) Center text horizontally */
    padding: 0 10px 1px;
    /* Add left and right padding (10px example) and keep bottom padding as 1px */
}

.rdpl-table-index-info-div-wide {
    width: 300px;
    display: flex;
    /* Use Flexbox */
    align-items: center;
    /* Center text vertically */
    justify-content: center;
    /* (Optional) Center text horizontally */
    padding: 0 10px 1px;
    /* Add left and right padding (10px example) and keep bottom padding as 1px */
}

.rdpl-left-button::after {
    content: "<";
    font-size: 20px;
    /* Adjust size as needed */
}

.rdpl-right-button::after {
    content: ">";
    font-size: 20px;
    /* Adjust size as needed */
}

/* map only */
.rdpl-map {
    width: calc(100% - 80px);
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
}

.rdpl-map-hoverinfo {
    background-color: rgba(240, 240, 240, 0.5);
    border: #AAA;
    font-size: medium;
    padding: 5px;
}

/* table only */
.rdpl-table {
    width: calc(100% - 80px);
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
}

.rdpl-table-diff-checkbox {
    background-color: #999;
}

.rdpl-table-th,
.rdpl-table-td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.rdpl-table-th {
    background-color: #f4f4f4;
    color: #333;
}

.rdpl-tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.rdpl-tbody tr:hover {
    background-color: #f1f1f1;
}

/* Styles for significance arrows */
.rdpl-table-arrow-up {
    color: green;
}

.rdpl-table-arrow-down {
    color: red;
}

.rdpl-table-arrow-up-double {
    color: green;
}

.rdpl-table-arrow-down-double {
    color: red;
}


/* Extra padding for arrows to ensure they do not stick to the numbers */
.rdpl-table-arrow-up::before,
.rdpl-table-arrow-down::before {
    content: " ";
}

.rdpl-table-arrow-up::after {
    content: '△';
}

.rdpl-table-arrow-up-double::after {
    content: '▲';
}

.rdpl-table-arrow-down::after {
    content: "▽";
}

.rdpl-table-arrow-down-double::after {
    content: "▼";
}

/* Style for the dash (no change) */
.rdpl-table-dash::after {
    content: "-";
}

.rdpl-table-th {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    /* Space for sort indicator */
}

.rdpl-table-th.asc::after,
.rdpl-table-th.desc::after {
    position: absolute;
    right: 5px;
    content: '';
}

.rdpl-table-th.asc::after {
    content: '▲';
}

.rdpl-table-th.desc::after {
    content: '▼';
}

/* selector only */
.rdpl-multiselect-dropdown {
    display: inline-block;
    padding: 2px 5px 0px 5px;
    border-radius: 4px;
    border: solid 1px #ced4da;
    background-color: white;
    position: relative;
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px 12px;
}

.rdpl-multiselect-dropdown-search {
    width: 100%;
}

.rdpl-multiselect-dropdown-searchclear-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ccc;
}

.rdpl-multiselect-dropdown-searchclear-btn:after {
    content: 'X';
}

.rdpl-multiselect-dropdown-searchcontainer {
    position: relative;
    display: flex;
}

.rdpl-placeholder {
    margin-right: 0.5em;
    margin-bottom: 2px;
    padding: 1px 0;
    border-radius: 4px;
    display: inline-block;
    color: black;
    width: 160px;
}

.rdpl-multiselect-dropdown-list-wrapper {
    box-shadow: gray 0 3px 8px;
    z-index: 100;
    padding: 2px;
    border-radius: 4px;
    border: solid 1px #ced4da;
    display: none;
    margin: -1px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
}

.rdpl-multiselect-dropdown-list {
    padding: 2px;
    max-height: 15rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.rdpl-multiselect-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.rdpl-multiselect-dropdown-list::-webkit-scrollbar-thumb {
    background-color: #bec4ca;
    border-radius: 3px;
}

.rdpl-multiselect-dropdown-list div {
    padding: 5px;
}

.rdpl-multiselect-dropdown-list input {
    height: 1.15em;
    width: 1.15em;
    margin-right: 0.35em;
}

.rdpl-multiselect-dropdown-list div:hover {
    background-color: #ced4da;
}

.rdpl-multiselect-dropdown-all-selector {
    border-bottom: solid 1px #666;
}

.rdpl-multiselect-dropdown-item {
    text-indent: 10px;
}

/* Style checkbox inside .myClass */
.rdpl-multiselect-dropdown-all-selector input[type="checkbox"] {
    width: 20px;
    /* Increase the width slightly */
    height: 20px;
    /* Increase the height slightly */
    cursor: pointer;
}

/* Style label text to be bold */
.rdpl-multiselect-dropdown-all-selector label {
    font-weight: bold;
    font-size: 16px;
    /* Optional: adjust font size if needed */
    margin-left: 4px;
    /* Optional: space between checkbox and label text */
}

.rdpl-pg-save-btn {
    margin: 4px 4px 4px 4px;
    cursor: pointer;
    /* Cursor indicates clickable */
    position: relative;
    bottom: -8px;
    border-radius: 5px;
    outline: none;
    height: 30px;
    min-width: 120px;
    /* Ensure padding for aesthetics */
    border: 1px solid #ccc;
    /* Optional border */
    background-color: #f9f9f9;
    /* Light background */
    margin-bottom: 50px;
}

.rdpl-sidebar-small-button-container {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 200px;
    display: flex;
    justify-content: space-around;
    padding: 50px 15px 10px 3px;
}

.rdpl-sidebar-small-button {
    border: none;
    cursor: pointer;
    width: 24%;
    height: 30px;
    background-color: #f5f5f5;
}

.rdpl-sidebar-small-button:hover {
    background-color: #ddd;
}

.rdpl-edit-editable {
    position: relative;
    padding: 10px;
    margin-right: 25px;
}

.rdpl-edit-editable:hover {
    border: 1px solid #ccc;
}

.rdpl-edit-editBtn {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    display: none;
}

.rdpl-edit-editable:hover .rdpl-edit-editBtn {
    display: block;
}

.rdpl-edit-textarea {
    width: calc(100% - 20px);
    height: 100px;
}

.rdpl-edit-controlBtns {
    margin-top: 10px;
}

.rdpl-edit-save,
.rdpl-edit-cancel {
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 5px;
}

.rdpl-touchpoint-div {
    position: relative;
    width: calc(100% - 80px);
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
}

.rdpl-slider-container {
    position: absolute;
    top: 50px;
    right: 50px;
    height: 200px;
    display: flex;
    align-items: center;
    z-index: 100;
}

.rdpl-range {
    writing-mode: vertical-lr;
    direction: rtl;
    height: 200px;
    position: relative;
}

.rdpl-slider-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    height: 200px;
    pointer-events: none;
    left: 25px;
}

/* Hint Overlay Styles */
.rdpl-table-cell-hint-overlay {
    position: fixed;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
}

.rdpl-table-cell-hint-source-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.rdpl-table-cell-hint-source-table th,
.rdpl-table-cell-hint-source-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.rdpl-table-cell-hint-sig-table {
    width: 100%;
    border-collapse: collapse;
}

.rdpl-table-cell-hint-sig-table td {
    padding: 5px;
    border: 1px solid #ddd;
}

.rdpl-table-cell-hint-source-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    margin-bottom: 10px;
}

html {
    scroll-behavior: smooth;
}