/* zm1 2026-10-20: browser-zoom / short-viewport fit + mobile list cards without side-scroll.
   Never touches overflow on html/body/#content. */
/* 1) Desktop+tablet: the app shell fits hubs to the viewport height; at 125-200% zoom the
      list collapsed to ~0px. Give hub roots a floor so #content/.content-admin-main scrolls instead. */
@media (min-width:768px){
  html .content-admin-main > #admin-recruitment-posts-hub-root,
  html .content-admin-main > #admin-influencer-merchant-hub-root,
  html .content-admin-main > #company-recruitment-hub-root,
  html .content-admin-main > #pt-root,
  html .content-admin-main > #devrel-root{min-height:640px !important;flex-shrink:0 !important;}
  html .content-admin-main [id$="-hub-root"] .hub-list-scroll,
  html .content-admin-main #pt-root .hub-list-scroll,
  html .content-admin-main #devrel-root .hub-list-scroll{min-height:240px;}
}
/* 2) Tablet / 175-200% zoom (768-1199): table must fit, no sideways pan */
@media (min-width:768px) and (max-width:1199.98px){
  html:not(#vt-zm1) #content .content-admin-main .hub-section-table thead th{white-space:normal !important;overflow-wrap:anywhere;}
  html:not(#vt-zm1) #content .content-admin-main .crp-hub-section-table,
  html:not(#vt-zm1) #content .content-admin-main .hub-section-table{width:100% !important;min-width:0 !important;table-layout:auto !important;}
  html:not(#vt-zm1) #content .content-admin-main .hub-section-table td.col-title,
  html:not(#vt-zm1) #content .content-admin-main .hub-section-table th.col-title{white-space:normal !important;word-break:break-word;}
  html:not(#vt-zm1) #content .content-admin-main .hub-list-scroll,
  html:not(#vt-zm1) #content .content-admin-main .hub-panel-body-scroll{overflow-x:hidden !important;}
}
/* 3) Mobile: stacked cards, never wider than the screen */
@media (max-width:767.98px){
  html:not(#vt-zm1) #content .content-admin-main .hub-list-scroll,
  html:not(#vt-zm1) #content .content-admin-main .hub-panel-body-scroll,
  html:not(#vt-zm1) #content .content-admin-main .rph-mobile-card-list,
  html:not(#vt-zm1) #content .content-admin-main .hub-surface-card__body,
  html:not(#vt-zm1) #content .content-admin-main .inf-jr-list-scroll{overflow-x:hidden !important;}
  html:not(#vt-zm1) #content .content-admin-main [id$="-hub-root"],
  html:not(#vt-zm1) #content .content-admin-main .hub-pill-row{max-width:100%;}
  html:not(#vt-zm1) .rph-list-card,
  html:not(#vt-zm1) .inf-jr-row-card{min-width:0 !important;width:100% !important;max-width:100% !important;
    display:grid !important;grid-template-columns:44px minmax(0,1fr) !important;grid-template-areas:"logo main" "logo acts";column-gap:12px !important;row-gap:8px !important;align-items:start !important;}
  html:not(#vt-zm1) .rph-list-card > .rph-list-card-logo{grid-area:logo;width:44px;min-width:44px;}
  html:not(#vt-zm1) .rph-list-card > .rph-list-card-main{grid-area:main;min-width:0 !important;width:auto !important;}
  html:not(#vt-zm1) .rph-list-card .rph-list-card-title{white-space:normal !important;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;line-height:1.35;}
  html:not(#vt-zm1) .rph-list-card > .rph-list-card-actions{grid-area:acts;display:flex !important;flex-wrap:nowrap !important;justify-content:flex-start !important;gap:8px !important;max-width:none !important;width:auto !important;margin:0 !important;}
}
/* 4) <1200: hub root must not pan sideways by the bootstrap row gutter; leave room for the FAB */
@media (max-width:1199.98px){
  html:not(#vt-zm1) #content .content-admin-main > [id$="-hub-root"],
  html:not(#vt-zm1) #content .content-admin-main > #pt-root,
  html:not(#vt-zm1) #content .content-admin-main > #devrel-root{overflow-x:clip !important;}
}
@media (min-width:768px) and (max-width:1199.98px){
  html:not(#vt-zm1) #content .content-admin-main > [id$="-hub-root"]{padding-bottom:84px !important;}
}
