/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS*/
/* ============================================================================== */
/* Global */
/* ============================================================================== */
@media screen and (min-width: 1025px) {
div.fiche>form>div.div-table-responsive, div.fiche>form>div.div-table-responsive-no-min {
overflow-x: unset;
}
.div-table-responsive-no-min, div.div-table-responsive {
overflow-x: unset;
}
/* Some popup must have z-index of 1006 & more */
.ui-datepicker {
z-index: 1100 !important;
}
}

/* ============================================================================== */
/* Sticky table headers columns */
/* ============================================================================== */
@media screen and (min-width: 1025px) {
tr.liste_titre th:not(#ajaxloaded_tablelines th) {
position: sticky;
background-color: var(--colorbacktitle1);
opacity: 1.0;
z-index: 1;
top: 52px;
}
tr.liste_titre.box_titre th {
top: unset !important;
}
.publicnewticketform2 th {
top: unset !important;
}
.fichehalfleft tr.liste_titre th:not(#ajaxloaded_tablelines th),
.fichehalfright tr.liste_titre th:not(#ajaxloaded_tablelines th) {
top: unset;
}

/* Compatibility banking4Dolibarr */
#b4d_save_form th {
top: unset !important;
}
}

/* ============================================================================== */
/* Sticky total bar */
/* ============================================================================== */
@media screen and (min-width: 1025px) {
#id-right > .fiche > form[action*="list.php"] div.div-table-responsive > table tr.liste_total,
#id-right > .fiche > .tabBar > form[action*="list.php"] div.div-table-responsive > table tr.liste_total {
position: sticky;
bottom: 0;
z-index: 2;
}
}

/* ============================================================================== */
/* Sticky tabs card */
/* ============================================================================== */
@media screen and (min-width: 1025px) {
div.tabs:first-of-type, .fiche > div.tabs {
position: sticky;
top: 52px;
border-bottom: solid 1px #cccccc !important;
background-color: var(--colorbackbody);
margin: 0 auto 0 0 !important;
height: auto;
z-index: 50;
}
}