/* LINE E.N.G V5.50.05: 견적/청구 A4 공통 편집 레이아웃 및 패널 안정화 */
.le105-editor-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 4px}
.le105-editor-title h3{margin:0!important;flex:0 0 auto}
.le105-title-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.le105-note-title{justify-content:flex-start;gap:14px}
.le105-fixed-backdrop{z-index:28000!important;display:flex;justify-content:center;align-items:center}
.le105-fixed-dialog{width:min(660px,96vw);max-height:85vh;overflow:auto;border-radius:7px;background:#fff;padding:15px 18px;box-shadow:0 20px 60px #0005}
.le105-fixed-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd;padding-bottom:10px}
.le105-fixed-dialog p{font-size:12px;color:#536477}
.le105-fixed-fields{display:grid;gap:9px}
.le105-fixed-fields label{display:grid;gap:5px;font-size:12px;font-weight:700}
.le105-fixed-fields textarea{box-sizing:border-box;min-height:52px;border:1px solid #b8c9dc;padding:8px;resize:vertical;white-space:pre-wrap;font-size:12px;font-family:inherit}
.le105-fixed-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:14px}
/* 첫 장의 과거 빈 네모 행을 HTML에서 제거하고, 좌우 6행의 가로선을 일치시킴 */
.q96-first .q96-header{margin-bottom:1.5mm!important}
.q96-first .q96-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:2.5mm!important;align-items:start!important;margin-bottom:1.2mm!important}
.q96-first .q96-top table{table-layout:fixed!important;border-collapse:collapse!important}
.q96-first .q96-top tr{height:7mm!important;max-height:7mm!important}
.q96-first .q96-top th,.q96-first .q96-top td{height:7mm!important;box-sizing:border-box!important;line-height:1.08!important;padding:.55mm .8mm!important}
.q96-first .q96-top .q96-address{height:7mm!important;line-height:1.04!important;overflow-wrap:anywhere!important}
/* 품목과 규격은 입력/인쇄 모두 독립된 열, 단가와 같은 데이터 글자 크기 */
.q96-items th:nth-child(1){width:5%!important}
.q96-items th:nth-child(2){width:20%!important}
.q96-items th:nth-child(3){width:20%!important}
.q96-items th:nth-child(4){width:7%!important}
.q96-items th:nth-child(5){width:7%!important}
.q96-items th:nth-child(6){width:12%!important}
.q96-items th:nth-child(7){width:17%!important}
.q96-items th:nth-child(8){width:12%!important}
.q96-items td.q96-item-name,.q96-items td.q96-item-spec{text-align:left!important;font-size:10.4px!important;font-weight:400!important;line-height:1.25!important;overflow-wrap:anywhere}
.q96-items td.amount{font-size:10.4px!important}
/* 견적서 하단 50:50 고정내용 / 금액표 */
.le105-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin-top:2.5mm;align-items:stretch}
.le105-bottom-grid .q96-all-totals{margin-top:0!important;min-width:0}
.le105-fixed-print{border:1px solid #7aa4c7;border-right:0;box-sizing:border-box;min-width:0;min-height:23mm;padding:2mm;text-align:left!important;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start!important;align-items:stretch!important;color:#152f4a;font-size:9px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}
.le105-fixed-print>div{text-align:left!important;align-self:stretch;margin:0 0 3px}
.le105-bottom-grid .q96-all-totals>div{gap:5px;padding:1mm 2mm!important}
.le105-bottom-grid .q96-all-totals b{font-size:8px!important;font-weight:700;min-width:0}
.le105-bottom-grid .q96-all-totals span,.le105-bottom-grid .q96-all-totals strong{font-size:10px!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.le105-bottom-grid .q96-grand strong{font-size:13px!important}
.le105-blank-print{color:#456080;min-height:23mm}
/* 비활성 문서 패널은 레이아웃 개편/DOM 재생성 후에도 노출 금지 */
#app #le83-top [data-le83-pane][hidden],#app #le83-top .le83-pane[hidden]{display:none!important}
#app .le83-old-title{display:none!important}
#app .le85-hidden{display:none!important}
@media print{
 .le105-fixed-print,.le105-bottom-grid{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .le105-fixed-backdrop,.le105-editor-title{display:none!important}
}
