

/* =========================================================
	Multi Select Popup
========================================================= */
 

/* 검색 */

.multi-select-search {
	position: relative; 
	margin-bottom: 10px;
} 
.multi-select-search input{
	margin:0; 
}

.multi-select-search button {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	aspect-ratio:1;
	padding: 0;
	border: 0;
	background: transparent; 
	cursor: pointer;
	background: url('/images/icon-search.png') no-repeat center center / 20px;
}
 

/* 선택 영역 */

.multi-select-select {
	display: flex;
	height: 198px;
	border: 1px solid var(--line);
	border-radius: 9px;
	overflow: hidden;
}


/* 대분류 */

.multi-select-category {
	flex: 0 0 235px;
	padding: 15px;
	border-right: 1px solid var(--line);
	overflow-y: auto;
}

.multi-select-category button {
	display: block;
	width: 100%; 
	padding: 12px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	text-align: left; 
	color: #666;
	cursor: pointer;
}

.multi-select-category button.active {
	background: var(--blue-bg);
	color: #1c59e9;
	font-weight: 600;
}


/* 세부 진료과목 */

.multi-select-list {
	flex: 1;
	padding:  24px;
	overflow-y: auto;
}

.multi-select-group {
	display: none;
	grid-template-columns: repeat(3, minmax(140px, 1fr));
	gap: 12px;
}

.multi-select-group.active {
	display: grid;
}


/* 체크박스 */

.check-icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	aspect-ratio:1; 
	border-radius: 4px;
	background: #191c24;
	border-color:#191c24;
	margin-top: 2px;
}

.check-icon::before {
	content: "";
	position: absolute;
	left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg); 
}

input:not(:checked) + .check-icon {
	border:1px solid var(--color-border-strong);
	background: #fff;
}

input:not(:checked) + .check-icon::before {
	display: none;
}

.subject-check {
	display: flex;
	align-items: center;
	min-height: 20px;
	gap: 8px;
	font-size: 14px; 
	cursor: pointer;
}

.subject-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.subject-check .check-icon {  
	margin-top: 0;
} 
.subject-check input:checked + .check-icon {
	background: #1c59e9;
}


/* =========================================================
	Selected Subject
========================================================= */

.multi-select-selected {
	min-height: 98px;
	margin-top: 10px;
	padding: 17px 18px;
	border: 1px solid var(--line);
	border-radius: 9px;
	box-sizing: border-box;
}

.multi-select-selected-list {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 4px;
}
 

/* 초기화 */

.multi-select-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.subject-reset {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	line-height: 1;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
}

.subject-reset span {
	position: relative;
	width: 18px;
	aspect-ratio:1;
	background: url('/images/icon-reset.png') no-repeat center center / contain;
}
 
 

/* =========================================================
	Selected Medical Subject
========================================================= */

.selected-subject-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center; 
	gap: 4px  ; 
}

.selected-subject-wrap:has(.selected-subject){
	margin: 10px 0; 
}

.selected-subject {
	display: inline-flex;
	align-items: center;   
    background: var(--bg);
    border-radius: 20px;
    font-size: 12px;
    padding: 8px 8px 8px 12px;  
	gap:3px;  
}
.selected-subject span{
	line-height: 1;
}
.selected-subject-remove {
	position: relative;
	width: 14px;
	aspect-ratio:1;
	padding: 0;
	border: 0; 
	cursor: pointer;
}

.selected-subject-remove::before,
.selected-subject-remove::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 1px;
	background: var(--color-text-sub);
}
 

.selected-subject-remove::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.selected-subject-remove::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}


.form-control:has(.subject-tags){
	 display:flex;
	 gap:10px;
	 align-items:flex-start;
	  justify-content:space-between;
	 margin:8px 0;
}
.subject-tags {
	display:flex;
	flex-wrap:wrap; 
	gap:5px; 
}
.subject-tags .selected-subject{
	font-size: 13px;
	padding-right: 8px;
	line-height: 1;
}

.subject-search-btn{  
	position:relative;
    border-radius: 6px;  
    width: 34px;
	flex-shrink: 0;
	aspect-ratio:1; 
	background: #000; 
}

.subject-search-btn:after{
	content:'';
	position:absolute;
	inset:0;
    background: url(/images/icon-search.png) no-repeat center center / 20px;
	filter:invert(1);
}