/* Gematrixx V198 — global table visual standard + sticky-header layer */
:root{
  --gmx-table-head-bg:color-mix(in srgb,var(--gold,#c9a84c) 16%,var(--bg-card,#000));
  --gmx-table-head-fg:var(--gold-glow,var(--gold,#e8c96a));
  --gmx-table-body-bg:var(--bg-card,#000);
  --gmx-table-line:color-mix(in srgb,var(--border,#fff) 22%,transparent);
  --gmx-table-hover-bg:color-mix(in srgb,var(--gold,#c9a84c) 8%,var(--bg-card,#000));
}
html[data-theme="light"]{
  --gmx-table-head-bg:color-mix(in srgb,var(--gold,#8d490d) 13%,var(--bg-card,#fff));
  --gmx-table-head-fg:var(--gold,#8d490d);
  --gmx-table-body-bg:var(--bg-card,#fff);
  --gmx-table-line:color-mix(in srgb,var(--border,#000) 22%,transparent);
  --gmx-table-hover-bg:color-mix(in srgb,var(--gold,#8d490d) 7%,var(--bg-card,#fff));
}
body table:not(.gmx74-card-table):not(.gmx-card-table):not(.qnum-mobile-cards):not(.v70-mobile-cards):not(.gmx-table-optout){background-color:var(--gmx-table-body-bg)!important}
body table:not(.gmx74-card-table):not(.gmx-card-table):not(.qnum-mobile-cards):not(.v70-mobile-cards):not(.gmx-table-optout)>thead{position:sticky;top:0;z-index:24;background:var(--gmx-table-head-bg)!important}
body table:not(.gmx74-card-table):not(.gmx-card-table):not(.qnum-mobile-cards):not(.v70-mobile-cards):not(.gmx-table-optout)>thead>tr>:is(th,td){
  background:var(--gmx-table-head-bg)!important;color:var(--gmx-table-head-fg)!important;border-color:var(--gmx-table-line)!important;font-weight:800!important;
  box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--gold,#c9a84c) 58%,transparent);background-clip:padding-box!important
}
body table:not(.gmx74-card-table):not(.gmx-card-table):not(.qnum-mobile-cards):not(.v70-mobile-cards):not(.gmx-table-optout)>tbody>tr:not(.tot):not([class*="total"]):not([class*="summary"]):not([class*="match"]):not([class*="highlight"]):not([class*="selected"]):not([class*="active"]):not([class*="current"]):not([class*="today"]):not([style*="background"])>:is(td,th):not(.td-match):not(.ss-glow):not(.bc-highlight):not([class*="match"]):not([class*="highlight"]):not([class*="glow"]):not([class*="selected"]):not([class*="active"]):not([class*="current"]):not([class*="today"]):not([class*="special"]):not([class*="success"]):not([class*="warning"]):not([class*="danger"]):not([class*="error"]):not([class*="empty"]):not([style*="background"]){background-color:var(--gmx-table-body-bg)!important;border-color:var(--gmx-table-line)!important}
body table:not(.gmx74-card-table):not(.gmx-card-table):not(.qnum-mobile-cards):not(.v70-mobile-cards):not(.gmx-table-optout)>tbody>tr:not(.tot):not([class*="total"]):not([class*="summary"]):not([class*="match"]):not([class*="highlight"]):not([class*="selected"]):not([class*="active"]):not([style*="background"]):hover>:is(td,th):not(.td-match):not(.ss-glow):not(.bc-highlight):not([class*="match"]):not([class*="highlight"]):not([class*="glow"]):not([class*="selected"]):not([class*="active"]):not([class*="special"]):not([class*="empty"]):not([style*="background"]){background-color:var(--gmx-table-hover-bg)!important}
#pageQuran #pg-explore .tw>table>thead{position:static!important;top:auto!important}
#gmxGlobalTableSticky198{position:fixed!important;display:none;overflow:hidden!important;z-index:490!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:0 8px 18px rgba(0,0,0,.22)!important}
#gmxGlobalTableSticky198.is-visible{display:block!important}
#gmxGlobalTableSticky198 table{margin:0!important;border-collapse:collapse!important;table-layout:fixed!important;background:var(--gmx-table-body-bg)!important}
#gmxGlobalTableSticky198 table>thead{position:static!important;top:auto!important;display:table-header-group!important}
#gmxGlobalTableSticky198 tr{display:table-row!important}
#gmxGlobalTableSticky198 th,#gmxGlobalTableSticky198 td{box-sizing:border-box!important}
@media(max-width:820px){body table:not(.gmx74-card-table):not(.gmx-card-table):not(.qnum-mobile-cards):not(.v70-mobile-cards):not(.gmx-table-optout)>thead>tr>:is(th,td){box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--gold,#c9a84c) 60%,transparent)}}
