/**
 * Filter Header CSS
 * 필터 헤더와 리셋 버튼 스타일링
 */

/* 필터 헤더 플렉스 레이아웃 */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #5D5D5D;
    padding-bottom: 14px;
}

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

/* 리셋 버튼 */
.apply-btn-reset {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

/* 리셋 아이콘 */
.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;
}

.career-filter .i-checkbox .ip-icon-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.career-filter .i-checkbox .ip-icon-checkbox .checkbox-unchecked {
    width: 20px;
    height: 20px;
    border: 1px solid #D5D8DC;
    border-radius: 2px;
    box-sizing: border-box;
    background-image: none !important;
    background-color: #fff;
}

.career-filter .i-checkbox input:checked + .ip-icon-checkbox .checkbox-unchecked {
    background-color: var(--nc-blue1);
    border-color: var(--nc-blue1);
}

.career-filter .i-checkbox .ip-icon-checkbox .checkbox-checked {
    width: 14px;
    height: 14px;
    top: 3px;
    left: 3px;
    background-size: 14px 14px;
    background-position: center;
}

/* Selection Header - Flex layout for title and expand button */
.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
}

/* Selection Title */
.selection-header .selection-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Selection Toggle Button */
.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);
}

/* Expand/Collapse Icon */
.btn-selection-toggle .icon-expand {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

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

/* Selection List Animation */
.selection-list {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

/* Collapsed state for selection list */
.selection-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.selection-list label.i-checkbox {
    font-size: 0;
}

/* Lower Toggle Button for Job Field Sub-items */
.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;
    transition: background-color 0.2s ease;
    background: url('/static/global/images/apply/list/plus.svg') center / 20px 20px no-repeat;

}

/* 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;
}

/* Active state - show minus icon */
.career-filter .btn-lower-toggle.active {
    background-image: url('/static/global/images/apply/list/minus.svg');
}

/* Apply Record Count Number Styling */
.applyRecordCount .count {
    color: var(--nc-blue1, #0541B4);
}

/* Job Field Section - Container Styles */
#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 */
}

.career-filter .btn-lower-toggle .toggle-icon {
    display: block;
    width: 100%;
    height: 100%;
}

/* 2depth container - clear and full width below */
.selection-list-dep2 {
    display: none;
    clear: both;
    width: 100%;
    padding-top: 5px;
    padding-left: 20px;
    box-sizing: border-box;
    margin-top: 0;
}

/* 2depth items - keep original block layout */
.selection-list-dep2 > li {
    display: block;
    float: left;
    width: 100%;
    padding: 5px 0;
}

/* When 2depth is visible, ensure proper layout */
.selection-list-dep2:not([style*="display: none"]) {
    display: block !important;
}
.contents-header > .print-word .count{
    color: var(--nc-blue1, #0541B4);
}