/* SVS Egypt R12.7.1 — Agenda layout correction
   Surgical front-end-only fix for clipped/overflowing desktop agenda filters.
*/
body[data-page="agenda"] .hx-agenda-browser>.shell{
  grid-template-columns:1fr!important;
  gap:18px!important;
  align-items:start!important;
}
body[data-page="agenda"] .hx-agenda-console{
  position:relative!important;
  top:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
  display:grid!important;
  grid-template-columns:minmax(220px,.72fr) minmax(0,1.8fr)!important;
  gap:22px!important;
  align-items:start!important;
  padding:20px 22px!important;
  border-radius:18px!important;
}
body[data-page="agenda"] .hx-agenda-console-copy,
body[data-page="agenda"] .hx-agenda-console-body,
body[data-page="agenda"] .hx-filter-group,
body[data-page="agenda"] .filter-chips{
  min-width:0!important;
  max-width:100%!important;
}
body[data-page="agenda"] .hx-agenda-console-copy h2{
  max-width:13ch!important;
  margin-bottom:10px!important;
}
body[data-page="agenda"] .hx-agenda-console-body{
  margin-top:0!important;
  display:grid!important;
  grid-template-columns:minmax(230px,.9fr) minmax(320px,1.35fr) minmax(150px,.55fr)!important;
  gap:14px!important;
  align-items:start!important;
}
body[data-page="agenda"] .hx-filter-group{
  display:block!important;
  overflow:visible!important;
}
body[data-page="agenda"] .hx-filter-label{
  display:block!important;
  margin-bottom:8px!important;
}
body[data-page="agenda"] [data-agenda-days],
body[data-page="agenda"] [data-agenda-types]{
  display:grid!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  gap:7px!important;
}
body[data-page="agenda"] [data-agenda-days]{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body[data-page="agenda"] [data-agenda-types]{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body[data-page="agenda"] .hx-agenda-console .filter-chips button{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0 8px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  justify-content:center!important;
  text-align:center!important;
}
body[data-page="agenda"] .hx-agenda-console-meta{
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  min-width:0!important;
}
body[data-page="agenda"] .hx-agenda-console-meta>div{
  min-width:0!important;
  padding:10px!important;
}
body[data-page="agenda"] .hx-agenda-list{
  width:100%!important;
  min-width:0!important;
  gap:10px!important;
}
body[data-page="agenda"] .hx-agenda-row{
  width:100%!important;
  min-width:0!important;
  grid-template-columns:92px minmax(0,1fr)!important;
}
body[data-page="agenda"] .hx-agenda-content,
body[data-page="agenda"] .hx-session-meta{
  min-width:0!important;
}
body[data-page="agenda"] .hx-agenda-row h3{
  overflow-wrap:anywhere!important;
}

@media (max-width:1180px){
  body[data-page="agenda"] .hx-agenda-console{
    grid-template-columns:1fr!important;
    gap:16px!important;
  }
  body[data-page="agenda"] .hx-agenda-console-copy h2{max-width:none!important}
  body[data-page="agenda"] .hx-agenda-console-body{
    grid-template-columns:minmax(200px,.9fr) minmax(300px,1.35fr) minmax(150px,.55fr)!important;
  }
}
@media (max-width:900px){
  body[data-page="agenda"] .hx-agenda-console{
    padding:17px!important;
    overflow:hidden!important;
  }
  body[data-page="agenda"] .hx-agenda-console-body{
    grid-template-columns:1fr 1fr!important;
    gap:12px!important;
  }
  body[data-page="agenda"] .hx-agenda-console-meta{
    grid-column:1/-1!important;
  }
  body[data-page="agenda"] [data-agenda-types]{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:640px){
  body[data-page="agenda"] .hx-agenda-browser>.shell{gap:12px!important}
  body[data-page="agenda"] .hx-agenda-console{
    display:block!important;
    padding:15px!important;
    border-radius:16px!important;
  }
  body[data-page="agenda"] .hx-agenda-console-body{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:13px!important;
    margin-top:15px!important;
  }
  body[data-page="agenda"] .hx-agenda-console-meta{grid-column:auto!important}
  body[data-page="agenda"] [data-agenda-days]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body[data-page="agenda"] [data-agenda-types]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="agenda"] .hx-agenda-console .filter-chips button{
    min-height:36px!important;
    font-size:10px!important;
    padding:0 6px!important;
  }
  body[data-page="agenda"] .hx-agenda-row{
    grid-template-columns:58px minmax(0,1fr)!important;
    padding:12px!important;
  }
}
@media (max-width:360px){
  body[data-page="agenda"] [data-agenda-days]{grid-template-columns:1fr!important}
  body[data-page="agenda"] [data-agenda-types]{grid-template-columns:1fr 1fr!important}
}
