﻿
#dvGrid {
    width: 100% !important;
    min-width: 0 !important;
}

#jqxWidget {
    min-width: 0 !important;
    width: 100% !important;
}

    #jqxWidget .jqx-grid-content table,
    #jqxWidget .jqx-grid-header table {
        min-width: 900px !important; /* forces real scroll */
    }

.jqx-grid {
    border-radius: 6px;
    border: 1px solid var(--Primitive-Gray-400, #CED4DA) !important;
    background: #FFF;
    min-width: 900px !important;
}

    .jqx-grid.no-top-rounded {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-sizing: border-box;
    }

    .jqx-grid.no-bottom-rounded {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-sizing: border-box;
    }

.jqx-widget-office .jqx-grid-column-header-office,
.jqx-grid-cell-office,
.jqx-widget-office .jqx-grid-cell-office,
.jqx-widget-office .jqx-grid-group-cell-office,
.jqx-grid-group-cell-office,
.jqx-input-button-header-office,
.jqx-calendar-title-header-office,
.jqx-grid-office .jqx-widget-header-office,
.jqx-grid-header-office,
.jqx-grid-column-header-office,
.jqx-grid-office,
.jqx-widget-content-office {
    font-family: var(--font-base-family);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

    .jqx-input-button-header-office,
    .jqx-calendar-title-header-office,
    .jqx-grid-office .jqx-widget-header-office,
    .jqx-grid-header-office,
    .jqx-grid-column-header-office,
    .jqx-grid-office {
        background: #E9ECEF;
        color: var(--Text-Text-Secondary);
        font-weight: 600;
        border: none;
    }

.jqx-grid-office,
.jqx-widget-content-office,
.jqx-widget-office,
.jqx-grid-cell,
.jqx-grid-cell-office,
.jqx-item jqx-item-office,
.jqx-grid-group-cell,
.jqx-grid-group-cell-office,
.jqx-fill-state-normal-office {
    background-color: #FFF;
    color: var(--base-color);
}

    .jqx-widget-office .jqx-grid-column-header-office,
    .jqx-widget-office .jqx-grid-group-cell-office {
        border-right: 1px solid #DEE2E6;
    }

.jqx-grid-column-header div div span {
    display: flex;
    padding: 10px 12px;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    align-self: stretch;
    cursor: pointer !important;
    white-space: normal;
    word-wrap: break-word;
}

.jqx-grid-toolbar.jqx-grid-toolbar-office.jqx-widget-header.jqx-widget-header-office {
    font-weight: 400;
    min-width: 100% !important; /* ensures it spans full container */
    width: max-content !important; /* ensures wide tables scroll properly */
}

#contentjqxgrid {
    min-width: 100% !important; /* ensures it spans full container */
    width: max-content !important; /* ensures wide tables scroll properly */
}

.jqx-grid-cell-left-align {
    padding: 0 12px;
    white-space: normal !important;
    word-wrap: break-word;
    margin: 6px 0 !important;
    min-height: 20px;
}

    .jqx-grid-cell-left-align.customCell {
        margin-top: 6px;
        text-align: center;
    }


.jqx-grid-groups-header.jqx-grid-groups-header-office {
    min-width: 100% !important; /* ensures it spans full container */
    width: max-content !important; /* ensures wide tables scroll properly */
    font-size: var(--font-size-xs);
    border-bottom: 1px solid #DEE2E6;
}

.jqx-widget-header.jqx-widget-header-office.jqx-grid-header.jqx-grid-header-office {
    min-width: 100% !important; /* ensures it spans full container */
    width: max-content !important; /* ensures wide tables scroll properly */
    border-bottom: 1px solid #DEE2E6;
}

.jqx-grid-group-column.jqx-grid-group-column-office.jqx-fill-state-normal.jqx-fill-state-normal-office {
    padding: 2px 8px;
    border-color: var(--Themes-border-default);
    font-family: var(--font-base-family);
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.2px;
    font-weight: 500;
}


/*-----------------------------------------------------------------------------------------------------------------*/
.jqx-icon-arrow-right,
.jqx-icon-arrow-left {
    cursor: pointer !important
}

/*jqxScrollBar Style*/
.jqx-scrollbar {
    width: 100% !important;
}
/*applied to the scrollbar in default state.*/
.jqx-scrollbar-state-normal {
    background: #fff;
    margin: 0px;
    padding: 0px;
    border: 1px solid transparent;
}
/*applied to the scrollbar buttons in default state.*/
.jqx-scrollbar-button-state-normal {
    margin: 0px;
    padding: 0px;
    border: 1px solid transparent;
    transform: translateY(40%);
}

.jqx-listbox .jqx-scrollbar-button-state-normal {
    transform: unset;
}

/*applied to the scrollbar buttons in hovered state.*/
.jqx-scrollbar-button-state-hover {
    margin: 0px;
    padding: 0px;
    border: 1px solid transparent;
}
/*applied to the scrollbar buttons in pressed state.*/
.jqx-scrollbar-button-state-pressed {
    margin: 0px;
    padding: 0px;
    border: 1px solid transparent;
}
/*applied to the horizontal scrollbar thumb in default state.*/
.jqx-grid .jqx-scrollbar-thumb-state-normal-horizontal {
    margin: 0px;
    padding: 0px;
    background: var(--Primitive-Gray-300, #DEE2E6);
    border: 1px solid transparent;
    touch-action: none;
    border-radius: 9px !important;
}
/*applied to the horizontal scrollbar thumb in hovered state.*/
.jqx-grid .jqx-scrollbar-thumb-state-hover-horizontal {
    margin: 0px;
    padding: 0px;
    background-color: var(--Primitive-Gray-300, #DEE2E6) !important;
    border: 1px solid transparent;
}
/*applied to the horizontal scrollbar thumb in default state.*/
.jqx-grid .jqx-scrollbar-thumb-state-pressed-horizontal {
    margin: 0px;
    padding: 0px;
    background-color: var(--Primitive-Gray-300, #DEE2E6) !important;
    border: 1px solid transparent;
}

/*VERTICAL SCROLLBAR - ex: jqxddl msb/single select */
/*applied to the vertical scrollbar thumb in default state.*/
.jqx-scrollbar-thumb-state-normal {
    margin: 0px;
    padding: 0px;
    border: 1px solid transparent;
    background-color: var(--Primitive-Gray-300, #DEE2E6) !important;
    touch-action: none;
    width: 6px !important;
    border-radius: 9px;
    transform: translateX(40%);
}
/*applied to the vertical scrollbar thumb in default state.*/
.jqx-scrollbar-thumb-state-hover {
    margin: 0px;
    padding: 0px;
    background: transparent;
    border: 1px solid transparent;
    background-color: var(--Primitive-Gray-300, #DEE2E6) !important;
}
/*applied to the vertical scrollbar thumb in default state.*/
.jqx-scrollbar-thumb-state-pressed {
    margin: 0px;
    padding: 0px;
    background-color: var(--Primitive-Gray-300, #DEE2E6) !important;
    border: 1px solid transparent;
}

.jqx-scrollbar-thumb-state-normal-horizontal {
    margin: 0px;
    padding: 0px;
    border: 1px solid transparent;
    background-color: var(--Primitive-Gray-300, #DEE2E6) !important;
    touch-action: none;
    height: 6px !important;
    border-radius: 9px;
    transform: translateY(40%);
}
/*-----------------------------------------------------------------------------------------------------------------*/
.jqx-scrollbar-mobile .jqx-scrollbar-state-normal {
    background: transparent !important;
    border-color: transparent !important;
    display: none;
}

.jqx-scrollbar-mobile .jqx-scrollbar-thumb-state-normal-horizontal, .jqx-scrollbar-mobile .jqx-scrollbar-thumb-state-normal {
    background: var(--Primitive-Gray-300, #DEE2E6) !important;
    border-color: var(--Primitive-Gray-300, #DEE2E6) !important;
    border-width: 1px;
    touch-action: none;
    border-radius: 9px !important;
}

.jqx-scrollbar-mobile .jqx-scrollbar-thumb-state-normal {
    width: 4px !important;
}

.jqx-scrollbar-mobile .jqx-scrollbar-thumb-state-normal-horizontal {
    height: 10px !important;
}



#horizontalScrollBarjqxgrid,
#jqxScrollBtnUphorizontalScrollBarjqxgrid,
#jqxScrollThumbhorizontalScrollBarjqxgrid,
#jqxScrollAreaDownhorizontalScrollBarjqxgrid,
#jqxScrollAreaUphorizontalScrollBarjqxgrid,
#jqxScrollBtnDownhorizontalScrollBarjqxgrid,
#jqxScrollWraphorizontalScrollBarjqxgrid {
    height: 6px !important;
    cursor: pointer;
    display: block !important;
}

#horizontalScrollBarjqxgridVac,
#jqxScrollBtnUphorizontalScrollBarjqxgridVac,
#jqxScrollThumbhorizontalScrollBarjqxgridVac,
#jqxScrollAreaDownhorizontalScrollBarjqxgridVac,
#jqxScrollBtnDownhorizontalScrollBarjqxgridVac,
#jqxScrollAreaUphorizontalScrollBarjqxgridVac,
#jqxScrollWraphorizontalScrollBarjqxgridVac {
    height: 6px !important;
    cursor: pointer;
}

#horizontalScrollBarjqxgrid1,
#jqxScrollBtnUphorizontalScrollBarjqxgrid1,
#jqxScrollThumbhorizontalScrollBarjqxgrid1,
#jqxScrollAreaDownhorizontalScrollBarjqxgrid1,
#jqxScrollBtnDownhorizontalScrollBarjqxgrid1,
#jqxScrollAreaUphorizontalScrollBarjqxgrid1,
#jqxScrollWraphorizontalScrollBarjqxgrid1 {
    height: 6px !important;
    cursor: pointer;
}

.jqx-grid-empty-cell span {
    top: 5px !important;
}

#jqxScrollAreaDownhorizontalScrollBarjqxgrid {
    width: 100% !important;
}

.jqxddl-selected-items {
    border: 1px solid var(--Themes-border-default, #CED4DA);
    border-radius: 3px;
    padding: 0 6px 0 8px;
    background-color: #F8F9FA;
}

.jqx-grid-pager.jqx-grid-pager-office.jqx-widget-header.jqx-widget-header-office {
    background: #FFF;
    padding-top: 24px;
    padding-bottom: 32px;
    height: auto;
    width: 100% !important;
    border-top: 1px solid var(--Themes-border-default);
}

.page-item a {
    display: flex;
    width: 32px;
    padding: 5px 11px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--Gray-300, #DEE2E6);
    background: var(--HitBox, rgba(255, 255, 255, 0.00));
    font-weight: 400;
    text-decoration: none;
    line-height: 26px;
}

    .page-item a:hover,
    .page-item a:focus,
    .page-item a:active {
        text-decoration: none;
    }

.jqxgrid-paging-icon {
    line-height: 26px !important;
}

.jqx-dropdownlist-content {
    padding: 0;
}

.jqx-grid .jqx-dropdownlist-content {
    padding: 0 7px;
    font-family: var(--font-base-family);
    font-size: var(--font-size-xs);
    line-height: var(--font-line-height-xs);
    margin: 0 !important;
}


.msb .jqx-dropdownlist-content {
    padding: 2px 0 0;
    min-height: 30px;
}

.sddl .jqx-dropdownlist-content {
    padding: 0 8px;
    min-height: 29px !important;
}

.jqx-listbox-container span, .jqx-dropdownlist-content.jqx-disableselect span {
    font-family: var(--font-base-family);
    font-size: var(--font-size-xs);
    line-height: var(--font-line-height-xxs);
}

.jqx-listitem-element {
    max-height: 32px;
}

    .jqx-listitem-element .jqx-fill-state-pressed,
    .jqx-listitem-element .jqx-fill-state-selected {
        border: none;
        background-color: transparent;
    }

    .jqx-listitem-element .jqx-fill-state-pressed,
    .jqx-listitem-element .jqx-fill-state-hover {
        border: none;
        background-color: var(--Primitive-Blue-50, #E6F2FF);
    }

.msb .jqx-checkbox {
    padding: 3px 0;
}

.jqx-popup .jqx-checkbox {
    top: 3px !important;
}

/* Highlight the entire item if its checkbox inside is checked */
.jqx-listitem-element:has(.jqx-checkbox-check-checked) {
    background-color: var(--Primitive-Blue-50, #E6F2FF);
    color: #0d47a1;
    font-weight: 500;
}

.jqx-checkbox-check-checked {
    background-color: transparent;
}

.jqx-checkbox-default.jqx-fill-state-normal {
    background-color: #fff;
}

.jqx-checkbox-default.jqx-fill-state-pressed-office,
.jqx-checkbox-default.jqx-fill-state-pressed-office .jqx-widget.jqx-widget-office.jqx-checkbox.jqx-checkbox-office,
.jqx-checkbox-default.jqx-fill-state-pressed-office .jqx-widget.jqx-widget-office.jqx-checkbox.jqx-checkbox-office .jqx-checkbox-default.jqx-checkbox-default-office {
    background: var(--Primitive-Blue-50, #E6F2FF);
}

/* hide original checkbox */
.jqx-checkbox-default,
.jqx-checkbox-default-office {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 2px;
    cursor: pointer;
    transition: .2s ease;
    position: relative;
}

/* when checked */
.jqx-checkbox-check-checked {
    background: #047BFB;
    border-radius: 4px;
}

    /* checkmark */
    .jqx-checkbox-check-checked::after {
        content: "";
        width: 16px;
        height: 16px;
        border-radius: 4px;
        background: white;
        mask: url('data:image/svg+xml;utf8, <svg width="24" height="24" viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg"><path stroke="white" stroke-width="3" fill="none" d="M6 12l4 4 8-8"/></svg>') no-repeat center;
        mask-size: contain;
        display: block;
    }

/* checkmark */
.jqx-popup .jqx-checkbox-check-checked::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: white;
    mask: url("data:image/svg+xml;utf8,<svg width='16' height='16' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'><path stroke='white' stroke-width='3' fill='none' d='M6 12l4 4 8-8'/></svg>") no-repeat center;
    mask-size: 16px 16px;
    display: block;
}

.jqx-grid-column-header div div span.jqx-checkbox-check-indeterminate,
.jqx-grid-column-header div div span.jqx-checkbox-check-checked {
    padding: 0;
}

.jqx-grid-column-header div div span.jqx-checkbox-check-indeterminate {
    background: transparent url('../../jqwidgets/styles/images/check_blue_indeterminate.png') center center no-repeat;
}

.jqx-grid-cell-selected,
.jqx-grid-cell-selected .jqx-checkbox,
.jqx-grid-cell-selected ~ .jqx-grid-cell,
.jqx-grid-cell-selected ~ .jqx-grid-group-cell,
.jqx-grid-cell:has(~ .jqx-grid-cell-selected),
.jqx-grid-group-cell:has(~ .jqx-grid-cell-selected) {
    background: var(--Primitive-Blue-50, #E6F2FF) !important;
}

.jqx-grid-cell-hover,
.jqx-grid-cell-hover ~ .jqx-grid-cell,
.jqx-grid-cell-hover ~ .jqx-grid-group-cell,
.jqx-grid-cell:has(~ .jqx-grid-cell-hover),
.jqx-grid-group-cell:has(~ .jqx-grid-cell-hover) {
    background: #F0F2F4 !important;
}

    .jqx-grid-cell-hover .jqx-widget.jqx-widget-office.jqx-checkbox.jqx-checkbox-office,
    .jqx-grid-cell-hover ~ .jqx-grid-cell .jqx-widget.jqx-widget-office.jqx-checkbox.jqx-checkbox-office,
    .jqx-grid-cell-hover ~ .jqx-grid-group-cell .jqx-widget.jqx-widget-office.jqx-checkbox.jqx-checkbox-office,
    .jqx-grid-cell:has(~ .jqx-grid-cell-hover) .jqx-widget.jqx-widget-office.jqx-checkbox.jqx-checkbox-office,
    .jqx-grid-group-cell:has(~ .jqx-grid-cell-hover) .jqx-widget.jqx-widget-office.jqx-checkbox.jqx-checkbox-office {
        background-color: #F0F2F4 !important;
    }

.jqx-grid-group-collapse.jqx-grid-group-collapse-office,
.jqx-grid-group-expand.jqx-grid-group-expand-office,
.jqx-grid-cell-wrap.jqx-grid-cell-pinned.jqx-grid-cell-pinned-office {
    border: none;
    background-color: #E9ECEF;
}


    .jqx-grid-group-collapse.jqx-grid-group-collapse-office ~ .jqx-grid-group-cell.jqx-grid-group-cell-office.jqx-grid-cell-wrap,
    .jqx-grid-group-expand.jqx-grid-group-expand-office ~ .jqx-grid-group-cell.jqx-grid-group-cell-office.jqx-grid-cell-wrap {
        width: 100% !important;
    }

.jqx-grid-groups-row.jqx-grid-groups-row-office {
    padding-left: 8px;
}

#contenttablejqxgrid {
    border-bottom: 1px solid #DEE2E6;
}

.custom-pager {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
    height: auto !important;
}

/* search input box of jqxddl */
.jqx-listbox-filter-input {
    padding-left: 8px;
    height: 25px !important;
    box-sizing: border-box;
    font: 13px 'Inter';
}

/* Remove default chevron background for jqxddl */
.msb .jqx-dropdownlist-arrow,
.msb .jqx-icon-arrow-down,
.msb .jqx-icon-arrow-down-hover,
.msb .jqx-icon-arrow-down-selected,
.sddl .jqx-dropdownlist-arrow,
.sddl .jqx-icon-arrow-down,
.sddl .jqx-icon-arrow-down-hover,
.sddl .jqx-icon-arrow-down-selected {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-size: 24px;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='rgba(33,37,41,0.67)'><path d='M480-357.85 253.85-584 296-626.15l184 184 184-184L706.15-584 480-357.85Z'/></svg>");
    margin: 0;
    /* ⭐ Required for jqxDDL stability */
    width: 24px !important; /* container width (jqx expects this) */
    height: 24px !important; /* full height for vertical centering */
    position: absolute !important;
    top: 2px;
    right: 0;
    /* remove default arrow/glow */
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

    @media (max-width: 991.98px) {
        .fixed-content {
        overflow: auto !important;
        scrollbar-color: var(--Primitive-Gray-300, #DEE2E6);
        scrollbar-width: 16px;
    }

        /* Chrome / Safari / Edge scrollbar */
        .fixed-content::-webkit-scrollbar {
            height: 12px; /* horizontal scrollbar height */
        }

        .fixed-content::-webkit-scrollbar-track {
            background: #FFF; /* track color */
            border: 1px solid transparent; /* space effect */
        }

        .fixed-content::-webkit-scrollbar-thumb {
            background-color: #DEE2E6; /* thumb color */
            border-radius: 9px;
            border: 1px solid transparent; /* space effect */
        }

            .fixed-content::-webkit-scrollbar-thumb:hover {
                background-color: var(--Primitive-Gray-400, #ced4da); /* hover color */
            }

    #horizontalScrollBarjqxgrid,
    #jqxScrollBtnUphorizontalScrollBarjqxgrid,
    #jqxScrollThumbhorizontalScrollBarjqxgrid,
    #jqxScrollAreaDownhorizontalScrollBarjqxgrid,
    #jqxScrollAreaUphorizontalScrollBarjqxgrid,
    #jqxScrollBtnDownhorizontalScrollBarjqxgrid,
    #jqxScrollWraphorizontalScrollBarjqxgrid {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
    }
}
