/* Elementor widget — لیست آزمایشگاه‌ها */

.mll-labs-widget {
	--mll-accent: #2563eb;
	--mll-accent-soft: #eff6ff;
	--mll-text: #0f172a;
	--mll-muted: #64748b;
	--mll-border: #e2e8f0;
	--mll-radius: 12px;
	direction: rtl;
	text-align: right;
	color: var(--mll-text);
}

.mll-labs-widget__title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	line-height: 1.4;
	font-weight: 700;
}

.mll-labs-widget__toolbar {
	margin-bottom: 1rem;
}

.mll-labs-widget__search {
	width: 100%;
	max-width: 420px;
	padding: 0.7rem 1rem;
	border: 1px solid var(--mll-border);
	border-radius: 10px;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mll-labs-widget__search:focus {
	outline: none;
	border-color: var(--mll-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.mll-labs-widget__table-wrap {
	overflow-x: auto;
}

.mll-labs-widget__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}

.mll-labs-widget__table th,
.mll-labs-widget__table td {
	padding: 0.9rem 1rem;
	vertical-align: middle;
	text-align: right;
}

.mll-labs-row.is-hidden {
	display: none;
}

.mll-labs-row__name a {
	color: var(--mll-accent);
	text-decoration: none;
	font-weight: 700;
}

.mll-labs-row__name a:hover {
	text-decoration: underline;
}

.mll-labs-phone {
	color: var(--mll-accent);
	text-decoration: none;
	direction: ltr;
	display: inline-block;
	font-weight: 600;
}

.mll-labs-phone:hover {
	text-decoration: underline;
}

.mll-labs-row__logo img {
	max-width: 48px;
	max-height: 48px;
	object-fit: contain;
	border-radius: 8px;
}

.mll-labs-row__address {
	min-width: 180px;
	line-height: 1.65;
	color: var(--mll-muted);
}

.mll-labs-badge {
	display: inline-block;
	line-height: 1.4;
}

.mll-labs-widget__empty,
.mll-labs-widget__no-results {
	margin: 1rem 0 0;
	padding: 1rem;
	text-align: center;
	color: var(--mll-muted);
	background: #f8fafc;
	border-radius: var(--mll-radius);
}

/* ── 1. Classic ── */
.mll-labs-widget--classic .mll-labs-widget__table-wrap {
	border: 1px solid var(--mll-border);
	border-radius: var(--mll-radius);
	background: #fff;
}

.mll-labs-widget--classic .mll-labs-widget__table th,
.mll-labs-widget--classic .mll-labs-widget__table td {
	border-bottom: 1px solid #eef2f7;
}

.mll-labs-widget--classic .mll-labs-widget__table thead th {
	background: #f8fafc;
	font-weight: 700;
	color: #334155;
	white-space: nowrap;
}

.mll-labs-widget--classic .mll-labs-widget__table tbody tr:last-child td {
	border-bottom: none;
}

.mll-labs-widget--classic .mll-labs-widget__table tbody tr:hover {
	background: #f8fbff;
}

/* ── 2. Striped ── */
.mll-labs-widget--striped .mll-labs-widget__table-wrap {
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.mll-labs-widget--striped .mll-labs-widget__table thead th {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	color: #1e293b;
	font-weight: 800;
	border-bottom: 2px solid #e2e8f0;
}

.mll-labs-widget--striped .mll-labs-widget__table tbody tr:nth-child(even) {
	background: #f8fafc;
}

.mll-labs-widget--striped .mll-labs-widget__table tbody tr:hover {
	background: #eff6ff;
}

.mll-labs-widget--striped .mll-labs-widget__search {
	border-radius: 999px;
	padding-inline: 1.15rem;
}

/* ── 3. Glass ── */
.mll-labs-widget--glass {
	padding: 1.25rem;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 252, 0.55) 100%);
	border: 1px solid rgba(255, 255, 255, 0.65);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
	backdrop-filter: blur(12px);
}

.mll-labs-widget--glass .mll-labs-widget__table-wrap {
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.8);
}

.mll-labs-widget--glass .mll-labs-widget__table thead th {
	background: rgba(255, 255, 255, 0.55);
	color: #334155;
	font-weight: 700;
	border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mll-labs-widget--glass .mll-labs-widget__table tbody tr {
	border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.mll-labs-widget--glass .mll-labs-widget__table tbody tr:hover {
	background: rgba(255, 255, 255, 0.65);
}

.mll-labs-widget--glass .mll-labs-widget__search {
	background: rgba(255, 255, 255, 0.75);
	border-color: rgba(148, 163, 184, 0.35);
}

/* ── 4. Cards ── */
.mll-labs-widget--cards .mll-labs-widget__table-wrap {
	overflow: visible;
}

.mll-labs-widget--cards .mll-labs-widget__table {
	border-collapse: separate;
	border-spacing: 0 12px;
	min-width: 680px;
}

.mll-labs-widget--cards .mll-labs-widget__table thead th {
	background: transparent;
	color: #64748b;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding-bottom: 0.35rem;
}

.mll-labs-widget--cards .mll-labs-widget__table tbody tr td {
	background: #fff;
	border-top: 1px solid #e8edf5;
	border-bottom: 1px solid #e8edf5;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mll-labs-widget--cards .mll-labs-widget__table tbody tr td:first-child {
	border-right: 1px solid #e8edf5;
	border-radius: 0 14px 14px 0;
}

.mll-labs-widget--cards .mll-labs-widget__table tbody tr td:last-child {
	border-left: 1px solid #e8edf5;
	border-radius: 14px 0 0 14px;
}

.mll-labs-widget--cards .mll-labs-widget__table tbody tr:hover td {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.mll-labs-widget--cards .mll-labs-row__name {
	font-size: 1.02rem;
}

/* ── 5. Gradient ── */
.mll-labs-widget--gradient {
	--mll-accent: #0ea5e9;
}

.mll-labs-widget--gradient .mll-labs-widget__table-wrap {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(14, 165, 233, 0.15);
	background: #fff;
}

.mll-labs-widget--gradient .mll-labs-widget__table thead th {
	background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #8b5cf6 100%);
	color: #fff;
	font-weight: 700;
	border: none;
	padding-block: 1rem;
}

.mll-labs-widget--gradient .mll-labs-widget__table tbody tr {
	border-bottom: 1px solid #f1f5f9;
}

.mll-labs-widget--gradient .mll-labs-widget__table tbody tr:hover {
	background: linear-gradient(90deg, rgba(14, 165, 233, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%);
}

.mll-labs-widget--gradient .mll-labs-widget__search {
	border-color: #bae6fd;
}

.mll-labs-widget--gradient .mll-labs-row__name a,
.mll-labs-widget--gradient .mll-labs-phone {
	color: #0284c7;
}

/* ── 6. Accent ── */
.mll-labs-widget--accent {
	--mll-accent: #059669;
	--mll-accent-soft: #ecfdf5;
}

.mll-labs-widget--accent .mll-labs-widget__table-wrap {
	border: 1px solid #d1fae5;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}

.mll-labs-widget--accent .mll-labs-widget__table thead th {
	background: var(--mll-accent-soft);
	color: #065f46;
	font-weight: 800;
	border-bottom: 2px solid #a7f3d0;
}

.mll-labs-widget--accent .mll-labs-widget__table tbody tr {
	border-bottom: 1px solid #f0fdf4;
	transition: background 0.2s ease;
}

.mll-labs-widget--accent .mll-labs-widget__table tbody tr:hover {
	background: #f0fdf4;
}

.mll-labs-widget--accent .mll-labs-row__name {
	position: relative;
	padding-inline-start: 0.75rem;
}

.mll-labs-widget--accent .mll-labs-row__name::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 3px;
	height: 70%;
	transform: translateY(-50%);
	border-radius: 999px;
	background: linear-gradient(180deg, #34d399 0%, #059669 100%);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.mll-labs-widget--accent .mll-labs-widget__table tbody tr:hover .mll-labs-row__name::before {
	opacity: 1;
}

.mll-labs-widget--accent .mll-labs-badge {
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
}

.mll-labs-widget--accent .mll-labs-badge--province {
	background: #dbeafe;
	color: #1d4ed8;
}

.mll-labs-widget--accent .mll-labs-badge--city {
	background: #dcfce7;
	color: #15803d;
}

.mll-labs-widget--accent .mll-labs-phone {
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--mll-accent-soft);
	color: #047857;
}

.mll-labs-widget--accent .mll-labs-phone:hover {
	background: #d1fae5;
	text-decoration: none;
}

/* Mobile — all styles */
@media (max-width: 768px) {
	.mll-labs-widget__table,
	.mll-labs-widget__table thead,
	.mll-labs-widget__table tbody,
	.mll-labs-widget__table th,
	.mll-labs-widget__table td,
	.mll-labs-widget__table tr {
		display: block;
		min-width: 0;
	}

	.mll-labs-widget__table thead {
		display: none;
	}

	.mll-labs-widget--cards .mll-labs-widget__table {
		border-spacing: 0;
	}

	.mll-labs-widget__table tbody tr {
		margin-bottom: 0.85rem;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--mll-border);
	}

	.mll-labs-widget--cards .mll-labs-widget__table tbody tr {
		padding: 0;
		margin-bottom: 1rem;
		border: none;
	}

	.mll-labs-widget--cards .mll-labs-widget__table tbody tr td {
		border: none;
		border-radius: 0 !important;
		box-shadow: none;
		transform: none !important;
	}

	.mll-labs-widget--cards .mll-labs-widget__table tbody tr td:first-child,
	.mll-labs-widget--cards .mll-labs-widget__table tbody tr td:last-child {
		border: none;
	}

	.mll-labs-widget--cards .mll-labs-widget__table tbody tr {
		background: #fff;
		border: 1px solid #e8edf5;
		border-radius: 14px;
		box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
		overflow: hidden;
	}

	.mll-labs-widget__table tbody tr:last-child {
		border-bottom: none;
	}

	.mll-labs-widget__table td {
		border: none;
		padding: 0.4rem 1rem;
	}

	.mll-labs-widget__table td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
		color: #334155;
	}

	.mll-labs-widget--accent .mll-labs-row__name::before {
		display: none;
	}
}
