﻿@import url(colors.css);

/* 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):not(:first-child) {
    border-left: 0.1rem solid white;
    border-right: 0.1rem solid white;
}

.mainTable .rz-grid-table thead th:first-child {    
    border-right: 0.1rem solid white;
}

.mainTable .rz-grid-table thead th:last-child {
    border-left: 0.1rem solid white;
}


/*
.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);
    width:100%;
}

/* 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: 1rem 0 1rem 0.3rem;
}

.mainTable .rz-datatable-even td {
    background-color: var(--tr-primary-color) !important;
}

.mainTable .rz-datatable-odd 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: #efb209 !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: #54b85e;
}

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

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

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

.secondeTable{
    width:80%;
}

.rowHeaderTable {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.rowHeaderTable_AddButtonContainer {
    font-size: 2rem;
}

.rowHeaderTable_AddButton {
    font-size: 2rem;
    cursor: pointer;
}