/* FLEGO 4.6.7: the SAME full-width Gantt on customer and foreman screens.
   In collapsed mode the sidebar is removed from the layout completely;
   there is no 64px-wide panel with clipped text or phantom menu rows. */
@media (min-width:821px) {
 #app.customer409-page.f467-gantt-view {
   box-sizing:border-box!important;
   width:100%!important;max-width:none!important;
   margin:0 auto!important;
   padding:18px clamp(16px,2vw,36px) 65px!important;
   display:grid!important;
   grid-template-columns:minmax(0,1fr)!important;
   gap:18px!important;
   align-items:start!important;
 }
 #app.customer409-page.f467-gantt-view:not(.f467-nav-expanded) > .customer409-sidebar {
   display:none!important;
 }
 #app.customer409-page.f467-gantt-view.f467-nav-expanded {
   grid-template-columns:218px minmax(0,1fr)!important;
 }
 #app.customer409-page.f467-gantt-view.f467-nav-expanded > .customer409-sidebar {
   display:grid!important;position:sticky!important;top:18px;
   overflow-y:auto!important;max-height:calc(100vh - 36px);
   min-width:0!important;width:auto!important;
 }
 #app.customer409-page.f467-gantt-view > .customer409-workspace {
   box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
 }
 #app.customer409-page.f467-gantt-view .gantt-page {
   box-sizing:border-box!important;width:100%!important;min-width:0!important;
   max-width:none!important;padding:clamp(17px,2vw,32px)!important;
 }
 #app.customer409-page.f467-gantt-view .gantt-scroll{width:100%!important;max-width:100%!important;overflow-x:auto}
 #app.customer409-page.f467-gantt-view.f467-fit .gantt-wide {
   width:100%!important;min-width:100%!important;
 }
 #app.customer409-page.f467-gantt-view:not(.f467-fit) .gantt-wide {
   width:max(100%,calc(214px + var(--gantt-track-width)))!important;
   min-width:100%!important;
 }
}
.f467-gantt-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.f467-gantt-controls button{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:600 13px var(--f-body);padding:10px 14px;cursor:pointer}
.f467-gantt-controls button:hover{background:var(--sunk)}
.f467-gantt-controls p{font:12px/1.45 var(--f-body);color:var(--muted);margin:0}
.gantt-scale-controls [data-f466-fit][aria-pressed="true"]{background:#1D2228;color:#fff;border-color:#1D2228}
@media (max-width:820px) {.f467-gantt-controls [data-f467-sidebar]{display:none}}
/* Existing FLEGO 4.6.6 fix outside the Gantt: no duplicate foreman title. */
#app.f47-foreman-page .f464-stage-content > .f46-stage {display:none!important}

/* 4.6.12: the project sidebar is never hidden on Gantt, for either role. */
@media (min-width:821px){
 #app.customer409-page.f467-gantt-view,
 #app.customer409-page.f467-gantt-view.f467-nav-expanded{grid-template-columns:218px minmax(0,1fr)!important}
 #app.customer409-page.f467-gantt-view > .customer409-sidebar{display:grid!important;position:sticky!important;top:18px;min-width:0!important;width:auto!important}
 #app.customer409-page.f467-gantt-view > .customer409-workspace{min-width:0!important;overflow:hidden}
 #app.customer409-page.f467-gantt-view .gantt-scroll{overflow-x:auto!important}
}
@media (max-width:820px){
 #app.customer409-page.f467-gantt-view > .customer409-sidebar{display:block!important;visibility:visible!important}
 #app.customer409-page.f467-gantt-view > .customer409-workspace{min-width:0!important}
 #app.customer409-page.f467-gantt-view .gantt-scroll{overflow-x:auto!important}
}
