﻿@import url(colors.css);

/* Style des headers */
.mainTable .rz-grid-table thead th {
    background-color: var(--color-primary) !important;
    padding: 0 !important;
}

.mainTable .rz-grid-table thead th:not(:last-child) {
    border: none !important;
}

.mainTable .rz-grid-table thead th:first-child {
    border-top-left-radius: 0.71rem;
    border-bottom-left-radius: 0.71rem;
}

.mainTable .rz-grid-table thead th:last-child {
    border-top-right-radius: 0.71rem;
    border-bottom-right-radius: 0.71rem;
}

/* Style du texte dans les headers */
.mainTable .rz-grid-table thead th div span.rz-column-title {
    color: var(--font-th-color);   
}

/* Style du fond du tableau */
.mainTable.rz-data-grid {
    border-top-left-radius: 0.71rem;
    border-top-right-radius: 0.71rem;
}

/* Style des lignes du tableau */
.mainTable .rz-grid-table tr td {
    padding: 0.21rem;
}
/* Style ligne sélectionné tableau */
.mainTable tbody > .rz-state-highlight > td {
    background-color: var(--color-eiffage-jaune) !important;
    color: white !important;
}

.mainTable .rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content,.rz-state-highlight):nth-child(odd) > td {
    background-color: var(--tr-primary-color) !important;
}

.mainTable .rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content,.rz-state-highlight):nth-child(even) > td {
    background-color: var(--tr-secondary-color) !important;
}

.mainTable .rz-grid-table td {
    border: none !important;
}

.mainTable .rz-datatable-data td .rz-cell-data, .rz-grid-table td .rz-cell-data {
    font-size: 1rem !important;
}

/* Style des icones de tri */
.mainTable .rz-sortable-column .rzi-sort {
    color: var(--font-th-color) !important;
}

/* Style des cellules pour les filtres des colonnes*/
.mainTable .rz-grid-table thead th > .rz-cell-filter {
    background-color: var(--color-primary) !important;
    border-top-color: var(--color-primary) !important;
}

/* Style des progress bar */
.mainTable .rz-progressbar-value {
    background-color: #54b85e !important;
}

.rz-datatable-thead th .rz-column-title, .rz-grid-table thead th .rz-column-title {
    
    font-size: .75rem !important;
    line-height: inherit !important;
    text-transform: none !important;
    padding: 0 0 !important;
    font-weight: bold !important;
    vertical-align: unset !important;
}

.rz-selectable .rz-datatable-even:hover:not(.rz-state-highlight) .rz-cell-data, .rz-selectable .rz-datatable-odd:hover:not(.rz-state-highlight) .rz-cell-data {
    font-weight: bold !important;
    color: black !important;
}

.rz-datatable-thead th > div:not(.rz-cell-filter), .rz-grid-table thead th > div:not(.rz-cell-filter) {
    padding: 0.3rem 0 !important;
}

.rz-selectable tbody tr.rz-data-row:hover:not(.rz-state-highlight) .rz-cell-data {
    color: #000 !important;
    font-weight:bolder !important;
}

.fullHeightTable {
    height: 100%;
    max-height: 100%;
    overflow: auto;
}

.mainTable [class^='rz-col'] {
    flex: none;
}

.header-filter {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}