@charset "utf-8";

/* ajax 로딩 오버레이 공통 스타일
   - comUtil.js의 전역 $(document).ajaxStart/ajaxStop 훅이 .ajaxLoder 를 show/hide 한다.
   - 관리자(AdminLTE/부트스트랩5)와 사용자(KRDS) 화면이 같은 모양으로 보여야 하는데
     사용자 쪽에는 spinner 클래스가 없어서 프레임워크 클래스를 쓰지 않고 직접 정의한다.
   - 관리자는 common.css를 로드하지만 사용자(hmpg)는 그것을 걷어냈기 때문에,
     양쪽이 공유할 수 있도록 common.css가 아니라 이 파일로 분리해 각 Frame.jsp에서 따로 로드한다. */

.ajaxLoder{
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	/* opacity 로 반투명하게 하면 자식인 스피너까지 함께 흐려지므로 배경색 자체를 반투명으로 준다 */
	background-color: rgba(0, 0, 0, 0.5);
}

.ajaxImgDiv{
	position: absolute;
	top : 50%;
	left : 50%;
	transform : translate(-50%,-50%);
	text-align: center;
}

.ajaxSpinner{
	display: inline-block;
	width: 3rem;
	height: 3rem;
	border: 0.3em solid rgba(255, 255, 255, 0.35);
	border-right-color: #fff;
	border-radius: 50%;
	animation: ajaxSpin 0.75s linear infinite;
}

@keyframes ajaxSpin{
	to { transform: rotate(360deg); }
}

/* 움직임 최소화를 설정한 사용자에게는 회전 없이 정지 상태로 보여준다 */
@media (prefers-reduced-motion: reduce){
	.ajaxSpinner{
		animation: none;
		border-right-color: rgba(255, 255, 255, 0.35);
		border-top-color: #fff;
	}
}

/* 스크린리더 전용 안내 문구 (시각적으로는 감춘다) */
.ajaxLoderText{
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
