.jdt-block {
	margin: 0;
}

.jdt-error {
	color: #b32d2e;
	font-style: italic;
}

.jdt-empty-notice {
	color: #757575;
	font-style: italic;
}

.jdt-table-scroll {
	width: 100%;
	overflow-x: auto;
}

.jdt-table {
	width: 100%;
	border-collapse: collapse;
	box-sizing: border-box;
}

.jdt-table th,
.jdt-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	word-break: break-word;
}

.jdt-table thead th {
	border-bottom-width: 2px;
	font-weight: 700;
}

/* Stacked card layout: applied by JS (.jdt-is-stacked) whenever the table
   would overflow its container — regardless of viewport width — and always
   below 480px as a no-JS fallback. */
.jdt-is-stacked .jdt-table thead {
	display: none;
}

.jdt-is-stacked .jdt-table,
.jdt-is-stacked .jdt-table tbody,
.jdt-is-stacked .jdt-table tr,
.jdt-is-stacked .jdt-table td {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.jdt-is-stacked .jdt-table tr {
	border-bottom: 2px solid rgba(0, 0, 0, 0.15);
	padding: 8px 0;
}

.jdt-is-stacked .jdt-table td {
	border-bottom: none;
	padding: 6px 12px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	text-align: right;
}

.jdt-is-stacked .jdt-table td::before {
	content: attr(data-label);
	font-weight: 600;
	text-align: left;
	flex: 0 0 auto;
}

.jdt-is-stacked .jdt-cell-value {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
	overflow-wrap: anywhere;
}

@media ( max-width: 480px ) {
	.jdt-table thead {
		display: none;
	}

	.jdt-table,
	.jdt-table tbody,
	.jdt-table tr,
	.jdt-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.jdt-table tr {
		border-bottom: 2px solid rgba(0, 0, 0, 0.15);
		padding: 8px 0;
	}

	.jdt-table td {
		border-bottom: none;
		padding: 6px 12px;
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 12px;
		text-align: right;
	}

	.jdt-table td::before {
		content: attr(data-label);
		font-weight: 600;
		text-align: left;
		flex: 0 0 auto;
	}

	.jdt-cell-value {
		flex: 1 1 auto;
		min-width: 0;
		word-break: break-word;
		overflow-wrap: anywhere;
	}
}
