.gh-advanced-table {
    --gh-table-mobile-gap: 14px;
    --gh-table-mobile-radius: 14px;
    --gh-table-mobile-border: #dce4ef;
    --gh-table-scroll-thumb: #94a3b8;
    --gh-table-scroll-thumb-hover: #64748b;
    --gh-table-scroll-track: #edf2f7;
    --gh-table-scroll-size: 8px;
    --gh-table-scroll-radius: 999px;
    color: #334155;
    font-family: "Manrope Variable", Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}
.gh-advanced-table, .gh-advanced-table * { box-sizing: border-box; }
.gh-advanced-table__shell { position: relative; overflow: hidden; background: #fff; }
.gh-advanced-table__scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gh-table-scroll-thumb) var(--gh-table-scroll-track); }
.gh-advanced-table__scroll::-webkit-scrollbar { height: var(--gh-table-scroll-size); }
.gh-advanced-table__scroll::-webkit-scrollbar-track { border-radius: var(--gh-table-scroll-radius); background: var(--gh-table-scroll-track); }
.gh-advanced-table__scroll::-webkit-scrollbar-thumb { min-width: 44px; border: 2px solid var(--gh-table-scroll-track); border-radius: var(--gh-table-scroll-radius); background: var(--gh-table-scroll-thumb); }
.gh-advanced-table__scroll::-webkit-scrollbar-thumb:hover { background: var(--gh-table-scroll-thumb-hover); }
.gh-advanced-table table { width: 100%; min-width: 100%; border: 0; border-collapse: separate; border-spacing: 0; table-layout: auto; margin: 0; }
.gh-advanced-table caption { margin: 0; font-weight: 750; }
.gh-advanced-table th, .gh-advanced-table td { vertical-align: middle; transition: background-color .2s ease, color .2s ease; }
.gh-advanced-table tr > :last-child { border-right-width: 0 !important; }
.gh-advanced-table tbody tr:last-child > * { border-bottom-width: 0 !important; }
.gh-advanced-table .is-align-left { text-align: left; }
.gh-advanced-table .is-align-center { text-align: center; }
.gh-advanced-table .is-align-right { text-align: right; }
.gh-advanced-table tbody tr[style] > * { background-color: var(--gh-table-row-bg) !important; color: var(--gh-table-row-colour); }
.gh-advanced-table tbody a { text-decoration: none; }
.gh-table-status { display: inline-grid; width: 1.35em; height: 1.35em; place-items: center; font-weight: 800; line-height: 1; vertical-align: -.1em; }
.gh-advanced-table.has-sticky-header thead th { position: sticky; z-index: 3; top: 0; }
.gh-advanced-table.has-sticky-first-column tr > :first-child { position: sticky; z-index: 2; left: 0; background-clip: padding-box; }
.gh-advanced-table.has-sticky-header.has-sticky-first-column thead tr > :first-child { z-index: 4; }

@media (max-width: 767px) {
    .gh-advanced-table[data-mobile-layout="scroll"] table { min-width: 680px; }
    .gh-advanced-table[data-mobile-layout="stacked"] .gh-advanced-table__shell,
    .gh-advanced-table[data-mobile-layout="stacked"] .gh-advanced-table__scroll { overflow: visible; background: transparent; border: 0 !important; box-shadow: none !important; }
    .gh-advanced-table[data-mobile-layout="stacked"] table,
    .gh-advanced-table[data-mobile-layout="stacked"] tbody { display: block; width: 100%; }
    .gh-advanced-table[data-mobile-layout="stacked"] colgroup,
    .gh-advanced-table[data-mobile-layout="stacked"] thead { display: none; }
    .gh-advanced-table[data-mobile-layout="stacked"] tbody tr { display: block; overflow: hidden; width: 100%; margin: 0 0 var(--gh-table-mobile-gap); border: 1px solid var(--gh-table-mobile-border); border-radius: var(--gh-table-mobile-radius); background: #fff; }
    .gh-advanced-table[data-mobile-layout="stacked"] tbody tr:last-child { margin-bottom: 0; }
    .gh-advanced-table[data-mobile-layout="stacked"] tbody td,
    .gh-advanced-table[data-mobile-layout="stacked"] tbody th { position: static !important; display: grid; width: 100%; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 16px; border-width: 0 0 1px !important; text-align: right !important; }
    .gh-advanced-table[data-mobile-layout="stacked"] tbody tr > :last-child { border-bottom-width: 0 !important; }
    .gh-advanced-table[data-mobile-layout="stacked"] tbody td::before,
    .gh-advanced-table[data-mobile-layout="stacked"] tbody th::before { content: attr(data-label); min-width: 0; font-weight: 700; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .gh-advanced-table th, .gh-advanced-table td { transition: none; }
}
