/*
    공종(공사/용역/물품) 커스텀 드롭다운 — 옵션바 select 형태 버튼 + 체크박스 레이어.
    레이어 항목의 체크 모양은 bbs/list.css 의 `input.ij_checkbox + div` 규칙에 기댄다(원문도 공용 ij_checkbox 규칙 · 이 조각을 쓰는 화면은 모두 bbs/list.css 를 싣는다). 버튼은 옵션바 native select(.ij_select)와 나란히 서므로 같은 박스로.
*/

/* 상자 글자 크기는 적지 않는다 — 원문 `div.ij_select#select_checkbox_section` 은 선언 없이 물려받는다(버튼·레이어는 각자 정한다) */
.bid_section_filter { position: relative; display: inline-block; vertical-align: baseline; }

/* 버튼(select 형태) */
.bid_section_filter__btn {
    /* 폭·안쪽 여백 = CI3 list/multiple_part_section.css:2~13 `#selected_name` 그대로(width 93 고정 · padding 0 30 0 8).
       원문은 readonly input 이라 넘치는 글자를 자른다 — button 은 overflow 로 같은 모양을 낸다. */
    position: relative; width: 93px; height: 30px; box-sizing: border-box; overflow: hidden;
    padding: 0 30px 0 8px; margin: 0; text-align: left;
    background-color: #fff; border: 1px solid #aab5cb; border-radius: 0;
    font-size: 13px; font-weight: 400; color: #8491a7; line-height: 28px;
    cursor: pointer; white-space: nowrap;
}
.bid_section_filter__btn::after {
    /* 화살표 = CI3 ij_layout.css:395~407 `div.ij_select:before`(top 13 · right 8) — 원문 기준점은 테두리 없는 div, 여기는
       1px 테두리 button 의 안쪽(padding box)이라 같은 자리가 12 · 7 이다(실측: div 상자 = input 상자). */
    content: ""; position: absolute; top: 12px; right: 7px; pointer-events: none;
    width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid #8491a7;
}
/* 체크를 모두 풀면 글자가 비는데(JS textContent='') 빈 button 은 기준선이 바닥으로 내려가 상자가 33px 로 늘고 옆 셀렉트가 9px 아래로 밀린다.
   원문 readonly input 은 비어도 글자 기준선을 유지 → 폭 0 문자로 기준선을 남긴다 */
.bid_section_filter__text:empty::before { content: "\200b"; }
/* 강조 = 상자 전체(펼친 레이어 포함)에 마우스가 있을 때 — CI3 ij_layout.css:436~439 `div.ij_select:hover #selected_name`·:447~459 `:hover:before`.
   커서 = 화살표 — :441~445 `input#selected_name:hover{cursor:default}` */
.bid_section_filter:hover .bid_section_filter__btn { border-color: #5c667b; color: #5c667b; }
.bid_section_filter:hover .bid_section_filter__btn::after { border-top-color: #5c667b; }
.bid_section_filter__btn:hover { cursor: default; }

/* 레이어 — CI3 list/multiple_part_section.css:15~38 `#select_checkbox_container` 그대로: 선택상자 바로 아래(원문은 input 다음
   흐름 자리 = 입력칸 30 아래) · 폭 = 선택상자 폭 · 테두리 #aab6cb · 모서리 0 · 그림자 0 0 5 · 글자색 #8491a7 · line-height 3px(원문 값). */
.bid_section_filter__layer {
    position: absolute; top: 100%; left: 0; z-index: 3;
    width: 100%; box-sizing: border-box; margin: 0;
    font-size: 13px; font-weight: 400; line-height: 3px; color: #8491a7; vertical-align: -0.5px;
    background-color: #fff; border: 1px solid #aab6cb; border-radius: 0; outline: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.bid_section_filter__layer[hidden] { display: none; }

/* 항목 — `#select_checkbox_form`(:39 여백 3 5) · `.chk_box_div`(:55~58 위아래 2) · `.select_checkbox`(:40~43) ·
   체크 모양 = 원문 `input.ij_checkbox + div`(ij_layout.css:256~ → 재구축 bbs/list.css:11~30 같은 규칙) */
.bid_section_filter__form { padding: 3px 5px; }
.bid_section_filter .chk_box_div { margin-top: 2px; margin-bottom: 2px; }
.bid_section_filter .select_checkbox { display: inline-block; color: #8491a7; }

/* 확인 띠 — `.confirm_container`(:44~48) · `#search_form_btn`(:49~57) */
.bid_section_filter__btns { display: flex; justify-content: center; align-items: center; }
.bid_section_filter__apply {
    height: 20px; width: 100%; margin: 0; padding: 0; box-sizing: border-box;
    border: 0; border-top: 1px solid #dbdde1; border-radius: 0;
    text-align: center; color: #8491a7; background: #f4f6fa; cursor: pointer;
}
.bid_section_filter__apply:hover { color: #3267e9; background: #f1f5ff; }
