﻿@import url(colors.css);
.mainTable{
    height:100%;
}
/* Style des headers */
.mainTable .rz-grid-table thead th {
    background-color: var(--color-primary) !important;
    padding: 0 !important;
}
.mainTable.withFilter .rz-grid-table thead th {
    position: inherit;
}
.mainTable.withFilter .rz-grid-table thead tr:nth-child(1) th {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.mainTable.withFilter .rz-grid-table thead tr:nth-child(2) th {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.mainTable.withFilter .rz-grid-table thead tr:nth-child(2) th > .rz-cell-filter {
    padding-top: 0;
}
.withFilter .rz-grid-table thead th .rz-column-title {
    padding-bottom: 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.3rem;
    border-bottom-left-radius: 0.3rem;
}

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

/* 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.3rem;
    border-top-right-radius: 0.3rem;
}

/* Style des lignes du tableau */
.mainTable .rz-grid-table tr td {
    padding: .2rem 0;
}

.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;
}

/* Style ligne sélectionné tableau */
.mainTable .rz-state-highlight td {
    background-color: var(--color-eiffage-jaune) !important;
    color: white !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: var(--color-eiffage-vert);
}

.rz-datatable-thead th .rz-column-title, .rz-grid-table thead th .rz-column-title {
    display: inline-block !important;
    font-size: 0.75rem !important;
    line-height: inherit !important;
    text-transform: none !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;
}

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

.tableInfoTitle {
    padding: 0.1rem 0.5rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 5px;
}

.tableInfo {
    border: 1px solid var(--color-primary);
    border-radius: 5px 5px 0px 0px;
}

.mainTable .subTable,
.mainTable .subTable .rz-grid-table thead th {
    background-color: white !important;
}

.mainTable .subTable .rz-grid-table thead th div span.rz-column-title {
    color: black !important;
}

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