@charset "UTF-8";

/* ========================================
   BND - 출고관리 시스템 스타일
   ======================================== */

/* 모바일 스크롤 및 폰트는 content.css에서 통일 관리 */

/* ----------------------------------------
   서명 패드
   ---------------------------------------- */
.signature-pad {
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* ----------------------------------------
   slimscroll 성능 최적화 (프리징 방지)
   ---------------------------------------- */
.slimScrollDiv,
.nicescroll-bar,
.message-nicescroll-bar,
.message-box-nicescroll-bar,
.product-nicescroll-bar,
.app-nicescroll-bar,
.todo-box-nicescroll-bar,
.users-nicescroll-bar,
.users-chat-nicescroll-bar,
.chatapp-nicescroll-bar,
.chatapp-chat-nicescroll-bar {
	touch-action: pan-y; /* 세로 스크롤만 허용, 프리징 방지 */
	-webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
}

/* ----------------------------------------
   사은품 선택 모달
   ---------------------------------------- */
.gift_modal_wrap {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 10000; /* Bootstrap 모달(1050)보다 높게 설정 */
}
.gift_modal_content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 600px;
	max-width: calc(100% - 40px);
	max-height: 80vh;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.gift_modal_header {
	padding: 15px 20px;
	border-bottom: 1px solid #e5e5e5;
	position: relative;
}
.gift_modal_header h4 {
	margin: 0;
	font-size: 18px;
}
.gift_modal_close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}
.gift_modal_close:hover {
	color: #333;
}
.gift_modal_body {
	padding: 15px 20px;
	max-height: 400px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
	touch-action: pan-y; /* 모바일 터치 스크롤 개선 */
}

/* 모바일에서 모달 높이 조정 */
@media (max-width: 767px) {
	.gift_modal_content {
		max-height: 90vh; /* 모바일에서 더 큰 높이 */
	}
	.gift_modal_body {
		max-height: calc(90vh - 120px); /* 헤더+푸터 공간 제외 */
	}
}
.gift_modal_footer {
	padding: 15px 20px;
	border-top: 1px solid #e5e5e5;
	text-align: right;
}
.gift_search_wrap {
	margin-bottom: 15px;
}
.gift_search_wrap input {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.gift_checkbox_item {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}
.gift_checkbox_item:last-child {
	border-bottom: none;
}
.gift_checkbox_item label {
	font-weight: normal;
	cursor: pointer;
	display: block;
}

/* ----------------------------------------
   선택된 사은품 목록
   ---------------------------------------- */
.selected_gift_list {
	min-height: 40px;
}
.selected_gift_item {
	display: inline-block;
	background: #e9ecef;
	padding: 5px 10px;
	margin: 3px 5px 3px 0;
	border-radius: 3px;
}
.selected_gift_item .remove_gift {
	margin-left: 8px;
	color: #dc3545;
	cursor: pointer;
	font-weight: bold;
}
.selected_gift_item .remove_gift:hover {
	color: #a71d2a;
}
.no_gift_msg {
	color: #999;
}

/* ----------------------------------------
   주소 검색 모달
   ---------------------------------------- */
.addr_modal_wrap {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
}
.addr_modal_content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	max-width: calc(100% - 40px);
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.addr_modal_header {
	padding: 15px 20px;
	border-bottom: 1px solid #e5e5e5;
	position: relative;
}
.addr_modal_header h4 {
	margin: 0;
	font-size: 18px;
}
.addr_modal_close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}
.addr_modal_close:hover {
	color: #333;
}
.addr_modal_body {
	height: 400px;
}

/* ----------------------------------------
   구성품 선택 (사은품 등록/수정)
   ---------------------------------------- */
.component-list {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 10px;
	border-radius: 4px;
}
.component-item {
	display: inline-block;
	margin: 3px 10px 3px 0;
}
.component-item label {
	font-weight: normal;
	cursor: pointer;
}
.new-component-wrap {
	margin-top: 15px;
}
.selected-components {
	margin-top: 10px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
}
.selected-tag {
	display: inline-block;
	background: #337ab7;
	color: #fff;
	padding: 3px 8px;
	margin: 2px;
	border-radius: 3px;
	font-size: 12px;
}

/* ----------------------------------------
   상태 라벨 글자 크기
   ---------------------------------------- */
#bbs .label {
	font-size: 14px !important;
	padding: 6px 12px !important;
}

/* ----------------------------------------
   모바일 반응형 - 모달
   ---------------------------------------- */
@media screen and (max-width: 768px) {
	.gift_modal_content {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		margin: 20px;
	}
	
	.addr_modal_content {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		margin: 20px;
	}
	
	.gift_modal_header,
	.gift_modal_body,
	.gift_modal_footer {
		padding: 10px 15px;
	}
	
	.addr_modal_header {
		padding: 10px 15px;
	}
	
	.gift_modal_header h4 {
		font-size: 16px;
	}
	
	.gift_modal_close {
		top: 10px;
		right: 15px;
		font-size: 20px;
	}
}
