/* Portal v3 phase 1, rule 13: the smallest scoped fixes for existing pages inside the new shell (one group per page and defect) */
/* Every rule sits under html.shell-v3 (the new shell) or html.portal-v3 / html.pill-v3 (the restyled components), with
   :not([data-skin]) so the apps never match; with the constants off nothing here applies. --p3-top-h is the new top
   bar's height (shell-topbar.css: min-height 56 px plus the safe area), which today's sticky offsets do not know. */
html.shell-v3:not([data-skin]) .gym.p3{--p3-top-h:calc(56px + var(--safe-t, 0px))}

/* Every page with a table that fits its card (Members, Retail, Tiers, Seasons, Support, Marketing, Trainers, Hours,
   Revenue, Reports, ...), 1100 px and wider: the header row sticks to the window's top (gym.css: .gym .tbl th{top:0}),
   so under the new sticky top bar it slid under the bar and was hidden while the table scrolled. It sticks under the bar. */
@media (min-width:1100px){
  html.shell-v3:not([data-skin]) .gym.p3 main .tbl-wrap.fits:not(.imp-grid) .tbl th{top:var(--p3-top-h)}
}

/* Finance and Accounting statements (ATable): a table that fits its card sticks its header row to the window's top
   from 900 px (finance.css moves it under the old phone bar only below 900); the new top bar shows at every width, so
   the header sticks under it at every width. */
html.shell-v3:not([data-skin]) .gym.p3 main .atbl-w.fits .atbl th{top:var(--p3-top-h)}

/* Point of sale, 981 px and wider: the ticket column sticks 16 px from the window's top (gym.css .ticket), which put
   its total and Charge button's card top under the new top bar while the item list scrolled. 16 px under the bar. */
html.shell-v3:not([data-skin]) .gym.p3 main .pos>.ticket{top:calc(var(--p3-top-h) + var(--s-4))}

/* Accounting > Settings, 1024 px and wider: the side list of setting groups sticks 16 px from the window's top
   (finance.css .ast-side), so while a long settings page scrolled its first groups went under the new top bar. */
@media (min-width:1024px){
  html.shell-v3:not([data-skin]) .gym.p3 main .ast-side{top:calc(var(--p3-top-h) + var(--s-4))}
}

/* Summary's department rows and Finance's Overview rows (and every other "i" in a page): the info button's 44 px touch
   area (shells.css .info::after) is centred on the 16 px icon, so where a label's last word and its "i" end at the row's
   end edge (Arabic at 360, 390 and 1024: "دخل التدريب الشخصي", "من عميل محتمل إلى عضو"; English at 1024: "Membership
   income"; Finance's VAT line in Arabic at 1440) it stuck 14 px out past the label and the label's box overflowed. The
   touch area keeps its 44 x 44 px but ends at the icon's end edge, reaching back over the label instead. Nothing visible
   changes. (The new sidebar, 26 px narrower than today's, moves the wrap points; today's portal has the same overflow at
   other widths.) */
html.portal-v3:not([data-skin]) .gym main .info::after{left:auto;right:auto;inset-inline-end:0;transform:translateY(-50%)}
