:root{--navy:#173044;--green:#176b54;--ink:#203644;--muted:#72828d;--line:#e1e8eb;--bg:#f2f5f6;--amber:#94641a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 "Segoe UI","Malgun Gothic",sans-serif}.brand{display:block;font-size:32px;font-weight:800;line-height:1.1;color:white;text-decoration:none;letter-spacing:2px}.brand span{font-size:14px;letter-spacing:3px}nav{margin-top:60px;display:grid;gap:10px}nav button{background:transparent;border:0;text-align:left;color:#b7c9d1;padding:13px 16px}nav button.active{background:#2c4b5b;color:white}main{margin-left:220px;padding:35px 38px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--green);font-weight:700;margin:0 0 8px}h1{font-size:28px;margin:0;font-weight:700;letter-spacing:-1px}.subtitle,.muted{color:var(--muted);margin:7px 0}.actions{display:flex;gap:7px;flex-wrap:wrap}button{font:inherit;font-weight:600;border:1px solid var(--line);background:white;color:var(--ink);padding:9px 14px;border-radius:7px;cursor:pointer}button:hover{border-color:var(--green);color:var(--green)}button.primary{background:var(--green);color:white;border-color:var(--green);padding:11px 24px}button:disabled{opacity:.55;cursor:wait}.panel{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:22px;padding:23px;box-shadow:0 3px 15px #132e3d03}.settings{display:grid;grid-template-columns:1.6fr 1fr 1fr .9fr .8fr 1.5fr;gap:18px;align-items:center}label{display:block;font-size:12px;font-weight:600;color:#596e7b}label span{font-weight:400;color:var(--muted)}input,select{display:block;width:100%;border:1px solid #d9e2e7;background:#fbfcfc;color:var(--ink);font:inherit;border-radius:7px;padding:10px;margin-top:6px;min-width:0}input:focus,select:focus{outline:2px solid #9dd1bd}.price-note{font-size:11px;line-height:1.8;color:var(--muted);border-left:1px solid var(--line);padding-left:18px}h2{font-size:17px;margin:0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:18px}.window-card{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:9px;background:#fbfcfc}.row-main{display:grid;grid-template-columns:80px minmax(105px,1fr) minmax(170px,1.8fr) minmax(130px,1.2fr) minmax(110px,1fr) repeat(3,minmax(70px,.8fr)) auto;gap:12px;align-items:end}.delete{padding:10px;color:#a05252}.row-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:13px}.small-note{font-size:11px;color:var(--muted);margin-top:10px}.row-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:14px}.review{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400}.review input{width:auto;margin:0}.reference-button{font-size:11px;padding:5px 9px}.calculate-bar{display:flex;align-items:center;justify-content:space-between;margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.calculate-bar span{font-size:12px;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.metrics article{padding:20px;background:white;border:1px solid var(--line);border-radius:10px}.metrics span{display:block;color:var(--muted);font-size:12px}.metrics strong{font-size:25px;display:block;margin-top:8px;letter-spacing:-.5px}.metrics article:last-child{background:#e8f2ee;border-color:#cfdfd7}.result-row{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.result-heading{display:flex;gap:14px;align-items:center;justify-content:space-between}.badge{font-size:11px;padding:4px 9px;border-radius:20px;background:#e7f2ec;color:var(--green)}.badge.pending{color:var(--amber);background:#fbf0dc}.warnings{background:#fffbef;color:#7e6132;padding:12px 18px;font-size:12px;border-radius:7px;margin:12px 0}.warnings ul{margin:0;padding-left:17px}.result-summary{display:flex;gap:24px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:10px 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin:12px 0}th{background:#f0f4f5;text-align:left;color:#627581;font-size:11px;padding:10px;white-space:nowrap}td{padding:10px;border-bottom:1px solid #eef2f3;white-space:nowrap}td.number{text-align:right;font-variant-numeric:tabular-nums}.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:15px 0}details{margin-top:14px}summary{cursor:pointer;font-size:12px;color:var(--green)}.empty{text-align:center;padding:36px;color:var(--muted)}.scope{font-size:11px;color:var(--muted);margin-top:18px}.hidden{display:none!important}#notice:empty{display:none}#notice{padding:12px 18px;border-radius:7px;background:#e8f2ee;color:var(--green);margin-bottom:20px}#notice.error{background:#ffebeb;color:#9b3c3c}.history-item{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}dialog{width:min(950px,95vw);max-height:95vh;border:0;border-radius:12px;padding:16px}dialog::backdrop{background:#102b3990}dialog img{display:block;width:100%;height:auto}dialog button{float:right;position:sticky;top:0}@media(max-width:1100px){.brand{font-size:26px}main{margin-left:165px;padding:25px}.settings{grid-template-columns:repeat(2,1fr)}.price-note{grid-column:span 2}header{align-items:flex-start;flex-direction:column}.row-main{grid-template-columns:repeat(3,1fr)}.row-options{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.brand{font-size:19px;display:inline-block}nav{margin-top:12px;display:flex}main{margin:0;padding:18px}.settings,.row-options,.choice-grid{grid-template-columns:1fr}.price-note{grid-column:auto}.metrics{grid-template-columns:repeat(2,1fr)}.metrics strong{font-size:20px}.calculate-bar{gap:15px;align-items:flex-start;flex-direction:column}.row-main{grid-template-columns:repeat(2,1fr)}.panel{padding:16px}}@media print{body{background:white;font-size:11px}header .actions,.settings,#rows,.calculate-bar,.section-title button,#history,#notice,dialog,details,#workspace>.panel:has(#rows){display:none!important}header{margin-bottom:20px}h1{font-size:22px}.panel{border:0;box-shadow:none;padding:0}.metrics{gap:5px}.metrics article{padding:10px}.metrics strong{font-size:18px}.result-row{break-inside:avoid}th,td{padding:6px}table{font-size:10px}.table-wrap{overflow:visible}.scope{font-size:9px}}



.quote-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.quote-settings textarea{width:100%;font:inherit;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:6px}.actions select{width:auto;margin:0}.quote-toolbar{display:flex;gap:12px;margin:0 0 20px;position:sticky;top:0;background:var(--bg);padding:10px;z-index:2}#quote-preview{overflow-x:auto}#quote-pages{color:#111}.q-paper{box-sizing:border-box;width:186mm;min-height:273mm;padding:10mm;margin:0 auto 24px;background:white;box-shadow:0 2px 12px #0001;font-size:11px;font-family:Arial,"Malgun Gothic",sans-serif}.landscape .q-paper{width:273mm;min-height:186mm}.q-top{display:flex;justify-content:space-between;align-items:center}.q-top img{width:65mm;height:auto}.q-top span{font-size:9px;letter-spacing:2px;color:#61717d}.q-paper h1{text-align:center;font-size:30px;letter-spacing:8px;margin:12mm 0 5mm}.q-detail h1{font-size:23px;margin:5mm 0}.q-rule{border-top:2px solid #ed6e3a;margin-bottom:6mm}.q-paper table{border-collapse:collapse;width:100%;table-layout:fixed;margin:4mm 0}.q-paper th,.q-paper td{border:1px solid #acb8c1;padding:6px 8px;font-size:10px;white-space:normal;overflow-wrap:anywhere}.q-paper th{background:#edf1f4;text-align:center}.q-info th{width:27%}.q-paper td.right{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.q-band{font-size:12px;text-align:center;letter-spacing:7px;background:#172b39;color:white;padding:9px;margin-top:7mm}.q-amount{border:2px solid #172b39;text-align:center;font-size:27px;font-weight:700;padding:14px}.q-amount span{display:block;font-size:11px;font-weight:400;margin-top:7px}.q-sums td{text-align:center;font-weight:700}.q-statement{text-align:center;font-size:14px;font-weight:700;margin:10mm 0}.q-foot{font-size:9px;text-align:center;margin-top:8mm;color:#66717a;line-height:1.6}.q-warning{background:#fff1d7;color:#805b20;padding:10px;border:1px solid #ead7b4;margin:4mm 0;font-weight:700}.q-meta th{width:14%}.q-unit{font-size:8px;color:#61717d;text-align:right}.q-items th,.q-items td{font-size:8px;padding:5px 3px}.q-items th:first-child{width:5%}.q-items th:nth-child(2){width:7%}.q-items th:nth-child(3){width:16%}.q-items th:nth-child(4){width:11%}.q-items th:nth-child(5){width:5%}.q-items th:nth-child(6){width:12%}.q-items thead{display:table-header-group}.q-items tfoot{display:table-row-group;font-weight:700}.q-items tr{break-inside:avoid}.q-notes-title{font-size:12px;margin-top:6mm}.q-notes{white-space:pre-wrap!important}.q-pending{font-size:9px;color:#805b20}.q-cover .q-info td{font-size:11px}.landscape .q-paper h1{margin-top:3mm}.landscape .q-statement{margin:4mm 0}.landscape .q-band{margin-top:4mm}.landscape .q-foot{margin-top:4mm}@media(max-width:700px){.quote-form{grid-template-columns:1fr}}
@page quotePortrait{size:A4 portrait;margin:12mm}@page quoteLandscape{size:A4 landscape;margin:12mm}
@media print{
 body.printing-quote{background:white}.printing-quote .sidebar,.printing-quote main>header,.printing-quote #workspace,.printing-quote #history,.printing-quote #notice,.printing-quote .quote-toolbar{display:none!important}.printing-quote main{margin:0;padding:0;max-width:none}.printing-quote #quote-preview{display:block!important;overflow:visible}.printing-quote #quote-pages{display:block}.printing-quote .q-paper{page:quotePortrait;width:auto!important;min-height:0!important;margin:0!important;padding:0!important;box-shadow:none;break-after:page}.printing-quote #quote-pages.landscape .q-paper{page:quoteLandscape}.printing-quote .q-paper:last-child{break-after:auto}.printing-quote .q-paper,.printing-quote .q-paper *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.printing-quote .q-paper table{border-collapse:collapse}.printing-quote .q-paper thead{display:table-header-group}.printing-quote .q-paper tfoot{display:table-row-group}.printing-quote .q-top img{display:block}.printing-quote .q-items td{font-size:8px}.printing-quote .q-paper{font-size:10px}
}

.landscape .q-cover-grid{display:grid;grid-template-columns:1fr 1fr;gap:8mm;align-items:start}.landscape .q-cover-supplier .q-band{margin-top:4mm}.landscape .q-cover .q-amount{font-size:22px;padding:9px}.landscape .q-cover .q-info td{font-size:10px}.landscape .q-cover .q-sums td{font-size:9px}.landscape .q-cover .q-statement{font-size:12px}.landscape .q-cover .q-foot{margin-top:6mm}@media print{.printing-quote .q-paper{break-before:page}.printing-quote .q-paper:first-child{break-before:auto}.printing-quote .q-top{break-inside:avoid;break-after:avoid}.printing-quote .q-paper h1{break-before:avoid}.printing-quote .q-items td.right{white-space:normal;overflow-wrap:anywhere}}

.landscape .q-detail .q-top img{width:50mm}.landscape .q-detail h1{font-size:20px;margin:3mm 0}.landscape .q-detail th,.landscape .q-detail td{padding-top:3px;padding-bottom:3px}.landscape .q-detail .q-notes-title{margin-top:3mm}

.model-button{font-size:10px;padding:2px 6px;margin-left:8px}#reference-models figure{display:inline-block;vertical-align:top;width:min(430px,100%);margin:12px 8px}#reference-models figcaption{font-weight:600;margin-bottom:8px}.model-pages{display:flex;gap:8px;margin:12px 0}.model-pages button{float:none;position:static}.q-cover-notes{display:none}.landscape .q-cover-notes{display:table;margin-top:4mm}.landscape .q-cover-notes th{width:15%}.landscape .q-cover-notes td{height:16mm;white-space:pre-wrap}.q-rate{font-size:10px;text-align:right;margin:2mm 0}.landscape .q-cover .q-foot{margin-top:3mm}

.portrait .q-cover h1{margin-top:9mm}.portrait .q-cover .q-statement{margin:6mm 0}

.landscape .q-cover h1{font-size:26px;margin:2mm 0 3mm}.landscape .q-cover .q-rule{margin-bottom:3mm}.landscape .q-cover .q-band{padding:6px}.landscape .q-cover .q-info th,.landscape .q-cover .q-info td{padding:4px 6px}.landscape .q-cover .q-statement{margin:2mm 0}.landscape .q-cover-notes td{height:14mm}

.q-items th,.q-items td{line-height:1.3}.portrait .q-detail .q-top img{width:55mm}.portrait .q-detail .q-foot{margin-top:4mm}

.q-landscape-statement,.q-cover-notes-wrap{display:none}
.landscape .q-cover-main{display:contents}
.landscape .q-cover-project{grid-column:1;grid-row:1}
.landscape .q-cover-supplier{grid-column:2;grid-row:1}
.landscape .q-cover-price{grid-column:1 / -1;grid-row:2}
.landscape .q-cover-grid{gap:2mm 6mm}
.landscape .q-landscape-statement{display:block}
.landscape .q-portrait-statement,.landscape .q-detail-notes{display:none}
.landscape .q-cover-notes-wrap{display:block}
.landscape .q-cover-notes th{width:27%}
.landscape .q-cover-notes td{height:auto;min-height:0}
.landscape .q-cover-notes{margin-top:2mm}
.landscape .q-cover .q-notes-title{margin-top:3mm;font-size:11px}
.landscape .q-cover-project .q-info{margin-top:4mm}
.landscape .q-cover-price .q-band{margin-top:0}
.landscape .q-cover .q-sums{margin:3mm 0}
.landscape .q-cover .q-rate{margin:1mm 0}

.landscape .q-cover-supplier .q-info th,.landscape .q-cover-supplier .q-info td{font-size:9px;line-height:1.3;padding:2px 6px}
.landscape .q-cover-supplier .q-band{margin-top:4mm;padding:4px}
.landscape .q-cover-supplier .q-info{margin:2mm 0}
.landscape .q-cover .q-cover-notes th,.landscape .q-cover .q-cover-notes td{line-height:1.3;padding:3px 6px}
.landscape .q-cover .q-amount{font-size:26px;padding:7px}
.landscape .q-cover .q-amount span{margin-top:3px}
.landscape .q-cover .q-foot{margin-top:2mm}

.landscape .q-cover .q-top img{width:50mm}.landscape .q-cover h1{line-height:1.2;margin:1mm 0 2mm}.landscape .q-cover .q-band{line-height:1.3}.landscape .q-cover .q-sums th,.landscape .q-cover .q-sums td{padding:4px 6px}.landscape .q-cover .q-amount{line-height:1.3}

.landscape .q-cover-project .q-info{margin-top:calc(6mm + 12px * 1.3 + 8px)}

.landscape .q-cover-project .q-info th,.landscape .q-cover-project .q-info td{font-size:9px;line-height:1.3;padding:2px 6px}

.landscape .q-cover-supplier>.q-band{display:none}.landscape .q-cover-project .q-info,.landscape .q-cover-supplier .q-info{margin-top:2mm}

.workspace-nav{display:flex;gap:8px;margin:18px 24px 0}.workspace-nav button{background:white;color:var(--ink);border:1px solid var(--line);text-align:center}.workspace-nav button.active{background:var(--green);color:white}main{margin-left:0;max-width:none;padding:24px}.estimate-table-wrap{overflow-x:auto;margin-top:16px}.estimate-input-table{min-width:1550px;table-layout:fixed;margin:0}.estimate-input-table th,.estimate-input-table td{border:1px solid var(--line);padding:6px}.estimate-input-table th{font-size:11px}.estimate-input-table th:nth-child(1){width:45px}.estimate-input-table th:nth-child(2){width:80px}.estimate-input-table th:nth-child(3){width:125px}.estimate-input-table th:nth-child(4){width:210px}.estimate-input-table th:nth-child(5){width:115px}.estimate-input-table th:nth-child(6){width:125px}.estimate-input-table th:nth-child(7),.estimate-input-table th:nth-child(8){width:85px}.estimate-input-table th:nth-child(9){width:65px}.estimate-input-table th:nth-child(10){width:95px}.estimate-input-table th:nth-child(11){width:85px}.estimate-input-table th:nth-child(12){width:155px}.estimate-input-table th:nth-child(13){width:110px}.estimate-input-row label{font-size:0}.estimate-input-row input,.estimate-input-row select{font-size:12px;margin:0;padding:8px 6px}.estimate-input-row td{background:white}.row-actions{white-space:nowrap}.row-actions button{padding:5px 8px;font-size:11px}.estimate-options-row td{background:#f7f9fa}.estimate-options-row details{margin:0}.estimate-options-row summary{font-size:11px}.estimate-options-row .row-options{grid-template-columns:repeat(4,minmax(0,1fr));white-space:normal;padding:8px}.estimate-options-row .row-footer{padding:0 8px 8px}.estimate-input-table tbody:hover .estimate-input-row td{background:#f0f7f4}@media(max-width:700px){main{margin:0;padding:14px}.workspace-nav{margin:14px}.estimate-options-row .row-options{grid-template-columns:repeat(4,minmax(0,1fr))}}@media print{.workspace-nav{display:none!important}}

@media print{main{margin:0;padding:0;max-width:none}}

.q-sign{display:inline-block;position:relative;margin-left:10px;padding-right:6mm}.q-sign img{position:absolute;left:-2mm;top:50%;transform:translateY(-50%);width:9mm;height:9mm;object-fit:contain;pointer-events:none}

.admin-link{display:inline-flex;align-items:center;padding:9px 16px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);text-decoration:none}@media print{.admin-link{display:none}}

.q-cover .q-info tr:has(.q-sign) td{height:10mm}

/* Homepage brand: kingwindowsale.com */
@media screen{
:root{--navy:#212529;--green:#FF6F0F;--ink:#212529;--muted:#868E96;--line:#E9ECEF;--bg:#F2F3F6;--amber:#E8590C}
body{font-family:'Pretendard Variable',Pretendard,'Malgun Gothic','Segoe UI',sans-serif;background:var(--bg)}
.workspace-nav{margin:0;padding:14px 32px;min-height:94px;background:white;border-bottom:1px solid var(--line);align-items:center;gap:12px;flex-wrap:wrap}
.site-brand{margin-right:auto;display:flex;align-items:center}.site-brand img{height:62px;width:auto;max-width:230px;object-fit:contain}
.workspace-nav button,.workspace-nav .admin-link{border:0;border-radius:14px;padding:12px 20px;background:transparent;color:#4A5157}
.workspace-nav button.active,.site-current{background:#FFF4EC;color:#E8590C;border-radius:14px;padding:12px 20px;font-weight:700}
main{padding:30px 32px}header{padding:8px 0 12px;margin-bottom:22px}h1{font-size:30px;letter-spacing:-1px}.eyebrow{color:#E8590C;letter-spacing:2px}.subtitle{color:#868E96}
.panel,.metrics article{border-radius:20px;border:1px solid var(--line);box-shadow:0 1px 2px #2125290d,0 10px 30px -18px #21252947}
button,.admin-link{border-radius:14px;transition:background .15s,border-color .15s}button:hover{border-color:#FF6F0F;background:#FFF4EC;color:#E8590C}button.primary{background:#FF6F0F;border-color:#FF6F0F;color:white}button.primary:hover{background:#E8590C}
input,select,textarea{background:#FAFAFA;border-color:#E9ECEF;border-radius:12px}input:focus,select:focus,textarea:focus{outline:2px solid #FF8A3D}
th{background:#F1F3F5;color:#4A5157}.estimate-options-row td{background:#FAFAFA}.estimate-input-table tbody:hover .estimate-input-row td{background:#FFF4EC}
#notice,.badge{background:#FFF4EC;color:#C64D00;border-radius:14px}.metrics article:last-child{background:#FFF4EC;border-color:#FFD8BD}.metrics article:last-child strong{color:#E8590C}
summary{color:#C64D00;font-weight:600}.admin-tabs .active{background:#FF6F0F;color:white}.admin-tabs button{border-radius:14px}.upload-label{border-radius:14px}dialog{border-radius:20px}.model-button,.reference-button{color:#C64D00;border-color:#FFD8BD}
@media(max-width:700px){.workspace-nav{padding:12px 16px;gap:4px}.site-brand{width:100%;margin-bottom:8px}.site-brand img{height:46px}.workspace-nav button,.workspace-nav .admin-link,.site-current{padding:9px 13px}main{padding:20px 14px}h1{font-size:24px}.panel{border-radius:16px}.actions{gap:6px}}
}
@media print{.site-brand,.site-current{display:none!important}}

/* Stronger screen text and catalog linework */
@media screen{
:root{--ink:#171A1D;--muted:#495057}
body{font-weight:500}
label,label span,.subtitle,.muted,.small-note,.price-note,.calculate-bar span,.result-summary,.scope,.metrics span{color:#495057}
label,th,summary,button,.admin-link,.workspace-nav button,.workspace-nav .admin-link{font-weight:700}
input,select,textarea{color:#171A1D;font-weight:600}
input::placeholder,textarea::placeholder{color:#596169;opacity:1}
th{color:#343A40}.history-item .muted{color:#495057}
#reference-image,#reference-models img{filter:grayscale(1) contrast(1.65)}
}

.auth-main{max-width:620px;margin:auto}.auth-main label{margin:14px 0}.auth-main button{margin-top:12px}#auth-notice,#account-notice,#dealer-notice{padding:12px 0;font-weight:600;color:#a13b00}#dealer-result h1{margin-bottom:18px}@media print{.dealer-editor,#dealer-notice{display:none!important}#dealer-result{border:0;padding:0}#dealer-result table{font-size:11px}#dealer-result thead{display:table-header-group}#dealer-result tr{break-inside:avoid}}

.q-calc-note {font-size:8px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere;}

.portrait .q-cover h1{margin:5mm 0 3mm}.portrait .q-cover .q-band{margin-top:4mm}.portrait .q-cover .q-statement{margin:4mm 0}.portrait .q-cover .q-amount{padding:9px}.portrait .q-cover .q-foot{margin-top:4mm}

@media screen{
.estimate-input-table{min-width:2200px;table-layout:auto}.estimate-input-table th:nth-child(n+10){width:130px}.estimate-input-table th:nth-child(13){width:190px}.cost-cell{display:grid;gap:7px;min-width:105px}.cost-cell output{text-align:right;font-weight:700;white-space:nowrap}.glass-input{display:grid;gap:7px;min-width:155px}.pj-editor{grid-column:1/-1;display:grid;gap:8px;max-width:620px}.pj-editor table{min-width:0;table-layout:fixed}.pj-editor input{width:100%}.pj-editor span{font-size:12px}.estimate-input-row .cost-cell select,.estimate-input-row .glass-input select{font-size:12px}.settings{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
}

@media screen{.pj-editor table th{width:auto!important}.pj-editor table th:nth-child(1),.pj-editor table th:nth-child(2){width:32%!important}.pj-editor table th:nth-child(3){width:20%!important}.pj-editor input{min-width:0!important;padding:8px!important;box-sizing:border-box}}

@media screen{
.estimate-input-table{width:100%;min-width:0;table-layout:fixed}
.estimate-input-table>thead>tr>th:nth-child(1){width:2%}
.estimate-input-table>thead>tr>th:nth-child(2){width:4%}
.estimate-input-table>thead>tr>th:nth-child(3){width:6%}
.estimate-input-table>thead>tr>th:nth-child(4){width:9%}
.estimate-input-table>thead>tr>th:nth-child(5){width:6%}
.estimate-input-table>thead>tr>th:nth-child(6){width:6%}
.estimate-input-table>thead>tr>th:nth-child(7){width:5%}
.estimate-input-table>thead>tr>th:nth-child(8){width:5%}
.estimate-input-table>thead>tr>th:nth-child(9){width:3%}
.estimate-input-table>thead>tr>th:nth-child(10){width:8%}
.estimate-input-table>thead>tr>th:nth-child(11){width:8%}
.estimate-input-table>thead>tr>th:nth-child(12){width:8%}
.estimate-input-table>thead>tr>th:nth-child(13){width:9%}
.estimate-input-table>thead>tr>th:nth-child(14){width:9%}
.estimate-input-table>thead>tr>th:nth-child(15){width:7%}
.estimate-input-table>thead>tr>th:nth-child(16){width:7%}
.estimate-input-table>thead>tr>th:nth-child(17){width:5%}
.estimate-input-table>thead>tr>th,.estimate-input-row>td{padding:5px 3px}
.estimate-input-row input,.estimate-input-row select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:7px 3px;font-size:11px;text-overflow:ellipsis}
.estimate-input-row .cost-cell,.estimate-input-row .glass-input{min-width:0;width:100%}
.estimate-input-row .cost-cell output{font-size:11px;white-space:normal;overflow-wrap:anywhere}
.estimate-input-row .row-actions{white-space:normal}.estimate-input-row .row-actions button{padding:4px 3px;font-size:10px}
}

@media screen{.estimate-input-table>thead select{display:block;width:100%;min-width:0;margin-top:5px;padding:5px 2px;font-size:11px}}

@media screen{.estimate-input-table>thead>tr>th:nth-child(15){width:9%}.estimate-input-table>thead>tr>th:nth-child(16){width:5%}.estimate-input-table>thead>tr>th:nth-child(17){width:3%}.row-recalculate{width:100%;padding:5px 2px;font-size:10px}.estimate-input-table tbody.selected-row>.estimate-input-row>td{background:#FFF4EC}}

@media screen{.estimate-input-table>thead>tr>th:nth-child(4){width:8%}.estimate-input-table>thead>tr>th:nth-child(10){width:7%}.estimate-input-table>thead>tr>th:nth-child(13){width:8%}}

.estimate-input-row .product-glass-caption{display:block;font-size:10px;margin:3px 0;color:var(--muted)}

.pj-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#reference-models .pj-model-grid figure{width:auto;margin:0}#reference-models .pj-model-grid figure.selected{outline:2px solid #d77718}#reference-models .pj-model-grid img{width:100%;height:210px;object-fit:contain}
.pj-child-row>td{background:#f5f8fc;vertical-align:top}.pj-child-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:start}.pj-child-controls .pj-editor{max-width:620px}.cost-breakdown{margin:12px 0;padding:10px;background:#f7f9fc;border-radius:8px}.cost-breakdown table{min-width:760px;width:100%}.combined-total{font-size:14px;margin:10px 0 0}.calc-details{margin-top:14px}.calc-details>summary{font-weight:600;cursor:pointer;padding:10px 0}
.pj-child-controls .pj-editor{max-width:760px}.pj-child-controls select[data-pj-field="cell_start"]{min-width:100px}
.item-rate-input{font-size:10px;display:flex;align-items:center;gap:4px}.item-rate-input input{width:65px;min-width:0}.pj-child-controls input[data-pj-field="item_rate_percent"]{min-width:70px;max-width:100px}.pj-child-controls .pj-editor{max-width:850px}
.pj-child-controls .pj-editor{flex:0 1 850px;width:850px;max-width:100%}.pj-child-controls .pj-editor table{width:100%;table-layout:fixed}.pj-child-controls .pj-editor th:nth-child(1),.pj-child-controls .pj-editor td:nth-child(1),.pj-child-controls .pj-editor th:nth-child(2),.pj-child-controls .pj-editor td:nth-child(2){width:22%}.pj-child-controls .pj-editor th:nth-child(3),.pj-child-controls .pj-editor td:nth-child(3){width:10%}.pj-child-controls .pj-editor th:nth-child(4),.pj-child-controls .pj-editor td:nth-child(4){width:14%}.pj-child-controls .pj-editor th:nth-child(5),.pj-child-controls .pj-editor td:nth-child(5){width:20%}.pj-child-controls .pj-editor th:nth-child(6),.pj-child-controls .pj-editor td:nth-child(6){width:12%}.pj-child-controls .pj-editor input,.pj-child-controls .pj-editor input[data-pj-field="item_rate_percent"],.pj-child-controls .pj-editor select[data-pj-field="cell_start"]{width:100%;min-width:0;max-width:none;box-sizing:border-box}
#rows .pj-child-controls .pj-editor table th:nth-child(1),#rows .pj-child-controls .pj-editor table th:nth-child(2){width:22%!important}#rows .pj-child-controls .pj-editor table th:nth-child(3){width:10%!important}#rows .pj-child-controls .pj-editor table th:nth-child(4){width:14%!important}#rows .pj-child-controls .pj-editor table th:nth-child(5){width:20%!important}#rows .pj-child-controls .pj-editor table th:nth-child(6){width:12%!important}

/* 왕창사: warm white, coffee-house restraint, clear blue accents. Screen only. */
@media screen{
 :root{--navy:#183f50;--green:#007fa8;--ink:#26383f;--muted:#6f7f82;--line:#dfe5e2;--bg:#f7f7f2;--amber:#826735}
 body{background:var(--bg);color:var(--ink);font-family:"Segoe UI","Malgun Gothic",Arial,sans-serif;line-height:1.65}
 .workspace-nav{background:#fff;min-height:88px;padding:16px 34px;border-bottom:1px solid var(--line);gap:10px}
 .workspace-nav button,.workspace-nav .admin-link,.site-current{border-radius:0;background:transparent;color:#53666c;padding:10px 16px;font-size:12px;letter-spacing:.2px}
 .workspace-nav button.active,.site-current{color:#007fa8;background:#edf7fa;box-shadow:inset 0 -2px #007fa8;font-weight:600}
 .workspace-nav button:hover,.workspace-nav .admin-link:hover{background:#f1f7f7;color:#006786}
 .site-brand{margin-right:22px}
 main{padding:34px;max-width:2400px;margin:0 auto}
 header{padding:12px 0 22px;margin-bottom:24px;align-items:center}
 h1{font-family:Georgia,"Malgun Gothic",serif;font-size:34px;letter-spacing:-1.3px;font-weight:500;line-height:1.35;color:#23383f}
 h2{font-size:16px;font-weight:600;letter-spacing:-.25px;color:#253d46}
 .eyebrow{font-size:10px;letter-spacing:2.6px;color:#007fa8;font-weight:600;margin-bottom:10px}
 .subtitle,.muted{color:#758287;font-size:12px;line-height:1.8}
 .actions{gap:7px}
 button,.admin-link,.upload-label{border-radius:3px;box-shadow:none;font-weight:500;border-color:#d7e0df;background:#fff;color:#294b59;transition:background .12s,border-color .12s}
 button:hover{border-color:#007fa8;color:#006b8e;background:#f0f8fa}
 button.primary{background:#007fa8;border-color:#007fa8;color:white;border-radius:3px}
 button.primary:hover{background:#006d91}
 .panel{background:#fff;border:1px solid #e0e6e2;border-radius:4px;padding:24px;box-shadow:0 2px 8px #294c5204;margin-bottom:22px}
 label{color:#47606a;font-size:11px;font-weight:500}
 input,select,textarea{background:#fcfdfb;border-color:#dce4e1;color:#25404b;border-radius:3px;box-shadow:none}
 input:focus,select:focus,textarea:focus{outline:2px solid #78b9cf;outline-offset:1px;border-color:#007fa8;background:#fff}
 .settings{gap:18px;padding-top:23px;padding-bottom:23px}
 .price-note{border-color:#d5e4e9;color:#7b898b;font-size:10px}
 .section-title{padding-bottom:5px}.section-title h2{font-size:18px}
 .estimate-table-wrap{margin-top:18px}
 table th{background:#f2f5f2;color:#4d646c;font-weight:500}
 .estimate-input-table>thead>tr>th{background:#f0f5f3;color:#355865;border-color:#e0e7e3;font-size:10px;padding-top:10px;padding-bottom:10px}
 .estimate-input-table th,.estimate-input-table td{border-color:#e3e9e5}
 .estimate-input-row td{background:#fff}
 .estimate-input-table tbody:hover .estimate-input-row td{background:#f6fbfc}
 .estimate-input-table tbody.selected-row>.estimate-input-row>td{background:#edf7fa}
 .estimate-input-row input,.estimate-input-row select{background:#fff;border-color:#dce6e4;border-radius:3px}
 .estimate-input-row .cost-cell output{color:#173e50;font-variant-numeric:tabular-nums}
 .estimate-options-row td{background:#fafbf8}
 .pj-child-row>td{background:#f5fafb}
 .pj-editor strong{color:#236078;font-size:12px;font-weight:500}
 .pj-editor table th{background:#edf5f6;color:#3d606e}
 .row-footer{border-top:1px solid #e9eeea;padding-top:12px}
 .small-note,.scope{color:#718388}
 .cost-breakdown{background:#f5f9f8;border-radius:3px;border-left:2px solid #8dbdcb;padding:14px}
 .cost-breakdown table th{background:#edf4f2;color:#46646d}
 .combined-total{color:#3d606e;font-size:13px}.combined-total strong{color:#006f94}
 #total-rate-summary{padding:12px 16px;margin:0 0 22px;background:#edf7fa;border-left:2px solid #007fa8;color:#28566a}
 #total-rate-summary:empty{display:none}
 .metrics{gap:16px}.metrics article{background:#fff;border:1px solid #e1e7e2;border-radius:4px;padding:22px 24px;box-shadow:none}
 .metrics span{font-size:11px;color:#71848a;letter-spacing:.1px}
 .metrics strong{font-size:24px;font-weight:500;letter-spacing:-.6px;color:#234b5c;font-variant-numeric:tabular-nums}
 .metrics article:last-child{background:#edf7fa;border-color:#9cc7d3;box-shadow:inset 0 2px #007fa8}
 .metrics article:last-child strong{color:#00789f}
 #notice,.badge{background:#eaf5f8;color:#176b89;border-radius:3px}
 #notice:empty{display:none}.badge{font-size:10px;font-weight:500;padding:5px 9px}
 .badge.pending{background:#f5f0e4;color:#826735}
 .result-row{border-color:#e0e7e3;background:#fff}
 .result-heading{padding-bottom:12px;border-color:#e2e8e3}.result-heading strong{font-size:13px;font-weight:600}
 .result-summary{gap:10px;color:#45616d;font-size:12px}
 .warnings{background:#f8f5eb;color:#806a3d;border-radius:3px;border-left:2px solid #cfbf94;font-size:11px}
 details>summary,.calc-details>summary{color:#007b9f;font-weight:500}
 details>summary::marker{color:#2284a2}
 .calc-details{border-top:1px solid #e0e8e5;padding-top:6px}
 .model-button,.reference-button{color:#00799f;border-color:#b8d5dc;border-radius:3px;background:white}
 #reference-models .pj-model-grid figure.selected{outline-color:#0088b3}
 dialog{border:1px solid #d6e2df;border-radius:4px;box-shadow:0 16px 70px #153f5028}
 dialog::backdrop{background:#1735414d}
 .quote-settings{border-top:2px solid #b2d3dc}.quote-settings summary{font-size:13px;padding:3px 0}
 .quote-form{gap:18px}.quote-form label{font-weight:500}
 .auth-main{max-width:580px;padding-top:55px}.auth-main header{border-bottom:1px solid #dce5df;margin-bottom:28px}
 .auth-main .panel{padding:28px}.auth-main h1{font-size:32px}
 #auth-notice,#account-notice,#dealer-notice{color:#8a6636}
 .admin-tabs .active{background:#007fa8;border-color:#007fa8;color:white}
 .admin-controls input,.editor-fields input,.editor-fields textarea{border-radius:3px}
 .admin-main .panel{box-shadow:none}.admin-disabled{opacity:.55}
 .scope{font-size:10px;line-height:1.9;max-width:1350px}
 @media(max-width:900px){main{padding:20px 16px}.workspace-nav{padding:12px 16px;min-height:74px}.site-brand{margin-right:8px}header{gap:18px;flex-wrap:wrap}h1{font-size:28px}.panel{padding:18px}.metrics{gap:10px}.metrics article{padding:16px}.metrics strong{font-size:21px}.actions{gap:5px}}
}

/* 11.창호견적프로그램 reference: presentation only; no pricing or product rules. */
@media screen{
 body{font-family:Arial,"Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-size:16px;background:#f7f5f0;color:#212121}
 main{padding:22px 20px}.workspace-nav{min-height:76px;padding:12px 24px}
 h1{font-family:Arial,"Malgun Gothic",sans-serif;font-size:25px;font-weight:700;letter-spacing:-.6px}
 h2,.section-title h2{font-size:17px;font-weight:700}
 .subtitle,.muted{font-size:13px;color:#617183}.eyebrow{font-size:11px}
 button,.admin-link,.workspace-nav button,.workspace-nav .admin-link{font-size:14px;font-weight:700;border-radius:7px;padding:10px 13px}
 button.primary{background:#00a3e0;border-color:#00a3e0;border-radius:7px}.primary:hover{background:#0082b3}
 .workspace-nav button.active,.site-current{background:#eaf7fc;color:#007ca7;box-shadow:inset 0 -2px #00a3e0}
 .panel{border-color:#e5e2dc;border-radius:11px;padding:20px;box-shadow:0 3px 14px #17253408;margin-bottom:16px}
 label{font-size:13px;font-weight:700;color:#415263}
 input,select,textarea{font-family:inherit;border-color:#cbd5df;border-radius:7px;background:white}
 .settings input,.settings select,.quote-form input,.quote-form select{font-size:16px;height:38px;padding:6px 9px}
 .settings{gap:14px}.price-note{font-size:11px}
 .small-note,.scope,.pj-editor span{font-size:12px;line-height:1.6}
 .estimate-input-table>thead>tr>th{font-size:12px;font-weight:700;color:#33475a;background:#e9eff4;padding:10px 5px}
 .estimate-input-row input,.estimate-input-row select{font-size:12px;height:35px;padding:4px 6px;border-radius:7px}
 .estimate-input-row .cost-cell output{font-size:13px;font-weight:700}
 .estimate-input-table>thead select{font-size:12px;min-height:34px;padding:4px}
 .estimate-options-row .row-options label{font-size:13px}.estimate-options-row .row-options input,.estimate-options-row .row-options select{font-size:14px;min-height:38px}
 .pj-editor strong{font-size:14px;font-weight:700}.pj-editor th{font-size:12px!important}.pj-editor input,.pj-editor select{font-size:14px;min-height:35px}
 .model-button,.reference-button{font-size:11px;padding:4px 7px}.row-recalculate{font-size:12px;padding:6px 3px}
 .item-rate-input input{font-size:13px}.item-rate-input{font-size:11px}
 .cost-breakdown>strong{font-size:14px}.cost-breakdown td,.cost-breakdown th{font-size:13px;padding:8px 7px}
 .combined-total{font-size:15px;background:#00a3e0;color:white;border-radius:7px;padding:13px 15px;margin-top:14px}
 .combined-total strong{color:white;font-size:16px}
 .metrics article{border-radius:10px;padding:19px 22px}.metrics span{font-size:13px}.metrics strong{font-size:28px;font-weight:700}
 .metrics article:last-child{background:#00a3e0;border-color:#00a3e0;box-shadow:none}.metrics article:last-child span{color:#e5f7ff}.metrics article:last-child strong{color:white}
 #total-rate-summary{font-size:14px;border-color:#00a3e0;border-radius:6px}
 .result-heading strong{font-size:15px}.result-summary{font-size:13px}.warnings{font-size:12px}
 .calc-details>summary{font-size:14px}.calc-details td,.calc-details th{font-size:13px}
 .quote-settings summary{font-size:14px}.quote-settings textarea{font-size:15px}
 @media(max-width:900px){main{padding:18px 12px}.actions button,.actions select{font-size:13px}.metrics strong{font-size:24px}.panel{padding:16px}}
}

/* Existing AL quote text, images, values and tax status are retained. */
.q-paper{font-family:"Malgun Gothic",Arial,sans-serif;color:#142033}
.q-paper .q-top img{width:65mm;height:auto;object-fit:contain}
.q-paper h1{font-family:"Malgun Gothic",Arial,sans-serif;font-size:40px;font-weight:800;letter-spacing:10px;margin:4mm 0 2mm;color:#142033}
.q-paper .q-rule{border-top:2.5px solid #f16d35;margin-bottom:4mm}
.q-paper th,.q-paper td{border-color:#b3bdc7;padding:5px 7px;font-size:11px;line-height:1.45}
.q-paper th{background:#eef2f5;color:#172534;font-weight:700}
.q-cover .q-info th{font-size:11.5px}.q-cover .q-info td{font-size:12.5px}
.q-paper .q-band{background:#182330;color:white;font-size:13px;letter-spacing:3px;padding:7px;margin-top:4mm}
.q-cover .q-amount{border:2px solid #182330;font-size:30px;font-weight:800;padding:12px}
.q-cover .q-amount span{font-size:12px;font-weight:500;margin-top:5px}
.q-paper .q-sums td{font-size:12px;font-weight:800}.q-paper .q-statement{font-size:15px;font-weight:700}
.q-paper .q-foot{font-size:9.5px;color:#666;line-height:1.5}
.q-paper .q-rate{font-size:10.5px;color:#53616d;line-height:1.45}
.q-detail h1{font-size:26px;letter-spacing:6px;margin:2mm 0 1mm}
.q-detail .q-meta th,.q-detail .q-meta td{font-size:10px;padding:4px 6px}
.q-detail .q-items th{font-size:9.5px}.q-detail .q-items td{font-size:9px;padding:4px 3px}
.q-detail .q-items thead th{border-top:2px solid #182330;border-bottom:1.5px solid #182330}
.q-detail .q-items tfoot th,.q-detail .q-items tfoot td{background:#f3f5f7;font-weight:800}
.q-paper .q-notes-title{font-size:11px;margin-top:4mm}.q-paper .q-unit{font-size:9px}
.portrait .q-cover h1{margin-top:4mm}.portrait .q-cover .q-info th,.portrait .q-cover .q-info td{padding:4px 6px}
.landscape .q-cover h1{font-size:30px;margin:2mm 0}.landscape .q-cover .q-top img{width:55mm}
.landscape .q-cover .q-info td{font-size:11px}.landscape .q-cover .q-amount{font-size:25px;padding:9px}
.landscape .q-detail h1{font-size:26px}.landscape .q-detail .q-items td{font-size:9px}
@media print{.printing-quote .q-paper .q-items td{font-size:9px}.printing-quote .q-paper .q-top img{object-fit:contain}.printing-quote .q-paper th,.printing-quote .q-paper td{overflow-wrap:anywhere}}
@media screen{.estimate-table-wrap{max-height:72vh;overflow:auto;scroll-padding-top:95px}.estimate-input-table>thead{position:sticky;top:0;z-index:5}.estimate-input-table>thead>tr>th{background:#e9eff4;box-shadow:0 1px 0 #cbd5df}.estimate-input-row{scroll-margin-top:95px}.pj-input-details{margin:0}.pj-input-details>summary{font-size:12px;padding:6px 0;color:#245a70;cursor:pointer}.pj-input-details>summary span{font-weight:500;color:#566e7c}.pj-child-row>td{padding-top:2px;padding-bottom:2px}.estimate-options-row>td{padding-top:2px;padding-bottom:2px}.estimate-options-row summary{padding:5px 0}.pj-input-details:not([open]){min-height:28px}}

/* Compact input rows; retain readable type and existing calculation behavior. */
@media screen{
 .estimate-input-table>thead>tr>th{padding:5px 3px}
 .estimate-input-table>tbody>tr>td{padding:3px 4px}
 .estimate-input-row input,.estimate-input-row select{height:29px;padding:3px 4px}
 .estimate-input-table>thead select{min-height:28px;height:28px;margin-top:3px}
 .estimate-options-row .row-options{gap:7px;margin-top:5px;padding:5px}
 .estimate-options-row .row-options input,.estimate-options-row .row-options select{height:30px;min-height:30px;padding:3px 5px;margin-top:3px}
 .pj-editor input,.pj-editor select{height:29px;min-height:29px;padding:3px 5px;margin-top:0}
 .pj-editor th,.pj-editor td,.cost-breakdown th,.cost-breakdown td{padding:4px 5px}
 .pj-input-details>summary,.estimate-options-row summary{padding:2px 0;line-height:1.4}
 .pj-input-details:not([open]){min-height:20px}
 .pj-child-row>td,.estimate-options-row>td{padding-top:1px!important;padding-bottom:1px!important}
 .estimate-options-row .row-footer{margin-top:5px;padding-bottom:4px}
 .estimate-table-wrap{margin-top:10px;scroll-padding-top:76px}
 .estimate-input-row{scroll-margin-top:76px}
 .combined-total{padding:7px 10px;margin-top:7px}
 .calc-details th,.calc-details td{padding:5px 6px}
 #reference{width:min(1400px,96vw);max-height:94vh;overflow:auto}
 #reference-image,#reference-models img{filter:none}
 #reference-models img{cursor:zoom-in}
 #reference-models .pj-model-grid img{height:260px}
 .reference-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:sticky;top:0;z-index:2;background:white;padding:8px 0;border-bottom:1px solid #cbd5df}
 .reference-tools button,.reference-tools a{float:none;position:static;padding:6px 10px;font-size:13px}
 #reference-zoom{width:150px;margin:0}.reference-canvas{overflow:auto;max-height:72vh;margin-top:8px;background:#f4f6f8}
 #reference-image{max-width:none;width:100%;height:auto;margin:0;background:white}
}

#material-quote input{width:100px;height:29px;padding:3px 5px;margin:0}#material-quote td{white-space:normal;vertical-align:top}#material-quote details{margin:0;min-width:200px}#material-quote-note{font-size:12px;line-height:1.6}
@media print{body.printing-material .workspace-nav,body.printing-material main>header,body.printing-material #workspace> :not(#material-quote),body.printing-material #notice,body.printing-material #quote-preview,body.printing-material #history{display:none!important}body.printing-material #material-quote{display:block!important}body.printing-material #material-quote .section-title button{display:none!important}body.printing-material #material-quote input{border:0;width:70px}body.printing-material #material-quote td{white-space:normal;font-size:9px}body.printing-material #material-quote th{font-size:9px}body.printing-material #material-quote .table-wrap{overflow:visible}}
@media screen{.estimate-input-row>td:nth-child(15) .item-rate-input{line-height:20px}.estimate-input-row>td:nth-child(15) input{height:22px;padding:1px 3px}.estimate-input-row>td:nth-child(15) .cost-cell output{line-height:16px}.estimate-input-row .cost-cell,.estimate-input-row .glass-input{gap:2px}}

#reference-image{margin-left:auto;margin-right:auto}#material-quote table{margin-top:10px}#material-quote td{padding:5px 6px}#material-quote input[data-material-field="rate_m"]{width:140px}

/* Keep twenty summary rows readable; open details only when editing a row. */
@media screen{
 
 
 
 main{padding:8px 10px}
 main>header{gap:10px;margin-bottom:8px;min-height:38px}
 main>header .eyebrow,main>header .subtitle{display:none}
 main>header h1{font-size:20px;white-space:nowrap}
 main>header .actions{gap:4px;align-items:center}
 main>header .actions button,main>header .actions select{font-size:12px;padding:5px 7px;height:30px;margin:0;min-height:0}
 .panel.settings{padding:7px 10px;gap:8px;margin-bottom:8px}
 .settings label{font-size:11px}.settings input,.settings select{height:28px;font-size:13px;padding:3px 6px;margin-top:3px}
 .settings .price-note{font-size:10px;line-height:1.35;padding-left:8px}
 #workspace>.panel:has(#rows){padding:8px 10px}
 #workspace>.panel:has(#rows)>.section-title{gap:8px}
 #workspace>.panel:has(#rows)>.section-title h2{font-size:14px}
 #workspace>.panel:has(#rows)>.section-title .muted{display:none}
 #add-row{padding:4px 8px;font-size:12px;height:28px}
 .estimate-table-wrap{margin-top:6px;max-height:calc(100dvh - 207px);scroll-padding-top:55px}
 .estimate-input-table>thead>tr>th{font-size:11px;padding:3px 2px}
 .estimate-input-table>thead select{font-size:11px;min-height:22px;height:22px;padding:1px 2px;margin-top:1px}
 .estimate-input-table>tbody>.estimate-input-row>td{padding:1px 2px;font-size:12px}
 .estimate-input-row input,.estimate-input-row select{height:24px;font-size:12px;padding:1px 3px;border-radius:4px}
 .estimate-input-row .row-actions button,.estimate-input-row .row-recalculate{height:24px;line-height:18px;padding:1px 3px;font-size:11px}
 .estimate-input-row>td:nth-child(15) .item-rate-input{float:left;width:43px;font-size:0;line-height:22px}
 .estimate-input-row>td:nth-child(15) .item-rate-input input{width:41px;height:22px;font-size:11px;margin:0}
 .estimate-input-row>td:nth-child(15) .cost-cell{display:block;margin-left:44px;line-height:22px}
 .estimate-input-row>td:nth-child(15) .cost-cell output{font-size:11px;line-height:22px}
 .estimate-input-row .cost-cell output{font-size:12px}
 .estimate-input-row>td:first-child{white-space:nowrap}
 .estimate-input-row .row-settings-toggle{display:inline-block;padding:0;margin-left:1px;width:16px;height:22px;font-size:12px;line-height:20px;border:0;background:transparent}
 .pj-child-row:has(.pj-input-details:not([open])),.estimate-options-row:has(details:not([open])){display:none}
 .estimate-input-row{scroll-margin-top:55px}
 #rows>.small-note{margin:4px 0;font-size:10px;line-height:1.3}
 #workspace>.panel:has(#rows)>.calculate-bar{margin-top:5px;padding-top:5px}
 @media(max-width:1100px){main>header{flex-direction:row;flex-wrap:wrap}.estimate-table-wrap{max-height:calc(100dvh - 255px)}.estimate-input-table{min-width:1300px}}
}
@media screen{main>header{padding:0}.estimate-input-row input,.estimate-input-row select,.estimate-input-row .row-actions button,.estimate-input-row .row-recalculate{height:22px}.estimate-input-row>td:nth-child(15) .item-rate-input{width:47px}.estimate-input-row>td:nth-child(15) .item-rate-input input{width:46px;appearance:textfield}.estimate-input-row>td:nth-child(15) .item-rate-input input::-webkit-inner-spin-button,.estimate-input-row>td:nth-child(15) .item-rate-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.estimate-input-row>td:nth-child(15) .cost-cell{margin-left:48px}}
@media screen{.row-view-actions{display:flex;gap:5px;align-items:center}#collapse-row-details{padding:4px 8px;font-size:12px;height:28px}}
/* Compact expanded editors and result cards, screen only. */
@media screen{
 .pj-child-controls{gap:6px;align-items:start}
 .pj-child-controls .pj-editor{gap:3px}
 .pj-editor strong{font-size:12px;line-height:18px}
 .pj-child-controls .pj-editor table{margin:2px 0}
 .pj-child-controls .pj-editor table th,.pj-child-controls .pj-editor table td{padding:2px 4px;font-size:11px!important;line-height:17px}
 .pj-child-controls .pj-editor input,.pj-child-controls .pj-editor select{min-height:24px;height:24px;padding:1px 4px;font-size:12px;margin:0}
 .pj-child-controls label{font-size:12px;line-height:20px}
 .pj-child-controls label>select{margin-top:2px;height:26px;padding:2px 5px;font-size:12px}
 .pj-child-controls button{min-height:0;height:24px;padding:1px 7px;font-size:11px;line-height:20px}
 .pj-child-controls .pj-editor>span,.pj-child-controls>.small-note{font-size:10px;line-height:15px;margin-top:2px}
 .estimate-options-row .row-options{gap:5px;grid-template-columns:repeat(5,minmax(0,1fr));padding:3px;margin-top:2px}
 .estimate-options-row .row-options label{font-size:12px;line-height:20px}
 .estimate-options-row .row-options input,.estimate-options-row .row-options select{min-height:24px;height:24px;padding:1px 4px;margin-top:2px;font-size:12px}
 .estimate-options-row .model-button,.estimate-options-row .reference-button{padding:1px 5px;min-height:0;height:22px;line-height:18px;font-size:10px}
 .estimate-options-row .row-footer{margin-top:2px;padding:2px 4px;gap:5px}
 .estimate-options-row .row-footer .small-note{margin:0;font-size:10px;line-height:16px}
 .cost-breakdown{margin:5px 0;padding:5px}.combined-total{margin-top:4px;padding:5px 7px}
 .metrics{gap:6px;margin-bottom:8px}
 .metrics article{padding:7px 10px;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:6px}
 .metrics article span{font-size:12px;line-height:20px}
 .metrics article strong{font-size:20px;line-height:24px;margin:0;white-space:nowrap}
 #result.panel{padding:10px;margin-bottom:8px}
 #result h2{font-size:15px}
 #result>.empty{padding:10px;margin:5px 0;font-size:13px}
 @media(max-width:900px){.estimate-options-row .row-options{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
}
@media screen{
 .panel.quote-settings{padding:8px 10px;margin-bottom:8px}
 .quote-settings>details{margin-top:0}
 .quote-settings summary{font-size:12px;line-height:20px;padding:1px 0}
 .quote-settings .quote-form{gap:5px 10px;margin:6px 0}
 .quote-settings .quote-form label,.quote-settings details>label{font-size:12px;line-height:18px}
 .quote-settings .quote-form input,.quote-settings .quote-form select{height:26px;min-height:0;padding:2px 6px;margin-top:2px;font-size:13px;line-height:20px}
 .quote-settings textarea{height:48px;min-height:32px;margin-top:2px;padding:4px 6px;font-size:13px;line-height:18px;resize:vertical}
 .quote-settings .muted{font-size:10px;line-height:15px;margin:4px 0 0}
}
@media screen{.metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;overflow-x:auto}.metrics article:not(.hidden){min-width:0}.metrics article span{font-size:11px}.metrics article strong{font-size:18px}@media(max-width:1100px){.metrics{grid-template-columns:repeat(6,minmax(150px,1fr))}}}
@media screen{#result.results-collapsed>.result-row{display:none}#result [data-toggle-results]{padding:3px 8px;font-size:12px;margin-left:auto}#result>.section-title{gap:8px}}
@media screen{#result.results-collapsed>.empty{display:none}#result [data-toggle-results]{border-color:#007fa8;color:#007fa8;font-weight:700;background:#edf7fa}}

@media screen{#reference{width:96vw;max-width:1900px;max-height:96vh}#reference .reference-canvas{max-height:78vh}#reference-image{image-rendering:auto}#reference .reference-tools{gap:10px}#reference-models .pj-model-grid img{height:240px}}
/* User-requested 1.5x height for numbered quote input rows only. */
@media screen{
 .estimate-input-table>tbody>.estimate-input-row{height:38px}
 .estimate-input-table>tbody>.estimate-input-row>td{padding-top:3px;padding-bottom:3px;vertical-align:middle}
 .estimate-input-row input,.estimate-input-row select,.estimate-input-row .row-actions button,.estimate-input-row .row-recalculate{height:31px}
 .estimate-input-row>td:nth-child(15) .item-rate-input input{height:29px}
 .estimate-input-row>td:nth-child(15) .item-rate-input,.estimate-input-row>td:nth-child(15) .cost-cell,.estimate-input-row>td:nth-child(15) .cost-cell output{line-height:29px}
 .estimate-input-row .row-settings-toggle{height:29px;line-height:27px}
}

/* 1PRO warm minimal UI, shared by four workspaces. Screen styling only. */
@media screen {
 body.onepro-ui{--blue:#00A3E0;--blue-hover:#0082B3;--milk:#F7F5F0;--beans:#212121;--sub:#8C8C8C;--line:#E5E2DC;--ink:#212121;--muted:#8C8C8C;--bg:#F7F5F0;--green:#00A3E0;--navy:#212121;--orange:#00A3E0;background:var(--milk);color:var(--beans);font-family:"Helvetica Neue",Arial,Pretendard,"Malgun Gothic",sans-serif;font-size:15px;line-height:1.6}
 .onepro-ui h1{font-size:32px;font-weight:500;line-height:1.25;letter-spacing:-.6px;color:var(--beans)}
 .onepro-ui h2{font-size:22px;font-weight:500;line-height:1.4;letter-spacing:-.3px;color:var(--beans)}
 .onepro-ui h3{font-weight:500;color:var(--beans)}
 .onepro-ui p,.onepro-ui label{color:var(--beans)}
 .onepro-ui .subtitle,.onepro-ui .muted,.onepro-ui .note,.onepro-ui .caption,.onepro-ui .scope,.onepro-ui .small-note,.onepro-ui .header-label{color:#737373;font-size:12px;font-weight:400}
 .onepro-ui .eyebrow{color:#737373;font-size:12px;font-weight:400;letter-spacing:2px}
 .onepro-ui a{color:var(--beans);text-decoration-color:var(--line);text-underline-offset:4px}
 .onepro-ui button,.onepro-ui .button,.onepro-ui .admin-link,.onepro-ui .actions a,.onepro-ui header nav>a{border:1px solid var(--line);border-radius:4px;background:white;color:var(--beans);box-shadow:none;font-family:inherit;font-size:14px;font-weight:600;letter-spacing:.5px;text-decoration:none;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
 .onepro-ui main>header .actions>button,.onepro-ui main>.heading .actions>button,.onepro-ui .workspace-nav>button,.onepro-ui .workspace-nav>.admin-link,.onepro-ui header nav>a,.onepro-ui .estimate-links .button,.onepro-ui #pricing-form>button{min-height:48px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center}
 .onepro-ui button:hover,.onepro-ui .button:hover,.onepro-ui .admin-link:hover,.onepro-ui header nav>a:hover{background:#F0EEE8;border-color:#c8c3ba;color:var(--beans)}
 .onepro-ui button:focus-visible,.onepro-ui a:focus-visible,.onepro-ui input:focus-visible,.onepro-ui select:focus-visible,.onepro-ui textarea:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
 .onepro-ui button.primary,.onepro-ui nav button.active{background:white;color:var(--beans);border-color:var(--line)}
 .onepro-ui.onepro-curtain #save,.onepro-ui.onepro-center #pricing-form>button[type=submit]{background:var(--blue);border-color:var(--blue);color:white;min-height:48px;border-radius:4px}
 .onepro-ui.onepro-curtain #save:hover,.onepro-ui.onepro-center #pricing-form>button[type=submit]:hover{background:var(--blue-hover);border-color:var(--blue-hover);color:white}
 .onepro-ui input,.onepro-ui select,.onepro-ui textarea{font-family:inherit;background:white;border-color:var(--line);border-radius:4px;color:var(--beans);box-shadow:none}
 .onepro-ui input[readonly],.onepro-ui select:disabled{background:#F7F5F0;color:#626262}
 .onepro-ui table th{background:#F1EFE9;color:var(--beans);font-weight:500}
 .onepro-ui table th,.onepro-ui table td{border-color:var(--line)}
 .onepro-ui .panel,.onepro-ui .window-card,.onepro-ui .metrics article,.onepro-ui .drawing,.onepro-ui .system-panel,.onepro-ui .checks article{background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
 .onepro-ui .workspace-nav,.onepro-ui>header{background:white;border-bottom:1px solid var(--line);gap:12px;align-items:center;flex-wrap:wrap}
 .onepro-ui .workspace-nav{min-height:96px;padding:16px 24px}
 .onepro-ui .workspace-nav .site-brand{margin-right:20px}
 .onepro-ui .workspace-nav .site-brand img{height:64px;width:220px;max-width:100%;object-fit:contain}
 .onepro-ui .workspace-nav button.active{box-shadow:none;border-bottom:2px solid var(--blue);color:var(--beans)}
 .onepro-ui .table-wrap{border-radius:4px}
 .onepro-ui .grand{background:#F1EFE9;color:var(--beans);border:1px solid var(--line);border-radius:4px}
 .onepro-ui #notice,.onepro-ui #status,.onepro-ui .price-summary,.onepro-ui .detail-summary{background:#F1EFE9;color:var(--beans);border-color:var(--line)}
 .onepro-ui #notice.error,.onepro-ui .warnings{color:#865833}
 .onepro-ui.onepro-curtain main{padding:24px}
 .onepro-ui.onepro-curtain main>header{margin-bottom:24px;gap:24px}
 .onepro-ui.onepro-curtain .panel{border-radius:8px}
 .onepro-ui.onepro-curtain .estimate-input-table th,.onepro-ui.onepro-curtain .estimate-input-table td{font-size:12px}
 .onepro-ui.onepro-curtain .estimate-input-row input,.onepro-ui.onepro-curtain .estimate-input-row select{font-size:12px}
 .onepro-ui.onepro-curtain .metrics article{box-shadow:0 2px 8px rgba(0,0,0,.04)}
 .onepro-ui.onepro-curtain .metrics article strong{color:var(--beans)}
 .onepro-ui.onepro-curtain .estimate-options-row td,.onepro-ui.onepro-curtain .pj-child-controls{background:#F7F5F0}
 
 
 
 
 
 
 
 .onepro-ui.onepro-center main{max-width:1440px;margin:auto;padding:32px 24px}
 .onepro-ui.onepro-center .panel{padding:24px;margin:24px 0}
 .onepro-ui.onepro-center .settings{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:end}
 .onepro-ui.onepro-center input,.onepro-ui.onepro-center select{min-height:40px;margin-top:8px}
 .onepro-ui.onepro-center table{width:100%;border-collapse:collapse;margin:24px 0;font-size:13px}
 .onepro-ui.onepro-center th,.onepro-ui.onepro-center td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--line)}
 .onepro-ui.onepro-center .panel>table{table-layout:fixed}
 .onepro-ui.onepro-center #pricing-form>table{margin:24px 0}
 .onepro-ui.onepro-center #pricing-form>button{margin:4px 8px 4px 0}
 .onepro-ui.onepro-center #pricing-status:empty{display:none}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 @media(max-width:900px){.onepro-ui.onepro-center .settings{grid-template-columns:repeat(2,minmax(0,1fr))}.onepro-ui .workspace-nav{padding:16px;gap:8px}.onepro-ui.onepro-curtain main{padding:16px}}
 @media(max-width:600px){.onepro-ui h1{font-size:28px}.onepro-ui .workspace-nav .site-brand{width:100%;margin-right:0}.onepro-ui.onepro-center main{padding:24px 16px}.onepro-ui.onepro-center .panel{padding:16px}.onepro-ui.onepro-center .settings{grid-template-columns:1fr}.onepro-ui.onepro-center th,.onepro-ui.onepro-center td{padding:8px}}
 @media(prefers-reduced-motion:reduce){.onepro-ui button,.onepro-ui .button,.onepro-ui a{transition:none;animation:none;scroll-behavior:auto}}
}

@media screen{.onepro-ui.onepro-center #pricing-form>table{table-layout:fixed}.onepro-ui.onepro-center #pricing-form>table th,.onepro-ui.onepro-center #pricing-form>table td{white-space:normal;overflow-wrap:anywhere}.onepro-ui.onepro-center #pricing-form>table th:first-child{width:20%}}

/* Workflow and review aids; screen only, scoped to the three maintained pages. */
@media screen{
 body.onepro-ui:is(.onepro-curtain,.onepro-bars,.onepro-center) .workflow-help{padding:16px 20px;margin:16px 0;background:#fff;border:1px solid #E5E2DC;border-radius:8px}
 body.onepro-ui:is(.onepro-curtain,.onepro-bars,.onepro-center) .workflow-help p{margin:6px 0;font-size:13px;line-height:1.7}
 body.onepro-ui:is(.onepro-curtain,.onepro-bars,.onepro-center) .workflow-help ol{display:flex;flex-wrap:wrap;gap:8px 24px;list-style:none;padding:0;margin:12px 0;font-size:13px}
 body.onepro-ui:is(.onepro-curtain,.onepro-bars,.onepro-center) .workflow-help summary{cursor:pointer;font-size:13px;color:#007da8}
 body.onepro-ui:is(.onepro-curtain,.onepro-bars,.onepro-center) .cost-policy{padding:10px 14px;border-left:3px solid #00A3E0;background:#eef7fa;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
 
 body.onepro-ui.onepro-center .change-summary:empty{display:none}
 
 
 
 body.onepro-ui.onepro-center .change-summary{padding:12px;background:#eef7fa;border-radius:8px;font-size:13px;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}
 body.onepro-ui.onepro-center .table-wrap{max-width:100%;overflow-x:auto}
 body.onepro-ui.onepro-center .table-wrap table{min-width:680px}
 body.onepro-ui.onepro-center .settings label{min-width:0}
 body.onepro-ui.onepro-center input{max-width:100%}
 
 @media(max-width:600px){body.onepro-ui.onepro-center .panel>table{display:block;overflow-x:auto}body.onepro-ui:is(.onepro-curtain,.onepro-bars,.onepro-center) .workflow-help{padding:12px}}
}
@media print{body.onepro-ui:is(.onepro-curtain,.onepro-bars,.onepro-center) .workflow-help,body.onepro-ui .storage-info,body.onepro-ui .price-checks,body.onepro-ui .change-summary,body.onepro-ui .cost-policy{display:none!important}}

[hidden]{display:none!important}
body.onepro-ui.onepro-curtain #curtain-guide-toggle{background:#06c755;border-color:#06c755;color:#073b1c;font-weight:800}
@media screen{.curtain-guide{position:fixed;right:0;top:0;bottom:0;z-index:1000;width:350px;max-width:92vw;overflow:auto;background:white;border-left:1px solid #dee2e6;padding:20px;box-shadow:-6px 0 22px #00000014;font-size:14px;line-height:1.7}.curtain-guide-heading{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-20px;background:white;padding:12px 0;border-bottom:2px solid #ff6f0f}.curtain-guide h2{font-size:18px}.curtain-guide h3{font-size:16px;margin:0 0 8px}.curtain-guide ol{padding-left:22px}.curtain-guide li{padding:16px 0;border-bottom:1px solid #e9ecef}.curtain-guide p{margin:8px 0}.curtain-guide button{margin:3px;padding:8px 10px}.curtain-guide-open{padding-right:350px}.curtain-help-highlight{outline:3px solid #ff6f0f!important;outline-offset:4px}@media(max-width:900px){.curtain-guide-open{padding-right:0}}}
@media print{#curtain-guide,#curtain-guide-toggle{display:none!important}.curtain-guide-open{padding-right:0!important}}

/* Compact landscape cover without hiding supplier or notes. */
.landscape .q-cover .q-top img{width:42mm}.landscape .q-cover h1{font-size:24px;margin:1mm 0}.landscape .q-cover .q-cover-grid{gap:1mm 5mm}.landscape .q-cover .q-info th,.landscape .q-cover .q-info td{font-size:9px;line-height:1.25;padding:2px 5px}.landscape .q-cover .q-band{font-size:11px;margin:2mm 0;padding:3px}.landscape .q-cover .q-amount{font-size:22px;padding:5px}.landscape .q-cover .q-sums th,.landscape .q-cover .q-sums td{font-size:9px;padding:3px 5px}.landscape .q-cover .q-cover-notes-wrap{margin-top:1mm}.landscape .q-cover .q-notes-title{margin:2mm 0 1mm}.landscape .q-cover .q-foot{font-size:8px;line-height:1.3;margin:2mm 0 0}.landscape .q-cover .q-statement{font-size:10px;margin:1mm 0}

/* Compact FIX profile controls and distinguish internal-line counts. */
@media screen{
 .estimate-options-row .row-options:has([data-key="internal_vertical"]){grid-template-columns:repeat(4,minmax(120px,1fr)) repeat(2,minmax(92px,.55fr)) minmax(140px,.8fr);gap:6px}
 .estimate-options-row .row-options label{min-width:0}
 .estimate-options-row .row-options select,.estimate-options-row .row-options input{width:100%;min-width:0;box-sizing:border-box}
 .estimate-options-row .row-options label:has([data-key="nv"]),.estimate-options-row .row-options label:has([data-key="nh"]){background:#fff0dc;color:#7b3900;border-radius:5px;padding:0 5px 4px}
 .estimate-options-row .row-options input[data-key="nv"],.estimate-options-row .row-options input[data-key="nh"]{background:#fff8ee;border:1px solid #e59640;color:#7b3900;font-weight:700}
 @media(max-width:1100px){.estimate-options-row .row-options:has([data-key="internal_vertical"]){grid-template-columns:repeat(4,minmax(0,1fr))}}
 @media(max-width:700px){.estimate-options-row .row-options:has([data-key="internal_vertical"]){grid-template-columns:repeat(2,minmax(0,1fr))}}
}

@media screen{
 .estimate-options-row .row-options label:has([data-key="nv"]),.estimate-options-row .row-options label:has([data-key="nh"]),.estimate-options-row .row-options input[data-key="nv"],.estimate-options-row .row-options input[data-key="nh"]{color:#c94c00;font-weight:700}
}

@media screen{.estimate-action-group{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px;border:1px solid #dee2e6;border-radius:8px}.estimate-action-group>span{font-size:12px;font-weight:700;color:#56616b}#material-quote article{padding:12px 0;border-bottom:1px solid #dee2e6}}

@media screen{
 body.onepro-ui.onepro-curtain .estimate-main-actions>button,body.onepro-ui.onepro-curtain .estimate-main-actions>.action-menu>summary{background:#fff0e1!important;border:1px solid #ffc79b!important;color:#8c3b00!important;border-radius:7px;padding:10px 14px;font-weight:700;cursor:pointer;font-size:14px;list-style:none}
 .estimate-main-actions{align-items:flex-start;gap:8px}.action-menu{position:relative}.action-menu>div{position:absolute;right:0;top:100%;z-index:50;min-width:190px;padding:6px;background:white;border:1px solid #ffc79b;border-radius:8px;box-shadow:0 6px 18px #0002}.action-menu>div>button{display:block;width:100%;text-align:left;background:#fff5eb;border:0;margin:3px 0;color:#8c3b00}.action-menu>summary::after{content:' ▾'}#autosave-status{font-size:12px;color:#7b3900}
}
@media print{.action-menu{display:none!important}}

@media screen{.checked-row-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:8px 0}.checked-row-actions button{background:#fff0e1;border-color:#ffc79b;color:#8c3b00}.estimate-input-table input[type="checkbox"]{width:16px;min-height:16px;height:16px;margin-right:5px;accent-color:#c94c00}.estimate-input-table th:first-child{min-width:70px}#checked-result{border:2px solid #ffc79b}}

@media screen{
 .estimate-main-actions{align-items:center!important}
 .estimate-main-actions>.action-menu{margin:0;padding:0;border:0}
 body.onepro-ui.onepro-curtain .estimate-main-actions>button,body.onepro-ui.onepro-curtain .estimate-main-actions>.action-menu>summary{height:48px;min-height:48px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;margin:0;line-height:1.2}
}

/* Routine calculation messages do not occupy a notification panel. */
#notice:not(.error){display:none}

.glass-installation-input{display:grid;gap:5px}.estimate-input-row .glass-installation-input label{font-size:10px;line-height:1.3}

.q-detail .q-items th:nth-child(5),.q-detail .q-items th:nth-child(6){width:5%}

.q-detail .q-items thead th:nth-child(1){width:3.25%}
.q-detail .q-items thead th:nth-child(2){width:7.5%}
.q-detail .q-items thead th:nth-child(3){width:29.286%}
.q-detail .q-items thead th:nth-child(4){width:11%}
.q-detail th,.q-detail td{text-align:center}
.q-detail td.right{text-align:right}

.q-detail .q-items thead th:nth-child(n+7){width:7.912%}
.q-detail .q-items tbody td:nth-child(2){white-space:nowrap;overflow-wrap:normal;word-break:keep-all}

.q-detail .q-items tbody td:nth-child(4){white-space:nowrap;overflow-wrap:normal;word-break:keep-all}

.q-detail-notes td,.q-cover-notes td{text-align:left}

.q-cover .q-info td.q-bank-account{white-space:nowrap;overflow-wrap:normal;font-size:9px}

/* Company originals: QR at upper right, product logos below the document. */
.q-paper .q-top img.q-company-qr{width:19mm;height:19mm;object-fit:contain;flex:none}
.q-product-brands{margin-top:7mm;text-align:center;break-inside:avoid}
.q-product-brands img{display:block;width:100%;max-width:170mm;height:auto;margin:0 auto}
.landscape .q-product-brands{margin-top:3mm}
.landscape .q-product-brands img{max-width:170mm}
