.sdm_schema {
	width: 100%;
}

.sdm_schema .tooth_list {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	justify-items: center;
	margin-top: 20px;
}

.sdm_schema .tooth_list._top .number {
	margin-top: 12px;
}

.sdm_schema .tooth_list._top .tooth_info {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}

.sdm_schema .tooth_list._bottom .number {
	margin-top: 5px;
}

.sdm_schema .tooth_list._bottom .tooth_info {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.sdm_schema .tooth_item {
	width: 100%;
	min-width: 0;
	margin-bottom: 32px;
}

.sdm_schema .tooth_item input[type="checkbox"] {
	display: none;
}

.sdm_schema .tooth_item label {
	display: block;
	cursor: pointer;
	height: 100%;
	margin: 0;
}

.sdm_schema .tooth_item label .tooth_info {
	height: 100%;
}

.sdm_schema .tooth_item .tooth_info_box {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sdm_schema .tooth_item .tooth_icon {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	opacity: .5;
	transition: .2s;
}

.sdm_schema .tooth_item .number {
	font-size: 14px;
	line-height: 24px;
	color: #9C9C9C;
	text-align: center;
	transition: .2s;
}

.sdm_schema .tooth_item .box {
	width: 24px;
	height: 24px;
	margin-top: 8px;
	box-sizing: border-box;
	background-image: var(--sdm-box-unchecked);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: .2s;
}

@media (hover: hover) {
	.sdm_schema .tooth_item label:hover .number {
		color: #212123;
	}

	.sdm_schema .tooth_item label:hover .tooth_icon {
		opacity: 1;
	}
}

.sdm_schema .tooth_item input[type="checkbox"]:checked + .tooth_info .number {
	color: #212123;
}

.sdm_schema .tooth_item input[type="checkbox"]:checked + .tooth_info .tooth_icon {
	opacity: 1;
}

.sdm_schema .tooth_item input[type="checkbox"]:checked + .tooth_info .box {
	background-image: var(--sdm-box-checked);
}

.sdm_schema .teeth_notes {
	width: 100%;
	margin-top: 8px;
}

.sdm_schema .teeth_note_item {
	padding: 16px 0;
	border-bottom: 1px solid #D5D4D3;
}

.sdm_schema .teeth_note_item:first-child {
	border-top: 1px solid #D5D4D3;
}

.sdm_schema .teeth_note_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sdm_schema .teeth_note_title {
	font-size: 16px;
	line-height: 26px;
	color: #212123;
	font-weight: 600;
}

.sdm_schema .teeth_note_edit {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	opacity: .5;
	transition: .2s;
	line-height: 1;
}

@media (hover: hover) {
	.sdm_schema .teeth_note_edit:hover {
		opacity: 1;
	}
}

.sdm_schema .teeth_note_form {
	margin-top: 12px;
} 

.sdm_schema .teeth_note_label {
	display: block;
	font-size: 14px;
	line-height: 24px;
	color: #212123;
	margin-bottom: 4px;
}

.sdm_schema .teeth_note_textarea {
	width: 100%;
	border: none;
	border-bottom: 1px solid #D5D4D3;
	background: transparent;
	padding: 10px 0;
	font-size: 16px;
	line-height: 26px;
	height: 50px;
	resize: none;
	font-family: inherit;
	color: #212123;
	box-sizing: border-box;
	transition: border-color .2s;
}

.sdm_schema .teeth_note_textarea:focus {
	outline: none;
	border-bottom: 1px solid #212123;
}

.sdm_schema .teeth_note_btn {
	margin-top: 16px;
	display: inline-flex;
	align-items: center;
	height: 35px;
	padding-left: 24px;
	padding-right: 24px;
	background: #212123;
	color: #fff;
	border: 1px solid #212123;
	border-radius: 30px;
	font-size: 14px;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	transition: .2s;
}

.sdm_schema .teeth_note_btn:disabled {
	opacity: .3;
	cursor: default;
}

@media (hover: hover) {
	.sdm_schema .teeth_note_btn:not(:disabled):hover {
		background: transparent;
		color: #212123;
	}
}

@media screen and (max-width: 700px) {
	.sdm_schema .tooth_list {
		grid-template-columns: repeat(8, minmax(0, 1fr));
		row-gap: 8px;
	}

	.sdm_schema .tooth_item {
		margin-bottom: 20px;
	}

	.sdm_schema .tooth_item .tooth_icon {
		max-width: 92%;
	}

	.sdm_schema .tooth_list._top .number {
		margin-top: 8px;
	}

	.sdm_schema .tooth_item .number {
		font-size: 13px;
		line-height: 20px;
	}

	.sdm_schema .tooth_item .box {
		width: 22px;
		height: 22px;
		margin-top: 6px;
	}

	.sdm_schema .teeth_note_edit {
		padding: 8px;
	}
}

@media screen and (max-width: 480px) {
	.sdm_schema .tooth_list {
		margin-top: 12px;
	}

	.sdm_schema .tooth_item {
		margin-bottom: 14px;
	}

	.sdm_schema .tooth_item .number {
		font-size: 12px;
		line-height: 18px;
	}

	.sdm_schema .tooth_item .box {
		width: 20px;
		height: 20px;
		margin-top: 4px;
	}

	.sdm_schema .teeth_notes {
		margin-top: 4px;
	}

	.sdm_schema .teeth_note_item {
		padding: 12px 0;
	}

	.sdm_schema .teeth_note_title {
		font-size: 15px;
		line-height: 24px;
	}

	.sdm_schema .teeth_note_form {
		margin-top: 8px;
	}

	.sdm_schema .teeth_note_textarea {
		font-size: 15px;
		line-height: 24px;
		height: 46px;
		padding: 8px 0;
	}

	.sdm_schema .teeth_note_btn {
		width: 100%;
		height: 44px;
		margin-top: 12px;
		justify-content: center;
	}
}

@media screen and (max-width: 360px) {
	.sdm_schema .tooth_item .number {
		font-size: 11px;
	}

	.sdm_schema .tooth_item .box {
		width: 18px;
		height: 18px;
	}
}
