/* Sfera CRM 1.146.4 — wide desktop pages follow the Companies layout.
 * Companies uses the available app-content width (no hard max-width).
 * Keep pre-existing mobile/tablet widths and internal card grids unchanged.
 */
@media (min-width:1200px) {
  body:has(#dashboard-view:not([hidden])) #signed-in .app-content,
  body:has(#opportunity-view:not([hidden])) #signed-in .app-content {
    box-sizing:border-box;
    padding-right:clamp(12px,1.6vw,28px)!important;
    padding-left:clamp(12px,1.6vw,28px)!important;
  }

  /* The old dashboard max-width:1580px centred the entire canvas on
     ultrawide screens, leaving large unused strips on both sides. */
  #dashboard-view.dashboard-studio .dashboard-canvas {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Opportunity Studio V4 previously capped both levels at 1630px.
     Expand both so the existing KPI/charts grids can use the canvas. */
  #opportunity-view[data-desk][data-studio="v4"] {
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  #opportunity-view[data-desk][data-studio="v4"] .opportunities-shell,
  #opportunity-view[data-desk][data-studio="v4"] .opportunities-content {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}
