﻿/*.rz-data-grid .rz-custom-header {
    height: 100%
}*/

/*.rz-data-grid .rz-group-header {
    min-height: 5em;
}*/

/*.rz-data-grid .rz-group-header {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}*/

.rz-data-grid .rz-data-grid-data {
    background-color: #e9ecef;
    -webkit-overflow-scrolling: touch;
}

@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .rz-data-grid .rz-data-grid-data::-webkit-scrollbar {
            display: none;
        }
    }
}

.rz-data-grid .rz-group-header .rz-column-picker {
    cursor: pointer;
}

.rz-data-grid.pointer-cells .rz-grid-table tr.rz-data-row td {
    cursor: pointer;
}

    .rz-data-grid.pointer-cells .rz-grid-table tr.rz-data-row td.no-pointer {
        cursor: default;
    }

.rz-data-grid .rz-grid-table .rz-data-row:not(.is-selected):not(.rz-state-highlight):not(:hover) > .checkbox-column {
    background-color: var(--rz-grid-header-background-color);
}

.rz-data-grid .rz-grid-table .checkbox-column:hover .rz-chkbox-box {
    box-shadow: var(--rz-input-hover-shadow);
    border: var(--rz-input-hover-border);
}

.rz-data-grid .rz-grid-table th.rz-sortable-column {
    pointer-events: none;
}

.rz-data-grid .rz-grid-table .rz-column-title {
    justify-content: center;
    padding-inline: unset;
    pointer-events: none;
}

    .rz-data-grid .rz-grid-table .rz-column-title .rz-sortable-column-icon {
        pointer-events: all;
        color: var(--rz-grid-sort-icon-color);
    }

        .rz-data-grid .rz-grid-table .rz-column-title .rz-sortable-column-icon:hover {
            color: var(--rz-grid-header-color) !important;
        }

        .rz-data-grid .rz-grid-table .rz-column-title .rz-sortable-column-icon.rzi-sort-asc,
        .rz-data-grid .rz-grid-table .rz-column-title .rz-sortable-column-icon.rzi-sort-desc {
            color: var(--rz-grid-header-color);
        }

.rz-data-grid .rz-grid-table .rz-column-drag {
    pointer-events: all;
}

.rz-data-grid .rz-grid-table td.rz-frozen-cell-left:after {
    background-color: unset;
}

.rz-data-grid .rz-grid-table thead tr:nth-of-type(2) {
    height: 4.87em;
}

.rz-data-grid .rz-pager {
    flex-wrap: nowrap;
}
/* Filters */
.rz-data-grid .rz-cell-filter .rz-cell-filter-content {
    display: block;
}

.rz-data-grid .rz-datepicker .rz-datepicker-trigger {
    opacity: 0.0;
    height: 100%;
    width: 100%;
    margin-right: -10px;
}

.rz-data-grid .form-floating > label {
    z-index: 1;
}

.rz-data-grid .rz-state-disabled {
    background-color: var(--rz-input-disabled-background-color);
}

.rz-data-grid .label-position {
    position: absolute;
    left: 5px;
    top: 6px;
    z-index: 2;
    font-size: 0.83em;
}

.rz-data-grid .revaluation-type-input-w .rz-numeric-input {
    width: 90% !important;
}

.rz-data-grid .rz-grid-filter-icon {
    margin-inline: unset;
}

    .rz-data-grid .rz-grid-filter-icon:hover {
        color: var(--rz-grid-filter-color);
    }

.rz-data-grid .rz-custom-header {
    width: 100%;
}

.rz-data-grid thead {
    z-index: 3;
}

.rz-data-grid .rz-data-row {
    height: 75px;
}

.rz-data-grid.grid-data-small .rz-data-row {
    height: unset;
}

.rz-data-grid.grid-data-small td {
    padding: 2px !important;
}

.rz-data-grid.grid-data-small .rz-cell-data {
    font-size: 13px !important;
}

/*validator*/
.rz-data-grid .rz-data-row.invalid {
    background: linear-gradient(rgba(228, 31, 19, 0.3), rgba(228, 31, 19, 0.1));
}

    .rz-data-grid .rz-data-row.invalid > td {
        background-color: inherit !important;
    }

    .rz-data-grid .rz-data-row.invalid .invalid .rz-numeric {
        border-color: #E41F13 !important;
    }

.rz-data-grid .rz-custom-header .invalid .rz-datepicker {
    border-color: #E41F13 !important;
}

.rz-data-grid .rz-custom-header .invalid .rz-numeric {
    border-color: #E41F13 !important;
}

.rz-data-grid .rz-custom-header .invalid.rz-button {
    border: 1px solid #E41F13 !important;
}

.rz-data-grid .rz-custom-header .revaluation-invalid {
    color: #E41F13;
}

.rz-data-grid .rz-data-row.has-been-revaluated {
    background: linear-gradient(rgba(255, 223, 0, 0.3), rgba(255, 223, 0, 0.5));
}

    .rz-data-grid .rz-data-row.has-been-revaluated > td {
        background-color: inherit !important;
    }

    .rz-data-grid .rz-data-row.has-been-revaluated i.has-been-revaluated, .rz-data-grid .rz-data-row.invalid i.revaluation-invalid {
        color: #E41F13;
        font-weight: bold;
    }

.rz-data-grid .rz-data-row.invalid div.revaluation-invalid {
    color: #E41F13;
}

/*validator*/

.rz-data-grid .rz-data-row.is-selected {
    position: relative;
    transform: translate(0,0); /*because ios*/
}

    .rz-data-grid .rz-data-row.is-selected::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 75px;
        box-shadow: inset 0px 0px 32px -19px #000000;
        pointer-events: none;
    }

.rz-data-grid .rz-grid-table .rz-column-title-content div {
    white-space: normal;
}

.rz-data-grid .rz-datatable-thead th > div:not(.rz-cell-filter), .rz-data-grid .rz-grid-table thead th > div:not(.rz-cell-filter) {
    padding-top: 3px;
    padding-bottom: 3px;
    min-height: 35px;
}

.rz-data-grid .header-buttons {
    flex-wrap: wrap;
    display: flex;
}

.rz-data-grid.main-item-in-filter-template thead tr:nth-child(2) {
    background: white;
}

    .rz-data-grid.main-item-in-filter-template thead tr:nth-child(2) th {
        background: var(--rz-primary-lighter);
        border-bottom: 3px solid grey;
    }

    .rz-data-grid.main-item-in-filter-template thead tr:nth-child(2) .rz-cell-filter {
        padding: 0px;
        height: 75px
    }

    .rz-data-grid.main-item-in-filter-template thead tr:nth-child(2) .rz-cell-filter-content {
        color: black;
        height: 100%;
    }

        .rz-data-grid.main-item-in-filter-template thead tr:nth-child(2) .rz-cell-filter-content .main-item-values {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            cursor: pointer;
            padding-right: .5rem;
            padding-left: .5rem;
        }

        .rz-data-grid.main-item-in-filter-template thead tr:nth-child(2) .rz-cell-filter-content i {
            color: var(--rz-grid-cell-color);
        }

        .rz-data-grid.main-item-in-filter-template thead tr:nth-child(2) .rz-cell-filter-content .main-item-values .eq-text {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

@media(max-width: 1100px) {
    .rz-data-grid .rz-custom-header .header-info-data {
        max-height: 4.5em;
        overflow-y: auto;
        border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
        border-width: 1px;
        cursor: default;
    }
}

@media(min-width: 1101px) {
    .rz-data-grid .rz-custom-header .header-info-data {
        display: flex;
        justify-content: space-around;
        width: 85%;
        cursor: default;
    }

        .rz-data-grid .rz-custom-header .header-info-data > div {
            border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
            border-width: 1px;
            min-width: 20em;
        }
}

.rz-data-grid .header-title-underline .rz-column-title-content {
    text-decoration: underline;
}
