:root {
    --ea-blue: #4298cc;
    --ea-text: #182552;
    --ea-text-grey: #484848;
    --ea-border: #ddd;
    --white: #fff;
    --pressed-blue: #a0cbe5;
    --hover-blue: #4298cc66;
    --ea-light-grey: #eee;
    --spacing: 8px;
    --ea-whitish-grey: #f7f7f7;
    --ea-brand-grey: #6D6E71;
    --ea-blue-button-hover: #005587;
}  

.pelican {
    color: var(--ea_text);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.pelican-xl{
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

.pelican-sm{
    color: var(--neutral-600---Muted-Text, #6B748E);
    line-height: 20px;
    font-weight: 600;
    font-size: 14px;
}

.pelican-button, .pelican-main-menu {
    display: inline-flex;
    padding: var(--spacing-2, 8px) var(--spacing-3, 12px);
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2, 8px);
    border-radius: 5px;
    border: 1px solid var(--ea-border);
    background: var(--white);
    color: var(--ea-blue);
    cursor: pointer;
}

.pelican-main-menu {
    border: none !important;
    margin-left: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.pelican-button:active, .pelican-main-menu:active {
    background: var(--pressed-blue);
}

.pelican-button:hover, .pelican-main-menu:hover, .pelican-main-menu.main_menu_navigation.active {
    box-shadow: 0px 0px 2px 2px var(--hover-blue);
}

.pelican-button-blue {
    background: var(--ea-blue);
    color: var(--white);
}

.pelican-button-blue {
    background: var(--ea-blue);
    color: var(--white);
}

.pelican-button-blue:hover {
    background: var(--ea-blue-button-hover);
}

/* button similar to view class list */
.pelican-dark-text {
    color: var(--ea-text);
    font-weight: 600;
}

.pelican-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
}

 .pelican-popup-header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    color: var(--ea-text);
    padding: 20px;
    font-size: 18px;
    z-index: 9999;
    overflow: hidden;
}

 .pelican-popup-content {
    position: relative;
    top: 50px;
 }

.pelican-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    font-family: "Open Sans", sans-serif;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 5px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    width: 95vw;
    height: 90vh;
    overflow: auto;
}

.pelican-popup-close {
    position: absolute;
    right: 10px !important;
    top: 10px !important;
    cursor: pointer;
    float: right;
    z-index: 1001 !important;
}

.pelican-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 250px;
}

.pelican-dropdown::after {
    content: '⮟'; /* Arrow symbol via CSS */
    position: absolute;
    right: 15px;
    top: 50%; /* Start at 50% height */
    transform: translateY(-50%); /* Center vertically */
    font-size: 12px;
    color: var(--ea-blue);
    pointer-events: none;
}

.pelican-dropdown-toggle, .pelican-selectbox {
    padding: 5px 5px;
    background-color: var(--white);
    color: var(--ea-text);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid var(--ea-border);
    min-height: 20px;
    white-space: nowrap;
}

.pelican-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 300px;
    background-color: var(--white);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    z-index: 1000;
    padding: 15px 0px;
    max-height: 300px;
    overflow-y: auto;
}

.pelican-dropdown-menu.show {
	display: flex;
	flex-direction: column;
}

.pelican-dropdown-item {
	display: flex;
	align-items: center;
    flex-direction: row;
    gap: 5px;
    background-color: var(--white);
    color: var(--ea-text);
    padding: 2px 0px 2px 20px;
    font-size: 14px;
    font-weight: 400;
    min-height: 45px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
    white-space: nowrap;
    vertical-align: middle !important;
}

.pelican-dropdown-multiselect-item {
    padding: 2px 0px 2px 10px;
    white-space: nowrap;
    vertical-align: middle !important;
}

.pelican-dropdown-item-selected{
    background-color: var(--ea-light-grey);
}

.pelican-dropdown-item:hover {
    background-color: var(--ea-blue);
    color: var(--white);
}

.pelican-dropdown-item div {
    width: 100%;
}

.pelican-group-label {
    text-align: center;
    font-weight: 600;
    color: var(--ea-text-grey);
    border-bottom: 1px solid var(--ea-border);
    padding: 5px;
    font-size: 12px;
    line-height: 24px; 
    user-select: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.pelican-switch-label {
    border-radius: 30px !important;
    background-color: var(--white);
    color: var(--ea-blue);
    border: 1px solid var(--ea-border);
}

.pelican-switch-label:before {
    background-color: var(--white);
    color: var(--ea-blue);
}

.pelican-switch-label:after {
    color: var(--ea-blue); 
}

.pelican-switch-label:hover, .pelican-switch-label:hover::after, .pelican-switch-label:hover::before {
    color: var(--white) !important;
    background-color: var(--ea-blue) !important;
}

.pelican-switch-handle {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    border-radius: 15px;
}

.scrollbar_top_container {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px; /* Height of the scrollbar area */
}

.scrollbar_top {
    height: 1px; /* Invisible content */
}

.reset-checkbox:not(:checked),
.reset-checkbox:checked,
.reset-checkbox:not(:checked) + label,
.reset-checkbox:checked + label,
.reset-checkbox:not(:checked) + label:before,
.reset-checkbox:checked + label:before,
.reset-checkbox:not(:checked) + label:after,
.reset-checkbox:checked + label:after {
    position: unset;
    left: unset;
    cursor: pointer;
    margin: 0px;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    -webkit-appearance: unset;
    vertical-align: middle;
    flex-shrink: 0; 
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px; /* Size of tick */
}

.reset-checkbox:checked,
.reset-checkbox:checked + label,
.reset-checkbox:checked + label:before,
.reset-checkbox:checked + label:after {
	/* temporary */
    background-color: var(--ea-blue);
     background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.00016 10.8001L3.20016 8.0001L2.26683 8.93343L6.00016 12.6668L14.0002 4.66677L13.0668 3.73343L6.00016 10.8001Z'/%3E%3C/svg%3E");
}

.pelican-checkbox:not(:checked),
.pelican-checkbox:checked,
.pelican-checkbox:not(:checked) + label,
.pelican-checkbox:checked + label,
.pelican-checkbox:not(:checked) + label:before,
.pelican-checkbox:checked + label:before,
.pelican-checkbox:not(:checked) + label:after,
.pelican-checkbox:checked + label:after {
	/* margin-right: 8px; */
}

/* custom scrollbar component */
/* === SCROLL WRAPPER === */
.custom-scroll-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 100%;
    max-width: 100%;
    border: 0;
}

/* === SCROLL CONTENT === */
.scroll-content {
    overflow: auto;
    height: 100%;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    -webkit-user-drag: none; /* Prevent dragging on iOS */
    touch-action: manipulation; /* Basic touch actions */
    scrollbar-width: none; /* Firefox - Hide native scrollbars */
    -webkit-touch-callout: none; /* Disable callout (long-press menu) */
    -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling */
    overscroll-behavior: contain; /* Contain scroll chaining */
}

.scroll-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* === CUSTOM SCROLLBAR BASE === */
.custom-scrollbar {
    position: absolute;
    background: rgba(120, 120, 120, 0.3); /* Scroll track */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    cursor: pointer;
    /* z-index: 1000 !important; */
}

.custom-scroll-wrapper:hover .custom-scrollbar,
.custom-scroll-wrapper.touching .custom-scrollbar {
    opacity: 1;
    pointer-events: auto;
}

/* === CUSTOM SCROLLBAR THUMB === */
.custom-scrollbar-thumb {
    position: absolute;
    background: var(--ea-blue); /* Scroll thumb color */
    border-radius: 5px;
    transition: background 0.3s;
    cursor: pointer;

    /* Touch-friendly sizes */
    /* min-height: 44px;
    min-width: 44px; */
    touch-action: none;
}

.custom-scroll-wrapper:hover .custom-scrollbar-thumb,
.custom-scroll-wrapper.touching .custom-scrollbar-thumb {
    background: var(--ea-blue);
}

/* === VERTICAL SCROLLBAR === */
.custom-scrollbar.vertical {
    top: 0;
    height: 100%;
    width: 8px;
}

.custom-scrollbar.vertical.position-right {
    right: 2px;
}

.custom-scrollbar.vertical.position-left {
    left: 2px;
}

.custom-scrollbar.vertical .custom-scrollbar-thumb {
    width: 100%;
}

/* === HORIZONTAL SCROLLBAR === */
.custom-scrollbar.horizontal {
    left: 0;
    width: 100%;
    height: 8px;
}

.custom-scrollbar.horizontal.position-bottom {
    bottom: 2px;
}

.custom-scrollbar.horizontal.position-top {
    top: 2px;
}

.custom-scrollbar.horizontal .custom-scrollbar-thumb {
    height: 100%;
}

/* Tabs component styles */
.pelican_tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Open Sans", sans-serif;
}
.pelican_tabs input:checked + label {
    color: #fff !important;
    background-color: #4298cc;
}
.pelican_tabs .switch-field {
   padding: 10px !important;
}
.pelican_tabs .switch-field label {
    color: #182552 !important;
    background-color: #F7FAFC;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 0;
    font-weight: 400;
    font-size: 14px;
    width: max-content;
}
.pelican_tabs .switch-field label:last-child {
    border-right: 1px solid #ddd !important;
}