/*
 * HYDPOLL responsive premium layer.
 * Loaded after the ERP visual contract to normalize the shell, header,
 * cards, help surfaces and mobile navigation from 320px to wide desktop.
 */
:root{
 --blue:#1d70b7;
 --green:#55e639;
 --hyd-rp-bg:#f6f9fc;
 --hyd-rp-surface:rgba(255,255,255,.92);
 --hyd-rp-surface-strong:#fff;
 --hyd-rp-line:#dbe7f3;
 --hyd-rp-line-soft:#edf3f8;
 --hyd-rp-text:#0b2140;
 --hyd-rp-muted:#64748b;
 --hyd-rp-shadow:0 14px 36px rgba(11,33,64,.08);
 --hyd-rp-shadow-sm:0 8px 20px rgba(11,33,64,.06);
 --hyd-rp-radius:16px;
 --hyd-rp-radius-control:10px;
 --hyd-rp-touch:44px;
 --hyd-rp-header-h:60px;
 --hyd-rp-bottom-nav-h:64px;
 --hyd-rp-gap:12px;
 --hyd-rp-main-pad:clamp(12px, 2vw, 24px);
}

@media screen{
 html,
 body{
  max-width:100%;
  overflow-x:hidden;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body){
  background:var(--hyd-rp-bg) !important;
  color:var(--hyd-rp-text) !important;
  letter-spacing:0 !important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .wrapper,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #app{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  max-width:100%;
  overflow-x:hidden;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main{
  flex:1 1 auto;
  min-width:0 !important;
  max-width:100% !important;
  overflow-x:hidden !important;
  padding:var(--hyd-rp-main-pad) !important;
  box-sizing:border-box !important;
 }

 body.topbar-v2-active.topbar-v2-sidebar:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main{
  padding:var(--hyd-rp-main-pad) !important;
  padding-top:16px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.glass,.hyd-glass,.rp-glass){
  background:rgba(255,255,255,.08) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header,.hdr,.topbar,#topbar,.t2-topbar,.topbar-v2){
  min-height:var(--hyd-rp-header-h) !important;
  height:var(--hyd-rp-header-h) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  padding:8px clamp(12px, 2vw, 24px) !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header-left,.header-right,.hdr-logo,.hdr-right,.header-nav-pack,.topbar-quickstats){
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.hdr-brand,.header-brand,.user-pill,.today-badge,.date-pill,.online-pill,#online-avatars-wrap){
  min-width:0 !important;
  max-width:100% !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.hdr-brand span,.hdr-brand p,.user-pill-name,.user-pill-role,.today-badge,.date-pill,.online-pill){
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(h1,.page-title,.module-title,.mod-title){
  font-size:clamp(20px, 2rem, 32px) !important;
  line-height:1.12 !important;
  letter-spacing:0 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(h2,.section-title,.panel-title){
  font-size:clamp(18px, 1.625rem, 26px) !important;
  line-height:1.18 !important;
  letter-spacing:0 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(h3,.card-title,.widget-title){
  font-size:clamp(16px, 1.375rem, 22px) !important;
  line-height:1.22 !important;
  letter-spacing:0 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) p{
  font-size:clamp(14px, 1rem, 16px) !important;
  line-height:1.55 !important;
  letter-spacing:0 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.small,small,.text-small){
  font-size:12px !important;
  line-height:1.4 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .card,.panel,.biz2-card,.me2-card,.portal-lux-card,.htk-erp-card,
  .dx-devis-card,#st-card,.aff-card,.cli2-card,.fact2-card,.devis2-card
 ){
  max-width:100% !important;
  min-width:0 !important;
  border-radius:var(--hyd-rp-radius) !important;
  padding:clamp(12px, 2vw, 20px) !important;
  box-sizing:border-box !important;
  overflow-wrap:anywhere !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  button,.btn,.btn-sm,.btn-xs,.icon-btn,.header-nav-btn,.help-toggle-btn,
  .biz2-action,.devis-action,.fact2-btn,.portal-btn,.report-word-btn,
  [role="button"],[role="tab"]
 ){
  min-height:var(--hyd-rp-touch) !important;
  min-width:var(--hyd-rp-touch);
  padding:10px 16px !important;
  border-radius:var(--hyd-rp-radius-control) !important;
  font-size:14px !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  align-items:center;
  justify-content:center;
  touch-action:manipulation;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.icon,.icon-btn,.help-toggle-btn,.header-nav-btn,#notif-btn,#notif-bell-btn){
  width:var(--hyd-rp-touch) !important;
  height:var(--hyd-rp-touch) !important;
  padding:0 !important;
  flex:0 0 var(--hyd-rp-touch) !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(input,select,textarea,.fi,.fta,.field-input){
  min-height:var(--hyd-rp-touch) !important;
  max-width:100% !important;
  border-radius:var(--hyd-rp-radius-control) !important;
  font-size:14px !important;
  box-sizing:border-box !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(table,.data-table,.dtlux){
  max-width:100% !important;
  table-layout:auto;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.table-wrap,.data-table-wrap,.overflow-x,[data-hyd-overflow="x"]){
  max-width:100% !important;
  overflow-x:auto !important;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.help-banner,.mod-help,.module-help,.card-help,.mod-help-banner){
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  border-radius:16px !important;
  padding:16px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-body{
  min-width:0 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner[data-hyd-grid],
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner[data-hyd-grid="true"],
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner[data-hyd-grid="compact"],
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner[data-hyd-grid="kpi"]{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  align-items:center !important;
  column-gap:clamp(10px,1.4vw,18px) !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner .mod-help-body{
  width:100% !important;
  max-width:none !important;
  justify-self:stretch !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner .mod-help-head,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner .mod-help-text{
  width:100% !important;
  max-width:none !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-banner .mod-help-text{
  overflow-wrap:normal !important;
  word-break:normal !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-close{
  width:var(--hyd-rp-touch) !important;
  height:var(--hyd-rp-touch) !important;
  min-width:var(--hyd-rp-touch) !important;
  flex:0 0 var(--hyd-rp-touch) !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(#mobile-bottom-nav,#mob-bottom-nav,#mob2-nav,.bottom-nav,.mf-bottom-nav){
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  min-height:var(--hyd-rp-bottom-nav-h) !important;
  height:calc(var(--hyd-rp-bottom-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-around !important;
  gap:4px !important;
  padding:6px max(10px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-right, 0px)) !important;
  box-sizing:border-box !important;
  background:rgba(255,255,255,.88) !important;
  border-top:1px solid rgba(219,231,243,.9) !important;
  box-shadow:0 -14px 34px rgba(11,33,64,.10) !important;
  backdrop-filter:blur(10px) saturate(1.12);
  -webkit-backdrop-filter:blur(10px) saturate(1.12);
  transform:translate3d(0,0,0) !important;
  transition:transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s ease, box-shadow .2s ease !important;
  will-change:transform,opacity;
  z-index:260 !important;
 }

 body.mob2-nav-collapsed:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(#mobile-bottom-nav,#mob-bottom-nav,#mob2-nav,.bottom-nav,.mf-bottom-nav){
  transform:translate3d(0, calc(100% - 14px), 0) !important;
  opacity:.76 !important;
  box-shadow:0 -5px 18px rgba(8,18,38,.08) !important;
 }

 body.mob2-nav-collapsed:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(#mobile-bottom-nav,#mob-bottom-nav,#mob2-nav,.bottom-nav,.mf-bottom-nav) :where(button,a,.mob2-it,.mob-nav-item,.mb-nav-btn){
  pointer-events:none !important;
 }

 body.mob2-nav-collapsed:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #mob2-nav::before{
  content:"";
  position:absolute;
  left:50%;
  top:5px;
  width:42px;
  height:4px;
  border-radius:999px;
  background:rgba(11,33,64,.22);
  transform:translateX(-50%);
  pointer-events:none;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(#mobile-bottom-nav,#mob-bottom-nav,#mob2-nav,.bottom-nav,.mf-bottom-nav) :where(button,a,.mob2-it,.mob-nav-item,.mb-nav-btn){
  min-width:44px !important;
  min-height:44px !important;
  flex:1 1 0 !important;
  padding:4px 6px !important;
  border-radius:12px !important;
  white-space:normal !important;
  overflow:hidden !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(img,svg,canvas,video,iframe){
  max-width:100%;
 }
}

@media (max-width:1536px){
 :root{ --hyd-rp-main-pad:clamp(12px, 1.6vw, 22px); }

 body.topbar-v2-active.topbar-v2-sidebar{
  --t2-sidebar-w:248px;
 }
}

@media (max-width:1280px){
 :root{ --hyd-rp-main-pad:clamp(12px, 1.4vw, 20px); }

 body.topbar-v2-active.topbar-v2-sidebar{
  --t2-sidebar-w:236px;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(#topbar-stats-strip,.topbar-quickstats){
  gap:6px !important;
 }
}

@media (max-width:1024px){
 :root{ --hyd-rp-main-pad:16px; }

 body.topbar-v2-active.topbar-v2-sidebar:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main{
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:100% !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main{
  padding-bottom:calc(var(--hyd-rp-bottom-nav-h) + 28px + env(safe-area-inset-bottom, 0px)) !important;
 }

 body.has-mob-nav.mob2-nav-collapsed:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body){
  padding-bottom:calc(18px + env(safe-area-inset-bottom, 0px)) !important;
 }

 body.mob2-nav-collapsed:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main,
 body.mob2-nav-collapsed:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main{
  padding-bottom:calc(18px + env(safe-area-inset-bottom, 0px)) !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.hdr-brand p,.hdr-clock,.today-badge,#topbar-stats-strip,.topbar-quickstats){
  display:none !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.grid,.cards-grid,.biz2-grid,.me2-grid,.me2-grid-3,.me2-grid-2,.dx-focus-row){
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.hero,.module-hero,.me2-hero,.biz2-hero,.dir-hero){
  grid-template-columns:1fr !important;
  min-width:0 !important;
 }
}

@media (min-width:1025px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  #mobile-bottom-nav,#mob-bottom-nav,#mob2-nav,.bottom-nav,.mf-bottom-nav,
  #mob2-sheet,#mob2-sheet-bd,#mob2-off
 ){
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main{
  padding-bottom:var(--hyd-rp-main-pad) !important;
 }
}

@media (min-width:768px) and (max-width:1024px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header,.hdr,.topbar,#topbar,.t2-topbar,.topbar-v2){
  padding:10px 16px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header .text,.hdr .text,.hdr-brand,.user-pill-name){
  display:block;
  font-size:14px !important;
 }
}

@media (max-width:768px){
 :root{
  --hyd-rp-header-h:56px;
  --hyd-rp-main-pad:14px;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header,.hdr,.topbar,#topbar,.t2-topbar,.topbar-v2){
  height:56px !important;
  min-height:56px !important;
  padding:8px 12px !important;
  gap:6px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .header .text,.hdr .text,.header .badge,.hdr .badge,.header .secondary-actions,.hdr .secondary-actions,
  .hdr-brand p,.user-pill-name,.user-pill-role,.date-pill,.online-pill,#online-avatars-wrap,#topbar-stats-strip,
  .header-nav-pack
 ){
  display:none !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header .icon,.hdr .icon,.icon-btn,.help-toggle-btn,.header-nav-btn,#notif-btn,#notif-bell-btn){
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  flex-basis:40px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.help-banner,.mod-help,.module-help,.card-help,.mod-help-banner){
  display:grid !important;
  grid-template-columns:40px minmax(0,1fr) 44px !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  padding:12px !important;
  font-size:14px !important;
  min-height:0 !important;
  max-height:116px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-decor{
  display:none !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-icon{
  width:36px !important;
  height:36px !important;
  line-height:36px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-head{
  margin-bottom:2px !important;
  min-width:0 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-badge{
  display:none !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-title,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-text{
  min-width:0 !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical;
  white-space:normal !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-title{
  -webkit-line-clamp:1;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-text{
  -webkit-line-clamp:2;
  font-size:13px !important;
  line-height:1.35 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .mod-help-close{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  justify-self:end;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.grid,.cards-grid,.biz2-grid,.me2-grid,.me2-grid-3,.me2-grid-2,.dx-focus-row,.rapport-affaire-grid){
  grid-template-columns:1fr !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.toolbar,.actions,.filters,.biz2-actions,.me2-actions,.devis2-toolbar,[data-hyd-actions="true"],[data-hyd-toolbar="true"]){
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:stretch !important;
  gap:8px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.toolbar,.actions,.filters,.biz2-actions,.me2-actions,.devis2-toolbar,[data-hyd-actions="true"],[data-hyd-toolbar="true"]) > :where(button,.btn,input,select){
  flex:1 1 150px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.filter-bar,.filters,.aff-filters,.fs2-filters,.devis2-filters){
  width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)) !important;
  align-items:center !important;
  gap:8px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.back-bar,.toolbar,.actions) form:has(> .filter-bar){
  flex:1 1 100% !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.filter-bar,.filters,.aff-filters,.fs2-filters,.devis2-filters) > :where(input,select,.fi,.fs,.field-input){
  width:100% !important;
  height:44px !important;
  min-height:44px !important;
  max-height:52px !important;
  flex:0 0 auto !important;
  align-self:center !important;
 }
}

@media (max-width:640px){
 :root{ --hyd-rp-main-pad:12px; }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main,
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main{
  padding-inline:12px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.card,.panel,.biz2-card,.me2-card,.portal-lux-card,.htk-erp-card,#st-card){
  border-radius:14px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.sub-tabs,.tabs,.module-tabs,.biz2-tabs,.profile-sub-tabs,[role="tablist"]){
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  padding:6px !important;
  scroll-snap-type:x proximity;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.sub-tab,.tabs button,.module-tabs button,.biz2-tab,[role="tab"]){
  flex:0 0 auto !important;
  scroll-snap-align:start;
 }
}

@media (max-width:480px){
 :root{
  --hyd-rp-main-pad:10px;
  --hyd-rp-bottom-nav-h:62px;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header,.hdr,.topbar,#topbar,.t2-topbar,.topbar-v2){
  padding-inline:10px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.hdr-logo,.hdr-right,.header-left,.header-right){
  gap:4px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(h1,.page-title,.module-title,.mod-title){
  font-size:24px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(h2,.section-title,.panel-title){
  font-size:20px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(button,.btn,.btn-sm,.btn-xs,[role="button"]){
  padding-inline:12px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(#mobile-bottom-nav,#mob-bottom-nav,#mob2-nav,.bottom-nav,.mf-bottom-nav) :where(.mob2-it__lbl,.mob-nav-item > span:not(.mob-nav-icon),.mf-label){
  font-size:10px !important;
  line-height:1.1 !important;
 }
}

@media (max-width:360px){
 :root{
  --hyd-rp-main-pad:8px;
  --hyd-rp-touch:42px;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header,.hdr,.topbar,#topbar,.t2-topbar,.topbar-v2){
  padding-inline:8px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.hdr-logo img,.hdr-logo svg,.hdr-icon){
  width:32px !important;
  height:32px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.header .icon,.hdr .icon,.icon-btn,.help-toggle-btn,.header-nav-btn,#notif-btn,#notif-bell-btn){
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  flex-basis:38px !important;
 }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(.help-banner,.mod-help,.module-help,.card-help,.mod-help-banner){
  grid-template-columns:34px minmax(0,1fr) 40px !important;
  gap:8px !important;
  padding:10px !important;
 }
}

@media (min-width:1536px){
 :root{ --hyd-rp-main-pad:24px; }

 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main > :where(.module-shell,.me2-shell,.biz2-shell,.dashboard-shell,.content-shell),
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) .main > :where(.module-shell,.me2-shell,.biz2-shell,.dashboard-shell,.content-shell){
  max-width:1760px;
  margin-inline:auto;
 }
}

@media (max-width:1024px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body){
  --hyd-rp-density-font:12.5px;
  --hyd-rp-density-small:10.5px;
  --hyd-rp-density-title-xl:24px;
  --hyd-rp-density-title:19px;
  --hyd-rp-density-subtitle:16px;
  --hyd-rp-density-control-h:42px;
  --hyd-rp-density-icon:38px;
  --hyd-rp-density-card-pad:12px;
  --hyd-rp-density-gap:8px;
  --hyd-rp-density-radius:12px;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"]{
  font-size:var(--hyd-rp-density-font) !important;
  line-height:1.38 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  h1,.page-title,.module-title,.mod-title,.biz2-title,.me2-title,.dir-title
 ){
  font-size:var(--hyd-rp-density-title-xl) !important;
  line-height:1.12 !important;
  margin-block:0 8px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  h2,.section-title,.panel-title,.card-title,.widget-title,.biz2-card__title,.rapport-affaire-card-title
 ){
  font-size:var(--hyd-rp-density-title) !important;
  line-height:1.16 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  h3,h4,.sub-title,.item-title,.st-item__title,.aff-client,.crm-mini-value
 ){
  font-size:var(--hyd-rp-density-subtitle) !important;
  line-height:1.18 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .muted,.small,small,.text-small,.aff-projet,.aff-dates,.st-item__sub,.rapport-affaire-card-ref,
  .card-subtitle,.panel-subtitle,.meta,.subtext
 ){
  font-size:var(--hyd-rp-density-small) !important;
  line-height:1.32 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .card,.panel,.widget,.box,.tile,.module-card,.dash-card,.kpi-card,
  .biz2-card,.me2-card,.cli2-card,.fact2-card,.devis-card,.devis2-card,
  .aff-card,.aff2-card,.aff-row,.aff-detail-card,.portal-lux-card,.htk-erp-card,
  .rapport-affaire-card,[data-hyd-card="true"],#st-card,.dx-devis-card,.dx-card
 ){
  border-radius:var(--hyd-rp-density-radius) !important;
  padding:var(--hyd-rp-density-card-pad) !important;
  gap:var(--hyd-rp-density-gap) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .card-body,.panel-body,.widget-body,.cb,.biz2-card__body,.me2-card__body,.portal-lux-card-body,
  .fact2-card__body,.devis2-card__body,.htk-erp-card-body
 ){
  padding:var(--hyd-rp-density-card-pad) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .toolbar,.actions,.filters,.filter-bar,.biz2-actions,.me2-actions,.devis2-toolbar,
  [data-hyd-actions="true"],[data-hyd-toolbar="true"],.aff-actions,.hyd-affaires-practical-actions
 ){
  gap:var(--hyd-rp-density-gap) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  button,.btn,button.btn,.btn-sm,.btn-xs,.mod-hero-btn,.biz2-action,.devis-action,
  .fact2-btn,.portal-btn,.report-word-btn,.cmdk-btn,.cmdk-item,.htk-cmdk-item,
  .alov-tile,.nv2-tab,.sub-tab,.biz2-tab,[role="button"],[role="tab"]
 ):not(.leaflet-control):not(.leaflet-control *){
  min-height:var(--hyd-rp-density-control-h) !important;
  min-width:var(--hyd-rp-density-control-h) !important;
  padding:7px 10px !important;
  border-radius:10px !important;
  font-size:var(--hyd-rp-density-font) !important;
  line-height:1.12 !important;
  gap:5px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .btn-sm,.btn-xs,.icon-btn,.mod-help-close,button[aria-label]
 ):not(.leaflet-control):not(.leaflet-control *){
  width:var(--hyd-rp-density-icon) !important;
  height:var(--hyd-rp-density-icon) !important;
  min-height:var(--hyd-rp-density-icon) !important;
  min-width:var(--hyd-rp-density-icon) !important;
  max-height:var(--hyd-rp-density-icon) !important;
  padding:6px 8px !important;
  font-size:12px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .mod-help-close,.module-help-close,.card-help-close,.help-close
 ){
  width:var(--hyd-rp-density-icon) !important;
  height:var(--hyd-rp-density-icon) !important;
  min-width:var(--hyd-rp-density-icon) !important;
  min-height:var(--hyd-rp-density-icon) !important;
  max-width:var(--hyd-rp-density-icon) !important;
  max-height:var(--hyd-rp-density-icon) !important;
  flex:0 0 var(--hyd-rp-density-icon) !important;
  padding:0 !important;
  font-size:12px !important;
  line-height:1 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  input,select,textarea,.fi,.fs,.fta,.field-input,.cmdk-input,.cmdk-search__input,
  .htk-cmdk-input,.devis2-search__input,.devis2-select,.devis2-status-select,.aff-status-select
 ){
  min-height:var(--hyd-rp-density-control-h) !important;
  height:auto !important;
  padding:7px 10px !important;
  border-radius:10px !important;
  font-size:var(--hyd-rp-density-font) !important;
  line-height:1.2 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  select,.fs,.devis2-select,.devis2-status-select,.aff-status-select
 ){
  padding-right:28px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] textarea{
  min-height:72px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .badge,.bdg,.pill,.chip,.tag,.status,.status-pill,.kp-status-badge,.four-card-status
 ){
  min-height:18px !important;
  padding:3px 7px !important;
  line-height:1.15 !important;
  border-radius:999px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .mod-help-icon,.biz2-empty__icon,.xm-empty__icon,.empty-icon,.portal-empty-icon
 ){
  width:var(--hyd-rp-density-icon) !important;
  height:var(--hyd-rp-density-icon) !important;
  min-width:var(--hyd-rp-density-icon) !important;
  min-height:var(--hyd-rp-density-icon) !important;
  max-width:var(--hyd-rp-density-icon) !important;
  max-height:var(--hyd-rp-density-icon) !important;
  font-size:18px !important;
  line-height:1 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  table,.data-table,.dtlux
 ){
  font-size:11.5px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  table,.data-table,.dtlux
 ) :where(th,td){
  padding:7px 8px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row{
  grid-template-columns:96px minmax(0,1fr) !important;
  gap:8px 10px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-status-select{
  min-width:0 !important;
  width:min(220px,100%) !important;
  max-width:100% !important;
  justify-self:start !important;
  align-self:start !important;
  text-transform:uppercase;
  font-weight:850 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row > *,
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(.card,.panel,.module-card,.aff-row,.biz2-card,.me2-card,.cli2-card,.fact2-card,.devis2-card,.par2-card,.temps2-aff-card,[data-hyd-card="true"]) > *{
  min-width:0 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row > div:nth-child(3){
  display:grid !important;
  align-content:start !important;
  gap:clamp(6px,1vw,8px) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row :where(.aff-team,.aff-dates){
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  column-gap:6px !important;
  row-gap:4px !important;
  margin:0 !important;
  line-height:1.15 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row :where(.aff-team,.aff-dates) > *{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  margin:0 !important;
  line-height:1.15 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
  width:auto !important;
  max-width:100% !important;
  min-height:var(--hyd-rp-density-icon) !important;
  margin:0 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
  -webkit-overflow-scrolling:touch;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions::-webkit-scrollbar{
  display:none !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions .btn,
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions a.btn{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:var(--hyd-rp-density-icon) !important;
  max-width:100% !important;
  height:var(--hyd-rp-density-icon) !important;
  min-height:var(--hyd-rp-density-icon) !important;
  padding:6px 9px !important;
  justify-content:center !important;
  white-space:nowrap !important;
  line-height:1 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where([style*="gap:24px"],[style*="gap:20px"],[style*="gap:18px"]){
  gap:clamp(8px,1.6vw,12px) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where([style*="margin-top:24px"],[style*="margin-top:20px"],[style*="margin-top:18px"]){
  margin-top:clamp(8px,1.6vw,12px) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where([style*="margin-bottom:24px"],[style*="margin-bottom:20px"],[style*="margin-bottom:18px"]){
  margin-bottom:clamp(8px,1.6vw,12px) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where([style*="padding:40px"],[style*="padding:36px"],[style*="padding:32px"],[style*="padding:28px"],[style*="padding:24px"]){
  padding:clamp(12px,2vw,16px) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body).mf-module-fiches-terrain #main :where([style*="grid-template-columns:repeat(auto-fill"],[style*="grid-template-columns: repeat(auto-fill"]){
  gap:clamp(8px,1.6vw,12px) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body).mf-module-fiches-terrain #main :where(button,.btn,[role="button"]){
  align-items:center !important;
  justify-content:center !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body).mf-dashboard-active #hyd-suite-dashboard-strip > div{
  grid-auto-columns:minmax(160px,52vw) !important;
  gap:8px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body).mf-dashboard-active #hyd-suite-dashboard-strip button{
  min-height:56px !important;
  height:auto !important;
  padding:6px 9px !important;
  border-radius:10px !important;
  white-space:normal !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body).mf-dashboard-active #hyd-suite-dashboard-strip button b{
  font-size:11.5px !important;
  line-height:1.15 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body).mf-dashboard-active #hyd-suite-dashboard-strip button span{
  margin-top:3px !important;
  font-size:10px !important;
  line-height:1.15 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .devis2-actions,.dv2-panel__head
 ){
  align-items:flex-start !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .devis2-btn,.dv2-panel__action,button[onclick*="ObjectifsCommissions.openEdit"],button[onclick*="HG.newStudy"]
 ){
  width:auto !important;
  height:auto !important;
  min-height:var(--hyd-rp-density-control-h) !important;
  white-space:nowrap !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  align-self:flex-start !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  button[onclick*="ObjectifsCommissions.openEdit"],button[onclick*="HG.newStudy"]
 ){
  min-width:max-content !important;
  max-width:100% !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-shell{
  padding:0 0 24px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-card{
  border-radius:12px !important;
  margin-bottom:10px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-card__head{
  padding:10px 12px !important;
  font-size:12px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-card__head__sub{
  font-size:10.5px !important;
  margin-top:2px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-card__body{
  padding:var(--hyd-rp-density-card-pad) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-row{
  gap:var(--hyd-rp-density-gap) !important;
  margin-bottom:var(--hyd-rp-density-gap) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-tab,.par2-btn,.par2-fg input,.par2-fg select,.par2-fg textarea
 ){
  min-height:var(--hyd-rp-density-control-h) !important;
  padding:7px 10px !important;
  font-size:var(--hyd-rp-density-font) !important;
  border-radius:10px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-tab{
  flex:0 0 auto !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-logo__preview{
  width:56px !important;
  height:56px !important;
  font-size:24px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .par2-stat{
  padding:10px 12px !important;
 }
}

@media (min-width:769px) and (max-width:1024px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body){
  --hyd-rp-density-font:12px;
  --hyd-rp-density-small:10.5px;
  --hyd-rp-density-title-xl:24px;
  --hyd-rp-density-title:18px;
  --hyd-rp-density-subtitle:15px;
  --hyd-rp-density-control-h:40px;
  --hyd-rp-density-icon:36px;
  --hyd-rp-density-card-pad:12px;
  --hyd-rp-density-gap:8px;
  --hyd-rp-density-radius:12px;
 }
}

@media (max-width:768px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body){
  --hyd-rp-density-font:11.75px;
  --hyd-rp-density-small:10px;
  --hyd-rp-density-title-xl:21px;
  --hyd-rp-density-title:17px;
  --hyd-rp-density-subtitle:14px;
  --hyd-rp-density-control-h:40px;
  --hyd-rp-density-icon:36px;
  --hyd-rp-density-card-pad:10px;
  --hyd-rp-density-gap:6px;
  --hyd-rp-density-radius:12px;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"]{
  padding-inline:10px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .hyd-affaires-practical{
  padding:10px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .hyd-affaires-practical-actions{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row{
  grid-template-columns:1fr !important;
  padding:10px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions .btn,
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions a.btn{
  flex:1 1 calc(50% - 3px) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions{
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions .btn,
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .aff-row .aff-actions a.btn{
  flex:0 0 auto !important;
  width:auto !important;
 }
}

/* ════════════════════════════════════════════════════════════════════════
   DENSITÉ COMPACTE MOBILE/TABLETTE — v427 (2026-05-28)
   Réduit les écarts excessifs sur cartes, lignes et grilles.
   Mobile ≤768px : gap 8–12px max, padding réduit
   Tablette 769–1024px : gap 12–16px max
   ════════════════════════════════════════════════════════════════════════ */
:root{
 --hyd-rp-card-gap-mobile:10px;
 --hyd-rp-card-gap-tablet:14px;
 --hyd-rp-card-pad-mobile:12px;
 --hyd-rp-card-pad-tablet:14px;
 --hyd-rp-row-gap-mobile:6px;
 --hyd-rp-row-gap-tablet:8px;
}

/* ── TABLETTE 769–1024px : densité équilibrée ──────────────────────────── */
@media (min-width:769px) and (max-width:1024px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .card,.kanban-card,.aff-card,.aff-row,.ch-fiche-row,.fiche-row,
  .biz2-card,.dir-card,.fact2-card,.me2-card,.cli2-card,.cnx2-card,
  .compta-card,.rh-card,.hub-card,.module-card,
  .terrain-card,.terrain-luxe-card,
  .dx-card,.dx-devis-card,.devis-card,
  .biz2-headcard,.me2-headcard,.dir-headcard
 ){
  padding:var(--hyd-rp-card-pad-tablet) !important;
  gap:var(--hyd-rp-row-gap-tablet) !important;
  margin-bottom:var(--hyd-rp-row-gap-tablet) !important;
 }
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .biz2-grid,.fact2-grid,.me2-grid,.cli2-grid,.dir-grid,.dir-grid-2,
  .hub-grid,.module-grid,.emp-stats,.kpi-mini-row,.af-timeline,
  .kp-week,.aff-list,.hyd-affaires-practical,
  .hyd-affaires-practical-actions
 ){
  gap:var(--hyd-rp-card-gap-tablet) !important;
 }
}

/* ── MOBILE ≤768px : compact maximal ───────────────────────────────────── */
@media (max-width:768px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .card,.kanban-card,.aff-card,.aff-row,.ch-fiche-row,.fiche-row,
  .biz2-card,.dir-card,.fact2-card,.me2-card,.cli2-card,.cnx2-card,
  .compta-card,.rh-card,.hub-card,.module-card,
  .terrain-card,.terrain-luxe-card,
  .dx-card,.dx-devis-card,.devis-card,
  .biz2-headcard,.me2-headcard,.dir-headcard
 ){
  padding:var(--hyd-rp-card-pad-mobile) !important;
  gap:var(--hyd-rp-row-gap-mobile) !important;
  margin-bottom:var(--hyd-rp-row-gap-mobile) !important;
 }
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .biz2-grid,.fact2-grid,.me2-grid,.cli2-grid,.dir-grid,.dir-grid-2,
  .hub-grid,.module-grid,.emp-stats,.kpi-mini-row,.af-timeline,
  .kp-week,.aff-list,.hyd-affaires-practical,
  .hyd-affaires-practical-actions
 ){
  gap:var(--hyd-rp-card-gap-mobile) !important;
 }
 /* Boutons d'action dans cards : gap réduit + flex wrap */
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .aff-actions,.kc-footer,.card-actions,.aff-row .aff-actions,
  .biz2-card__actions,.fact2-card__actions,.me2-card__actions
 ){
  gap:6px !important;
  flex-wrap:wrap !important;
 }
}

/* ── CARTES INTERVENTION/FICHE TERRAIN : suppression espaces verticaux
   excessifs (cf. screenshot écart 📅 Rendu → ⛏/Fiche → ✏).
   Pattern : flex column avec justify-content:space-between qui distribuait
   les blocs internes — on remplace par flex-start + gap raisonnable. */
@media (max-width:1024px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .terrain-card,.terrain-luxe-card,.intervention-card,
  .fiche-terrain-card,.fiche-intervention-card,.ch-fiche-row,
  .aff-card,.aff-row
 ){
  justify-content:flex-start !important;
  min-height:auto !important;
 }
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .terrain-card,.terrain-luxe-card,.intervention-card,
  .fiche-terrain-card,.fiche-intervention-card
 ) > * + *{
  margin-top:8px !important;
 }
 /* Aligner icônes et textes sur même grille via flex inline-center */
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .terrain-card,.terrain-luxe-card,.intervention-card,
  .fiche-terrain-card,.fiche-intervention-card,.ch-fiche-row
 ) :where(.row,.line,.field,[class*="-row"],[class*="-line"]){
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-height:24px !important;
 }
}

/* ── KPI tiles : gaps internes compacts mobile/tablette ────────────────── */
@media (max-width:1024px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .biz2-kpi,.fact2-kpi,.me2-kpi,.cli2-kpi,.dir-kpi,.dir2-kpi,
  .temps2-kpi,.sal2-kpi,.aud-kpi,.compta-kpi,.rh-kpi
 ){
  padding:clamp(10px, 2vw, 14px) !important;
  gap:6px !important;
 }
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .biz2-kpi__value,.fact2-kpi__value,.me2-kpi__value,
  .cli2-kpi__value,.dir2-kpi__val,.kpi-value,.kpi__value
 ){
  font-size:clamp(18px, 4vw, 26px) !important;
  line-height:1.1 !important;
  margin:2px 0 !important;
 }
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .biz2-kpi__sub,.fact2-kpi__sub,.me2-kpi__sub,.kpi-sub,.kpi__sub
 ){
  font-size:clamp(10px, 1.6vw, 11.5px) !important;
  margin-top:1px !important;
 }
}

/* ── Sections titles : marges resserrées en mobile/tablette ─────────────── */
@media (max-width:1024px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  h1,h2,h3,h4,.section-title,.module-title,.page-title,
  .biz2-title,.me2-title,.dir-title,.fact2-title,.cli2-title
 ){
  margin:8px 0 6px !important;
  line-height:1.2 !important;
 }
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  .module-header,.page-header,.section-header,
  .biz2-header,.me2-header,.dir-header,.fact2-header
 ){
  padding:10px var(--hyd-rp-main-pad) !important;
  gap:8px !important;
  margin-bottom:8px !important;
 }
}

/* ── Tables compactes en mobile/tablette ───────────────────────────────── */
@media (max-width:1024px){
 body:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
  table.compact,.biz2-table,.fact2-table,.me2-table,
  .cli2-table,.compta-table,.rh-table
 ) :where(th,td){
  padding:6px 8px !important;
  font-size:11.5px !important;
  line-height:1.35 !important;
 }
}

/* ── Mobile/tablette anti-chevauchement ciblé : Piézo + Fiches terrain ─── */
@media (max-width:1024px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .sub-tabs,.tabs,.module-tabs,.biz2-tabs,.profile-sub-tabs,.planning-tabs,[role="tablist"]
 ){
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-snap-type:x proximity;
  scrollbar-width:none !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .sub-tabs,.tabs,.module-tabs,.biz2-tabs,.profile-sub-tabs,.planning-tabs,[role="tablist"]
 )::-webkit-scrollbar{
  display:none !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
  .sub-tabs button,.sub-tab,.tabs button,.module-tabs button,.biz2-tab,.profile-sub-tabs button,.planning-tabs button,[role="tab"]
 ){
  flex:0 0 auto !important;
  max-width:min(184px, 58vw) !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  scroll-snap-align:start;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] .piezo-sub-tabs{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
  padding:6px !important;
  min-height:0 !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 10px 24px rgba(11,33,64,.08) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] .piezo-sub-tabs .sub-tab{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:118px !important;
  max-width:168px !important;
  height:40px !important;
  min-height:40px !important;
  padding:7px 10px !important;
  border-radius:11px !important;
  font-size:11px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  contain:layout paint;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="fiches-terrain"] [data-hyd-toolbar="true"]{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:stretch !important;
  align-content:start !important;
  gap:8px !important;
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 0 12px !important;
  padding:10px !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  border:1px solid rgba(219,228,240,.9) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.94) !important;
  box-shadow:0 10px 28px rgba(11,33,64,.08) !important;
  overflow:visible !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="fiches-terrain"] [data-hyd-toolbar="true"] > :where(input,select,textarea,button,.btn,a.btn){
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  flex:0 1 auto !important;
  margin:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="fiches-terrain"] [data-hyd-toolbar="true"] > :where(button,.btn,a.btn){
  grid-column:1 / -1 !important;
  justify-self:stretch !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="fiches-terrain"] [data-hyd-card="true"]{
  position:relative !important;
  z-index:0 !important;
  clear:both !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="fiches-terrain"] [data-hyd-card="true"] :where(button,.btn,a.btn):not(.sub-tab),
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] [data-hyd-card="true"] :where(button,.btn,a.btn):not(.sub-tab){
  width:auto !important;
  min-width:min(148px,100%) !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
 }
}

@media (max-width:768px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"]{
  overflow-x:clip !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .back-bar{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  margin:4px 0 10px !important;
  padding:0 !important;
  scrollbar-width:none !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .back-bar::-webkit-scrollbar{
  display:none !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .back-btn{
  flex:0 0 auto !important;
  min-width:0 !important;
  min-height:38px !important;
  padding:8px 12px !important;
  font-size:12px !important;
  border-radius:10px !important;
  white-space:nowrap !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] .breadcrumb{
  flex:1 1 auto !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  font-size:12px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] .piezo-sub-tabs{
  margin:0 0 10px !important;
  padding:5px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] .piezo-sub-tabs .sub-tab{
  min-width:108px !important;
  max-width:138px !important;
  height:38px !important;
  min-height:38px !important;
  padding:6px 8px !important;
  font-size:10.5px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="fiches-terrain"] [data-hyd-toolbar="true"]{
  grid-template-columns:minmax(0,1fr) !important;
  align-content:start !important;
  gap:8px !important;
  margin-bottom:10px !important;
  padding:9px !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  border-radius:12px !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="fiches-terrain"] [data-hyd-toolbar="true"] > :where(input,select,textarea,button,.btn,a.btn){
  min-height:40px !important;
  font-size:16px !important;
  border-radius:10px !important;
 }

 #main[data-hyd-module="fiches-terrain"] div[data-hyd-toolbar="true"]{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
 }

 #main[data-hyd-module="fiches-terrain"] div[data-hyd-toolbar="true"] > button.btn,
 #main[data-hyd-module="fiches-terrain"] div[data-hyd-toolbar="true"] > a.btn{
  width:100% !important;
  min-width:100% !important;
  height:40px !important;
  min-height:40px !important;
  max-height:none !important;
  padding:8px 12px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
 }

 #main[data-hyd-module="fiches-terrain"] button.btn:not([title]),
 #main[data-hyd-module="fiches-terrain"] a.btn:not([title]){
  width:auto !important;
  min-width:min(156px,100%) !important;
  height:40px !important;
  min-height:40px !important;
  max-height:none !important;
  padding:8px 12px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
 }

 #main[data-hyd-module="fiches-terrain"] div[data-hyd-toolbar="true"] > button.btn,
 #main[data-hyd-module="fiches-terrain"] div[data-hyd-toolbar="true"] > a.btn{
  width:100% !important;
  min-width:100% !important;
 }
}

/* Admin modules V2 : Paramètres / Connecteurs / Backup / Salariés */
@media (max-width:1024px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-shell,.cnx2-shell,.bk2-shell,.sal2-shell
 ){
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  padding-inline:0 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-header,.cnx2-header,.bk2-head,.sal2-header,
  .par2-title,.cnx2-title,.bk2-title,.sal2-title
 ){
  min-width:0 !important;
  max-width:100% !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-card,.cnx2-card,.bk2-card,.sal2-card,.bk2-action,.sal2-kpi,.bk2-stat
 ){
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-row,.par2-row--2,.par2-row--3,.par2-row--4,
  .cnx2-grid,.bk2-stats,.bk2-actions,.sal2-kpis,.sal2-grid,.sal2-toolbar
 ){
  max-width:100% !important;
  min-width:0 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-fg input,.par2-fg select,.par2-fg textarea,
  .cnx2-modal__body input,.cnx2-modal__body select,
  .sal2-search input,.sal2-select,.sal2-modal__fg input,.sal2-modal__fg select,.sal2-modal__fg textarea
 ){
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-btn,.cnx2-btn,.bk2-action,.sal2-btn,.sal2-card__action-btn
 ){
  min-height:38px !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .bk2-table-wrap,.sal2-table-wrap
 ){
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch;
 }
}

@media (min-width:769px) and (max-width:1024px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .cnx2-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .sal2-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .sal2-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
 }
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .bk2-actions{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }
}

@media (max-width:768px){
 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-row,.par2-row--2,.par2-row--3,.par2-row--4,
  .cnx2-grid,.bk2-stats,.bk2-actions,.sal2-grid,.sal2-toolbar
 ){
  grid-template-columns:minmax(0,1fr) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main .sal2-kpis{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-tabs,.sub-tabs,.module-tabs,.sales-sub-tabs
 ){
  overflow-x:auto !important;
  overflow-y:hidden !important;
  flex-wrap:nowrap !important;
  scrollbar-width:none !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-tabs,.sub-tabs,.module-tabs,.sales-sub-tabs
 )::-webkit-scrollbar{
  display:none !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .par2-tab,.sub-tab,.module-tabs button,.sales-sub-tabs button
 ){
  flex:0 0 auto !important;
  max-width:min(176px,58vw) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
 }

 body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) #main :where(
  .cnx2-modal,.sal2-modal
 ){
  width:100% !important;
  max-width:100% !important;
  max-height:90vh !important;
 }
}

@media print{
 body,
 #app,
 #main,
 .main{
  overflow:visible !important;
 }
}
