body:has(.vdm-rx) #csubstitution_window .greyout {
	background: rgba(28, 36, 40, 0.45);
	opacity: 1;
}

body:has(.vdm-rx) #substitution_window.popup {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	width: min(800px, calc(100vw - 48px)) !important;
	height: auto !important;
	max-height: calc(100vh - 48px);
	margin: 0;
	padding: 0 !important;
	overflow: auto;
	border: 2px solid #d0d5d8 !important;
	border-radius: 16px;
	background: #eff1f2;
	box-shadow: 0 12px 32px rgba(28, 36, 40, 0.16);
	box-sizing: border-box;
	color: #1c2428;
	font-family: "IBM Plex Sans", -apple-system, sans-serif;
}

body:has(.vdm-rx) #substitution_window.popup * {
	box-sizing: border-box;
}

body:has(.vdm-rx) #substitution_window > .closewindow {
	position: absolute;
	top: 12px;
	right: 12px;
	left: auto;
	width: 32px;
	height: 32px;
	background: #e8e8e8;
	background-image: none;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	cursor: pointer;
}

body:has(.vdm-rx) #substitution_window > .closewindow::before,
body:has(.vdm-rx) #substitution_window > .closewindow::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 15px;
	width: 18px;
	height: 2px;
	background: #3c4246;
	border-radius: 1px;
}

body:has(.vdm-rx) #substitution_window > .closewindow::before {
	transform: rotate(45deg);
}

body:has(.vdm-rx) #substitution_window > .closewindow::after {
	transform: rotate(-45deg);
}

body:has(.vdm-rx) #substitution_window #sustitution_window,
body:has(.vdm-rx) #substitution_window .dosage_header {
	width: 100% !important;
	max-width: none;
	max-height: none;
	height: auto !important;
	margin: 0;
	border: 0 !important;
	background: transparent;
}

body:has(.vdm-rx) #substitution_window .dosage_header_sub_class {
	display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0;
    width: 100% !important;
    height: 55px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #e8e8e8 !important;
    border: 1px solid #d0d5d8 !important;
    color: #1c2428;
}

body:has(.vdm-rx) #substitution_window #icon_dosage {
	position: static;
	box-sizing: content-box;
	display: block;
	width: 27px;
	height: 29px;
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	padding: 11px 8px 11px 20px;
	background: #e8e8e8;
	border-bottom: 1px solid #d0d5d8;
}

body:has(.vdm-rx) #substitution_window #label_dosage {
	position: static;
	top: auto;
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	padding: 14px 52px 14px 5px;
	background: #e8e8e8;
	border-bottom: 1px solid #d0d5d8;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #1c2428;
}

body:has(.vdm-rx) #substitution_window #a_section {
	position: static;
	top: auto;
	left: auto;
	grid-column: 1 / -1;
	grid-row: 2;
	width: auto;
	margin: 0;
	background: #eff1f2;
}

body:has(.vdm-rx) #substitution_window .dosage_sub_header {
	width: auto !important;
	min-height: 0 !important;
	height: auto !important;
	background: #eff1f2 !important;
	border: 0 !important;
	margin: 8px 16px 16px !important;
}

body:has(.vdm-rx) #substitution_window .dosage_sub_header h4 {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	color: #5c6368;
}

body:has(.vdm-rx) #substitution_window h4::before {
	content: none;
}

body:has(.vdm-rx) #substitution_window .drug_name {
	grid-column: 1;
	grid-row: 2;
	align-self: center;
	color: #1c2428;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

body:has(.vdm-rx) #substitution_window .drug_vmp {
	grid-column: 1;
	grid-row: 3;
	color: #5c6368;
	font-size: 12px;
}

body:has(.vdm-rx) #substitution_window .vdm-risk__mark {
	position: static !important;
    top: auto !important;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 15px;
    padding: 2px !important;
    margin: 2px;
}

body:has(.vdm-rx) #substitution_window select.control_text_style,
body:has(.vdm-rx) #substitution_window input.control_text_style {
	width: 100% !important;
	height: 36px;
	margin: 0 !important;
	padding: 0 10px !important;
	border: 1px solid #d0d5d8 !important;
	border-radius: 8px;
	background: #fff !important;
	color: #081217;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
}

body:has(.vdm-rx) #substitution_window select.control_text_style:focus,
body:has(.vdm-rx) #substitution_window input.control_text_style:focus {
	outline: none;
	box-shadow: none;
}





body:has(.vdm-rx) #substitution_window .dosage_sub_header.rounded-corners {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-items: center;
}

body:has(.vdm-rx) #substitution_window .dosage_sub_header.rounded-corners h4 {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
}

body:has(.vdm-rx) #substitution_window #show_siter_div {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	align-self: center;
	display: flex;
	align-items: center;
}

body:has(.vdm-rx) #substitution_window #show_siter_div input {
	appearance: none;
	-webkit-appearance: none;
	width: 16px !important;
	height: 16px;
	margin: 0 !important;
	padding: 0;
	border: 1px solid #d0d5d8;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	vertical-align: middle;
	transition: background 0.15s, border-color 0.15s;
}

body:has(.vdm-rx) #substitution_window #show_siter_div input:checked {
	background-color: #1c2428;
	border-color: #1c2428;
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23fff%27 stroke-width=%273.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E");
	background-size: 10px;
	background-position: center;
	background-repeat: no-repeat;
}

body:has(.vdm-rx) #substitution_window #show_siter_div .vdm-sust__siter-label {
	margin-left: 8px;
	font-size: 12px;
	color: #3c4246;
	cursor: pointer;
	user-select: none;
}

body:has(.vdm-rx) #substitution_window select#sust_mode.control_text_style {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	align-self: center;
	width: 160px !important;
	height: 28px !important;
	margin: 0 52px 0 0 !important;
	padding: 0 6px !important;
	font-size: 12px;
}

body:has(.vdm-rx) #substitution_window #show_siter_div,
body:has(.vdm-rx) #substitution_window #window_sust,
body:has(.vdm-rx) #substitution_window #subtitution_drug_zone {
	display: none;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__siter {
	margin-top: 4px;
	color: #3c4246;
	font-size: 12px;
	font-weight: 500;
	vertical-align: middle;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__siter-label {
	margin-left: 6px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__siter input {
	width: auto !important;
	height: auto;
	margin: 0 !important;
	accent-color: #1c2428;
}

body:has(.vdm-rx) #substitution_window #window_sust {
	border: 1px solid #d0d5d8 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1c2428;
    font-size: 14px;
    padding: 10px;
}

body:has(.vdm-rx) #substitution_window #window_sust #subtitution_name {
	font-weight: 600;
}

body:has(.vdm-rx) #substitution_window #window_sust #subtitution_name .vdm-sust__name {
	font-weight: 700;
}

body:has(.vdm-rx) #substitution_window .header.dosage_section {
	width: auto !important;
	height: auto !important;
	
	padding: 16px;
	background: #fff;
	border: 1px solid #d0d5d8;
	border-radius: 16px;
	margin:16px;
}

body:has(.vdm-rx) #substitution_window #body_mode {
	height: auto;
	background: transparent;
	border: 0;
}

body:has(.vdm-rx) #substitution_window #mode_title {
	display: block;
	margin-bottom: 8px;
	color: #5c6368;
	font-size: 12px;
	font-weight: 600;
}

body:has(.vdm-rx) #substitution_window #indication_list {
	margin: 0;
	padding: 0;
	background: transparent !important;
	font-weight: 400;
	list-style: none;
}

body:has(.vdm-rx) #substitution_window #indication_list_sdrugs {
	max-height: 260px;
	margin-top: 8px;
	overflow-y: auto;
	background: #eff1f2;
	border-radius: 12px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__zone {
	width: auto;
	margin: 0 16px 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid #d0d5d8;
	border-radius: 16px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__zone h4 {
	margin: 0 0 4px;
	color: #5c6368;
	font-size: 12px;
	font-weight: 600;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__zone-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 12px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__zone-actions .submit_search {
	height: 34px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #d0d5d8;
	border-radius: 999px;
	background: #fff;
	color: #1c2428;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__zone-actions .submit_search:hover {
	background: #eff1f2;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__ind {
	margin-left: 5px;
	padding: 2px;
	opacity: 0.3;
	font-size: 12px;
	font-weight: normal;
	color: #666;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__ind-count {
	font-size: 10px;
	font-weight: normal;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__ind-list {
	max-height: 250px;
	padding: 2px;
	overflow-x: hidden;
	overflow-y: auto;
	display: none;
}



body:has(.vdm-rx) #substitution_window .vdm-sust__item {
	margin-top: 5px;
    padding: 2px;
    border: 1px solid #b4b4b4;
    font-size: 10px;
    color: #2a6496;
    font-weight: bold;
    background-color: #efeeee;
    border-bottom: 1px solid #d0d5d8;
    padding-bottom: 5px;
    padding-top: 5px;
    border-radius: 16px !important;
    border: 1px solid #d0d5d8 !important;
    background: #eff1f2 !important;
}


body:has(.vdm-rx) #substitution_window .vdm-sust__item div:first-child {
	padding: 6px 0px 0px 8px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__item--error {
	border: 1px solid #ff4d4d;
	background-color: #faeded;
	color: #ff4d4d;
	cursor: pointer;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__item--active {
	cursor: pointer;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__intol {
	float: right;
	width: 90px;
	margin-top: 2px;
	margin-bottom: 2px;
	text-align: right;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__name {
	
	font-size: 10px;
	color: #000;
	position: relative;
    top: -4px;
    left: 4px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__vmp {
	margin-left: 5px;
	font-size: 9px;
	color: #666;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__chain-title {
	margin-left: 20px;
	margin-top: 2px;
	font-size: 9px;
	font-weight: normal;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__chain {
	margin-left: 10px;
	
	font-size: 9px !important;
	font-weight: 600 !important;
	color: #000 !important	;

    padding-bottom: 5px;
    padding-top: 5px;
}



body:has(.vdm-rx) #substitution_window .vdm-sust__chain ul li {
	border: 0px solid #d0d5d8 !important;
	background: #efeeee !important;
}




body:has(.vdm-rx) #substitution_window .vdm-sust__chain-item {
	cursor: pointer;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__btn {
	color: #fff;
    border: 1px solid #b4b4b4;
    font-size: 11px;
    font-weight: bold;
    background-color: #000;
    padding: 8px;
    border-radius: 13px;
    cursor: pointer;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__actions {
	text-align: end;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__es-wrap {
	display: flex;
	margin-left: 10px;
	margin-right: 10px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__citer {
	color: #b23c2c;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__ind-count-lg {
	font-size: 12px;
	font-weight: normal;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__iter {
	font-weight: normal;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__iter-name {
	width: 95%;
	text-align: left;
	font-size: 11px;
	color: #2a6496;
	font-weight: bold;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__iter-sev {
	margin-top: 12px;
	margin-bottom: 12px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__iter-sev-label {
	position: relative;
	top: -5px;
	left: 5px;
	font-size: 10px;
	color: #666;
	font-weight: bold;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__iter-sev-text {
	font-weight: normal !important;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__iter-title {
	width: 95%;
	font-size: 10px;
	color: #666;
	margin-top: 12px;
	margin-bottom: 12px;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__iter-content {
	width: 95%;
	font-size: 10px;
	color: #666;
}

body:has(.vdm-rx) #substitution_window .vdm-sust__plus {
	font-size: 12px;
	color: #b23c2c;
	margin-left: 18px;
}

body:has(.vdm-rx) #sust_layer .vdm-rx__loader {
	margin-left: 12px;
	vertical-align: middle;
}

body:has(.vdm-rx) #sust_layer .vdm-sust__doing {
	color: #000;
	font-weight: bold;
	position: relative;
	top: 0px;
	left: 8px;
	font-size: 10px;
}

body:has(.vdm-rx) #sust_layer .vdm-sust__doing span {
	color: #666;
}
