/* BASIC css start */
/* A/S 접수증 - pc/견적서+주문서팝업의 주문서 모드를 기반으로 만듦(디자인 동일 유지 요청).
   견적서 모드가 아예 없는 단일 화면이라 body.is-order-mode 이중모드 구조는 전부 제거하고,
   "주문서 모드 전용"이었던 규칙들을 전부 기본값으로 승격시킴 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {margin: 0; font-family: 'Noto Sans KR', sans-serif; }
img {vertical-align:middle;}
#estimate {width:850px; margin:0 auto; font-family:'Noto Sans KR', sans-serif; font-size:12px; color:#1C1C1C;}
#estimate .title {position: relative; padding:3px; text-align:center;}
#estimate .underline {text-decoration: underline;}
#estimate .quotation_title { text-align: left; padding: 30px 0px 0px 0px; }
/* 텍스트 로고 -> 이미지 로고로 교체(상단). 실제 SVG 비율을 확인 못 해서 폭 기준으로만
   잡음 - 라이브에서 보고 크기가 안 맞으면 이 width 값만 조정하면 됨 */
#estimate .quotation-logo-img { width: 300px; height: auto; display: block; }
#estimate .est_title { font-family: "Open Sans", sans-serif !important; font-size: 11px; padding: 5px 0px 50px 0px; text-align: left; }

/* 로고 옆 날짜 - 견적서 모드가 없어서 항상 노출(도장 자리 재사용하던 주문서 규칙을 기본값으로) */
#estimate .title-order-date { position: absolute; top: 30px; right: 0; font-family: 'Noto Sans KR', sans-serif; padding: 0px; text-align: right; }

/* <button> 요소는 사이트 전역 폰트 리셋(a,p,table 등) 대상이 아니라서 font-family를 직접 지정해야 함 */
#estimate .estimate-order-btn { display: inline-block; width: 90px; font-size: 12px; line-height: 35px; font-family: 'Noto Sans KR', sans-serif !important; color: #1c1c1c; text-align: center; border: 1px solid #f4f0ea; background: #f4f0ea; padding: 0; margin: 0; border-radius: 0; cursor: pointer; }
#estimate .estimate-order-btn:disabled { opacity: 0.5; cursor: default; }
#estimate .estimate-print-btn { display: inline-block; width: 90px; font-size: 12px; line-height: 35px; font-family: 'Noto Sans KR', sans-serif !important; color: #fff; text-align: center; border: 1px solid #1c1c1c; background: #1c1c1c; padding: 0; margin: 0; border-radius: 0; cursor: pointer; }
/* 상단 여백만 50px - 이 버튼 영역은 인쇄 시 display:none이라 인쇄 레이아웃에는 영향 없음 */
#estimate .btn-wrap {display:flex; gap:10px; align-items:center; justify-content:center; margin:100px 0 30px 0;}

#estimate .oi-top { margin-bottom: 10px; margin-top: 10px; }
#estimate .oi-warp { font-family: 'Noto Sans KR', sans-serif; font-size: 12px; display: flex; align-items: center; justify-content: start; margin: 30px 0px; letter-spacing: 0.02em; }
/* CONTACT/PAY&SHIP/ADDRESS는 위 기본 margin(30px)과 분리해서 붙여줌 */
#estimate .oi-top .oi-warp { margin: 0px; }
/* 체크박스를 .oi-left 오른쪽 끝에 고정 */
#estimate .oi-left { width: 150px; flex-shrink: 0; font-weight: 400; letter-spacing: 0.03em; display: flex; align-items: center; justify-content: space-between; }
#estimate .oi-label-check { margin: 0 15px 0 4px; vertical-align: middle; }
#estimate .oi-right { flex-grow: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 5px 0px; }

/* 스크린샷 스타일 참고 - 옅은 회색 채움 박스형 인풋 */
#estimate .oi-box { font-family: 'Noto Sans KR', sans-serif; font-size: 12px; line-height: 1.6 !important; border: none; background: #f5f5f5; padding: 15px 12px; box-sizing: border-box; color: #1c1c1c; }
#estimate .oi-box::placeholder { color: #999; }
#estimate .oi-box:focus { outline: none; }
/* flex-basis를 calc(50% - gap의 절반)으로 고정 - 콘텐츠와 무관하게 항상 동일한 폭이 나옴 */
#estimate .oi-half { flex: 0 0 calc(50% - 10px); box-sizing: border-box; }
#estimate .oi-full { width: 100%; }

/* 가독성을 위해 PRODUCT/ENGRAVING/NOTE를 각각 하나의 박스로 묶음 */
#estimate .oi-group-box { margin-top: 30px; box-sizing: border-box; }
/* A/S 비용 안내/ENGRAVING/NOTE 박스는 위 공통 여백(30px)에서 각각 분리 - 서로 독립적으로
   조절 가능(A/S 비용 안내 아래 여백이 너무 커 보여서 ENGRAVING의 margin-top과 분리 요청) */
#estimate .oi-as-guide-box { margin-top: 20px; }
#estimate .oi-engraving-box { margin-top: 20px; }
#estimate .oi-note-box { margin-top: 20px; }
/* ENGRAVING/NOTE는 주문서와 동일하게 테두리 박스를 유지 - PRODUCT(oi-product-box)는 테이블이
   전체폭으로 노출되도록 테두리/패딩 없이 그대로 둠(요청에 따라 제거된 상태 유지) */
#estimate .oi-engraving-box,
#estimate .oi-note-box,
#estimate .oi-as-guide-box {
    border: 1px solid #e7e7e7;
    padding: 0px 20px;
}
/* ENGRAVING/A·S 비용 안내 박스만 상하 여백을 따로 줌 */
#estimate .oi-engraving-box,
#estimate .oi-as-guide-box { padding: 10px 20px; }
#estimate .oi-engraving-box .oi-warp { margin: 0px; }
/* A/S 비용 안내 타이틀 줄만 기본(30px 0px)과 분리해서 15px 0px로 */
#estimate .oi-as-guide-box .oi-warp { margin: 10px 0px; }
#estimate .oi-group-box .oi-note-row { margin-top: 10px; margin-bottom: 10px; }
/* CONSENT는 체크박스가 타이틀 앞이라, .oi-left 기본값(양끝 정렬) 대신 왼쪽 정렬로 바꿈 */
#estimate .oi-consent-box .oi-left { justify-content: flex-start; }
/* 인쇄 시 증상(변경사항)이 비어있으면 estimate_js.txt와 동일한 로직으로 "NOTE" 라벨을
   비고 행으로 옮겨 붙임 - 그 행의 .oi-left가 비어있어서 라벨이 왼쪽 정렬되게 함 */
#estimate .oi-left:has(.oi-print-note-label) { justify-content: flex-start !important; }
#estimate .oi-print-note-label { margin-right: 6px; }
/* CONSENT 박스는 테두리 없이 */
#estimate .oi-consent-box { border: none; padding-left: 0; padding-right: 0; }
#estimate select.oi-box { appearance: auto; cursor: pointer; }
/* ENGRAVING 옆 +/- 아이콘 - 박스 없이 머터리얼 심볼만 */
#estimate .oi-engraving-icon {
    font-size: 16px; margin-right: 10px; color: #1c1c1c;
    cursor: pointer; vertical-align: middle; user-select: none;
}
#estimate .oi-engraving-icon:hover { color: #1c1c1c; }
/* 활성화(서체 미리보기 열기) 전 ENGRAVING 한 줄만 있는 상태의 여백을 압축 */
#estimate #oi_engraving_single_row { padding: 0px 0px; }
/* ENGRAVING (M)/(W) 텍스트 입력창 - 소문자 g/y 등 어센더 잘림 방지로 line-height를 풀어줌 */
#estimate #oi_font_text_m,
#estimate #oi_font_text_w { line-height: normal; }

/* ==============================
   A/S 비용 안내 - 접수 중 직원이 참고하는 화면 전용 가격정책 텍스트(인쇄 제외, 위 html
   주석 참고). oi-first-row라 기본 여백 없음 - 펼치면 그 아래 패널에만 여백을 줌
   ============================== */
/* pc/상품상세 "쇼핑가이드" 팝업과 동일한 톤 - 볼드 섹션 타이틀 + "·" 접두 평문 줄들,
   불릿 인덴트/박스 없이 섹션 사이 여백만으로 구분 */
#estimate .oi-as-guide-panel { margin: 30px 0px 10px 0px; }
#estimate .oi-as-guide-section { margin-bottom: 28px; }
#estimate .oi-as-guide-section-last { margin-bottom: 6px; }
#estimate .oi-as-guide-title { font-family: 'Noto Sans KR', sans-serif; font-size: 13px; font-weight: 600; color: #1c1c1c; margin: 0 0 10px 0; letter-spacing: 0.02rem; }
#estimate .oi-as-guide-line { font-family: 'Noto Sans KR', sans-serif; font-size: 12px; line-height: 1.5; color: #1c1c1c; margin: 0; letter-spacing: 0.01rem; }
#estimate .oi-as-guide-subtitle { font-family: 'Noto Sans KR', sans-serif; font-size: 12px; font-weight: 600; color: #1c1c1c; margin: 10px 0 2px 0; letter-spacing: 0.01rem; }

/* ==============================
   ENGRAVING 서체 미리보기(아틀리에 큐레이션 서체 축소판) - 주문서와 완전히 동일
   ============================== */
#estimate .oi-marking-panel { display: block; margin-top: 10px; }
#estimate .oi-marking-panel-inner { width: 100%; padding-top: 15px; box-sizing: border-box; }
#estimate .oi-marking-guide-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
#estimate .oi-marking-chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#estimate .oi-marking-right-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#estimate .oi-marking-target-row { display: flex; gap: 8px; }
#estimate .oi-marking-target-btn { font-family: 'Josefin Sans', sans-serif; font-size: 11px; letter-spacing: 0.05em; padding: 2px 4px; border: none; background: transparent; color: #999; cursor: pointer; }
#estimate .oi-marking-target-btn.is-active { color: #1c1c1c; font-weight: 600; text-decoration: underline; }
#estimate .oi-marking-chip-btn { font-family: 'Noto Sans KR', sans-serif; font-size: 11px; padding: 2px 6px 3px; border: none; border-bottom: 1px solid transparent; background: transparent; color: #1c1c1c; cursor: pointer; white-space: nowrap; transition: border-bottom-color 0.2s ease; }
#estimate .oi-marking-chip-btn:hover { border-bottom-color: #1c1c1c; }
#estimate .oi-marking-input { background: transparent; border: none; border-bottom: 1px solid #1c1c1c; padding: 12px 0px 8px 0px; margin-bottom: 16px; line-height: normal; }
#estimate .oi-marking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 20px; }
#estimate .oi-marking-font-warp { display: flex; flex-direction: column; gap: 5px; padding: 10px 5px 10px 20px; background-color: #fbfbf9; border: none; cursor: pointer; box-sizing: border-box; min-width: 0; transition: background-color 0.2s ease; }
#estimate .oi-marking-font-warp:hover { background-color: #ffffff; }
#estimate .oi-marking-font-warp.oi-marking-hide-eng-only { display: none; }
#estimate .oi-marking-font-name { font-family: 'Josefin Sans', sans-serif; font-size: 9px; letter-spacing: 0.04em; color: #1c1c1c; text-transform: uppercase; }
#estimate .oi-marking-preview { font-size: 18px; color: #1c1c1c; line-height: 2.0; min-height: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#estimate .oi-marking-heart { font-family: 'Noto Sans KR', sans-serif; }
#estimate .oi-marking-preview-1 { font-family: 'Courgette', cursive; }
#estimate .oi-marking-preview-2 { font-family: 'Dancing Script', cursive; }
#estimate .oi-marking-preview-3 { font-family: 'Hahmlet', serif; }
#estimate .oi-marking-preview-4 { font-family: 'Noto Serif KR', serif; }
#estimate .oi-marking-preview-5 { font-family: 'Noto Sans KR', sans-serif; }
#estimate .oi-marking-preview-6 { font-family: 'Nanum Pen Script', cursive; font-size: 22px; }
#estimate .oi-marking-preview-7 { font-family: 'Josefin Sans', sans-serif; }
#estimate .oi-marking-preview-8 { font-family: 'Playwrite DE SAS', cursive; font-size: 14px; }
#estimate .oi-marking-preview-9 { font-family: 'Beth Ellen', cursive; font-size: 16px; }
/* 공용(병합) ENGRAVING select/input은 화면에서만 숨김(visibility:hidden - 레이아웃 유지),
   인쇄에는 값이 그대로 나가야 하므로 @media screen 전용으로만 건다 */
@media screen {
    #estimate .oi-marking-screen-hidden { visibility: hidden; }
}
#estimate .oi-note-row { margin-top: 30px; margin-bottom: 20px; }
/* ENGRAVING/소재/색상 드롭다운 - appearance:none + 커스텀 화살표(::after) */
#estimate select.oi-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; width: 100%; border: none; border-radius: 0; padding: 15px 24px 15px 12px; margin-bottom: 0px; box-sizing: border-box; }
#estimate .oi-select-wrap { position: relative; flex: 0 0 calc(50% - 10px); box-sizing: border-box; }
#estimate .oi-select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-left: 1.5px solid #1c1c1c;
    border-bottom: 1.5px solid #1c1c1c;
    transform: rotate(-45deg);
    transform-origin: center;
    pointer-events: none;
    transition: transform 0.2s ease, margin-top 0.2s ease;
}
#estimate .oi-select-wrap:focus-within::after {
    margin-top: -2px;
    transform: rotate(135deg);
}
/* CONTACT 체크박스 그룹 */
#estimate .oi-contact-check-group { display: inline-flex; align-items: center; }
#estimate .oi-contact-check-group .oi-label-check { margin-left: 4px; }
#estimate .oi-check { font-size: 11px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 400; }

/* ==============================
   커스텀 드롭다운(Material/Color/ENGRAVING 전부) - pc/상품분류 "정렬기준" 트리거+패널과
   동일한 방식(애니메이션/버튼/박스). 네이티브 select는 값 저장용으로 화면에서만 숨기고
   (as_js.txt enhanceSelectDropdown), 그 위에 이 버튼+목록 UI를 씌움. select를 감싸던 기존
   .oi-select-wrap/.oi-table-select-wrap은 폭 계산용으로 그대로 두되, 그 자체의 화살표(::after)는
   :has()로 감지해서 꺼서 새 화살표와 겹치지 않게 함 */
#estimate .oi-select-wrap:has(.oi-dropdown)::after,
#estimate .oi-table-select-wrap:has(.oi-dropdown)::after { display: none !important; }
#estimate .oi-dropdown { position: relative; display: block; width: 100%; }
#estimate .oi-dropdown select { display: none; }
#estimate .oi-dropdown-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    width: 100%; border: none; background: transparent; cursor: pointer; margin: 0;
    font-family: 'Noto Sans KR', sans-serif; font-size: 12px; color: #1c1c1c;
    text-align: left; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#estimate .oi-dropdown-trigger-label { line-height: 1.6; overflow: hidden; text-overflow: ellipsis; }
/* 사이트 공통 CSS(pc/공통CSS-JS.txt)의 레거시 리셋 `button span{visibility:hidden}` -
   구식 이미지 대체 버튼(스크린리더용 숨김 텍스트) 패턴을 위한 사이트 전역 규칙인데, 이
   트리거는 라벨/아이콘을 실제로 보여줘야 해서 그 규칙에 걸려 안 보였음(pc/상품분류의
   .ss-pc-cate-filter-trigger에서 겪은 것과 동일한 원인) - 여기서만 다시 보이게 되돌림 */
#estimate .oi-dropdown-trigger span { visibility: visible; }
/* 위 규칙이 ENGRAVING 공용 select(oi_engraving_single_controls)를 감싸는
   .oi-marking-screen-hidden의 상속된 visibility:hidden까지 덮어써서, 서체 미리보기로
   고르기 전인데도 항상 노출되는 회귀가 생겼음 - 그 범위 안에서는 다시 숨기게 되돌림.
   .oi-marking-screen-hidden 자체가 @media screen 전용(인쇄에는 값이 그대로 나가야 함)이라
   이 되돌림도 반드시 같은 범위(@media screen)로 묶어야 인쇄에 영향을 안 줌 */
@media screen {
    #estimate .oi-marking-screen-hidden .oi-dropdown-trigger,
    #estimate .oi-marking-screen-hidden .oi-dropdown-trigger span { visibility: hidden; }
}
#estimate .oi-dropdown-trigger .material-symbols-outlined {
    font-size: 16px; flex-shrink: 0; color: #1c1c1c;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
#estimate .oi-dropdown.is-open .oi-dropdown-trigger .material-symbols-outlined { transform: rotate(180deg); }
#estimate .oi-dropdown-panel {
    position: absolute; top: 100%; left: 0; z-index: 40; margin-top: 4px;
    min-width: 100%; background: #fff; border: 1px solid #eee; box-shadow: 0 10px 24px rgba(0,0,0,.07);
    padding: 8px 0; box-sizing: border-box;
}
#estimate .oi-dropdown-list { margin: 0; padding: 0; list-style: none; }
#estimate .oi-dropdown-list li { display: block; }
#estimate .oi-dropdown-list button {
    display: block; width: 100%; border: none; background: transparent; cursor: pointer;
    padding: 8px 16px; font-family: 'Noto Sans KR', sans-serif; font-size: 12px; color: #666;
    text-align: left; white-space: nowrap; transition: color .2s ease, background-color .2s ease;
}
#estimate .oi-dropdown-list button:hover { background: #faf9f7; color: #222; }
#estimate .oi-dropdown-list button.is-active { color: #222; font-weight: 500; }

/* ==============================
   PRODUCT 테이블 - Material/Color/Contents/Size/Price + 토글(NOTE/CONTACT와 동일한
   +/- 아이콘 방식, 최대 5행 고정 배치) - 예전 No(순번 표시)/Add(별도 제거열) 컬럼은
   토글 컬럼 하나로 통합됨
   ============================== */
#estimate .oi-product-box {  }
#estimate .oi-product-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#estimate .oi-product-table th { font-family: "Open Sans", sans-serif !important; font-size: 11px; letter-spacing: 0.05em; font-weight: 400; text-align: center; color: #1C1C1C; padding: 10px 8px 10px 8px; border-top: 2px solid #1c1c1c; border-bottom: 1px solid #1c1c1c; }
/* 세로 여백만 공통, 좌우 여백은 컬럼별로 각자 지정(아래) - Contents는 폭을 따로 안 줘서
   (table-layout:fixed) 나머지 컬럼들이 차지하고 남는 폭을 전부 자동으로 흡수함 */
#estimate .oi-product-table td { padding-top: 8px; padding-bottom: 8px; vertical-align: middle; }
#estimate .oi-pt-toggle { width: 30px; text-align: center; padding-left: 6px; padding-right: 6px; }
#estimate .oi-pt-material { width: 50px; padding: 0px 25px !important; }
#estimate .oi-pt-color { width: 50px; padding: 0px 25px 0px 0px !important; }
#estimate .oi-pt-contents { padding-left: 6px; padding-right: 6px; }
#estimate .oi-pt-size { width: 50px; padding: 0px 25px 0px 0px !important; }
/* 하위항목(옵션) 토글 - Description 바로 뒤(오른쪽)에 위치. 앞에 두면 "Description을 누르려면
   이 버튼부터 눌러야 하나" 오해를 살 수 있어서 뒤로 배치(+Add 트레일링 버튼 관례와도 일치) */
#estimate .oi-pt-suboption-toggle { width: 30px; text-align: center; padding-left: 6px; padding-right: 6px; }
#estimate .oi-pt-qty { width: 30px; padding: 0px 0px 0px 50px !important; text-align: center; }
#estimate .oi-pt-unit-price { width: 60px; padding: 0px 0px 0px 50px !important; text-align: right !important; }
#estimate .oi-pt-ext-price { width: 80px; padding: 0px 15px 0px 20px !important; text-align: right !important; }
/* 테이블 안 셀렉트/인풋은 회색박스 대신 밑줄 형식(스크린샷 참고) */
#estimate .oi-table-select-wrap { position: relative; display: block; width: 100%; }
/* select.oi-box{appearance:auto}보다 특이도가 낮아서 네이티브 화살표가 겹쳐 보이던 버그 -
   태그(select)를 셀렉터에 포함시켜 특이도를 맞추고 !important로 확실히 이김 */
#estimate select.oi-table-select { width: 100%; background: transparent !important; border: none; padding: 5px 15px 5px 5px !important; appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important; box-sizing: border-box; }
/* 네이티브 <select> 팝업이 열리고 닫히는 타이밍은 브라우저가 직접 제어해서, 여기 회전
   트랜지션을 붙이면 팝업 렌더링과 어긋나 "렉 걸린 것처럼" 보였음(브라우저 자체 한계) -
   그래서 여기는 애니메이션 없이 고정된 화살표만 표시(ENGRAVING의 .oi-select-wrap은
   그대로 회전 애니메이션 유지) */
#estimate .oi-table-select-wrap::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-left: 1.5px solid #1c1c1c;
    border-bottom: 1.5px solid #1c1c1c;
    transform: rotate(-45deg);
    pointer-events: none;
}
#estimate .oi-table-input { width: 100%; background: transparent !important; border: none; border-bottom: 1px solid #ededed; padding: 6px 0px !important; box-sizing: border-box; }
/* Contents 부분일치 검색 드롭다운 - "제품코드및거래처코드" 시트 목록에서 상품명/모델명/품목코드로 검색 */
#estimate .oi-product-search-wrap { position: relative; display: block; width: 100%; }
#estimate .oi-product-search-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: -1px;
    background: #fff;    
    max-height: 150px;
    overflow-y: auto;
    z-index: 30;
    box-sizing: border-box;
    border: 1px solid #ededed;    
}
#estimate .oi-product-search-item { font-family: 'Noto Sans KR', sans-serif; padding: 8px 10px; font-size: 12px; line-height: 1.4; cursor: pointer; }
#estimate .oi-product-search-item:last-child { border-bottom: none; }
#estimate .oi-product-search-item:hover,
#estimate .oi-product-search-item.is-active { background: #f5f5f5; }
#estimate .oi-product-search-empty { padding: 8px 10px; font-size: 12px; color: #999; }
#estimate .oi-table-input-size { text-align: center; }
#estimate .oi-table-input-qty { text-align: center; }
#estimate .oi-table-input-price { text-align: right; }
/* Ext. Price는 계산값 표시 전용(readonly) - 커서/밑줄을 없애 "수정 가능한 입력칸"으로 오해하지 않게 함 */
#estimate .oi-table-input-price.as-ext-price { cursor: default; font-weight: 500; border-bottom: none !important; }
/* NOTE/CONTACT와 동일한 +(add_circle)/-(do_not_disturb_on) 토글 아이콘 - 행마다 하나씩,
   자기 바로 다음 행을 열고 닫음(as_js.txt). 마지막(5번째) 행은 열 다음 행이 없어서 아이콘 자체가 없음.
   .oi-engraving-icon과 클래스를 공유해서 margin-right:10px를 그대로 물려받고 있었어서, 여기서
   별도로 분리해 0으로 되돌림(테이블 셀 안에서는 그 여백이 불필요) */
#estimate .oi-product-toggle-btn { font-size: 16px; color: #1c1c1c; cursor: pointer; margin-right: 0px; }
/* 하위항목(옵션) 토글 아이콘 - 제품 토글과 별개의 독립된 체인(as_js.txt 참고) */
#estimate .oi-suboption-toggle-btn { font-size: 16px; color: #1c1c1c; cursor: pointer; margin-right: 0px; }
/* 하위항목행의 Material/Color/Size 자리 - 3칸을 colspan으로 합쳐 빈 여백으로만 처리(드롭다운을
   그대로 두면 "여기도 선택해야 하나" 혼동을 줄 수 있어 아예 없앰) */
#estimate .oi-pt-mcs-blank { }
/* 하위항목 Description - 부모 제품에 속한 항목임을 시각적으로 구분하기 위해 살짝 들여쓰기 + 왼쪽 선 */
#estimate .oi-suboption-row .as-option-desc {  }
/* 이하여백 표기 - 품목 리스트 아래 남는 공간에 임의로 항목이 추가되는 걸 막는 관례적 표기 */
#estimate .oi-product-blank-note { text-align: center; font-size: 12px; color: #1c1c1c; letter-spacing: 0.05em; margin: 70px 0px; }

/* Sub total / VAT / Total - 상품 테이블 합계(부가세 별도 입력값 기준으로 부가세 포함 총액 계산).
   margin-left는 고정 px이 아니라 화면 기준 #estimate 폭(850px) 대비 비율(515÷850≈60.59%)로 지정함 -
   #estimate가 화면(850px 고정)과 인쇄(.print-page 200mm 기준 100%)에서 실제 폭이 서로 달라서,
   고정 515px이면 화면/인쇄에서 SUB TOTAL/VAT/DELIVERY 위치가 어긋났었음(2026-09-23 확인) */
#estimate .oi-subtotal-row {
    border-top: 1px solid #ededed;
    padding-top: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 60.59%;
}
#estimate .oi-vat-row { margin-top: 5px; margin-bottom: 5px; margin-left: 60.59%; }
/* 배송료 - Sub total/VAT와 동일한 줄 배치(라벨+금액을 오른쪽 끝에), 우체국 배송요금표 중에서
   고르는 select는 Material/Color/ENGRAVING과 동일한 커스텀 드롭다운(enhanceSelectDropdown,
   아래 .oi-dropdown:has(#as_delivery_amount) 규칙)으로 동작함 */
#estimate .oi-delivery-row { margin-top: 5px; margin-bottom: 5px; margin-left: 60.59%; }
/* Sub total/VAT/Delivery는 라벨+금액을 한 덩어리로 묶어 줄 오른쪽 끝에 붙임(Total은 기존 좌/우 배치 유지) */
#estimate .oi-subtotal-row,
#estimate .oi-vat-row,
#estimate .oi-delivery-row {
    justify-content: space-between;
    gap: 10px;
    padding-right: 15px;
}
#estimate .oi-subtotal-row .oi-left,
#estimate .oi-vat-row .oi-left,
#estimate .oi-delivery-row .oi-left {
    width: auto;
    flex-shrink: 1;
}
#estimate .oi-subtotal-row .oi-right,
#estimate .oi-vat-row .oi-right,
#estimate .oi-delivery-row .oi-right {
    flex-grow: 0;
    justify-content: flex-end;
}
/* DELIVERY 커스텀 드롭다운 - 네이티브 select 팝업은 옵션이 많을 때(27개) 열리는 방향/높이를
   브라우저가 알아서 정해버려서(선택된 항목이 목록 뒤쪽일수록 위로 열림) 제어가 안 됐음. 위
   enhanceSelectDropdown로 감싼 트리거+패널(oi-dropdown-trigger/oi-dropdown-panel)은 항상
   아래로 열리고 높이도 직접 제한 가능 + 인쇄에는 트리거 라벨(순수 텍스트, select 자체는
   display:none)만 그대로 보여서 화면/인쇄 차이도 없어짐 */
/* 트리거엔 금액 없는 짧은 이름만 쓰므로(data-name), 220px보다 좁게 */
#estimate .oi-dropdown:has(#as_delivery_amount) { width: 150px; flex-shrink: 0; }
#estimate .oi-dropdown:has(#as_delivery_amount) .oi-dropdown-trigger {
    font-family: 'Noto Sans KR', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.02em; justify-content: flex-end;
}
/* 패널은 목록(펼친 상태)에서 금액까지 보여줘야 해서 트리거보다 넓게(220px) - 오른쪽 끝 기준으로
   열고(left:auto; right:0), 27개 옵션을 다 펼치면 너무 길어지므로 기존(브라우저가 알아서 정하던)
   높이의 절반 정도만 보이게 제한 + 스크롤 */
#estimate .oi-dropdown:has(#as_delivery_amount) .oi-dropdown-panel {
    left: auto; right: 0; width: 220px; max-height: 220px; overflow-y: auto;
}
/* 배송방식명(드롭다운) + 금액(숫자만, oi-amount-display) 두 요소가 오른쪽 끝에 나란히 붙음 -
   금액쪽은 줄어들지 않고 항상 제 너비를 유지 */
#estimate .oi-delivery-right #as_delivery_fee_display { flex-shrink: 0; }
/* Total(Estimated) 행은 기존 그대로 라벨 왼쪽/금액 오른쪽(전체폭) 유지 */
#estimate .oi-est-row .oi-right {
    justify-content: flex-end; padding-right: 15px;
}
#estimate .oi-amount-display { font-weight: 600; }
#estimate .oi-amount-display-total { font-size: 14px; }
#estimate .before-total { font-size: 10px; font-weight: 500; color: #1c1c1c; margin-left: 4px; font-family: 'Noto Sans KR', sans-serif !important; }
/* Estimated Total(Total 부가세포함) 줄 - 선금/잔금 아이콘도 같은 줄에 인라인 */
#estimate .oi-est-row { margin-top: 20px; padding: 10px 0px; border-top: 2px solid #1c1c1c; border-bottom: 1px solid #1c1c1c; padding-left: 18px; }
#estimate .foot-est-subtext { font-size: 11px; display: flex; align-items: center; font-weight: 500; }
/* 미수금(Adv./Rem.) 영역은 Total 금액 자릿수와 무관하게 항상 같은(왼쪽) 위치에 고정 -
   margin-right:auto가 남는 공간을 전부 흡수해서 Total만 오른쪽 끝으로 밀어냄. 패널이
   닫혀있을 땐(display:none) 이 마진도 같이 사라져서 Total 혼자 있을 땐 기존처럼
   .oi-est-row .oi-right의 justify-content:flex-end로 오른쪽 정렬 그대로 유지됨 */
#estimate #oi_deposit_inline { margin-right: auto; }
#estimate .oi-balance-amount { color: #fa5500; font-weight: 600; padding: 0 5px 0px 10px; }
#estimate .oi-deposit-input { font-family: 'Noto Sans KR', sans-serif; font-size: 11px; border: none; width: 65px; padding: 0 5px 0 0; background: transparent; letter-spacing: 0.02em; text-align: right; }
#estimate .oi-deposit-input:focus { outline: none; }

/* 하단 회사정보 + 스탬프 로고 (서명란은 요청에 따라 제거) */
#estimate .oi-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-top: 30px; padding-top: 30px; border-top: 2px solid #1c1c1c; flex-wrap: nowrap; }
#estimate .oi-footer-info { font-family: 'Noto Sans KR', sans-serif; font-size: 10px; color: #1c1c1c; line-height: 1.7; flex: 0 1 290px; min-width: 0; }
#estimate .oi-footer-wordmark { margin-bottom: 10px; }
#estimate .footer-logo-img { width: 240px; height: auto; display: block; }
#estimate .oi-footer-info p { margin: 0; }
#estimate .oi-footer-stamp { display: flex; flex-direction: column; align-items: center; gap: 15px; flex-shrink: 0; margin-right: 15px; }
#estimate .oi-footer-stamp-label { font-family: 'Josefin Sans', sans-serif; font-size: 10px; letter-spacing: 0.05em; color: #1c1c1c; font-weight: 400; }
#estimate .oi-footer-logo { width: 100px; height: auto; }

/* 영문 라벨/타이틀류는 Josefin Sans, 그 외(한글/숫자)는 #estimate 기본값(Noto Sans KR) 사용 */
#estimate .quotation_title,
#estimate .est_title,
#estimate .estimate-print-btn,
#estimate .estimate-order-btn,
#estimate .oi-left,
#estimate .oi-product-table th,
#estimate .oi-check {
    font-family: 'Josefin Sans', sans-serif;
}

@media print {
    .oi-warp { page-break-inside: avoid; }
}

/* --- 인쇄 전용 스타일 시작 (주문서와 동일한 보정값 그대로 사용) --- */
@media print {

    @page {
        size: A4 portrait;
        margin: 0;
    }

    body {
        padding: 0;
        background: #fff;
        -webkit-transform-origin: top left;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }


    body {
        zoom: 0.78;
    }

    .btn-wrap {
        display: none !important;
    }

    .oi-no-print-btn {
        display: none !important;
    }

    .oi-print-hide {
        display: none !important;
    }

    #estimate .oi-box:not(.oi-textarea) {
        background: transparent !important;
        border: none !important;
        padding: 2px 0 !important;
    }

    #estimate select.oi-select {
        appearance: none !important;
        -webkit-appearance: none !important;
    }
    #estimate .oi-select-wrap::after {
        display: none !important;
    }

    #estimate .oi-engraving-icon {
        display: none !important;
    }
    /* 테이블 안 셀렉트의 커스텀 화살표도 인쇄에선 상호작용 UI라 불필요 */
    #estimate .oi-table-select-wrap::after {
        display: none !important;
    }
    /* 커스텀 드롭다운(Material/Color/ENGRAVING) 화살표 아이콘도 인쇄에선 상호작용 UI라 불필요 -
       패널(.oi-dropdown-panel)은 .oi-no-print-btn 공통 규칙으로 이미 숨겨짐 */
    #estimate .oi-dropdown-trigger .material-symbols-outlined {
        display: none !important;
    }

    input[type="checkbox"]:not(:checked) {
        display: none !important;
    }

    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        width: 13px;
        height: 13px;
        border: none;
        display: inline-block;
        margin-right: 4px;
        vertical-align: middle;
    }

    input[type="checkbox"]:checked::after {
        content: "\2713";
        font-family: 'Noto Sans KR', sans-serif;
        font-weight: 700;
        font-size: 14px;
        color: #fa5500;
        position: absolute;
        top: -2px;
        left: 0;
    }

    input[type="checkbox"]:not(:checked)::after {
        content: "";
    }


    .print-page {
        width: 200mm;
        margin: 0 auto;
        min-height: 297mm;
        padding: 2mm 0mm;
        display: block;
        border: none !important;
        outline: none !important;
        box-sizing: border-box;
        position: relative;
    }
    .print-page::before {
        display: none !important;
        content: none !important;
    }
    #estimate {
        display: flex;
        flex-direction: column;
        min-height: 297mm;
    }
    .oi-bottom-block {
        margin-top: auto;
        padding-top: 15mm;
    }
    .oi-bottom-block,
    .oi-footer {
        page-break-inside: avoid;
    }

    #estimate .quotation_title {
        padding-top: 16px;
    }
    #estimate .est_title {
        padding-bottom: 10px;
    }
    #estimate .oi-top {
        margin-top: 10px;
    }
    #estimate .oi-warp {
        margin: 5px 0px;
    }
    #estimate .oi-note-row {
        margin-top: 20px;
    }
    #estimate .oi-group-box {
        margin-top: 15px;
        padding-bottom: 0px;
    }
    /* ENGRAVING/NOTE 박스만 인쇄에서 옅은 회색 배경 - PRODUCT(oi-product-box)는 화면과
       동일하게 배경/테두리 없이 그대로 둠(표만 따로 분리해달라는 요청) */
    #estimate .oi-group-box:not(.oi-product-box) {
        background: #f5f5f5;
        border-color: #f5f5f5;
    }
    /* ENGRAVING 박스 - 인쇄물에서는 화면(10px 20px)과 분리해서 상하 여백 없이 */
    #estimate .oi-engraving-box {
        padding: 0px 20px;
    }
    #estimate .oi-group-box .oi-warp {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .oi-bottom-block {
        padding-top: 10mm;
    }
    #estimate .oi-footer {
        margin-top: 20px;
        padding-top: 30px;
    }
    #estimate .title-order-date {
        top: 20px;
    }

    .print-page:not(:first-child) {
        margin-top: 16mm;
    }

    #estimate {
        width: 100%;
        font-size: 10pt;
    }
}
/* --- 인쇄 전용 스타일 끝 --- */

/* BASIC css end */

