/* vet-services frontend
   Специфичность селекторов выше чем у темы hello-elementor,
   чтобы перебить border/padding/background на table td.
   Тема: table td { border:1px solid #ccc; padding:15px }
         table tbody > tr:nth-child(odd) > td { background:#f7f7f7 }
*/

/* Обёртка — font-size не задаём, наследуется от темы */
.vet-services-wrap {
	clear: both;
	margin-bottom: 1em;
}

/* Поиск — компактно справа, как у DataTables/TablePress */
.vet-services-controls {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 6px;
	font-size: inherit;
}
.vet-services-controls label {
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
.vet-services-search__input {
	padding: 3px 5px;
	border: 1px solid #aaa;
	font-size: inherit;
	width: 150px;
	outline: none;
	box-sizing: border-box;
}
.vet-services-search__input:focus {
	border-color: #084926;
	outline: none;
}

/* Обёртка с горизонтальным скроллом */
.vet-services-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Сброс стилей темы для нашей таблицы */
.vet-services-table {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	margin-bottom: 1em;
	border: none;
	font-size: inherit;
}

/* Базовый сброс border и padding — перебиваем тему (0,1,1) > (0,0,2) */
.vet-services-table th,
.vet-services-table td {
	padding: 8px;
	border: none;
	text-align: left;
	background-color: transparent;
	line-height: 1.5;
}

/* Заголовок thead */
.vet-services-table thead th {
	background-color: #D1EDCE;
	color: #084926;
	font-weight: 700;
	vertical-align: middle;
	border-bottom: 1px solid #ddd;
}

/* Сортировка */
.vet-services-table thead th.vst-sortable {
	cursor: pointer;
	padding-right: 20px;
	position: relative;
	user-select: none;
}
.vet-services-table thead th.vst-sortable::after {
	content: "↕";
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11px;
	opacity: .5;
	font-weight: 400;
}
.vet-services-table thead th.vst-sort-asc::after  { content: "↑"; opacity: 1; }
.vet-services-table thead th.vst-sort-desc::after { content: "↓"; opacity: 1; }

.vet-services-table thead th.vst-sortable:hover {
	background-color: #b8e2b4;
}
.vet-services-table thead th.vst-sort-asc,
.vet-services-table thead th.vst-sort-desc {
	background-color: #a8d9a3;
}

/* Строки tbody */
.vet-services-table tbody td {
	vertical-align: top;
	border-top: 1px solid #ddd;
}
.vet-services-table tbody tr:first-child td {
	border-top: 0;
}

/* Чётные/нечётные — специфичность (0,2,3) перебивает тему (0,1,4) */
.vet-services-table tbody tr.vet-services-table__row--odd td {
	background-color: #f9f9f9;
}
.vet-services-table tbody tr.vet-services-table__row--even td {
	background-color: #fff;
}

/* Hover — специфичность (0,1,3) */
.vet-services-table tbody tr.vet-services-table__row:hover td {
	background-color: #f3f3f3;
}

/* Секции — жирный текст без фона; специфичность (0,2,3) выше темы (0,1,4) */
.vet-services-table tbody tr.vet-services-table__section-row td {
	background-color: transparent;
	color: #000;
	font-weight: 700;
	border-top: 1px solid #ddd;
	padding-top: 12px;
	padding-bottom: 4px;
}
.vet-services-table tbody tr.vet-services-table__section-row:first-child td {
	border-top: 0;
	padding-top: 8px;
}
/* Первая строка после заголовка секции без границы сверху */
.vet-services-table tbody tr.vet-services-table__section-row + tr td {
	border-top: 0;
}
/* Hover не должен менять цвет секционных строк */
.vet-services-table tbody tr.vet-services-table__section-row:hover td {
	background-color: transparent;
}

/* Скрытые при поиске/сортировке */
.vet-services-table tbody tr[hidden] {
	display: none;
}

/* «Ничего не найдено» */
.vet-services-no-results {
	color: #888;
	font-style: italic;
	margin: 6px 0 0;
}

/* Адаптив */
@media (max-width: 600px) {
	.vet-services-controls {
		justify-content: flex-start;
	}
	.vet-services-search__input {
		width: 100%;
	}
}

/* Верхние контролы (поиск + кол-во записей) */
.vst-top-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	flex-wrap: wrap;
	gap: 6px;
}
.vst-length {
	display: none;
}
.vst-search-wrap {
	font-size: inherit;
	white-space: nowrap;
}
.vst-length select {
	margin: 0 4px;
	padding: 2px 4px;
	font-size: inherit;
	border: 1px solid #aaa;
}

/* Нижние контролы (инфо + пагинация) */
.vst-bottom-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
	flex-wrap: wrap;
	gap: 6px;
	font-size: inherit;
}
.vst-info {
	color: #555;
}

/* Пагинация — стиль как у DataTables/TablePress */
.vst-paginate {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}
.vst-page-btn {
	color: #111;
	cursor: pointer;
	text-decoration: underline;
	padding: 0 2px;
	user-select: none;
}
.vst-page-btn.disabled {
	color: #999;
	text-decoration: none;
	cursor: default;
	pointer-events: none;
}
.vst-page-nums {
	display: flex;
	align-items: center;
	gap: 2px;
}
.vst-page-num {
	color: #111;
	cursor: pointer;
	text-decoration: underline;
	padding: 1px 5px;
	user-select: none;
	font-size: inherit;
}
.vst-page-num.current {
	font-weight: 700;
	text-decoration: none;
	cursor: default;
}
.vst-page-num:hover:not(.current) {
	text-decoration: none;
	background: #f0f0f0;
}
.vst-ellipsis {
	padding: 0 3px;
	color: #555;
}
