/**
 * Accountability Seal records table — styling.
 *
 * Matches the myobi.eu look (Neve theme + TablePress defaults):
 *   font Lato, brand blue #0067bf, TablePress table colours
 *   (head #d9edf7, even-row stripe #f9f9f9, hover #f3f3f3, borders #ddd).
 * Kept lightweight; inherits the theme's font size / line height.
 */

.nxas-seal-table {
	--nxas-brand: #0067bf;
	--nxas-brand-dark: #00539a;
	--nxas-text: #111;
	--nxas-head-bg: #d9edf7;
	--nxas-even-bg: #f9f9f9;
	--nxas-hover-bg: #f3f3f3;
	--nxas-border: #ddd;

	font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;
	color: var(--nxas-text);
	margin: 0 0 1.5rem;
}

/* ---- Controls bar (search + per-page) -------------------------------- */

.nxas-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.nxas-search-input {
	flex: 1 1 14rem;
	min-width: 10rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--nxas-border);
	border-radius: 3px;
	font: inherit;
	color: inherit;
	background: #fff;
}

.nxas-search-input:focus {
	outline: 2px solid var(--nxas-brand);
	outline-offset: 1px;
	border-color: var(--nxas-brand);
}

.nxas-btn {
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--nxas-border);
	border-radius: 3px;
	background: #fff;
	color: var(--nxas-text);
	font: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nxas-btn:hover:not(:disabled) {
	background: var(--nxas-hover-bg);
}

.nxas-btn:focus-visible {
	outline: 2px solid var(--nxas-brand);
	outline-offset: 1px;
}

.nxas-btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.nxas-btn--primary {
	background: var(--nxas-brand);
	border-color: var(--nxas-brand);
	color: #fff;
}

.nxas-btn--primary:hover:not(:disabled) {
	background: var(--nxas-brand-dark);
	border-color: var(--nxas-brand-dark);
}

.nxas-perpage {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
}

.nxas-perpage-select {
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--nxas-border);
	border-radius: 3px;
	font: inherit;
	color: inherit;
	background: #fff;
}

/* ---- Status / error line ---------------------------------------------- */

.nxas-status {
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 3px;
	background: var(--nxas-even-bg);
	border: 1px solid var(--nxas-border);
}

.nxas-status--loading {
	color: #5a5a5a;
}

.nxas-status--error {
	background: #fdf2f2;
	border-color: #f0c4c4;
	color: #9a2323;
}

.nxas-status--empty {
	color: #5a5a5a;
}

.nxas-retry {
	margin: 0 0 0.75rem;
}

/* ---- Table ------------------------------------------------------------ */

.nxas-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nxas-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
}

.nxas-table th,
.nxas-table td {
	padding: 0.5rem;
	text-align: left;
	vertical-align: top;
	border: none;
}

.nxas-table thead th {
	background-color: var(--nxas-head-bg);
	color: var(--nxas-text);
	font-weight: 700;
	vertical-align: middle;
}

.nxas-table tbody tr {
	border-top: 1px solid var(--nxas-border);
}

.nxas-table tbody tr:nth-child(even) {
	background-color: var(--nxas-even-bg);
}

.nxas-table tbody tr:hover {
	background-color: var(--nxas-hover-bg);
}

/* Both selectors carry .nxas-table so they outrank the generic
   ".nxas-table th, .nxas-table td { text-align:left }" rule above —
   with plain ".nxas-col-seal" the td cells would stay left-aligned. */
.nxas-table th.nxas-col-seal,
.nxas-table td.nxas-col-seal {
	text-align: center;
	white-space: nowrap;
	width: 5.5rem;
}

/* ---- Pager ------------------------------------------------------------ */

.nxas-pager {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
}

.nxas-page-label {
	color: #5a5a5a;
	min-width: 4.5rem;
	text-align: center;
}

/* ---- Small screens ----------------------------------------------------- */

@media (max-width: 600px) {
	.nxas-perpage {
		margin-left: 0;
		flex-basis: 100%;
	}
}
