.i-table-parent {
    display: flex;
    flex-grow: 1;
    min-width: 0;
    padding: 8px;
    flex-direction: column;
}

.i-table {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    color: #222222;
    margin-top: 8px;
    transition-duration: 1s;
    transition-property: opacity;
}

.i-table-detail {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0px;
    flex-direction: column;
    overflow: auto;
    display: none;
    transition-duration: 1s;
    transition-property: opacity;
}

.i-table-detail-window {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background-color: white;
    z-index: 100;
}

.i-table-detail-chargement {
    display: flex;
    height: 100%;
    font-size: 1.5em;
    gap: 16px;
    align-items: center;
    justify-content: center;
    transition-duration: 1s;
    opacity: 0;
    transition-property: opacity;
    animation: chargementFadeIn 2s;
    animation-fill-mode: forwards;  
}

@keyframes chargementFadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

.i-table-data {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    margin-top: 4px;
    background-color: white;
    scrollbar-width: none;
}

.i-table-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom:4px;
    margin-top: -4px;
}

.i-table-controls-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px;
}

.i-table-controls-buttons-col {
    display: flex;
    margin-right: 4px;
    border-radius:4px;
    max-height: 32px;
    box-shadow: unset;
}

.i-table-button {
    color: #555555;
    font-size: 10pt;
    border: none;
    padding: 8px 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 32px;
    max-height: 32px;
    background-color: white;
    background-image: linear-gradient(#ffffff, #ffffff 60%, #f5f5f5);
    border: 1px solid #0000001a;
}

.i-table-button:hover
{
    background-color:#e1e1e1;
    background-image:linear-gradient(to bottom,#f4f4f4 75%,#e6e6e6);
}

.i-table-button:disabled {
    background-image:linear-gradient(to bottom,#dfdfdf 75%,#d1d1d1);
}

.i-table-button-history-active {
    background-image:linear-gradient(to bottom,#ffd68c8c 75%,#f3ca80);
}

.i-table-button-history-active:hover {
    background-image:linear-gradient(to bottom,#ffd68c8c 75%,#f3ca80);
}

.i-table-button-columns-popup {
    position: fixed;
    background-color: white;
    white-space: nowrap;
    z-index: 1;
    border-radius: 4px;
    /*padding-top: 4px;*/
    /*padding-bottom: 4px;*/
    border: 1px solid grey;
    align-items: flex-start;
    display: flex;
    z-index: 2002;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.i-table-row-button {
    color: #555555;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    background-image: linear-gradient(#ffffff, #ffffff 60%, #f5f5f5);
    border: 1px solid #0000001a;
    padding: 3px 4px;
    border-radius: 3px;
}

.i-table-row-button:hover
{
    background-color:#e1e1e1;
    background-image:linear-gradient(to bottom,#f4f4f4 75%,#e6e6e6);
}

.i-table-row-button:disabled {
    background-image:linear-gradient(to bottom,#dfdfdf 75%,#d1d1d1);
}

.i-table-row-button-delete {
    background-image: linear-gradient(#e12b31, #c71c22 60%, #b5191f);
    border-color: #d43f3a;
    color: white;
}

.i-table-row-button-delete:active {
    box-shadow: inset 1px 1px 3px 1px #00000044;
    background-image: linear-gradient(#e12b31, #c71c22 60%, #b5191f);
}

.i-table-row-button-delete:hover {
    background-image: linear-gradient(#e12b31, #c71c22 60%, #b5191f);
}

.i-table-popup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2001;
    display: none;
}

.i-table-column-popup-hidden-false {
    color: white;
    background-color: #2fa4e7;
}

.i-table-column-popup-hidden-true {

}


.i-table-column-popup {
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.i-table-column-popup:hover {
    background-color: orange;
    color: white;
    cursor: pointer;
}

.i-table-button-text {
    margin-left: 4px;
}

.i-table-button:first-child {
    border-radius: 4px 0 0 4px;
}

.i-table-button:last-child {
    border-radius: 0 4px 4px 0;
    border-right: 1px solid #0000001a;
}

.i-table-button:only-child {
    border-radius: 4px;
}

.i-table-button:not(:last-child) {
    border-right: 0px;
}

.i-table-controls-custom {
    flex-grow: 1;
    margin-right: 4px;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.i-table-headers-col {
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
    gap: 4px;
}

.i-table-footers-col {
    font-weight: bold;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    white-space: nowrap;
}

.i-table-headers-col-nosort {
    cursor: unset;
}

.i-table-headers-col-title {
    text-overflow: ellipsis;
    overflow: hidden;
}

.i-table-headers-col-sort {
    opacity: 0.5;
}

.i-table-headers-col-filter {
    opacity: 0.5;
    position: relative;
    cursor: pointer;
    
}

.i-table-headers-col-filter-range {
    display: flex;
    gap: 8px;
}

.i-table-headers-col-filter-range > * {
    flex-basis: 0;
    flex-grow: 1;
}

.i-table-headers-col-filter-hidden {
    display: none;
}

.i-table-headers-col-filter-open {
    opacity: 1;
}

.i-table-headers-col-filter-open > .i-table-headers-col-filter-popup {
    display: flex;
}

.i-table-headers-col-filter-open > .i-table-headers-col-filter-popup-bg {
    display: block;
}

.i-table-headers-col-filter-popup-bg {
    display: none;
    position: fixed;
    height: 100vh;
    width: 100vw;
    z-index: 1;
    top: 0;
    left: 0;
}

.i-table-headers-col-filter-tab {
    display: flex;
}

.i-table-headers-col-filter-tab-element {
    flex-basis: 0;
    display: flex;
    justify-content: center;
    padding: 8px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    border-bottom: 1px solid #2196f3;
    flex-grow: 1;
}

.i-table-headers-col-filter-tab-element-active {
    color: #2196f3;
    border: 1px solid #2196f3;
    border-bottom: 1px solid transparent;
}

.i-table-headers-col-filter-etou {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

.i-table-headers-col-filter-select {
    border: 1px solid silver;
    border-radius: 4px;
    max-width: 40px;
    text-align: center;
}

.i-table-headers-col-filter-search {
    border: none;
    border-bottom: 1px solid silver;
    transition-duration: 0.2s;
    outline: 0;
    transition-property: border-bottom-color;
    box-sizing: border-box;
    border-radius: 0;
    min-height: 32px;
    min-width: 0;
}

.i-table-headers-col-filter-search:focus {
    border-bottom: 2px solid ;
    border-bottom-color: #2196f3;
}

.i-table-headers-col-filter-active {
    opacity: 1;
}

.i-table-headers-col-filter-active > .fa-filter {
    color: #d9534f;
}

.i-table-headers-col-filter-selection {
    display: flex;
}

.i-table-headers-col-filter-button:first-child {
    border-right: 0;
}

.i-table-headers-col-filter-button {
    border: 1px solid #adadad;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 26px;
    max-height: 26px;
    cursor: pointer;
}

.i-table-headers-col-filter-button:hover {
    background-color: #e6e6e6;
}

.i-table-headers-col-filter-selection-container {
    flex-grow: 1; 
    flex-basis: 0; 
    display: flex; 
    flex-direction: column;
    gap: 8px;
}

.i-table-headers-col-filter-popup {
    min-width: 250px;
    max-width: 250px;
    min-height: 300px;
    border-radius: 4px;
    border: 1px solid silver;
    position: fixed;
    background-color: white;
    display: none;
    z-index: 2;
    padding: 8px;
    gap: 8px;
    flex-direction: column;
    font-weight: normal;
    cursor: auto;
}

.i-table-headers-col-filter-value {
    display: flex;
    gap: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    cursor: pointer;
}

.i-table-controls-search {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: 4px;
    position: relative;
}

.i-table-controls-search-input-clear {
    position: absolute;
    top: 0;
    right: 0;
    color: #d43f3a;
    font-size: 1.5em;
    margin-top: 6px;
    cursor: pointer;
    width: 32px;
    text-align: center;
    user-select: none;
    display: none;
}

.i-table-controls-search-dirty {
    background-color: #ffffe4;
}

.i-table-controls-search-input {
    padding: 0 8px;
    margin: 0;
    max-height: 28px;
    min-height: 28px;
    border: 1px solid #cccccc;
    box-shadow: inset 0 1px 0 #e9e9e9;
    border-radius: 4px;
    outline: 0;
}

.i-table-headers {
    display: flex;
    position: sticky;
    top: 0;
    border-bottom: 1px solid grey;
    background-color: white;
    z-index: 3;
}

.i-table-footers {
    display: flex;
    position: sticky;
    border-top: 1px solid grey;
    background-color: white;
    max-height: 22px;
    min-height: 22px;
    z-index: 1;
    box-sizing: border-box;
}

.i-table-grid {
    flex-grow: 1;
    min-height: 200px;
    height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.i-table-data-noscroll {
    overflow-y: unset;
}

.i-table-data-noscroll > .i-table-grid {
    min-height: unset;
    height: unset;
}

.i-table-info {
    background: #ffffff;
    padding-left: 20px;
    padding-right: 20px;    
    border-top: 1px solid grey;
    text-align: right;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;    
}

.i-table-grid-row {
    display: flex;
}

.i-table-grid-row-blue {
    background-color:#c7d8e4 !important;
}

.i-table-grid-row-yellow {
    background-color:#fbfbc8 !important;
}

.i-table-grid-row-green {
    background-color:#ddffe6 !important;
}

.i-table-grid-row-red{
    background-color:#e7cbcb !important;
}

.i-table-grid-row-align-items-center {
    align-items:center;
}

.i-table-grid-row-click {
    cursor: pointer;
}

.i-table-grid-row-default-cursor {
    cursor: default !important;
}

/*.i-table-grid-row > div:first-of-type, .i-table-headers > div:first-of-type, .i-table-footers > div:first-of-type
{
    padding-left:10px;
}*/

.i-table-grid-row:hover
{
    background-color: #00a0e0;
    color: white;
}

.i-table-grid-row-even {
    background-color: #ececec;
}

.i-table-grid-row-odd {

}

.i-table-grid-row-history {
    background-color: #ffd68c8c;
}

.i-table-grid-row-col {
    overflow: hidden;
    display: block;
    line-height:15px;
    text-overflow: ellipsis;
    padding: 5px;
    box-sizing: border-box;
}

.i-table-grid-row-col-DYNAMIC, i-itable-heads-col-DYNAMIC {
    flex-basis: 0;
}

.i-table-grid-row-col-FIXED {

}

.i-table-grid-row-focus {
    background-color: #04519b;
    color: white;
}

.i-table-error {
    border: 2px solid red;
    margin: 4px;
    border-radius: 4px;
    padding: 4px;
    background: white;
}

.i-table-error-title {
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid red;
    padding-bottom: 8px;
    padding-top: 4px;
    margin-bottom: 4px;
}

.i-table-loading {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    font-style: italic;
}

.i-table-error-text {
    white-space: pre;
    font-family: monospace;
    overflow-x: auto;
}

.i-table-breakpoint-hidden {
    display: none !important;
}

.i-table-highlight {
    background-color: #ffeb00;
    color: black;
}

.i-table-button-delete {
    background-image: linear-gradient(#e12b31, #c71c22 60%, #b5191f);
    border-color: #d43f3a;
    color: white;
    height: 32px;
    width: 32px;
}

.i-table-button-delete:active {
    box-shadow: inset 1px 1px 3px 1px #00000044;
    background-image: linear-gradient(#e12b31, #c71c22 60%, #b5191f);
}

.i-table-button-delete:hover {
    background-image: linear-gradient(#e12b31, #c71c22 60%, #b5191f);
}

.i-table-col-delete {
    max-width: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
}

.i-table-scroll-container {
    display: flex;
    flex-grow: 1;
}

.i-table-scroll-element {
    background-color: transparent;
    min-width: 18px;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 0;
    margin-top: 4px;
    flex-grow: 1;
}

.i-table-scroll-element-container {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    min-width: fit-content;
}

.i-table-data::-webkit-scrollbar {
    display: none;
}

.i-table-grid-row-footer {
    padding-bottom: 22px;
}

.i-table-contextmenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

.i-table-contextmenu-bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    top: 0;
    left: 0;
}

.i-table-contextmenu-popup {
    position: fixed;
    min-width: 200px;
    border: 1px solid silver;
    border-radius: 4px;
    background-color: white;
    z-index: 101;
    top: 0;
    left: 0;
}

.a-table-contextmenu-action:hover {
    background-color: orange;
    color: white;
}

.a-table-contextmenu-action-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.a-table-contextmenu-action {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
}

.a-table-contextmenu-action-icon {
    flex-basis: 0;
}

.a-table-contextmenu-action-label {
    flex-basis: 0;
    flex-grow: 1;
}

.a-table-contextmenu-separator {
    border-top: 1px solid silver;
}

@media (max-width: 850px) {
    .i-table-button-text {
        display: none;
    }

    .i-table-breakpoint-LOW {
        display: none !important;
    }
}

@media(max-width: 1200px) {
    .i-table-breakpoint-MEDIUM {
        display: none !important;
    }
}



