/****************** input ******************/
input[type="text"],
input[type="password"],
input[type="number"] {
	display: block;
    padding: 15px 12px;
    font-size: var(--font-body3);
    color: var(--black-color);
    background: var(--white-color);
    border-radius: 4px;
	border: 1px solid var(--gray300-color);
    box-sizing: border-box;
    vertical-align: middle;
	transition: all .3s;
}
input[type="text"]:placeholder,
input[type="password"]:placeholder,
input[type="number"]:placeholder {
    font-size: var(--font-body);
	color: var(--gray700-color);
}
input[type="text"]:hover,
input[type="password"]:hover,
input[type="number"]:hover {
	border: 1px solid var(--gray500-color);
}
input[type="text"]:active,
input[type="text"]:focus,
input[type="password"]:active,
input[type="password"]:focus,
input[type="number"]:active,
input[type="number"]:focus {
	border: 1px solid var(--primary-color);
}
input[type="text"].error,
input[type="password"].error,
input[type="number"].error {
	border: 1px solid var(--negative-color);
}
input[type="text"].date {
	background: var(--white-color) url("../images/icon/ico_calendar.svg") no-repeat right 12px center / 18px;
    cursor: default;
}
.error-msg {
    display: none;
    margin-top: 10px;
	font-size: var(--font-body2);
	font-weight: 400;
	color: var(--negative-color);
}
.msg {
    display: block;
    margin-top: 10px;
	font-size: var(--font-body2);
	font-weight: 400;
	color: var(--gray700-color);
}
.msg.error {
	color: var(--negative-color);
}
/****************** input ******************/

/****************** radio-btn ******************/
.radio-wrap input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}
.radio-wrap input[type="radio"] + label {
    display: inline-block;
    position: relative;
    font-size: var(--font-body);
    padding: 6px 0 0 35px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
	color: var(--gray700-color);
    cursor: pointer;
}
.radio-wrap div:not(:last-child) input[type="radio"] + label {
	margin-right: 30px;
}
.radio-wrap input[type="radio"] + label {
	color: var(--gray900-color);
}
.radio-wrap input[type="radio"] + label:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    text-align: center;
    background: var(--white-color);
    border: 1px solid var(--gray400-color);
    border-radius: 100%;
}
.radio-wrap input[type="radio"]:checked + label:before {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.radio-wrap input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: var(--white-color);
    border-radius: 100%;
}
.radio-wrap input[type="radio"]:disabled + label {
	color: var(--gray400-color);
}
.radio-wrap input[type="radio"]:disabled + label:before {
    background: var(--white-color);
    border: 1px solid var(--gray300-color);
}
.radio-wrap input[type="radio"]:disabled:checked + label:before {
    background: var(--gray300-color);
    border: 1px solid var(--gray300-color);
}
/****************** radio-btn ******************/

/****************** drop-down ******************/
.select {
	position: relative;
	display: block;
	width: 190px;
    max-height: 46px;
	padding: 15px 12px;
	border-radius: 4px;
	border: 1px solid var(--gray300-color);
    background-color: var(--white-color);
	transition: all .3s ease-in;
}

.select.wide {
    position: relative;
    display: block;
    width: 250px;
    max-height: 46px;
    padding: 15px 12px;
    border-radius: 4px;
    border: 1px solid var(--gray300-color);
    background-color: var(--white-color);
    transition: all .3s ease-in;
}

.select:hover {
	border: 1px solid var(--gray500-color);
}
.select.disabled {
	color: var(--gray400-color);
	border: 1px solid var(--gray300-color);
	background: var(--gray100-color);
}
.select:focus,
.select:active,
.select.active {
	border: 1px solid var(--primary-color);
}
.select .selected {
    position: relative;
	display: flex;
	justify-content: space-between;
    font-size: var(--font-body3);
    color: var(--gray700-color);
	z-index: 3;
}
.select .selected .selected-value {
    font-size: var(--font-body3);
    color: var(--gray700-color);
}
.select ul li {
    font-size: var(--font-body3);
    color: var(--gray700-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
    transition: all .3s;
    text-align: left;
}
.select ul li:hover {
    background-color: var(--gray10-color);
}

/* 셀렉드 드롭 리스트에서 선택된 값 on 표시 */
.select ul li.option.on,
.select ul li.option.on:hover {
    background-color: rgba(232, 247, 255, 0.5);
}
.select ul li:active {
    background-color: var(--gray100-color);
}
.select ul {
    display: none;
    position: absolute;
    top: 45px;
    left: -2px;
    width: calc(100% + 2px);
    border: 1px solid var(--gray400-color);
    border-radius: 4px;
    background: var(--white-color);
    overflow: hidden;
    overflow-y: auto;
    max-height: 320px;
    cursor: pointer;
    z-index: 2;
}

.select ul::-webkit-scrollbar {
    width:6px;
    height:6px;
}
.select ul::-webkit-scrollbar-thumb {
    height: 30%;
    background: var(--gray400-color);
    border-radius: 30px;
}

.select.active ul {
	display: initial;
	z-index: 4;
}
.select .select-search-input {
    display: none;
}
.select.active .select-search-input {
    display: block;
    width: calc(100% - 16px);
    margin: 6px 8px;
    padding: 6px 8px;
    font-size: var(--font-body3);
    border: 1px solid var(--gray300-color);
    border-radius: 4px;
    box-sizing: border-box;
}
.select ul li {
	padding: 15px 14px;
}
.select .arrow {
	position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}
.select .arrow img:last-child,
.select.active .arrow img:first-child {
	display: none;
}
.select.active .arrow img:last-child {
	display: block;
}
/****************** drop-down ******************/


/****************** searchable-drop ******************/
/* 컨테이너 기본 스타일 */
.searchable-drop {
    position: relative;
    display: block;
    width: 190px;
    height: 46px;
    border-radius: 4px;
    border: 1px solid var(--gray300-color);
    background-color: var(--white-color);
    transition: all .3s ease-in;
    box-sizing: border-box;
}

.searchable-drop.wide {
    width: 250px;
}

/* 상태별 보더 컬러 */
.searchable-drop:hover {
    border: 1px solid var(--gray500-color);
}

.searchable-drop.active {
    border: 1px solid var(--primary-color);
}

.searchable-drop.disabled {
    color: var(--gray400-color);
    border: 1px solid var(--gray300-color);
    background: var(--gray100-color);
    pointer-events: none;
}

/* 내부 인풋 스타일 */
.searchable-drop-control {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

input[type="text"].searchable-drop-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--font-body3);
    color: var(--gray700-color);
    cursor: pointer;
    height: 46px;
    padding: 0;
    padding-right: 32px;
}

/* 선택 해제(.input-button1): 스크립트로 삽입, 화살표 왼쪽 */
.searchable-drop-control .searchable-drop-clear.input-button1 {
    display: none;
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.searchable-drop-control.has-clear-visible .searchable-drop-clear.input-button1 {
    display: inline-flex;
}

.searchable-drop-control.has-clear-visible input[type="text"].searchable-drop-input {
    padding-right: 58px;
}

/* 화살표 아이콘 제어 */
.searchable-drop-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.searchable-drop-arrow .icon-up,
.searchable-drop.active .searchable-drop-arrow .icon-down {
    display: none;
}

.searchable-drop.active .searchable-drop-arrow .icon-up {
    display: block;
}

/* 드롭다운 리스트 스타일 */
.searchable-drop .searchable-drop-options {
    display: none;
    position: absolute;
    top: 45px;
    left: -1px; /* 보더 두께 맞춤 */
    width: calc(100% + 2px);
    border: 1px solid var(--gray400-color);
    border-radius: 4px;
    background: var(--white-color);
    overflow-y: auto;
    max-height: 320px;
    z-index: 20;
    padding: 0;
    margin: 0;
    list-style: none;
}
.searchable-drop .searchable-drop-options::-webkit-scrollbar {
    width:6px;
    height:6px;
}
.searchable-drop .searchable-drop-options::-webkit-scrollbar-thumb {
    height: 30%;
    background: var(--gray400-color);
    border-radius: 30px;
}

.searchable-drop.active .searchable-drop-options {
    display: block;
}

.searchable-drop-option {
    padding: 15px 14px;
    font-size: var(--font-body3);
    color: var(--gray700-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all .3s;
    text-align: left;
}

/* 셀렉드 드롭 리스트에서 선택된 값 on 표시 */
.searchable-drop-option.on,
.searchable-drop-option.on:hover {
    background-color: rgba(232, 247, 255, 0.5);
}

.searchable-drop-option:hover {
    background-color: var(--gray10-color);
}

/* .searchable-drop-option:active {
    background-color: var(--gray100-color);
} */
/****************** searchable-drop ******************/

/****************** checkbox ******************/
.check-box label {
    font-size: var(--font-body3);
    color: var(--black-color);
    cursor: pointer;
}
.check-box input[type="checkbox"] { 
	position: absolute; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: 0px; 
    overflow: hidden; 
    clip: rect(0,0,0,0); 
    border: 0; 
}
.check-box input[type="checkbox"] + label { 
	display: inline-block; 
    position: relative; 
    padding-left: 33px; 
    cursor: pointer; 
}
.check-box input[type="checkbox"] + label:before { 
	content: ''; 
    position: absolute; 
    top: -5px; 
    left: 0;
    width: 24px; 
    height: 24px; 
	border-radius: 4px; 
    text-align: center;
    background-color: var(--white-color);
    border: solid 1px var(--gray400-color);
    box-sizing: border-box; 
}
.check-box input[type="checkbox"]:checked + label:after { 
	content: ''; 
    position: absolute; 
    top: -5px; 
    left: 0; 
    width: 24px; 
    height: 24px; 
	border-radius: 4px;
    border: solid 1px var(--primary-color);
    background: var(--primary-color) url("../../assets/images/icon/check.png") no-repeat center / 12px;
}
/****************** checkbox ******************/

/****************** textarea ******************/
textarea {
	width: 100%;
    height: 160px;
    padding: 12px 14px;
    background: transparent;
    font-size: var(--font-body3);
    color: var(--black-color);
    line-height: 1.2;
    border: none;
    outline: none;
    resize: none;
    box-shadow: none;
    box-sizing: border-box;
    text-indent: 0;
	border: 1px solid var(--gray300-color);
	border-radius: 5px;
	transition: all .3s ease-in;
}
textarea::placeholder {
    font-size: var(--font-body3);
    color: var(--gray700-color);
}
textarea:hover {
	border: 1px solid var(--gray500-color);
}
textarea:active,
textarea:focus {
	border: 1px solid var(--primary-color);
}
/****************** textarea ******************/

/****************** datepicker ******************/
.date-picker {
	align-items: center;
}
.date-picker > div {
	position: relative;
}
.date-picker input {
	width: 160px;
	height: 40px;
}
.date-picker img {
	position: absolute;
	top: 7px;
	right: 10px;
}
/****************** datepicker ******************/