/* Shared table pagination, matching the supplied reference. */
html body .md-pagination{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-direction:row!important;flex-wrap:wrap;gap:20px!important;padding:16px!important;min-height:64px;box-sizing:border-box;background:#fff;color:var(--text-3);font-size:14px;border-top:1px solid var(--border);flex:0 0 auto}
.md-pagination-count,.md-pagination-pages{display:flex;align-items:center;gap:8px;white-space:nowrap}
.md-pagination-count b{font-weight:400}
html body .md-pagination button{display:grid;place-items:center;width:32px!important;min-width:32px!important;height:32px!important;padding:0!important;border:1px solid #e5e6eb!important;border-radius:6px!important;background:#fff!important;color:var(--text-2)!important;font-family:inherit;font-size:16px;font-weight:400;line-height:1;cursor:pointer}
html body .md-pagination button.active{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
html body .md-pagination button:disabled{opacity:.4;cursor:not-allowed}
html body .md-pagination input{box-sizing:border-box;width:44px!important;height:32px!important;min-height:32px!important;padding:0 4px!important;text-align:center;border:1px solid #e5e6eb;border-radius:6px;background:#fff;appearance:textfield;color:var(--text-2)}
.md-pagination input::-webkit-inner-spin-button,.md-pagination input::-webkit-outer-spin-button{appearance:none;margin:0}
html body .md-pagination select{width:96px!important;height:32px!important;min-height:32px!important;padding:0 8px!important;border:1px solid #e5e6eb;border-radius:6px;background:#fff;color:var(--text-2);font:inherit}
.md-pagination button:focus-visible,.md-pagination input:focus-visible,.md-pagination select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Reserve the original footer space so the final row stays above the fixed bar. */
html body .page.show .md-pagination{position:fixed!important;left:var(--pagination-left)!important;right:auto!important;bottom:0!important;top:auto!important;width:var(--pagination-width)!important;height:auto!important;min-height:64px!important;margin:0!important;z-index:60!important;border-radius:0!important;padding:16px!important}
.md-pagination-space{height:64px;flex:0 0 auto;pointer-events:none}
