/* Каталог препаратов — new-design/Treatments.dc.html */

.nd-trs-filters {
	background: #fff;
	border-radius: 10px;
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nd-trs-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nd-trs-more {
	padding: 0;
	border: none;
	background: transparent;
}

.nd-trs-more-summary {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: #F2F3F5;
	color: #33393F;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
	margin-top: 4px;
	list-style: none;
	gap: 6px;
	transition: background-color .2s ease, color .2s ease;
}

.nd-trs-more-chev {
	transition: transform .25s ease;
}

.nd-trs-more[open] > .nd-trs-more-summary {
	background: #33393F;
	color: #FFF;
}

.nd-trs-more[open] > .nd-trs-more-summary .nd-trs-more-chev {
	transform: rotate(180deg);
}

.nd-trs-more-summary:hover {
	background: #E8EAEE;
}

.nd-trs-more[open] > .nd-trs-more-summary:hover {
	background: #23282D;
}

.nd-trs-more-summary::marker {
	display: none;
}

.nd-trs-more-summary::-webkit-details-marker {
	display: none;
}

/* Плавное раскрытие: ::details-content + interpolate-size, где не поддерживается — мгновенно. */
.nd-trs-more {
	interpolate-size: allow-keywords;
}

.nd-trs-more::details-content {
	block-size: 0;
	overflow: hidden;
	opacity: 0;
	transition: block-size .3s ease, opacity .3s ease, content-visibility .3s allow-discrete;
}

.nd-trs-more[open]::details-content {
	block-size: auto;
	opacity: 1;
}

/* Типы — теги как в каталоге болезней (.nd-sc-alpha.nd-dis-kinds), но на radio. */
.nd-trs-types {
	flex-wrap: wrap;
	margin-bottom: 0;
}

.nd-trs-types label {
	flex: none;
	min-width: 34px;
	height: 34px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	border: 1px solid #E0E0E0;
	border-radius: var(--nd-radius-pill);
	color: #404040;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
}

.nd-trs-types label:hover {
	background: #F0F0F0;
}

.nd-trs-types label:has(input:checked) {
	background: var(--nd-accent);
	border-color: var(--nd-accent);
	color: #fff;
	font-weight: 500;
}

.nd-trs-types label:has(input:focus-visible) {
	outline: 2px solid var(--nd-accent);
	outline-offset: 2px;
}

body.nd .nd-trs-types input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.nd-trs-more-content {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 14px;
	border-top: 1px solid #F0F1F3;
	margin-top: 14px;
}

.nd-trs-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nd-trs-group-label {
	display: block;
	font-size: 13px;
	color: #808080;
	font-weight: 400;
}

.nd-trs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nd-trs-chip-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 13px;
	border: 0;
	border-radius: 999px;
	background: #F2F3F5;
	color: #33393F;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
	transition: background-color .15s;
}

body.nd .nd-trs-chip-label:hover {
	background: #E8EAEE;
}

body.nd .nd-trs-chip-label input {
	margin: 0;
	cursor: pointer;
}

body.nd .nd-trs-chip-label input:checked {
	accent-color: var(--nd-accent);
}

.nd-trs-chip-label:has(input:checked) {
	background: #16202B;
	color: #fff;
}

.nd-trs-range {
	display: flex;
	align-items: center;
	gap: 10px;
}

body.nd .nd-trs-range input[type="range"] {
	flex: 1;
	min-width: 0;
	height: auto;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	accent-color: #0B5DD7;
	cursor: pointer;
}

.nd-trs-range output {
	flex: none;
	min-width: 80px;
	font-size: 14px;
	color: #33393F;
	text-align: right;
}

.nd-trs-pills {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	padding: 2px 4px;
	margin-bottom: 8px;
}

.nd-trs-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 8px 0 13px;
	border: 0;
	border-radius: 999px;
	background: #16202B;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	transition: background-color .15s;
}

.nd-trs-pill:hover {
	background: #2A3140;
}

.nd-trs-pill-reset {
	display: inline-block;
	height: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #0B5DD7;
	font-size: 14px;
	cursor: pointer;
	transition: color .15s;
	text-decoration: none;
	line-height: 32px;
}

.nd-trs-pill-reset:hover {
	color: #2664BF;
}

.nd-trs-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 14px;
	border-radius: 12px;
	background: #F4F5F7;
}

body.nd .nd-trs-search input {
	flex: 1;
	min-width: 0;
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	outline: none;
	font-size: 15px;
	box-shadow: none;
}

body.nd .nd-trs-search .search-suggest {
	left: 0;
	right: 0;
}

body.nd .nd-trs-search svg {
	flex: none;
	color: #808080;
}

.nd-trs-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-items: center;
}

.nd-trs-select {
	position: relative;
	width: 100%;
}

body.nd .nd-trs-select select {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #E9E6E1;
	border-radius: 12px;
	background: #F7F6F4;
	color: #000;
	font-size: 14px;
	box-shadow: none;
}

body.nd .nd-trs-select select:hover {
	border-color: #B9B9B9;
}

body.nd .nd-trs-select select:focus {
	outline: 0;
	border-color: var(--nd-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(11,93,215,.14);
}

.nd-trs-count {
	flex: none;
	font-size: 13px;
	color: #808080;
	white-space: nowrap;
}

.nd-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border-radius: 10px;
	padding: 14px 20px;
	background: #EDF3FC;
}

.nd-alert--info {
	background: #EDF3FC;
	color: #1B3A63;
}

body.nd .nd-alert p {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	text-wrap: pretty;
}

body.nd .nd-alert svg {
	color: #0B5DD7;
}

.nd-trs-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nd-trs-card {
	background: #fff;
	border: 1px solid #EDEDED;
	border-radius: 10px;
	padding: 18px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nd-trs-card-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	flex-wrap: wrap;
}

.nd-trs-card-head > div:first-child {
	flex: 1;
	min-width: 0;
}

.nd-trs-card-head > div:last-child {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
}

body.nd .nd-trs-card-title {
	margin: 0;
	font: 500 19px/25px var(--nd-font);
	text-wrap: pretty;
}

body.nd .nd-trs-card-title a {
	color: #000;
}

body.nd .nd-trs-card-title a:hover {
	color: #0B5DD7;
}

.nd-trs-card-meta {
	display: block;
	font-size: 13px;
	color: #808080;
	margin-top: 2px;
}

.nd-trs-score {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
}

.nd-trs-score--low {
	background: #EDF3FC;
	color: #0B5DD7;
}

.nd-trs-score--mid {
	background: #FFF8E0;
	color: #7A5A00;
}

.nd-trs-score--high {
	background: #FBF3F4;
	color: #9B2C34;
}

body.nd .nd-trs-score strong {
	font-weight: 500;
}

.nd-trs-card-reports {
	font-size: 13px;
	color: #808080;
}

.nd-trs-card-meta-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 20px;
}

.nd-trs-label {
	display: block;
	font-size: 13px;
	color: #808080;
	margin-bottom: 2px;
}

.nd-trs-value {
	display: block;
	font-size: 14px;
	line-height: 20px;
	color: #000;
}

.nd-trs-card-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 10px;
	border-top: 1px solid #F2F3F5;
}

.nd-trs-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

body.nd .nd-trs-price strong {
	font: 500 17px/1 var(--nd-font);
}

.nd-trs-price span {
	font-size: 13px;
	color: #808080;
}

body.nd .nd-trs-link {
	font-size: 14px;
	color: #0B5DD7;
	text-decoration: none;
	white-space: nowrap;
}

body.nd .nd-trs-link:hover {
	color: #2664BF;
}

/* Адаптив ≤1000px */
@media (max-width: 1000px) {
	.nd-trs-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nd-trs-count {
		grid-column: 1 / -1;
		flex-shrink: 0;
	}
}

/* Адаптив ≤700px */
@media (max-width: 700px) {
	.nd-trs-filters {
		padding: 16px;
	}

	.nd-trs-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.nd-trs-card {
		padding: 16px;
	}

	.nd-trs-card-head {
		flex-direction: column;
		gap: 10px;
	}

	.nd-trs-card-head > div:first-child {
		flex: none;
		width: 100%;
	}

	.nd-trs-card-meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.nd-trs-sortbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 4px;
	margin: 0;
}

.nd-trs-sortbar .nd-trs-select {
	width: 220px;
	flex: 0 0 220px;
}

.nd-trs-sortbar .nd-trs-count {
	flex: none;
}

/* Эфиры группы препаратов: кнопки админа */
.nd-tr-group-efir-found button{text-align:left;padding:8px 10px;border:1px solid var(--nd-line,#ddd);border-radius:8px;background:none;cursor:pointer;font:inherit}
