/* ============================================================================
   rz-global.css  —  styles the controls that rz-grid.js injects into your
   existing .table-wrap tables (search box, sort icons, pager).
   Uses your site.css tokens, so light/dark themes work automatically.
   Load AFTER site.css:
       <link rel="stylesheet" href="~/css/rz-global.css" asp-append-version="true" />
   ============================================================================ */

/* sortable header affordance */
.table thead th.rzg-sortable { cursor: pointer; user-select: none; }
.table thead th.rzg-sortable:hover { color: var(--text); }
.table thead th .rzg-sort { margin-left: 6px; opacity: .35; font-size: 10px; }
.table thead th .rzg-sort.fa-sort-up,
.table thead th .rzg-sort.fa-sort-down { opacity: 1; color: var(--brand-600); }

/* toolbar + search (injected at top of .table-wrap) */
.rzg-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.rzg-search { position: relative; }
.rzg-search > i {
	position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
	color: var(--text-faint); font-size: 13px; pointer-events: none;
}
.rzg-search input {
	height: 34px; width: 230px; max-width: 55vw; padding: 0 12px 0 32px;
	background: var(--bg-surface); border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm); color: var(--text); font-size: 13.5px;
}
.rzg-search input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }

/* pager (injected at bottom of .table-wrap) */
.rzg-pager {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 16px; border-top: 1px solid var(--border);
	font-size: 13px; color: var(--text-muted); flex-wrap: wrap; background: var(--bg-surface);
}
.rzg-pager select {
	height: 30px; margin-left: 6px; padding: 0 6px; background: var(--bg-surface);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text);
}
.rzg-btns { display: flex; align-items: center; gap: 4px; }
.rzg-btns button {
	min-width: 32px; height: 32px; padding: 0 8px; background: var(--bg-surface);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	color: var(--text); font-size: 13px; cursor: pointer;
}
.rzg-btns button:hover:not(:disabled) { background: var(--bg-hover); }
.rzg-btns button.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.rzg-btns button:disabled { opacity: .4; cursor: default; }
