/* Metaxoft Table for Elementor */

.mxt-table-wrap {
	width: 100%;
}

.mxt-search {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 14px;
}

.mxt-search-input {
	max-width: 100%;
	width: 260px;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
}

.mxt-table-scroll {
	width: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

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

.mxt-table th,
.mxt-table td {
	text-align: left;
	vertical-align: middle;
	box-sizing: border-box;
}

.mxt-table tbody th {
	font-weight: 600;
}

.mxt-table tbody tr > * {
	transition: background-color .2s ease, color .2s ease;
}

.mxt-table tr[hidden] {
	display: none !important;
}

.mxt-table a {
	color: inherit;
	text-decoration: none;
}

.mxt-table a:hover {
	text-decoration: underline;
}

.mxt-cell-inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mxt-icon {
	display: inline-flex;
	line-height: 1;
}

.mxt-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Sticky header (set a max height so the body scrolls) */
.mxt-sticky-yes .mxt-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
}

/* Sorting */
.mxt-sortable {
	cursor: pointer;
	user-select: none;
}

.mxt-sortable:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.mxt-sortable .mxt-cell-inner::after {
	content: "";
	margin-left: 4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: .35;
	transition: transform .2s ease, opacity .2s ease;
}

.mxt-sortable[aria-sort="ascending"] .mxt-cell-inner::after {
	opacity: 1;
	transform: rotate(180deg);
}

.mxt-sortable[aria-sort="descending"] .mxt-cell-inner::after {
	opacity: 1;
}

.mxt-no-results {
	padding: 16px;
	text-align: center;
	color: #6b7280;
}

.mxt-no-results[hidden] {
	display: none;
}

/* Stacked responsive mode (default Elementor breakpoints: 1024px tablet, 767px mobile) */
@media (max-width: 1024px) {
	.mxt-resp-stack-tablet .mxt-table,
	.mxt-resp-stack-tablet .mxt-table tbody,
	.mxt-resp-stack-tablet .mxt-table tr {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.mxt-resp-stack-tablet .mxt-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.mxt-resp-stack-tablet .mxt-table tr {
		margin-bottom: 16px;
	}

	.mxt-resp-stack-tablet .mxt-table tbody td,
	.mxt-resp-stack-tablet .mxt-table tbody th {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		width: 100%;
		text-align: right;
	}

	.mxt-resp-stack-tablet .mxt-table tbody td::before,
	.mxt-resp-stack-tablet .mxt-table tbody th::before {
		content: attr(data-label);
		flex: 0 0 40%;
		font-weight: 600;
		text-align: left;
	}
}

@media (max-width: 767px) {
	.mxt-resp-stack-mobile .mxt-table,
	.mxt-resp-stack-mobile .mxt-table tbody,
	.mxt-resp-stack-mobile .mxt-table tr {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.mxt-resp-stack-mobile .mxt-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.mxt-resp-stack-mobile .mxt-table tr {
		margin-bottom: 16px;
	}

	.mxt-resp-stack-mobile .mxt-table tbody td,
	.mxt-resp-stack-mobile .mxt-table tbody th {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		width: 100%;
		text-align: right;
	}

	.mxt-resp-stack-mobile .mxt-table tbody td::before,
	.mxt-resp-stack-mobile .mxt-table tbody th::before {
		content: attr(data-label);
		flex: 0 0 40%;
		font-weight: 600;
		text-align: left;
	}
}
