/* 로딩 팝업 커스텀 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
}

/* 스피너 애니메이션 */
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    margin-top: 20px;
    color: #555;
    font-size: 16px;
    font-weight: 500;
}

/* 애니메이션 정의 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bg-error{
    background-color : rgba(255,165,0,0.4);
}


/*=================================
  계산식 item 가림
=================================*/
.itemNone {
    display: none;
}

.itemInputNone {
    display: none;
}

/*=================================
  환급 서류 순서 변경 드래그 CSS
=================================*/
.grip {
    cursor: move;
    width: 24px;
    text-align: center;
    user-select: none; /* 텍스트 선택 방지 */
}

.drag-helper {
    background: #fffbe6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
    pointer-events: none; /* helper가 마우스 이벤트를 막지 않게 */
}

.placeholder td {
    background: #f0f0f0;
    border: 2px dashed #ccc;
}

body.dragging {
    user-select: none;
}

/*=================================
  alert 안보이도록 하는 클래스
=================================*/
.d-none {
    display: none !important;
}

/*=================================
  환급 프로그램 서류 검토 이미지 배치
=================================*/
.image-pdf-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 20px;
}

.image-pdf-container img {
    transform-origin: center center; /* 중심 기준 회전 */
    transition: transform 0.3s ease;
}

.itemInputNone {
    display: none;
}