/* ==============================
   map_bottom Panel Override
   ============================== */

/* 하단 패널 기본 상태: 완전히 숨김 */
.map_bottom {
    z-index: 40;
    display: none !important;
}

/* 하단 패널 표시 상태: 토글 버튼과 패널 영역 표시 */
.map_bottom.show {
    display: flex !important;
}

/* 하단 패널 활성화 상태: 패널 내용 표시 */
.map_bottom.active {
    z-index: 40;
}

/* 우측 확장 패널이 열리면 속성 테이블을 왼쪽으로 밀어 겹침 방지 */
body.right-depth2-open .map_bottom.active {
    margin-right: 43rem;
}

/* ==============================
   리사이즈 핸들
   ============================== */

/* 리사이즈 핸들 영역 */
.map_bottom .resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    cursor: ns-resize;
    z-index: 50;
    background: transparent;
}

.map_bottom .resize-handle:hover,
.map_bottom .resize-handle.active {
    background: var(--krds-color-light-primary-50);
}

/* 리사이즈 중 선택 방지 */
.map_bottom.resizing,
.map_bottom.resizing * {
    user-select: none !important;
}

/* layout_panel inline style 오버라이드 */
.map_bottom .layout_panel {
    display: flex !important;
}

.map_bottom.active .layout_panel {
    display: flex !important;
}

/* ==============================
   헤더 컬럼 컨테이너
   ============================== */
.map_bottom #headerColumnsContainer {
    justify-content: space-evenly;
}

/* ==============================
   AG-Grid 영역 높이 설정
   ============================== */

/* layout_body가 남은 공간 차지 */
.map_bottom .layout_body {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* figure-area (AG-Grid)가 전체 높이 차지 */
.map_bottom .layout_body .figure-area {
    width: 100%;
    height: 100%;
}

/* AG-Grid 컨테이너 높이 명시 */
.map_bottom .layout_body #attributeTableGrid,
.map_bottom .layout_body #selectionAttributeTableGrid {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* AG-Grid 테마 wrapper width 설정 */
.map_bottom .layout_body [class*="ag-theme-"] {
    width: 100%;
    height: 100%;
}

/* ==============================
   layer-button-group 버튼 active 스타일
   ============================== */
.map_bottom .layer-button-group .krds-btn.only-size-32:active,
.map_bottom .layer-button-group .krds-btn.only-size-32.active {
    background-color: var(--krds-color-light-primary-50);
    border: 0.1rem solid var(--krds-color-light-primary-30);
}

.map_bottom .layer-button-group .krds-btn.only-size-32:active .svg-icon,
.map_bottom .layer-button-group .krds-btn.only-size-32.active .svg-icon {
    filter: brightness(0) invert(1);
}

/* 버튼 disabled 스타일 */
.map_bottom .layer-button-group .krds-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.map_bottom #attributeTableGrid .ag-cell:focus,
.map_bottom #attributeTableGrid .ag-cell-focus,
.map_bottom #selectionAttributeTableGrid .ag-cell:focus,
.map_bottom #selectionAttributeTableGrid .ag-cell-focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ==============================
   Footer 페이지네이션 스타일
   ============================== */
.map_bottom .layout_footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 16px;
}

.map_bottom .krds-paging-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map_bottom .krds-paging-btn .page-navi {
    color: #ffffff;
    cursor: pointer;
}

.map_bottom .krds-paging-btn .page-navi.disabled {
    color: #888888;
    cursor: default;
}

.map_bottom .page-info {
    min-width: 32px;
    text-align: center;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 페이지 사이즈 wrap - footer 우측 배치 */
.map_bottom .page-size-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 16px;
}

.map_bottom .page-size-wrap label {
    color: #ffffff;
    font-size: 1.2rem;
    white-space: nowrap;
}

.map_bottom #pageSizeSelect {
    min-width: 60px;
}
