.webix_header {
    font-size: 18px;
    font-weight: bold;
}

.webix_dark {
    /* color: white;
    background-color: #444; */
    padding: 10px; 
}

/* Hide scrollbars but allow scrolling */
.hide-scrollbar::-webkit-scrollbar {
    width: 0px; /* Remove scrollbar width for WebKit browsers */
}

.hide-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.hidden-scrollbars .webix_scroll_cont {
    overflow-y: auto; /* Enable scrolling */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.hidden-scrollbars .webix_scroll_cont::-webkit-scrollbar {
    width: 0px; /* Hide scrollbar in Chrome, Edge, Safari */
    background: transparent; /* Make scrollbar background transparent */
}


/* Add pointer cursor for the graph container */
.position-relative {
    position: relative;
    cursor: pointer; /* Change cursor to pointer */
}

.graph-hover-line {
    cursor: pointer;
    position: absolute;
    width: 2px;
    background: #ff474d75; /* Customize the color */
    height: 100%; /* Full height of the graph */
    top: 0;
    display: none; /* Hidden by default */
    z-index: 10;
    pointer-events: none; /* Prevent interaction */
}

/* Ensure the dropdown fits properly */
.webix_combo_list {
    max-height: 300px; /* Add a scroll if the content exceeds this height */
    overflow-y: auto;
    width: 300px !important; /* Ensure dropdown has sufficient width */
}

.webix_list {
    width: 100%; /* Stretch the list inside the dropdown */
}

.sidemenuElementList .webix_list_item {
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    text-transform: uppercase;
}

.sidemenuElementList .webix_list_item:hover {
    background-color: #e5e5e5;
}

.sidemenuElementList .webix_list_item.webix_group_back.group {
    padding-left: 20px;
}

/* Login form styling */
.login-form {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.10);
    color: #333;
    overflow: visible;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.webix_tree_item svg {
    vertical-align: middle;
    margin-right: 5px; /* Space between icon and text */
}

.collapsed {
    border: 1px solid #ccc;
    overflow: hidden;
}

.floating-hide-btn {
    position: absolute;
    top: -10px; /* Adjust positioning as needed */
    right: 10px;
    padding: 5px 10px;
    background-color: #007bff; /* Modern blue button */
    color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.1s ease;
}

.floating-hide-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.custom-tooltip {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom text align used in database colmn to center specific texts */
/* Changed jure 11.2.2025 */
.column-text-align-mid {
    text-align: center !important;
}

/* The portles have been configured borderless cuz there is a bug inside webix with border render */
/* Changed jure 11.2.2025 */
.custom-portlet {
    border-bottom: 2px solid rgba(215, 205, 205, 0.5) !important;
}

.custom-graph-label-style {
    padding-left: 15px;
    line-height: 20px;
}

.webix_canvas_text.webix_axis_item_x {
    padding-top: 10px; /* Adjust to match your visual needs */
    margin-bottom: 10px;
}

.webix_tree_open_close {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30%;
    background-color: transparent;
    color: #333;
    cursor: pointer;
    margin-right: 6px;
    border: 1px solid #f0eaea;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.webix_tree_open_close:hover {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.legend-disabled {
    opacity: 0.3;
    background-color: #ccc;
}

.no-toggle {
    pointer-events: none;
    color: #ccc;
    user-select: none;
    cursor: default;
}

.disabled-icon {
    color: #ccc;            /* light gray */
    cursor: default;
    user-select: none;
    pointer-events: none;
}

.webix_el_label .webix_el_box, .webix_inp_label, .webix_inp_top_label, legend.webix_forminput_label {
    font-weight: normal;
}

.graph-data-overlay {
    font-family: 'Roboto';
    position: absolute;
    background-color: transparent;
    color: black;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1000;
    pointer-events: none;
}

.webix_chart_legend {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 4px;
    gap: 10px;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(100, 100, 100, 0.3) transparent;
  }
  
.webix_chart_legend_item {
    flex-shrink: 0;
    white-space: nowrap;
}

.no-series-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    color: #444;
    font-size: 16px;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 5;
    pointer-events: none;
}

.webix_template {
    padding: 0px;
}