.zrm-table-wrap {
	--zrm-table-header-bg: transparent;
	--zrm-table-header-border: var(--blue_300, #00417d);
	--zrm-table-row-border: #e2e8f0;
}

/* ── Scroll wrapper for mobile ─────────────────── */

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

/* ── Table ─────────────────────────────────────── */

.zrm-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.zrm-table th,
.zrm-table td {
	padding: 14px 16px;
	vertical-align: top;
}

/* ── Header ────────────────────────────────────── */

.zrm-table thead th {
	background: var(--zrm-table-header-bg);
	border-bottom: 2px solid var(--zrm-table-header-border);
	white-space: nowrap;
}

/* ── Body rows ─────────────────────────────────── */

.zrm-table tbody tr {
	border-bottom: 1px solid var(--zrm-table-row-border);
}

.zrm-table tbody tr:last-child {
	border-bottom: none;
}

/* ── Label column ──────────────────────────────── */

.zrm-table__label-col {
	white-space: nowrap;
}

/* ── Section header row ────────────────────────── */

.zrm-table__section-row td {
	padding-top: 24px;
	border-bottom: 2px solid var(--zrm-table-header-border);
}

/* ── Values: right-align numeric columns ───────── */

.zrm-table thead th:not(.zrm-table__label-col),
.zrm-table tbody td:not(.zrm-table__label-col) {
	text-align: right;
}

/* ── Caption / footnotes ───────────────────────── */

.zrm-table__caption {
	margin-top: 16px;
	font-size: 0.85em;
	color: #64748b;
	line-height: 1.5;
}

/* ── Download button ───────────────────────────── */

.zrm-table__download {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}

.zrm-table__download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 0.9em;
	color: var(--blue_300, #00417d);
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.zrm-table__download-btn:hover {
	background-color: var(--blue_300, #00417d);
	color: #fff;
}
