@charset "UTF-8";

/* 1365 예가산출 결과 — 화면 삽입 조각(`.yega_1365_data_view`)과 새 창(인쇄·동가목록)이 같이 쓴다.
   원천: resource/bnb/css/print_popup_new.css + 원문 인쇄·동가목록 화면 머리 `<style>` + yega.css 의
   `.orange_brown`·`.dotdotdot`. 셀렉터는 원문 그대로(`.print_body` 아래) — 이 파일은 예정가산출 두 문서에서만 실린다.

   구성(라이브 computed 대조):
   ① 새 창 기반 — CI3 새 창(빈 레이아웃)은 reset/common.css 를 싣지만 우리 popup 레이아웃은 기반 CSS 가 없다(페이지 자급).
      소비 규칙만 `.popup-body` 아래로 이식(14px · #202020 · 자간 -0.05em · th 굵기 normal · table 100%). 화면 삽입 조각은 본문 layout.css 가 같은 값을 준다.
   ② box-sizing — 본문 layout.css 의 `* { border-box }` 가 `.print_body`(width 1020 + padding 2rem = 1084)·`.yega_header`(height + padding-top)를
      줄인다. CI3 는 content-box → `.yega_contents` 아래 전량 content-box 로 되돌린다.
   ③ 동가목록(`.yega_same_cost`)은 CI3 가 **다른 CSS**(print_popup.css = 절대배치 판)를 싣는다 — 아래 블록이 flex 판을 덮어쓴다. */

/* ① 새 창 기반 (CI3 reset.css:4~11 + common.css:4 소비분). `:where()` = 특이성 0 — 원문의 bare 셀렉터와 같은 우선순위여야
   `.tel_1365`(색 #333·자간 -0.25px) 같은 단일 클래스 규칙이 이긴다. 웹폰트는 popup 레이아웃의 공용 글꼴 시트가 준다. */
/* 글꼴 = popup 레이아웃이 싣는 공용 `css/shared/fonts/noto-sans-kr.css` — 옛 고정 굵기 @font-face 는 두지 않는다(다시 선언하면 이 시트를 함께 싣는
   예정가 본 화면에서 700 이 다른 면으로 그려진다). */
:where(.popup-body) { margin: 0; padding: 0; background: #fff; }
:where(.popup-body), :where(.popup-body) div, :where(.popup-body) th, :where(.popup-body) td, :where(.popup-body) input, :where(.popup-body) p, :where(.popup-body) select, :where(.popup-body) button {
    color: #202020;
    font-family: 'Noto Sans KR', AppleSDGothicNeo-Regular, '맑은 고딕', 'Malgun Gothic', 나눔고딕, 돋움, Dotum, 굴림, Gulim, 'Apple SD Gothic Neo', sans-serif, verdana;
    letter-spacing: -0.05em;
}
:where(.popup-body) p { margin: 0; }
:where(.popup-body), :where(.popup-body) th, :where(.popup-body) td, :where(.popup-body) input, :where(.popup-body) select { font-size: 14px; font-weight: normal; }
:where(.popup-body) table { width: 100%; border-collapse: collapse; border-spacing: 0; }
:where(.popup-body) img { border: 0 none; vertical-align: middle; }
/* 원문 인쇄 화면 머리 `<style>` 의 `#contentesWrap … th, td { padding: 3px }` — 콤마 뒤 `td` 가 bare 라 문서 전체 td 에 3px 이 먹는다
   (innerTable 을 담는 바깥 표의 셀 들여쓰기 2px 가 이것). 동가목록 원문엔 없다. */
:where(.yega_contents:not(.yega_same_cost)) td { padding: 3px; }

/* ② content-box 복원 */
.yega_contents, .yega_contents * { box-sizing: content-box; }
/* ⚠ 표는 UA 기본이 border-box(Chrome `table { box-sizing: border-box }`) — 위 전량 규칙이 이것까지 뒤집으면 100% 폭 표가 보더만큼 1px 넘친다. */
.yega_contents table { box-sizing: border-box; }
/* CI3 reset.css 는 p 여백 0 이 전역 — 본문 layout.css 엔 없어 화면 삽입 조각의 빈 `.sub_title_1365 > p` 가 UA 여백(1em×2)으로 28px 을 먹는다. */
.yega_contents p { margin: 0; }

.print_body { position: relative; width: 1020px; max-width: 1020px; min-width: 1020px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; }
.print_body table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.setting_header { width: 100%; display: flex; align-items: center; justify-content: end; }
.print_body .setting_header { height: 50px; }
.right_area { display: flex; align-items: center; justify-content: space-between; }

.yega_header { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding-top: 32px; height: 55px; }
.print_type_2 .yega_header { height: 188px; }
.yega_header.const_cost_header { height: 240px !important; }
.yega_same_cost .yega_header { padding-top: 20px; height: 80px; }
.yega_header .title { display: flex; flex-direction: column; justify-content: space-between; align-items: center; height: 100vh; width: 100%; }
.title_1365 { display: flex; flex-direction: row; align-self: center; margin: 0 auto; }
/* span(건설넷 원문)만 line-height 30·자간 -1 — 전기넷 원문은 <p> 라 원문 `.title_1365 > p`(색·크기·굵기뿐)로 44px 높이가 된다. 합치면 전기넷 머리가 11px 어긋난다. */
.title_1365 > span { color: #469ab5; font-size: 30px; line-height: 30px; letter-spacing: -1px; font-weight: bold; margin: 0 auto; }
.title_1365 > p { color: #469ab5; font-size: 30px; font-weight: bold; }
.yega_same_cost .title_1365 > p:not(.a_notice_text) { width: 120px; }
/* `.sub_title_1365` 안의 A값 안내 p 는 원문 규칙이 없다(print_popup.css 는 `.title_1365 >` 만) — 보통 굵기 · 상속 크기 · `.red` 색. */
.title_1365 > p.a_notice_text { font-size: 15px; line-height: 15px; letter-spacing: -0.25px; font-weight: bold; color: #ff0000 !important; }
.sub_title_1365 { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.tel_1365 { display: flex; flex-direction: row; align-self: start; color: #333; font-size: 12px; line-height: 15px; letter-spacing: -0.25px; font-weight: bold; left: 10px; top: 45px; margin: 0; }

.print_body .yega_header table.ordering_table { bottom: 0; }
.print_body table.ordering_table { border-top: 2px solid #535353; border-right: 1px solid #e0e0e0; }
.print_body table.ordering_table th { background: #fafafa; color: #060707; border: 1px solid #e0e0e0; border-top: 0; padding: 4px 0; }
.print_body table.ordering_table td { background: #fff; border: 1px solid #e0e0e0; padding: 4px 10px; }
.print_body table.innerTable { table-layout: auto; min-width: 120px; }
table.innerTable td { white-space: nowrap; padding: 0 3px 0 0; font-size: 6pt; }
table.fixed-table { table-layout: fixed; width: 100%; }
table.fixed-table tr { width: 100%; }
table.innerTable td.selected_num { font-size: 6pt; text-align: right; }
table.innerTable td.selected_cost, table.innerTable td.const_apply_cost { font-size: 8pt; }
table.innerTable td.selected_cost.selectBig span, table.innerTable td.const_apply_cost.constBig span { text-decoration: underline; }
table.innerTable td.selected_rate { font-size: 7pt; }
.page-break { height: 40px; }
.no_border, .no_border tr, .no_border tr th, .no_border tr td { border: none !important; padding: 1px !important; font-size: 11px !important; }
/* yega.css 의 `.practice-yega table.ordering_table td { padding !important }`(0,2,2) 가 위 규칙(0,1,2)을 이긴다 — CI3 는 둘이 같은 특이성이라
   뒤에 실린 print_popup 이 이겼다. 같은 결과가 나오게 특이성을 맞춘다(15예가 미니표 셀 1px). */
.print_body .no_border tr th, .print_body .no_border tr td { border: none !important; padding: 1px !important; font-size: 11px !important; }
.print_body .red { color: red !important; }
.print_body .blue { color: #0000ff !important; }
.print_body .orange_brown { color: #da6405; }
.print_body .dotdotdot { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; word-wrap: normal !important; }
.print_body .numberInput { text-align: right; }
.print_body .center { text-align: center; }
.print_body .padding_none { padding: 0 !important; }

/* ③ 동가목록 — CI3 print_popup.css(절대배치) + 원문 동가목록 머리 <style>. flex 판(위) 규칙을 특이성으로 덮는다. */
.yega_same_cost.print_body { width: auto; max-width: none; min-width: 0; margin: 0 auto; padding: 0; gap: 0; display: block; position: static; }
.yega_same_cost .setting_header { position: relative; width: 100%; height: 260px; margin: 0 auto; display: block; }
.yega_same_cost.print_body .setting_header { height: 50px; }
.yega_same_cost .right_area { float: right; padding-top: 14px; display: block; }
.yega_same_cost .yega_header { position: relative; width: 100%; height: 260px; margin: 0 auto; display: block; }
.yega_same_cost.print_body .yega_header { padding-top: 20px; height: 80px; }
.yega_same_cost .yega_header .title { display: block; height: auto; width: auto; }
/* align-self:auto — 위 flex 판의 `align-self:center` 가 남으면 Chrome 이 absolute 박스를 정적 위치를 축으로 세로 가운데 정렬해(CSS Align 3 의
   abspos 정렬) 제목이 p 높이의 절반(15px)만큼 위로 올라간다(실측 20→5). */
.yega_same_cost .title_1365 { position: absolute; width: 100%; display: block; margin: 0; align-self: auto; }
.yega_same_cost .title_1365 > p { color: #469ab5; font-size: 30px; line-height: 30px; letter-spacing: -1px; font-weight: bold; font-family: 'Malgun Gothic'; width: 200px; margin: 0 auto; }
.yega_same_cost.print_body .title_1365 > p:not(.a_notice_text) { width: 120px; }
.yega_same_cost .title_1365 > p.a_notice_text { font-size: 15px; line-height: 15px; letter-spacing: -0.25px; font-weight: bold; font-family: 'Malgun Gothic'; width: 330px; }
.yega_same_cost .tel_1365 { position: absolute; left: 10px; top: 45px; display: block; margin: 0; font-family: 'Malgun Gothic'; }
.yega_same_cost.print_body table { table-layout: fixed; width: 100%; }
.yega_same_cost.print_body .yega_header table.ordering_table { position: absolute; bottom: 0; }
/* 인쇄 단추 — 원문 `resource/bnb/css/layer.css` `.btn.s_print_btn`(s_btn_09 · 50×25) + `.btn`(inline-block · margin-right 3px).
   그림은 같은 바이트의 order-analysis 사본(다른 제품 폴더 참조 자리 = 복사 ❌). 창 오른쪽 끝에서 밖으로 나가 가로 스크롤이 생기는 것도 원문 그대로. */
.yega_same_cost .setting_header .btn.s_print_btn { display: inline-block; margin-right: 3px; width: 50px; height: 25px; background-image: url(/images/shared/order-analysis/s_btn_09.png); }

@media print {
    @page { size: auto; }
    body, .body { margin: 0; height: auto !important; }
    .page-break { height: 0; display: block; page-break-before: always; }
    table.innerTable td { line-height: 13px; font-size: 6pt; }
    table.innerTable td.line_count_num { font-size: 5pt; }
    .print_none { display: none !important; }
    * { background: transparent !important; }
}
