/* ===== Fluid desktop module (v0.38.7) — removable: drop 'make_fluid' from hook_callbacks::STATIC_SHEETS + delete this file =====
   Replaces the screen-centring module site-wide: every page centres in the space BESIDE the left nav (no mirrored
   250px strip on the right), and layouts step down gracefully on "reduced desktop" widths (laptops, smaller monitors,
   half-screen windows) instead of squeezing. Phones are still handled by make_mobile.css (≤ 900px). */

/* ---- Centring: no mirror anywhere (overrides anything left in make_screencentre.css) ---- */
body.make-has-drawer #page, body.make-has-drawer #page.drawers { padding-right: 0 !important; }
#page-content { width: 100%; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
#region-main, #region-main-box, .main-inner { min-width: 0; box-sizing: border-box; }
#region-main img, #region-main video, #region-main iframe { max-width: 100%; }

/* ---- Reduced desktop: breathing room shrinks with the window instead of eating the column ---- */
@media (min-width: 901px) and (max-width: 1440px) {
  #page.drawers .main-inner, .main-inner { padding-left: clamp(12px, 1.6vw, 28px) !important; padding-right: clamp(12px, 1.6vw, 28px) !important; }
  #topofscroll { padding-left: clamp(16px, 2.2vw, 40px) !important; padding-right: clamp(16px, 2.2vw, 40px) !important; }
}

/* ---- Layouts that step down (they only had a phone breakpoint before) ---- */
@media (max-width: 1200px) {
  .make-mgmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .make-oto-pager--cards .make-oto-month__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .make-customizer__grid, .make-customizer__cards { grid-template-columns: minmax(0, 1fr) !important; }
  body#page-theme-make-profile .make-prof__grid, .make-prof__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .make-rc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; row-gap: 10px; }
  .make-rc-row__act { justify-content: flex-start; }
  .make-fbm-live__head:not(.make-fbm-live__head--done),
  .make-fbm-live__head--process:not(.make-fbm-live__head--done),
  .make-fbm-live__head--leader:not(.make-fbm-live__head--done) { grid-template-columns: minmax(0, 1fr) auto auto !important; }
  .make-fbm-live--select .make-fbm-live__head:not(.make-fbm-live__head--done),
  .make-fbm-live--select .make-fbm-live__head--process:not(.make-fbm-live__head--done),
  .make-fbm-live--select .make-fbm-live__head--leader:not(.make-fbm-live__head--done) { grid-template-columns: 22px minmax(0, 1fr) auto auto !important; }
  .make-fbm-member { grid-template-columns: minmax(0, 1fr) auto !important; }
  .make-fb-cs-pane .make-fb-cs-row { grid-template-columns: 170px minmax(0, 1fr) !important; }
}
@media (max-width: 1000px) {
  .make-oto-pager--cards .make-oto-month__grid { grid-template-columns: minmax(0, 1fr); }
  .make-oto-pager--cards .make-oto-month__cell--acuerdo { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 760px) {
  .make-mgmt-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .make-fb-cs-pane .make-fb-cs-row { grid-template-columns: minmax(0, 1fr) !important; row-gap: 8px; }
}

/* ---- Wide data tables scroll inside their own box instead of pushing the page sideways ---- */
#region-main .generaltable, #region-main table.flexible { display: block; max-width: 100%; overflow-x: auto; }
