@charset "UTF-8";
/*
 * hmn 공통 CSS
 * 위치: hmr_static/WebContent/static/css/hmn/common.css  →  URL /css/hmn/common.css
 * 레이아웃 head 에서 공통 로드. (퍼블 시 디자인 토큰/색상은 교체)
 */

/* ===== 공통 레이어 (alert / confirm) ===== */

/* dim(어두운 배경) + 화면 정중앙 배치 */
.hmn-layer-backdrop {
	position: fixed;
	inset: 0;                       /* top/right/bottom/left: 0 */
	background: rgba(0, 0, 0, .7);  /* dim (퍼블 톤) */
	display: flex;
	align-items: center;            /* 세로 중앙 */
	justify-content: center;        /* 가로 중앙 */
	padding: 20px;
	box-sizing: border-box;
}

/* 다이얼로그 박스 */
.hmn-layer-dialog {
	background: #fff;
	border-radius: 14px;
	padding: 24px 20px 16px;
	width: 100%;
	max-width: 320px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	text-align: center;
	box-sizing: border-box;
	animation: hmn-layer-in .15s ease-out;
}

@keyframes hmn-layer-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hmn-layer-title {
	margin: 0 0 8px;
	font-size: 18px;               /* 퍼블 바텀시트 제목 톤 */
	font-weight: 600;
	text-align: left;              /* 제목은 항상 좌측 정렬 */
}

.hmn-layer-msg {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	white-space: pre-line;          /* 메시지 내 줄바꿈(\n) 표시 */
	word-break: keep-all;           /* 한글 단어 단위 줄바꿈 */
}

/* 커스텀 모달(Layer.open) 본문: 폼 등 → 좌측정렬 */
.hmn-layer-body {
	text-align: left;
	margin-top: 4px;
}

/* 바텀시트: 화면 하단에 좌우·하단 16px 여백을 두고 떠 있는 시트 (Layer.open({ position:'bottom' })) */
.hmn-layer-backdrop.hmn-sheet {
	align-items: flex-end;          /* 세로: 하단 */
	padding: 0;                     /* 퍼블 바텀시트: 화면 폭 꽉 참(좌우 여백 없음) */
}
.hmn-layer-backdrop.hmn-sheet .hmn-layer-dialog {
	width: 100%;
	max-width: 100%;
	max-height: 90vh;
	display: flex;                  /* 본문만 스크롤(제목·핸들·체크·버튼 고정) — 긴 내용 잘림 방지 */
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px 16px 0 0;   /* 퍼블: 상단만 둥글게(하단은 화면에 붙음) */
	padding: 8px 20px 20px;         /* 상단 핸들 여백 + 좌우 20 + 하단 20 */
	box-shadow: 0 0 16px rgba(0, 0, 0, .12);
	animation: hmn-sheet-up .2s ease-out;
}
/* 기본 바텀시트 본문 스크롤(모든 hmn-sheet 공통). full 변형은 dialog height:100% 만 추가 */
.hmn-layer-backdrop.hmn-sheet .hmn-layer-body,
.hmn-layer-backdrop.hmn-sheet .hmn-layer-msg {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}
.hmn-layer-backdrop.hmn-sheet .hmn-layer-check,
.hmn-layer-backdrop.hmn-sheet .hmn-layer-btns { flex: 0 0 auto; }
/* 퍼블 바텀시트 상단 핸들 바 */
.hmn-layer-backdrop.hmn-sheet .hmn-layer-dialog::before {
	content: '';
	display: block;
	flex: 0 0 auto;
	width: 35px;
	height: 3px;
	margin: 0 auto 12px;
	border-radius: 9999px;
	background: #e4e4e7;
}
@keyframes hmn-sheet-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

/* 전체 높이 바텀시트: hmn-sheet 여백(좌우·하단 16px)은 유지하되 화면을 꽉 채움
   (Layer.open({ position:'bottom', size:'full' })). 본문만 스크롤, 제목·버튼은 상/하단 고정 */
.hmn-layer-backdrop.hmn-sheet.hmn-sheet-full .hmn-layer-dialog {
	height: 100%;                   /* 시트 내부영역(=100vh - 하단 16px) 전체 */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.hmn-layer-backdrop.hmn-sheet.hmn-sheet-full .hmn-layer-body,
.hmn-layer-backdrop.hmn-sheet.hmn-sheet-full .hmn-layer-msg {
	flex: 1 1 auto;                 /* 본문이 남는 높이를 차지 → 버튼은 하단에 고정 */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;                  /* flex 아이템 내부 스크롤 허용 */
}

/* '보지 않기' 등 체크박스 행 (Layer.open({ check })): 본문(스크롤) 밖·버튼 위 고정 */
.hmn-layer-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	color: #666;
	cursor: pointer;
}
.hmn-layer-check input { width: 16px; height: 16px; flex: 0 0 auto; }
/* full 바텀시트에서 본문만 스크롤되도록 체크행/버튼은 고정(축소 안 됨) */
.hmn-layer-backdrop.hmn-sheet.hmn-sheet-full .hmn-layer-check,
.hmn-layer-backdrop.hmn-sheet.hmn-sheet-full .hmn-layer-btns { flex: 0 0 auto; }

/* 버튼 영역 */
.hmn-layer-btns {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}
.hmn-layer-btns button {
	flex: 1;
	height: 52px;               /* 퍼블 btn-l */
	padding: 0;
	border: 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.hmn-layer-btns button:disabled {
	opacity: .45;
	cursor: not-allowed;        /* 비활성: 회색 처리 */
}
.hmn-layer-ok {
	background: #0377f2;        /* 퍼블 primary */
	color: #fff;
}
.hmn-layer-cancel {
	background: #fff;           /* 퍼블 outline-gray */
	color: #3f3f46;
	border: 1px solid #e4e4e7;
}

/* ===== Layer 팝업 내용 컴포넌트 (재사용: 어떤 Layer 팝업이든 사용 가능) ===== */
/* 문서 컨테이너(본문 기본 글꼴/색) */
.hmn-layer-doc { font-size: 14px; line-height: 1.6; color: #333; }
/* 범용 박스: 연회색 채움. .dashed 추가 시 점선 테두리 */
.hmn-layer-box { background: #f2f4f6; padding: 12px 14px; }
.hmn-layer-box.dashed { border: 1px dashed #c6c7d1; }
/* 팝업 문서 타이포(제목/리드/문단/목록) — 안내형 팝업 등 */
.hmn-layer-h { font-size: 15px; font-weight: bold; color: #111; margin: 22px 0 10px; }
.hmn-layer-h.sm { font-size: 14px; margin: 18px 0 6px; }       /* 하위 제목 */
.hmn-layer-lead { margin: 0 0 8px; font-size: 14px; font-weight: bold; color: #666; }  /* 박스 제목 */
.hmn-layer-p { margin: 0 0 8px; color: #555; word-break: keep-all; }
.hmn-layer-ol { margin: 0; padding-left: 20px; }
.hmn-layer-ol > li { margin-bottom: 12px; }
/* 상단 안내(인트로) 박스: 근거(.t 굵게) + 설명(.d) */
.hmn-layer-intro { background: #f2f4f6; border: 1px dashed #c6c7d1; padding: 14px 14px; margin-bottom: 22px; }
.hmn-layer-intro .t { margin: 0 0 6px; font-size: 13px; font-weight: bold; color: #444; word-break: keep-all; }
.hmn-layer-intro .d { margin: 0; font-size: 12.5px; line-height: 1.55; color: #777; word-break: keep-all; }
/* 섹션(카드) 래퍼 + 제목(+우측 캡션) */
.hmn-layer-sec { margin-bottom: 22px; }
.hmn-layer-sectit { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: bold; color: #111; margin: 0 0 10px; }
.hmn-layer-sectit .cap { flex: 0 0 auto; font-size: 12px; font-weight: normal; color: #888; }
/* 라벨/값 테두리 표 */
.hmn-layer-tbl { border: 1px solid #e5e7eb; }
.hmn-layer-tbl-row { display: flex; }
.hmn-layer-tbl-row + .hmn-layer-tbl-row { border-top: 1px solid #e5e7eb; }
.hmn-layer-tbl-l { flex: 0 0 116px; display: flex; align-items: center; padding: 12px 12px; background: #f5f7fa; color: #555; border-right: 1px solid #e5e7eb; word-break: keep-all; line-height: 1.4; }
.hmn-layer-tbl-v { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 12px 12px; color: #222; text-align: right; word-break: break-all; line-height: 1.4; }
/* 유의 안내 박스(문단별 독립, .em 강조) */
.hmn-layer-note { margin-top: 20px; }
.hmn-layer-note p { margin: 0; padding: 14px 14px; background: #f2f4f6; border: 1px dashed #c6c7d1; font-size: 12.5px; line-height: 1.6; color: #666; word-break: keep-all; }
.hmn-layer-note p + p { margin-top: 12px; }
.hmn-layer-note p.em { background: #eaf2ff; border-color: #9dc3f7; color: #1677ff; font-weight: bold; }

/* ===== 공통 로딩 (Common.loading / 통신 자동표시) ===== */

/* 전체화면 dim + 중앙 정렬. JS가 display 를 토글(none ↔ flex) */
.hmn-loading {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);   /* dim */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;                   /* 레이어(1000+)보다 위 */
}

/* 마크업 없이 CSS 만으로 그리는 스피너 */
.hmn-loading::after {
	content: '';
	width: 44px;
	height: 44px;
	border: 4px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hmn-spin .8s linear infinite;
}
@keyframes hmn-spin {
	to { transform: rotate(360deg); }
}

/* 스크린리더 전용 (시각적으로 숨김) - '로딩중' 등 */
.blind {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
