/* Opt-in RH tables only. The adapter marks tables inside rhVacancesMaladie,
   rhRotations, rhPeriodes and rhWorkday; the planning/report tables are excluded.
   Existing cells, fields, values and header associations remain in the DOM. */
#tab-rh .table-gestion-mobile .libelle-cellule-mobile,
#tab-rh .table-gestion-mobile .aide-cellule-mobile{display:none}

@media screen{
 #tab-rh .table-gestion-mobile{font-family:var(--police);font-size:13px;table-layout:auto;word-break:normal;overflow-wrap:normal;hyphens:none}
 #tab-rh table.table-gestion-mobile th,#tab-rh table.table-gestion-mobile td[data-cell-role]{font-family:var(--police);font-size:13px;line-height:1.5;word-break:normal;overflow-wrap:normal;hyphens:none}
 #tab-rh table.table-gestion-mobile th{text-transform:none;letter-spacing:normal}
}

@media screen and (max-width:900px){
 #tab-rh :is(#rhVacancesMaladie,#rhRotations,#rhPeriodes,#rhWorkday):has(>.table-gestion-mobile){overflow:visible!important;min-width:0;max-width:100%}
 #tab-rh .table-gestion-mobile,#tab-rh .table-gestion-mobile tbody,#tab-rh .table-gestion-mobile thead{display:block;width:100%;min-width:0;max-width:100%;border:0}
 #tab-rh .table-gestion-mobile tr{display:block;padding:16px 0;border-bottom:1px solid var(--filet)}
 #tab-rh .table-gestion-mobile tr[data-header-row]{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #tab-rh table.table-gestion-mobile td[data-cell-role]{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:6px 12px;align-items:start;min-width:0;max-width:100%;padding:10px 0;border:0;text-align:left;font-size:14px;white-space:normal}
 #tab-rh table.table-gestion-mobile td[data-cell-role=identite]{display:block;padding:0 0 12px;font-size:15px;font-weight:600;color:var(--os)}
 #tab-rh .table-gestion-mobile .libelle-cellule-mobile{display:block;grid-column:1;min-width:0;color:var(--texte-2);font-size:13px;font-weight:400;line-height:1.6}
 #tab-rh .table-gestion-mobile td[data-cell-role=identite]>.libelle-cellule-mobile{display:none}
 #tab-rh .table-gestion-mobile .valeur-cellule-mobile{display:block;grid-column:2;min-width:0;max-width:100%;font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums;word-break:normal;overflow-wrap:normal;hyphens:none}
 #tab-rh .table-gestion-mobile td[data-cell-role=identite]>.valeur-cellule-mobile{font-size:15px}
 #tab-rh .table-gestion-mobile .aide-cellule-mobile{display:block;grid-column:1/-1;min-width:0;padding:0;margin:4px 0 0;color:var(--texte-2);font-size:13px;line-height:1.6;word-break:normal;overflow-wrap:normal;hyphens:none}
 #tab-rh .table-gestion-mobile .aide-cellule-mobile>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:400;color:var(--os)}
 #tab-rh .table-gestion-mobile .aide-cellule-mobile p{margin:0 0 8px;max-width:65ch;word-break:normal;overflow-wrap:normal;hyphens:none}
 #tab-rh table.table-gestion-mobile td[data-cell-role]:has(input,select,textarea){grid-template-columns:minmax(0,1fr)}
 #tab-rh table.table-gestion-mobile td[data-cell-role]:has(input,select,textarea)>.valeur-cellule-mobile{grid-column:1}
 #tab-rh .table-gestion-mobile input:not([type=checkbox]):not([type=radio]),#tab-rh .table-gestion-mobile select,#tab-rh .table-gestion-mobile textarea{min-width:0;max-width:100%;width:100%;min-height:48px;box-sizing:border-box;font:inherit;font-size:1rem}
 #tab-rh .table-gestion-mobile input:focus-visible,#tab-rh .table-gestion-mobile select:focus-visible,#tab-rh .table-gestion-mobile summary:focus-visible{outline:2px solid var(--action);outline-offset:3px}

 /* The editable salary field keeps its original node and change listener. */
 #rhListe .detail-rh{display:block;padding:0 16px 16px;min-width:0;max-width:100%;word-break:normal;overflow-wrap:normal;hyphens:none}
 #rhListe .detail-rh[hidden]{display:none}
 #rhListe .detail-rh .grp-detail-rh{min-width:0;max-width:100%;padding:16px 0;border-bottom:1px solid var(--filet)}
 #rhListe .detail-rh .grp-detail-rh:last-child{border-bottom:0}
 #rhListe .detail-rh .titre-grp-rh{margin:0 0 12px;font-family:var(--police);font-size:15px;font-weight:600;line-height:1.5;text-transform:none;letter-spacing:normal;color:var(--os)}
 #rhListe .detail-rh .plages-detail-rh{margin:0 0 12px;font-family:var(--police);font-size:13px;line-height:1.6}
 #rhListe .detail-rh .ligne-d-rh{display:block;min-width:0;padding:12px 0;font-size:13px;line-height:1.6;word-break:normal;overflow-wrap:normal;hyphens:none}
 #rhListe .detail-rh .ligne-d-rh>span:first-child{display:block;color:var(--texte-2)}
 #rhListe .detail-rh .ligne-d-rh .v{display:block;min-width:0;max-width:100%;margin-top:6px;font-family:var(--police);font-size:14px;font-variant-numeric:tabular-nums;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none}
 #rhListe .detail-rh .v:has(>input){display:flex;align-items:center;gap:8px}
 #rhListe .detail-rh input.rh-taux{width:100%;min-width:0;max-width:180px;min-height:48px;padding:10px 12px;font-family:var(--police);font-size:1rem;text-align:left;border-radius:8px;box-sizing:border-box}
}
