/* ==========================================================================
   1. 화면 배율(줌) 관련
   ========================================================================== */

/* 기본 zoom 적용 */
body.zoom-90 { zoom: 0.9; }
body.zoom-100 { zoom: 1; }
body.zoom-110 { zoom: 1.1; }
body.zoom-120 { zoom: 1.2; }
body.zoom-130 { zoom: 1.3; }


/* 퀵메뉴 고정 */
.zoom-wrapper .quickmenu-wrap {
    position: fixed !important;
    z-index: 9999 !important;
}

/* list-area 높이 조정 (PC 전용) */
@media screen and (min-width: 1025px) {
    body.zoom-90 .header .navigation-area .list-area { height: calc(100vh - 1rem); }
    body.zoom-100 .header .navigation-area .list-area { height: calc(100vh - 9.2rem); }
    body.zoom-110 .header .navigation-area .list-area { height: calc(100vh - 20rem); }
    body.zoom-120 .header .navigation-area .list-area { height: calc(100vh - 30rem); }
    body.zoom-130 .header .navigation-area .list-area { height: calc(100vh - 38rem); }
}

/* ==========================================================================
   2. IBSheet 관련 (줌 대응, 포커스/호버 숨김)
   ========================================================================== */
   
/* 역스케일 처리 */ 
/* 250904 zoom 기능 추가로 인한 변경 --> 주석처리하면 IBSheet도 줌 적용 */
/* .zoom-wrapper.zoom-90 .table-ibsheet { zoom: 0.9 !important; }
.zoom-wrapper.zoom-100 .table-ibsheet { zoom: 1 !important; }
.zoom-wrapper.zoom-110 .table-ibsheet { zoom: 0.909 !important; }
.zoom-wrapper.zoom-120 .table-ibsheet { zoom: 0.833 !important; }
.zoom-wrapper.zoom-130 .table-ibsheet { zoom: 0.769 !important; } */



/* 포커스/호버 요소 숨김 - PC에서만 (모든 줌 레벨) */
@media screen and (min-width: 769px) {
    /* zoom 90% */
    body.zoom-90 .GMHoverRowBackground,
    body.zoom-90 .GMHoverRowBorder,
    body.zoom-90 .GMHoverCellBorder,
    body.zoom-90 .GMFocusRowBackground,
    body.zoom-90 .GMFocusRowBorder,
    body.zoom-90 .GMFocusCellBorder,
    body.zoom-90 .GMFocusCellSpaceBorder,
    body.zoom-90 .GMEditCellSpaceBorder,
    body.zoom-90 .GMCursorBackground,
    body.zoom-90 .GMEditCellBorder
    {
        display: none !important;
    }
    
    /* zoom 110% */
    body.zoom-110 .GMHoverRowBackground,
    body.zoom-110 .GMHoverRowBorder,
    body.zoom-110 .GMHoverCellBorder,
    body.zoom-110 .GMFocusRowBackground,
    body.zoom-110 .GMFocusRowBorder,
    body.zoom-110 .GMFocusCellBorder,
    body.zoom-110 .GMFocusCellSpaceBorder,
    body.zoom-110 .GMEditCellSpaceBorder,
    body.zoom-110 .GMCursorBackground,
    body.zoom-110 .GMEditCellBorder{
        display: none !important;
    }
    
    /* zoom 120% */
    body.zoom-120 .GMHoverRowBackground,
    body.zoom-120 .GMHoverRowBorder,
    body.zoom-120 .GMHoverCellBorder,
    body.zoom-120 .GMFocusRowBackground,
    body.zoom-120 .GMFocusRowBorder,
    body.zoom-120 .GMFocusCellBorder,
    body.zoom-120 .GMFocusCellSpaceBorder,
    body.zoom-120 .GMEditCellSpaceBorder,
    body.zoom-120 .GMCursorBackground,
    body.zoom-120 .GMEditCellBorder{
        display: none !important;
    }
    
    /* zoom 130% */
    body.zoom-130 .GMHoverRowBackground,
    body.zoom-130 .GMHoverRowBorder,
    body.zoom-130 .GMHoverCellBorder,
    body.zoom-130 .GMFocusRowBackground,
    body.zoom-130 .GMFocusRowBorder,
    body.zoom-130 .GMFocusCellBorder,
    body.zoom-130 .GMFocusCellSpaceBorder,
    body.zoom-130 .GMEditCellSpaceBorder,
    body.zoom-130 .GMCursorBackground,
    body.zoom-130 .GMEditCellBorder {
        display: none !important;
    }
    
    /* IBSheet 편집 입력창 위치 조정 - PC에서만 */
    body.zoom-90 .GMEditInput,
    body.zoom-110 .GMEditInput,
    body.zoom-120 .GMEditInput,
    body.zoom-130 .GMEditInput {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 9999 !important;
    }
    
     /* IBSheet 편집 입력창 위치 조정 - PC에서만 */
    body.zoom-90 .GridMain1 .GridMain2 .GMEditNormalInput,
    body.zoom-90 .GridMain1 .GridMain2 .GMEditNormalTextarea,
    body.zoom-90 .GridMain1 .GridMain2 .GMEditSpaceTextarea,
    body.zoom-110 .GridMain1 .GridMain2 .GMEditNormalInput,
    body.zoom-110 .GridMain1 .GridMain2 .GMEditNormalTextarea,
    body.zoom-110 .GridMain1 .GridMain2 .GMEditSpaceTextarea,
    body.zoom-120 .GridMain1 .GridMain2 .GMEditNormalInput,
    body.zoom-120 .GridMain1 .GridMain2 .GMEditNormalTextarea,
    body.zoom-120 .GridMain1 .GridMain2 .GMEditSpaceTextarea,
    body.zoom-130 .GridMain1 .GridMain2 .GMEditNormalInput,
    body.zoom-130 .GridMain1 .GridMain2 .GMEditNormalTextarea,
    body.zoom-130 .GridMain1 .GridMain2 .GMEditSpaceTextarea {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 9999 !important;
        background-color: #f0f8ff !important; /* 연한 파란색 배경 */
        border: 2px solid #0066cc !important; /* 파란색 테두리 */
    }
    
    
}

/* ==========================================================================
   3. 스크롤 제어
   ========================================================================== */

/* 햄버거 메뉴 열릴 때 메인 스크롤 숨김*/
body.active { overflow: hidden !important; }

/* 모바일 list-area 스크롤 제거 */
@media screen and (max-width: 1024px) {
    .header .navigation-area .list-area {
        overflow: visible !important;
        height: auto !important;
    }
}


