.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5000;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.dialog .inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.search-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

/* 모바일 헤더 고정 */
.dialog-tit {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.dialog-tit .tit {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-close .icon {
    width: 20px;
    height: 20px;
    background-image: url('/static/global/images/common/close.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 스크롤 가능한 컨텐츠 영역 */
.dialog-cont {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.article-wrap {
    height: 100%;
}

.article {
    padding: 20px;
}

/* PC 포털 필터 구조를 모바일에 적용 */
.career-filter {
    position: relative;
    margin-block: 0;
}

.career-filter > .title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #222;
}

/* 필터 헤더 - PC와 동일한 레이아웃 */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.filter-divider {
    height: 1px;
    background-color: var(--gray400);
    border: none;
    margin-bottom: 17px;
}

/* 필터 제목 */
.filter-header .title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 리셋 버튼 */
.apply-btn-reset {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    padding: 12px 8px; /* 모바일 터치 영역 개선 */
    margin-right: 0; /* 우측 margin 제거로 화면 밖 넘침 방지 */
}

/* 리셋 아이콘 */
.apply-btn-reset .icon-reset {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('/static/global/images/apply/list/reset.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

/* 리셋 텍스트 */
.apply-btn-reset .text {
    color: var(--text400, #777);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

/* PC 포털 selection 구조 적용 */
.career-filter .selection {
    padding-top: 24px;
    border-top: 1px solid #bdc3c7;
    margin-bottom: 0;
}

.career-filter .selection:first-of-type {
    border-top: none;
    padding-top: 0;
}

.career-filter .selection + .selection {
    margin-top: 0;
}

/* 선택 영역 헤더 */
.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.selection-header .selection-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* 토글 버튼한 크기 */
.btn-selection-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-selection-toggle:hover {
    transform: scale(1.1);
}

.btn-selection-toggle .icon-expand {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Collapsed state - rotate arrow */
.btn-selection-toggle.collapsed .icon-expand {
    transform: rotate(180deg);
}

/* 선택 리스트 */
.selection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selection-list::after {
    content: '';
    display: block;
    clear: both;
}

.selection-list > li {
    float: left;
    width: 100%;
    padding: 5px 0;
}

/* PC 포털과 동일한 2열 레이아웃 */
.career-filter .selection-list > li.half {
    width: 50%;
    float: left;
}

/* ALL 체크박스는 전체 너비 */
.career-filter .selection-list > li:first-child {
    width: 100%;
}

.career-filter > .selection:last-child .selection-list > li:last-child {
    padding-bottom: 0;
}

/* 체크박스 레이블 */
.career-filter label.i-checkbox {
    display: inline-block;
    position: relative;
    padding: 5px 0;
    height: 30px;
    vertical-align: top;
    cursor: pointer;
}

/* 체크박스 input 숨김 처리 */
.career-filter label.i-checkbox input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    z-index: 0;
}

/* 체크박스 아이콘 래퍼 */
.career-filter label.i-checkbox .ip-icon-checkbox {
    display: inline-block;
    position: relative;
    margin-right: 10px;
    vertical-align: top;
    width: 20px;
    height: 20px;
}

/* 체크박스 unchecked 상태 - PC 포털 스타일 */
.career-filter .i-checkbox .ip-icon-checkbox .checkbox-unchecked {
    width: 20px;
    height: 20px;
    display: block;
    border: 1px solid #D5D8DC;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    background-image: none !important;
}

/* 체크박스 checked 상태 아이콘 - PC 포털 스타일 */
.career-filter .i-checkbox .ip-icon-checkbox .checkbox-checked {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    display: none;
    background-image: url('/static/global/images/common/checked.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* 체크박스 checked 상태 배경색 변경 */
.career-filter .i-checkbox input:checked + .ip-icon-checkbox .checkbox-unchecked {
    background-color: var(--nc-blue1, #054184);
    border-color: var(--nc-blue1, #054184);
}

/* 체크박스 checked 상태 아이콘 표시 */
.career-filter .i-checkbox input:checked + .ip-icon-checkbox .checkbox-checked {
    display: block;
}

.career-filter label.i-checkbox .text {
    display: inline-block;
    position: static;
    color: #555;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -.025em;
    vertical-align: top;
    white-space: nowrap;
}

/* 하위 토글 버튼 */
.career-filter .btn-lower-toggle {
    display: inline-block !important;
    margin-left: 12px;
    padding: 2px !important;
    width: 24px !important;
    height: 24px !important;
    vertical-align: middle;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Override existing icon styles */
.career-filter .btn-lower-toggle > .icon,
.career-filter .btn-lower-toggle > .icon::before,
.career-filter .btn-lower-toggle > .icon::after {
    display: none !important;
}

/* Toggle Icon Styling */
.career-filter .btn-lower-toggle .toggle-icon {
    width: 20px !important;
    height: 20px !important;
    display: block;
    transition: transform 0.2s ease;
}

/* Active state - show minus icon */
.career-filter .btn-lower-toggle.active .toggle-icon {
    transform: rotate(0deg);
}

/* 채용분야 리스트 */
#job-field-list {
    display: block;
}

/* 1depth items - Development, Business, etc. */
#job-field-list > li {
    position: relative;
    display: block !important;
    float: none !important;
    width: 100% !important;
    padding: 5px 0;
    overflow: visible !important; /* Ensure button remains visible */
    min-height: 34px; /* Minimum height to contain button */
}

/* Wrapper for label to contain height */
#job-field-list > li > label.i-checkbox {
    display: inline-block;
    width: calc(100% - 30px);
    position: relative;
    min-height: 26px;
    line-height: 26px;
}

/* Position toggle button to the first line of the li item - FIXED POSITION */
#job-field-list > li > .btn-lower-toggle {
    position: absolute !important;
    right: 0;
    top: 5px !important; /* Fixed position from top, never moves */
    margin-left: 0 !important;
    height: 24px !important; /* Fixed height */
    z-index: 10; /* Ensure it stays on top */
    transform: none !important; /* Prevent any transform changes */
}

/* 2depth 리스트 */
.selection-list-dep2 {
    display: none;
    clear: both;
    width: 100%;
    padding-top: 12px;
    padding-left: 32px;
    box-sizing: border-box;
    list-style: none;
}

.selection-list-dep2 > li {
    display: block;
    float: none;
    width: 100%;
    padding: 0;
}

/* 모바일 하단 고정 버튼 영역 */
.btn-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background-color: #fff;
    display: flex;
    gap: 12px;
    z-index: 1000;
    margin: initial;
}

.btn-wrap .btn {
    flex: 1;
    height: 48px;
    font-size: 15px;
    font-weight: 400;
    border-radius: 2px;
    border: none;
}

.btn-wrap .btn.half {
    background-color: var(--bg100);
    color: var(--nc-blue1);
    border: 1px solid var(--nc-blue1);
    margin: 0;
    padding: 0 16px;
}

.btn-wrap .btn.filterSubmit {
    background-color: var(--nc-blue1, #054184);
    color: var(--text700);
}

/* 접기/펼치기 상태 관리 */
.selection-list.collapsed {
    display: none !important;
}

/* 채용 분야 리스트 특별 처리 */
#job-field-list.collapsed {
    display: none !important;
}

.btn-selection-toggle.collapsed .icon-expand {
    transform: rotate(180deg);
}

/* 모바일에서 HTML lock 클래스 적용 시 스크롤 방지 */
html.lock {
    overflow: hidden;
}

html.lock body {
    overflow: hidden;
    height: 100vh;
}

/* 필터 콘텐츠 하단 여백 추가 (하단 고정 버튼 영역만큼) */
.dialog-cont {
    padding-bottom: 80px;
}
.filter-item {
    display: none !important;
}

/* 법인 구분 섹션 스타일 강제 적용 */
#companyFilterList > li.half {
    width: 50% !important;
    float: left !important;
    display: block !important;
}

#companyFilterList > li:first-child {
    width: 100% !important;
}

/* 필터 초기값 상태 */
.career-search .btn-filter {
    border-radius: 2px;
    border: 1px solid var(--gray400, #D6DCE0);
    background: var(--bg100) url(/static/global/images/apply/list/filter_black.svg) 50% 50% no-repeat;
}

/* 필터 적용 상태 */
.career-search .btn-filter-active {
    border: 1px solid var(--nc-blue1, #0541B4);
    background: var(--nc-blue1) url(/static/global/images/apply/list/filter_white.svg) 50% 50% no-repeat;
}

.field.fill .i-text[type="search"], .field.active .i-text[type="search"] {
    background: initial;
}

