/*
 * إصلاح ظهور الرئيسية على الجوال — 8.1.5-p4.6
 * النطاق: شاشات الجوال فقط، وصفحة الرئيسية والهيدر وشريط التنقل السفلي.
 * لا يغيّر السايدبار أو أي صفحة أخرى أو منطق التشغيل.
 */

@media (max-width:720px){
  html,
  body{
    max-width:100%;
    overflow-x:hidden;
    overscroll-behavior-x:none;
  }

  body{
    margin:0;
    padding-bottom:0!important;
  }

  .acmnp40-front-shell{
    width:100%;
    max-width:none;
    margin:0;
    padding:0 8px calc(92px + env(safe-area-inset-bottom))!important;
    overflow-x:clip;
  }

  /* تحرير عرض المحتوى بالكامل على الجوال دون تعديل السايدبار نفسه. */
  .acmnp40-front-shell .acmnp40-portal-layout{
    display:block!important;
    width:100%;
    min-width:0;
    margin:8px 0 0!important;
  }
  .acmnp40-front-shell .acmnp40-front-main{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow-x:clip!important;
  }

  /* هيدر جوال متوازن: قائمة، عنوان مرن، إشعارات وخروج. */
  .acmnp40-front-shell .acmnp40-p1-topbar{
    position:sticky;
    top:0;
    z-index:10030;
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) auto;
    align-items:center;
    gap:7px;
    width:calc(100% + 16px);
    min-height:64px;
    margin:0 -8px!important;
    padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left))!important;
    border-radius:0 0 16px 16px!important;
  }
  .acmnp40-front-shell .acmnp40-p1-mobile-menu{
    width:42px;
    height:42px;
    min-width:42px;
    padding:0;
  }
  .acmnp40-front-shell .acmnp40-p1-brand{
    min-width:0;
    width:100%;
    gap:0;
    overflow:hidden;
  }
  .acmnp40-front-shell .acmnp40-p1-brand-mark,
  .acmnp40-front-shell .acmnp40-p1-brand small,
  .acmnp40-front-shell .acmnp40-p1-brand p{
    display:none!important;
  }
  .acmnp40-front-shell .acmnp40-p1-brand>div{
    min-width:0;
    width:100%;
  }
  .acmnp40-front-shell .acmnp40-p1-brand h1{
    display:block;
    width:100%;
    margin:0;
    overflow:hidden;
    color:#123f67;
    font-size:15px!important;
    line-height:1.35;
    text-align:center;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .acmnp40-front-shell .acmnp40-p1-userbar{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:0;
  }
  .acmnp40-front-shell .acmnp40-p1-user{
    display:none!important;
  }
  .acmnp40-front-shell .acmnp40-p1-icon-btn{
    width:40px;
    height:40px;
    min-width:40px;
    padding:0;
    border-radius:12px;
    font-size:17px;
  }
  .acmnp40-front-shell .acmnp40-p1-icon-btn>span{
    top:-4px;
    left:-4px;
    min-width:19px;
    width:auto;
    height:19px;
    padding:0 4px;
    border-width:2px;
    border-radius:10px;
    font-size:9px;
    line-height:19px;
  }

  /* الرئيسية: منع الإزاحة، ضغط المسافات، وإظهار بداية الصفحة بوضوح. */
  .acmnp40-front-shell .acmnp40-dashboard-page{
    width:100%;
    min-width:0;
    margin:0;
    padding:0!important;
    gap:10px!important;
    scroll-margin-top:72px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-heading{
    display:grid!important;
    grid-template-columns:1fr;
    gap:10px;
    width:100%;
    min-width:0;
    margin:0;
    padding:14px!important;
    border-radius:15px!important;
    box-shadow:0 10px 24px rgba(16,61,88,.14);
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-heading>div{
    min-width:0;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-heading small{
    margin-bottom:4px;
    font-size:11px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-heading h2{
    margin:0 0 5px;
    font-size:20px!important;
    line-height:1.35;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-heading p{
    font-size:12px;
    line-height:1.65;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-heading-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    width:100%;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-heading-actions span{
    min-width:0;
    overflow:hidden;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-refresh{
    min-height:38px;
    padding:8px 11px;
    border-radius:10px;
    font-size:11px;
    white-space:nowrap;
  }

  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-group{
    width:100%;
    min-width:0;
    margin:0;
    padding:11px!important;
    border-radius:15px!important;
    box-shadow:0 7px 20px rgba(25,72,92,.06);
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-group>header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center!important;
    gap:8px;
    width:100%;
    min-width:0;
    margin:0 0 10px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-group>header>div{
    min-width:0;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-group>header small{
    font-size:10px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-group>header h3{
    margin-top:2px;
    font-size:15px!important;
    line-height:1.45;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-group>header button{
    min-height:36px;
    padding:7px 9px;
    border-radius:9px;
    font-size:10px;
    white-space:nowrap;
  }

  /* كروت مدمجة بعمودين بدل الكارت الرأسي الضخم. */
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-cards{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:1fr;
    align-items:stretch;
    gap:8px!important;
    width:100%;
    min-width:0;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card{
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    width:100%!important;
    min-width:0!important;
    min-height:105px!important;
    height:auto!important;
    block-size:auto!important;
    margin:0!important;
    padding:11px!important;
    border-radius:14px!important;
    text-align:right!important;
    overflow:hidden;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card:after,
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card.is-success:after,
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card.is-warning:after,
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card.is-danger:after,
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card.is-primary:after,
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card.is-muted:after{
    left:-17px;
    bottom:-19px;
    width:58px;
    height:58px;
    pointer-events:none;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card:hover{
    transform:none;
    box-shadow:none;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card span{
    position:relative;
    z-index:1;
    overflow-wrap:anywhere;
    font-size:11px!important;
    line-height:1.45;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card strong{
    position:relative;
    z-index:1;
    margin:6px 0 4px!important;
    overflow-wrap:anywhere;
    font-size:24px!important;
    line-height:1.05!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card strong.is-money{
    font-size:14px!important;
    line-height:1.45!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card small{
    position:relative;
    z-index:1;
    overflow-wrap:anywhere;
    color:#748994;
    font-size:9.5px!important;
    line-height:1.45;
  }

  /* جدول أداء الاستشاريين يتحول إلى بطاقات قابلة للقراءة بلا تمرير أفقي. */
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table-wrap{
    width:100%;
    overflow:visible!important;
    border:0;
    background:transparent;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table{
    display:block;
    width:100%;
    min-width:0!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table thead{
    display:none;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table tbody{
    display:grid;
    gap:9px;
    width:100%;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table tr{
    display:grid;
    width:100%;
    overflow:hidden;
    border:1px solid #dce8ec;
    border-radius:13px;
    background:#fff;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td{
    display:grid;
    grid-template-columns:105px minmax(0,1fr);
    align-items:center;
    gap:8px;
    width:100%;
    min-width:0!important;
    padding:8px 10px!important;
    border:0!important;
    border-bottom:1px solid #e8eef1!important;
    background:transparent!important;
    font-size:11px!important;
    text-align:right!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:last-child{
    border-bottom:0!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:before{
    color:#526b77;
    font-weight:800;
    line-height:1.4;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(1):before{content:"الاستشاري"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(2):before{content:"الجمعيات"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(3):before{content:"المهام"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(4):before{content:"المنجز"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(5):before{content:"المتبقي"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(6):before{content:"المتأخر"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(7):before{content:"الاجتماعات"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(8):before{content:"الورش"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(9):before{content:"الإنجاز"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-table td:nth-child(10):before{content:"التفاصيل"}
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-progress{
    min-width:0;
    width:100%;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-detail-btn{
    width:100%;
    min-height:34px;
    padding:7px 9px;
    font-size:10px;
  }

  /* البوب أب على الجوال. */
  .acmnp40-front-shell .acmnp40-dashboard-modal{
    padding:0!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-modal>section{
    width:100vw!important;
    max-height:100dvh!important;
    min-height:100dvh;
    border-radius:0!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-modal>section>header{
    padding:13px 14px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-modal h2{
    font-size:19px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-modal-tools{
    display:grid!important;
    grid-template-columns:1fr;
    padding:10px 12px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-modal-body{
    min-height:0;
    padding:12px;
  }

  /* شريط سفلي ثابت دون تغطية آخر المحتوى. */
  .acmnp40-front-shell .acmnp40-p3-mobile-nav{
    min-height:66px;
    padding:5px max(4px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));
  }
  .acmnp40-front-shell .acmnp40-p3-mobile-nav button{
    min-width:0;
    padding:3px 1px;
  }
  .acmnp40-front-shell .acmnp40-p3-mobile-nav span{
    font-size:18px;
    line-height:1;
  }
  .acmnp40-front-shell .acmnp40-p3-mobile-nav small{
    overflow:hidden;
    max-width:100%;
    font-size:9px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

@media (max-width:350px){
  .acmnp40-front-shell .acmnp40-p1-topbar{
    grid-template-columns:40px minmax(0,1fr) auto;
    gap:4px;
  }
  .acmnp40-front-shell .acmnp40-p1-brand h1{font-size:13px!important}
  .acmnp40-front-shell .acmnp40-p1-icon-btn,
  .acmnp40-front-shell .acmnp40-p1-mobile-menu{
    width:38px;
    height:38px;
    min-width:38px;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-cards{
    grid-template-columns:1fr!important;
  }
  .acmnp40-front-shell .acmnp40-dashboard-page .acmnp40-dashboard-card{
    min-height:92px!important;
  }
}

/* 8.18.6-p15.6 — Admin mobile dashboard refinement */
@media(max-width:760px){
 .acmnp40-front-shell{padding-bottom:82px!important;background:#f7f9fc!important}.acmnp40-front-shell .acmnp40-p1-topbar{min-height:68px!important;border-radius:0 0 18px 18px!important;box-shadow:0 5px 18px rgba(8,54,88,.08)!important}.acmnp40-front-shell .acmnp40-p1-brand h1{font-size:15px!important}.acmnp40-front-shell .acmnp40-p1-brand p{display:none!important}.acmnp40-front-shell .acmnp40-page-heading{padding:16px!important;border-radius:17px!important;margin-bottom:10px!important}.acmnp40-front-shell .acmnp40-page-heading h2{font-size:21px!important}.acmnp40-front-shell .acmnp40-page-heading p{font-size:11px!important;line-height:1.7}.acmnp40-front-shell .meeting-center-kpis,.acmnp40-front-shell .acmnp40-meeting-kpis{grid-template-columns:1fr 1fr!important;gap:8px!important}.acmnp40-front-shell .meeting-center-kpis article,.acmnp40-front-shell .acmnp40-meeting-kpis article{min-height:82px!important;padding:12px!important;border-radius:14px!important}.acmnp40-front-shell .acmnp40-meeting-center-toolbar{padding:10px!important;border-radius:15px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}.acmnp40-front-shell .acmnp40-meeting-center-toolbar input{grid-column:1/-1!important}.acmnp40-front-shell .acmnp40-meeting-center-toolbar button{grid-column:1/-1!important}.acmnp40-front-shell .acmnp40-meeting-center-table thead{display:none!important}.acmnp40-front-shell .acmnp40-meeting-center-table,.acmnp40-front-shell .acmnp40-meeting-center-table tbody{display:block!important}.acmnp40-front-shell .acmnp40-meeting-center-table tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0 0 10px!important;padding:13px!important;border:1px solid #dce7f0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 18px rgba(15,72,110,.05)!important}.acmnp40-front-shell .acmnp40-meeting-center-table td{display:block!important;border:0!important;padding:0!important;font-size:11px!important}.acmnp40-front-shell .acmnp40-meeting-center-table td:nth-child(1),.acmnp40-front-shell .acmnp40-meeting-center-table td:nth-child(4),.acmnp40-front-shell .acmnp40-meeting-center-table td:last-child{grid-column:1/-1!important}.acmnp40-front-shell .acmnp40-p3-mobile-nav{background:rgba(255,255,255,.98)!important;border-top:1px solid #dce7f0!important;box-shadow:0 -10px 28px rgba(11,71,121,.12)!important}.acmnp40-front-shell .acmnp40-p3-mobile-nav button{color:#71869a!important}.acmnp40-front-shell .acmnp40-p3-mobile-nav button.is-active{color:#0b5689!important}.acmnp40-front-shell .acmnp40-p3-mobile-nav button span{font-size:19px!important}.acmnp40-front-shell .acmnp40-p3-mobile-nav button small{font-size:9px!important}
}
@media(max-width:760px){
 .acmnp40-front-shell .acmnp40-meeting-filters{padding:10px!important;border-radius:15px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}.acmnp40-front-shell .acmnp40-meeting-filters input{grid-column:1/-1}.acmnp40-front-shell .acmnp40-meeting-filters button{grid-column:1/-1}.acmnp40-front-shell #acmnp40-meeting-table .acmnp40-table-scroll{overflow:visible!important}.acmnp40-front-shell .acmnp40-meeting-table{min-width:0!important;width:100%!important;padding:0!important;background:transparent!important;border-spacing:0!important}.acmnp40-front-shell .acmnp40-meeting-table thead{display:none!important}.acmnp40-front-shell .acmnp40-meeting-table tbody{display:grid!important;gap:10px}.acmnp40-front-shell .acmnp40-meeting-table tbody tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 10px!important;padding:13px!important;border:1px solid #dce7f0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 18px rgba(15,72,110,.05)!important}.acmnp40-front-shell .acmnp40-meeting-table tbody td{display:block!important;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;font-size:11px!important}.acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(1),.acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(3),.acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(9){grid-column:1/-1}.acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(1){font-size:13px!important}.acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(3){padding:8px 0!important;border-top:1px dashed #e3ebf1!important;border-bottom:1px dashed #e3ebf1!important}.acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(9){display:flex!important;gap:6px;flex-wrap:wrap;padding-top:4px!important}.acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(9) .acmnp40-mini-btn{flex:1;min-height:36px}
}

/* 8.19.5-p16.5 — true device-width mobile layout, no page-level horizontal scrolling */
@media (max-width:760px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .acmnp40-front-shell{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding-left:8px!important;padding-right:8px!important;
    overflow-x:hidden!important;
  }
  .acmnp40-front-shell .acmnp40-portal-layout,
  .acmnp40-front-shell .acmnp40-front-main,
  .acmnp40-front-shell .acmnp40-page-view,
  .acmnp40-front-shell .acmnp40-front-panel,
  .acmnp40-front-shell .acmnp40-page-heading,
  .acmnp40-front-shell #acmnp40-meeting-table,
  .acmnp40-front-shell .acmnp40-table-scroll{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;overflow-x:hidden!important;
  }
  .acmnp40-front-shell .meeting-center-kpis,
  .acmnp40-front-shell .acmnp40-meeting-kpis,
  .acmnp40-front-shell .acmnp40-front-stats,
  .acmnp40-front-shell .acmnp40-report-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;min-width:0!important;
  }
  .acmnp40-front-shell .meeting-kpi,
  .acmnp40-front-shell .acmnp40-front-stats>div,
  .acmnp40-front-shell .acmnp40-report-stats>div{
    min-width:0!important;width:100%!important;padding:11px!important;
  }
  .acmnp40-front-shell .meeting-kpi span{font-size:11px!important;line-height:1.4!important}
  .acmnp40-front-shell .meeting-kpi strong{font-size:23px!important}
  .acmnp40-front-shell .acmnp40-meeting-filters{
    grid-template-columns:1fr!important;width:100%!important;
  }
  .acmnp40-front-shell .acmnp40-meeting-filters>*{grid-column:1!important;width:100%!important;min-width:0!important}
  .acmnp40-front-shell .acmnp40-meeting-table tbody tr{
    grid-template-columns:1fr!important;width:100%!important;min-width:0!important;
  }
  .acmnp40-front-shell .acmnp40-meeting-table tbody td{
    grid-column:1!important;width:100%!important;min-width:0!important;
    overflow-wrap:anywhere!important;word-break:normal!important;
  }
  .acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(9){display:grid!important;grid-template-columns:1fr!important}
  .acmnp40-front-shell .acmnp40-meeting-table tbody td:nth-child(9) .acmnp40-mini-btn{width:100%!important}

  /* المودالات بعرض الجهاز الحقيقي، وليس 100vw فوق viewport مصطنع. */
  .acmnp40-front-shell .acmnp40-front-modal-bg,
  #acmnp40-meeting-book-modal.acmnp40-front-modal-bg{
    width:100%!important;max-width:100%!important;left:0!important;right:0!important;
    overflow-x:hidden!important;
  }
  #acmnp40-meeting-book-modal .acmnp40-front-modal{
    width:100%!important;max-width:100%!important;left:0!important;right:0!important;
    overflow-x:hidden!important;
  }
  #acmnp40-meeting-book-modal .acmnp40-front-form-grid{padding-left:12px!important;padding-right:12px!important}
  #acmnp40-meeting-book-modal footer{width:100%!important;max-width:100%!important}

  /* أي عنصر مرن لا يُسمح له بتوسيع الصفحة. */
  .acmnp40-front-shell *,#acmnp40-meeting-book-modal *{min-inline-size:0}
}

@media (max-width:380px){
  .acmnp40-front-shell .meeting-center-kpis,
  .acmnp40-front-shell .acmnp40-meeting-kpis,
  .acmnp40-front-shell .acmnp40-front-stats,
  .acmnp40-front-shell .acmnp40-report-stats{gap:7px!important}
  .acmnp40-front-shell .meeting-kpi{padding:10px 8px!important}
}

/* 8.19.6-p16.6 — compact 100% mobile canvas: fit the phone, never pan the page */
@media (max-width:760px){
  html,body{
    inline-size:100%!important;max-inline-size:100%!important;
    margin:0!important;padding-left:0!important;padding-right:0!important;
    overflow-x:clip!important;
  }
  body{position:relative!important}
  .acmnp40-front-shell{
    box-sizing:border-box!important;
    inline-size:100%!important;width:100%!important;max-inline-size:100%!important;max-width:100%!important;
    min-inline-size:0!important;min-width:0!important;
    margin:0!important;padding:0 6px calc(78px + env(safe-area-inset-bottom))!important;
    overflow-x:clip!important;
  }
  .acmnp40-front-shell .acmnp40-portal-layout,
  .acmnp40-front-shell .acmnp40-front-main,
  .acmnp40-front-shell .acmnp40-page-view,
  .acmnp40-front-shell .acmnp40-front-panel,
  .acmnp40-front-shell .acmnp40-page-heading,
  .acmnp40-front-shell .acmnp40-dashboard-page,
  .acmnp40-front-shell .acmnp40-dashboard-group{
    box-sizing:border-box!important;
    inline-size:100%!important;width:100%!important;max-inline-size:100%!important;max-width:100%!important;
    min-inline-size:0!important;min-width:0!important;
    margin-inline:0!important;transform:none!important;
  }
  .acmnp40-front-shell .acmnp40-p1-topbar{
    box-sizing:border-box!important;
    inline-size:100%!important;width:100%!important;max-width:100%!important;
    margin:0!important;padding:7px 6px!important;min-height:58px!important;
  }
  .acmnp40-front-shell .acmnp40-p1-brand h1{font-size:13px!important}
  .acmnp40-front-shell .acmnp40-p1-icon-btn,
  .acmnp40-front-shell .acmnp40-p1-mobile-menu{width:36px!important;height:36px!important;min-width:36px!important}

  .acmnp40-front-shell .acmnp40-page-view{padding-top:12px!important}
  .acmnp40-front-shell .acmnp40-page-heading{
    padding:12px!important;border-radius:14px!important;margin-bottom:9px!important;gap:9px!important;
  }
  .acmnp40-front-shell .acmnp40-page-heading h2{font-size:20px!important;line-height:1.35!important}
  .acmnp40-front-shell .acmnp40-page-heading p{font-size:10.5px!important;line-height:1.6!important}
  .acmnp40-front-shell .acmnp40-page-heading .acmnp40-front-btn,
  .acmnp40-front-shell .acmnp40-page-heading button{min-height:40px!important;padding:8px 10px!important;font-size:13px!important}

  .acmnp40-front-shell .meeting-center-kpis,
  .acmnp40-front-shell .acmnp40-meeting-kpis,
  .acmnp40-front-shell .acmnp40-front-stats,
  .acmnp40-front-shell .acmnp40-report-stats{
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    inline-size:100%!important;width:100%!important;max-width:100%!important;
    gap:6px!important;margin-bottom:9px!important;
  }
  .acmnp40-front-shell .meeting-kpi,
  .acmnp40-front-shell .acmnp40-front-stats>div,
  .acmnp40-front-shell .acmnp40-report-stats>div{
    box-sizing:border-box!important;inline-size:100%!important;width:100%!important;max-width:100%!important;
    min-width:0!important;min-height:74px!important;padding:9px 10px!important;border-radius:13px!important;
  }
  .acmnp40-front-shell .meeting-kpi span,
  .acmnp40-front-shell .acmnp40-front-stats span,
  .acmnp40-front-shell .acmnp40-report-stats span{font-size:10px!important;line-height:1.35!important}
  .acmnp40-front-shell .meeting-kpi strong,
  .acmnp40-front-shell .acmnp40-front-stats strong,
  .acmnp40-front-shell .acmnp40-report-stats strong{font-size:21px!important;line-height:1.15!important;margin-top:3px!important}

  .acmnp40-front-shell .acmnp40-meeting-filters,
  .acmnp40-front-shell .acmnp40-front-toolbar,
  .acmnp40-front-shell .acmnp40-record-toolbar{
    box-sizing:border-box!important;inline-size:100%!important;width:100%!important;max-width:100%!important;
    padding:8px!important;gap:6px!important;margin-bottom:9px!important;
  }
  .acmnp40-front-shell input,
  .acmnp40-front-shell select,
  .acmnp40-front-shell textarea{max-inline-size:100%!important;min-inline-size:0!important}

  .acmnp40-front-shell .acmnp40-meeting-table,
  .acmnp40-front-shell .acmnp40-meeting-table tbody,
  .acmnp40-front-shell .acmnp40-meeting-table tbody tr,
  .acmnp40-front-shell .acmnp40-meeting-table tbody td{
    box-sizing:border-box!important;inline-size:100%!important;width:100%!important;max-inline-size:100%!important;max-width:100%!important;min-width:0!important;
  }
  .acmnp40-front-shell .acmnp40-meeting-table tbody tr{padding:10px!important;gap:6px!important;border-radius:13px!important}
  .acmnp40-front-shell .acmnp40-meeting-table tbody td{font-size:10.5px!important;overflow-wrap:anywhere!important}

  /* bottom nav must also fit exactly, no hidden sixth item outside the screen */
  .acmnp40-front-shell .acmnp40-p3-mobile-nav,
  .acmnp40-ad-mobile-nav,
  .acmnp40-consultant-mobile-nav{
    box-sizing:border-box!important;inline-size:100%!important;width:100%!important;max-width:100%!important;
    left:0!important;right:0!important;margin:0!important;padding-left:4px!important;padding-right:4px!important;
    overflow:hidden!important;
  }
  .acmnp40-front-shell .acmnp40-p3-mobile-nav button,
  .acmnp40-ad-mobile-nav button,
  .acmnp40-consultant-mobile-nav button{min-width:0!important;padding-left:2px!important;padding-right:2px!important}

  /* booking modal: exact content-box width, no 100vw + padding overflow */
  #acmnp40-meeting-book-modal.acmnp40-front-modal-bg,
  #acmnp40-meeting-book-modal .acmnp40-front-modal,
  #acmnp40-meeting-book-modal form,
  #acmnp40-meeting-book-modal .acmnp40-front-form-grid,
  #acmnp40-meeting-book-modal footer{
    box-sizing:border-box!important;inline-size:100%!important;width:100%!important;max-inline-size:100%!important;max-width:100%!important;
    min-inline-size:0!important;min-width:0!important;margin-inline:0!important;
  }

  /* Hard stop for accidental page-level overflow. Functional inner scrollers (Gantt etc.) keep their own scrolling. */
  .acmnp40-front-shell :where(section,article,header,footer,main,nav,div,form,fieldset){max-inline-size:100%;min-inline-size:0}
}
