/* VBQ — Bảng hồ sơ chứng nhận (widget vbq_cert_table). */
.vbq-cert-table {
	--vbq-cert-accent: #105430;
	--vbq-cert-border: #9c9c9c;
}

.vbq-cert-table__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	margin-bottom: 24px;
}

.vbq-cert-table__filter-label {
	color: var(--vbq-cert-accent);
}

.vbq-cert-table .vbq-cert-table__filter button.vbq-cert-table__tab {
	padding: 4px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--vbq-cert-accent);
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.vbq-cert-table .vbq-cert-table__filter button.vbq-cert-table__tab:hover,
.vbq-cert-table .vbq-cert-table__filter button.vbq-cert-table__tab:focus {
	background: none;
	color: var(--vbq-cert-accent);
}

.vbq-cert-table .vbq-cert-table__filter button.vbq-cert-table__tab.is-active {
	border-bottom-color: var(--vbq-cert-accent);
}

.vbq-cert-table__scroll {
	overflow-x: auto;
}

.vbq-cert-table__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.vbq-cert-table__table th,
.vbq-cert-table__table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--vbq-cert-border);
	background: none;
	text-align: left;
	vertical-align: top;
}

.vbq-cert-table__cell--index {
	width: 64px;
	text-align: center !important;
}

.vbq-cert-table.is-loading .vbq-cert-table__body {
	opacity: 0.4;
	transition: opacity 0.2s;
}

.vbq-cert-table__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
}

.vbq-cert-table__pagination:empty {
	display: none;
}

.vbq-cert-table .vbq-cert-table__pagination button.vbq-cert-table__page {
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid var(--vbq-cert-accent);
	border-radius: 0;
	background: transparent;
	color: var(--vbq-cert-accent);
	font: inherit;
	cursor: pointer;
}

.vbq-cert-table .vbq-cert-table__pagination button.vbq-cert-table__page:hover,
.vbq-cert-table .vbq-cert-table__pagination button.vbq-cert-table__page:focus,
.vbq-cert-table .vbq-cert-table__pagination button.vbq-cert-table__page.is-active {
	background: var(--vbq-cert-accent);
	color: #fff;
}

/* Mobile: mỗi dòng thành một thẻ, nhãn cột lấy từ data-label. */
@media (max-width: 767px) {
	.vbq-cert-table__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.vbq-cert-table__table tr {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid var(--vbq-cert-border);
	}

	.vbq-cert-table__table td {
		display: flex;
		gap: 12px;
		justify-content: space-between;
		padding: 4px 0;
		border: 0;
		text-align: right;
	}

	.vbq-cert-table__table td::before {
		content: attr(data-label);
		flex-shrink: 0;
		font-weight: 600;
		text-align: left;
	}

	.vbq-cert-table__cell--index {
		width: auto;
		text-align: right !important;
	}

	.vbq-cert-table__empty td::before {
		content: none;
	}
}

/* Bỏ màu nền xen kẽ của theme Hello Elementor (table tbody > tr:nth-child(odd) > td). */
.vbq-cert-table .vbq-cert-table__table tbody > tr > td,
.vbq-cert-table .vbq-cert-table__table thead > tr > th {
	background-color: transparent;
}
