/* ============================================
   문자 상용구 관리 - 좌측 목록 / 우측 상세
   ============================================ */

/* ---- 2패널 컨테이너 ---- */
.sms_two_panel {
	display: flex;
	gap: 10px;
	height: calc(100% - 60px);
	min-height: 400px;
	clear: both;
}

/* ---- 좌측 목록 패널 ---- */
.sms_left_panel {
	width: 45%;
	min-width: 360px;
	display: flex;
	flex-direction: column;
	border: 1px solid #E9ECF0;
	border-radius: 5px;
	background: #fff;
	overflow: hidden;
}

/* 검색 영역 */
.sms_search_area {
	display: flex;
	gap: 5px;
	padding: 10px;
	border-bottom: 1px solid #E9ECF0;
	align-items: center;
}

.sms_search_box {
	flex: 1;
	position: relative;
	height: 36px;
}

.sms_search_box img {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 8px;
	z-index: 1;
	width: 18px;
}

.sms_search_box input {
	width: 100%;
	height: 36px;
	border: 1px solid #E9ECF0;
	border-radius: 5px;
	padding: 0 10px 0 32px;
	font-size: 13px;
	background: #fff;
}

.sms_search_box input::placeholder {
	color: #B5BDC4;
}

.sms_search_btn {
	height: 36px;
	padding: 0 14px;
	background: #3985EA;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

.sms_search_btn:hover {
	background: #2D6CC0;
}

.sms_new_btn {
	height: 36px;
	padding: 0 14px;
	background: #fff;
	color: #3985EA;
	border: 1px solid #3985EA;
	border-radius: 5px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

.sms_new_btn:hover {
	background: #3985EA;
	color: #fff;
}

/* ag-Grid 영역 */
.sms_grid_box {
	flex: 1;
	width: 100%;
}

/* ---- 우측 상세 패널 ---- */
.sms_right_panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	border: 1px solid #E9ECF0;
	border-radius: 5px;
	background: #fff;
	overflow: hidden;
}

/* 빈 상태 */
.sms_empty_state {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sms_empty_state p {
	text-align: center;
	color: #B5BDC4;
	font-size: 14px;
	line-height: 2;
}

/* 상세 폼 */
.sms_detail_form {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.sms_detail_title_bar {
	padding: 14px 20px;
	border-bottom: 1px solid #E9ECF0;
}

.sms_detail_title_bar h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #333;
}

.sms_form_row {
	padding: 0 20px;
	margin-top: 14px;
}

.sms_form_row label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
}

.sms_form_row input[type="text"] {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #E9ECF0;
	border-radius: 5px;
	font-size: 14px;
	box-sizing: border-box;
}

.sms_form_row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #E9ECF0;
	border-radius: 5px;
	font-size: 14px;
	resize: vertical;
	min-height: 160px;
	line-height: 1.6;
	box-sizing: border-box;
}

.sms_form_row input:focus,
.sms_form_row textarea:focus {
	border-color: #3985EA;
	outline: none;
	box-shadow: 0 0 0 2px rgba(57, 133, 234, 0.12);
}

.byte_info {
	text-align: right;
	margin-top: 5px;
	font-size: 12px;
	color: #888;
}

.type_badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 4px;
	vertical-align: middle;
}

.type_badge.sms {
	background: #E8F5E9;
	color: #2E7D32;
}

.type_badge.lms {
	background: #FFF3E0;
	color: #E65100;
}

.sms_info_row {
	display: flex;
	gap: 16px;
	padding: 10px 20px !important;
	margin-top: 10px !important;
	border-top: 1px solid #F0F1F3;
	font-size: 12px;
	color: #888;
}

.sms_info_row strong {
	font-weight: 500;
	color: #555;
}

.sms_btn_group {
	display: flex;
	gap: 8px;
	padding: 14px 20px;
	border-top: 1px solid #E9ECF0;
	margin-top: auto;
}

.sms_save_btn {
	height: 36px;
	padding: 0 24px;
	border: none;
	border-radius: 5px;
	background: #3985EA;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}

.sms_save_btn:hover {
	background: #2D6CC0;
}

.sms_delete_btn {
	height: 36px;
	padding: 0 18px;
	border: 1px solid #FF2222;
	border-radius: 5px;
	background: transparent;
	color: #FF2222;
	font-size: 13px;
	cursor: pointer;
}

.sms_delete_btn:hover {
	background: #FF2222;
	color: #fff;
}

.sms_cancel_btn {
	height: 36px;
	padding: 0 18px;
	border: 1px solid #E9ECF0;
	border-radius: 5px;
	background: #fff;
	color: #666;
	font-size: 13px;
	cursor: pointer;
}

.sms_cancel_btn:hover {
	background: #F7F8FA;
}