﻿/* Radzen Autocomplete */
#nds #page #content .content-wrapper .rz-autocomplete {
    position: relative;
    border: none;
    background: none;
    box-shadow: none;
    overflow: initial;
    width: 100%;
    outline: none;
}

    #nds .rz-autocomplete input {
        font-family: 'ABBvoice', sans-serif;
        font-weight: 200;
        font-size: 16px;
        box-shadow: none;
        color: #262626;
    }

        #nds .rz-autocomplete input::placeholder {
            color: #6e6e6e;
        }

        #nds .rz-autocomplete input:focus {
            box-shadow: 0 2px 6px 0 rgb(0 0 0 / 20%);
        }

#nds .rz-autocomplete-panel.rz-popup {
    font-family: 'ABBvoice', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #686868;
}

    #nds .rz-autocomplete-panel.rz-popup .rz-autocomplete-list .rz-autocomplete-list-item:hover,
    #nds .rz-autocomplete-panel.rz-popup .rz-autocomplete-list .rz-autocomplete-list-item:focus,
    #nds .rz-autocomplete-panel.rz-popup .rz-autocomplete-list .rz-state-highlight.rz-autocomplete-list-item {
        background-color: #f5f5f5;
        color: #000;
    }

#nds #page #content .content-wrapper input.rz-autocomplete-input[type=text] {
    font-family: 'ABBvoice', sans-serif;
    font-weight: 400;
    font-size: 14px;
    box-shadow: none;
    color: #262626;
    padding: 3px 10px;
    margin: 5px 0;
    line-height: 32px;
    height: 37px;
    background-color: #ffffff;
    border: 1px solid #a9a9a9;
    border-radius: 2px;
    outline: none;
    width: 100%;
}

    #nds #page #content .content-wrapper input.rz-autocomplete-input[type=text]:focus {
        box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
    }


/* Radzen Data Grid */
#nds #page #content .content-wrapper .rz-data-grid {
    max-height: 450px;
    border-color: #d2d2d2;
    border-radius: 2px;
    font-family: 'ABBvoice', sans-serif;
    background-color: #fff;
}

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table thead th {
        background-color: #d2d2d2;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-numeric-button {
        display: none;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table thead tr th .rz-column-title .rz-column-title-content {
        font-size: 15px;
        font-weight: 400;
        text-transform: initial;
        color: #262626;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table thead tr:first-child th:first-child {
        border-left: 1px solid #d2d2d2;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table thead tr:first-child th:last-child {
        border-right: 1px solid #d2d2d2;
    }

        #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table thead th .rz-cell-filter {
            background-color: #e9e9e9;
        }

            #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table thead th .rz-cell-filter .rz-cell-filter-content .no-filter-space {
                background-color: #e1e1e1;
                height: 37px;
                width: 100%;
                margin: 5px 0;
            }

            #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table thead th .rz-cell-filter .rz-cell-filter-label > .rzi {
                color: #262626;
            }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(even) > td {
        background-color: #f5f5f5;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(even) > td:not(.rz-datatable-emptymessage),
    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(odd) > td:not(.rz-datatable-emptymessage) {
        background-color: #999999;
        cursor: default;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > .rz-state-highlight:hover:not(.rz-expanded-row-content):nth-child(even) > td,
    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > .rz-state-highlight:hover:not(.rz-expanded-row-content):nth-child(odd) > td {
        background-color: #6e6e6e;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr > td .rz-cell-data {
        color: #262626;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr.rz-state-highlight > td .rz-cell-data {
        color: #ffffff;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(even) > td .rz-cell-data,
    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(odd) > td .rz-cell-data {
        color: #ffffff;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr.rz-state-highlight:not(.rz-expanded-row-content) > td,
    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr.rz-state-highlight:not(.rz-expanded-row-content) > td {
        background-color: #6e6e6e;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr.rz-datatable-emptymessage-row > td,
    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table-striped tbody > tr.rz-datatable-emptymessage-row > td {
        background-color: #ffffff;
        color: #262626;
    }

    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table tbody > .rz-datatable-emptymessage-row:hover:not(.rz-expanded-row-content) > td,
    #nds #page #content .content-wrapper .rz-data-grid .rz-grid-table tbody > .rz-datatable-emptymessage-row:hover:not(.rz-expanded-row-content) > td {
        background-color: #ffffff;
    }

/* Radzen Data Grid - #my-docusaves */
#nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table tbody .rz-data-row > td .rz-cell-data .rz-button {
    background-color: #6e6e6e;
    min-width: 44px;
    padding: 0;
    vertical-align: middle;
    line-height: 22px;
}

#nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table {
    will-change: scroll-position, transform; /* Helps optimize scrolling */
}

#nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table thead th:first-child,
#nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table tbody td:first-child {
    position: sticky;
    left: 0;
    transform: translateZ(0); /* Prevents jitter on scroll start */
    will-change: transform; /* Optimizes rendering */
}

#nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table thead th:first-child {
    z-index: 3;
}

#nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table tbody td:first-child {
    background-color: #e9e9e9;
    z-index: 1;
}

#nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table tbody {
    overflow-x: clip; /* Ensures the table does not shift at max scroll */
    will-change: transform; /* Helps with rendering performance */
}

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table thead th:nth-child(13) .rz-cell-filter-label button,
    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table thead th:nth-child(14) .rz-cell-filter-label button,
    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table thead th:nth-child(15) .rz-cell-filter-label button {
        display: none; /* Hide the calendar filter buttons on create/modify date */
    }

#nds #page #content .content-wrapper #my-docusaves.rz-data-grid {
    max-height: 450px !important;
}

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table tbody .rz-data-row button:disabled {
        background-color: #bababa;
    }

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table thead th .rz-cell-filter .rz-cell-filter-content .no-filter-space {
        background-color: #e1e1e1;
        height: 37px;
        width: 100%;
        margin: 0;
    }

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(even) > td {
        background-color: transparent;
    }

        #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(even) > td:first-child {
            background-color: #e9e9e9;
        }

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr > td:first-child {
        background-color: #e9e9e9;
    }

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(even) > td:not(.rz-datatable-emptymessage),
    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(odd) > td:not(.rz-datatable-emptymessage) {
        background-color: #fff;
        cursor: default;
    }

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:hover > td:first-child,
    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:hover > td:first-child {
        background-color: #e9e9e9 !important;
        cursor: default;
    }

    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(even) > td .rz-cell-data,
    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid .rz-grid-table-striped tbody > tr:hover:not(.rz-expanded-row-content):nth-child(odd) > td .rz-cell-data {
        color: #262626;
    }

@media all and (max-width: 600px) {
    #nds #page #content .content-wrapper #my-docusaves.rz-data-grid {
        max-height: 400px !important;
    }
}
