@media screen{
  #quoteSheet.preview-focus{display:block!important;background:#e8ebef!important;padding:16px;margin:18px auto;max-width:850px;box-shadow:0 8px 28px #0002}
  #quoteSheet.preview-focus .quote-print-content{width:min(100%,794px);min-height:1123px;margin:auto;padding:28px 30px 20px;box-shadow:0 4px 24px #0002}
  .quote-preview-actions{display:none}.preview-focus .quote-preview-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:12px}
}
.denaz-offer{box-sizing:border-box;background:#fff;color:#101b2f;font-family:Arial,sans-serif;display:flex;flex-direction:column;gap:15px}
.denaz-offer .visual-letterhead{width:100%;height:auto;max-height:130px;object-fit:contain;object-position:left}
.denaz-offer h1{font-size:22px;line-height:1.1;margin:6px 0 0;align-self:flex-start;border-bottom:5px solid #f5b800;padding-bottom:6px}
.offer-info{display:grid;grid-template-columns:1fr 1fr;gap:14px}.offer-box{border:1px solid #d8e0e9;border-radius:4px;padding:13px 16px;min-height:120px;font-size:12px}.offer-box div{display:grid;grid-template-columns:85px 1fr;gap:6px;margin-bottom:5px;align-items:start}.offer-box b{font-weight:700}.offer-box strong{font-weight:800}
.offer-items{width:100%;border-collapse:collapse;table-layout:fixed;margin:6px 0 0}.offer-items th{background:#a97714;color:#fff;font-size:11px;text-transform:none}.offer-items td,.offer-items th{border:1px solid #d8e0e9;padding:8px 6px;vertical-align:middle}.offer-items td{font-size:11px}.offer-items tbody tr:nth-child(even){background:#f5f7f9}.offer-items td:first-child,.offer-items td:nth-child(4),.offer-items td:nth-child(5){text-align:center}.offer-items td:nth-child(6),.offer-items td:nth-child(7){text-align:right}.offer-items td:nth-child(2),.offer-items td:last-child{font-weight:700}.offer-items th:nth-child(1){width:7%}.offer-items th:nth-child(2){width:19%}.offer-items th:nth-child(3){width:27%}.offer-items th:nth-child(4){width:12%}.offer-items th:nth-child(5){width:9%}.offer-items th:nth-child(6){width:13%}.offer-items th:nth-child(7){width:13%}
.offer-payment-total{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;margin-top:5px}.offer-payment-total h2,.offer-notes h2{font-size:15px;margin:0 0 8px}.offer-payment-total p{border:1px solid #d8e0e9;padding:10px;min-height:45px;font-size:11px;white-space:pre-line;margin:0}.offer-total{border:1px solid #e6a70c;border-radius:4px;display:grid;place-content:center;text-align:center;gap:9px;padding:10px}.offer-total span{font-size:14px;font-weight:800}.offer-total strong{font-size:25px;color:#ab710e}.offer-notes ul{padding-left:18px;margin:0;font-size:11px;line-height:1.5}.offer-notes li::marker{color:#efae10}.offer-sign{font-size:12px;line-height:1.6;margin:4px 0 8px}.offer-bottom{margin-top:auto}.offer-bottom p{font-size:8px;text-align:center;border:1px solid #748196;padding:5px;margin:0 0 7px}.offer-bottom img{display:block;width:100%;height:auto;max-height:58px;object-fit:contain}
@media(max-width:700px){#quoteSheet.preview-focus{padding:8px}.preview-focus .quote-preview-actions{flex-wrap:wrap}.denaz-offer{gap:9px!important}.offer-box{padding:7px;font-size:9px}.offer-box div{grid-template-columns:49px 1fr}.offer-items td,.offer-items th{font-size:7px;padding:4px 2px}.offer-payment-total h2,.offer-notes h2{font-size:10px}.offer-total strong{font-size:14px}#quoteSheet.preview-focus .quote-print-content{min-height:0;padding:12px}.offer-payment-total p,.offer-notes ul{font-size:9px}}
@media print{
  .quote-preview-actions{display:none!important}
  .denaz-offer{gap:4mm!important;width:100%;height:100%;min-height:0;padding:0!important;box-shadow:none!important}
  .denaz-offer .visual-letterhead{max-height:30mm}.denaz-offer h1{font-size:16pt;margin:0}.offer-box{min-height:0}.offer-items td,.offer-items th{padding:1.3mm 1mm;font-size:7.7pt}.offer-payment-total{margin-top:0}.offer-bottom{margin-top:auto}
  .offer-items tr{break-inside:avoid}
}

.offer-recent{margin-bottom:15px}.offer-recent h2{font-size:17px;margin:0 0 9px}.offer-recent-cards{display:flex;gap:9px;overflow:auto;padding-bottom:5px}.offer-recent-card{border:1px solid #d8e0e9;background:#fff;border-radius:10px;padding:10px 13px;min-width:165px;display:grid;gap:5px;text-align:left;cursor:pointer}.offer-recent-card span{font-size:11px;color:#65717d}.offer-recent-card:hover{border-color:#d6a222}@media print{.offer-recent{display:none!important}}

.offer-total small{font-size:9px;color:#596674}
/* Kurumsal teklif örneğindeki antet ve bölüm düzeni */
.denaz-offer .offer-header{display:grid;grid-template-columns:47% 53%;height:105px;border-bottom:5px solid #f6ae00;align-items:center;overflow:hidden}
.denaz-offer .offer-logo{height:100%;position:relative;overflow:hidden}
.denaz-offer .offer-logo img{position:absolute;width:215%;max-width:none;height:100%;object-fit:fill;left:0;top:0}
.denaz-offer .offer-services{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;font-size:12px;font-weight:800;align-items:center;height:80%}
.denaz-offer .offer-services>div{border-left:1px solid #aab2c1}.denaz-offer .offer-services span{display:block;font-size:28px;line-height:1.3;color:#e4a300;margin-bottom:5px}
.denaz-offer .offer-contact{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:7px 0;border-bottom:5px solid #f6ae00;font-size:9px;line-height:1.15;white-space:nowrap}
.denaz-offer .offer-contact>span+span{border-left:1px solid #9ea7b5;padding-left:6px}
.denaz-offer .offer-plan{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}.denaz-offer .offer-plan td{border:1px solid #d8e0e9;padding:7px 8px}.denaz-offer .offer-plan td:first-child{width:14%}.denaz-offer .offer-plan td:last-child{width:27%;text-align:right}
.denaz-offer .offer-sign{position:relative;min-height:66px}.denaz-offer .offer-signature{position:absolute;left:130px;top:-3px;font:italic 28px cursive;transform:rotate(-12deg);color:#171717}
@media(max-width:700px){.denaz-offer .offer-header{height:55px}.denaz-offer .offer-services{font-size:6px}.denaz-offer .offer-services span{font-size:14px}.denaz-offer .offer-contact{font-size:5px;gap:2px}.denaz-offer .offer-contact>span+span{padding-left:2px}.denaz-offer .offer-plan{font-size:7px}.denaz-offer .offer-plan td{padding:3px}.denaz-offer .offer-signature{font-size:19px;left:90px}}
@media print{.denaz-offer .offer-header{height:27mm}.denaz-offer .offer-contact{font-size:7pt}.denaz-offer .offer-services{font-size:8pt}.denaz-offer .offer-services span{font-size:16pt}.denaz-offer .offer-plan td{padding:1.6mm 2mm}}

.update-installer{max-width:580px}.update-installer .field{margin:16px 0}.update-version{font-size:15px;color:#344454}.update-version strong{font-size:20px;color:#101b2f}.update-installer button{width:100%}
.quote-payment-editor{padding:14px;margin-top:14px;border:1px solid #d8e0e9;border-radius:10px;background:#fff}.quote-payment-editor .quote-items-toolbar{margin:0 0 10px}.quote-payment-editor h3{margin:0}.quote-payment-head,.quote-payment-row{display:grid;grid-template-columns:65px minmax(150px,1.7fr) minmax(130px,1fr) 150px 130px 38px;gap:8px;align-items:center}.quote-payment-head{font-size:11px;font-weight:800;background:#263746;color:#fff;padding:9px 7px}.quote-payment-row{border-bottom:1px solid #e5e9ee;padding:8px 7px}.quote-payment-row input,.quote-payment-row select{width:100%;min-width:0;padding:9px;border:1px solid #cfd7e0;border-radius:6px;background:#fff}.quote-payment-row .danger{padding:8px 5px}.denaz-offer .offer-plan th{background:#f5f0e5;color:#263746;text-align:left;border:1px solid #d8e0e9;font-size:9px;padding:6px 4px}.denaz-offer .offer-plan td{font-size:9px;padding:6px 4px}.denaz-offer .offer-plan th:nth-child(1),.denaz-offer .offer-plan td:first-child{width:7%;text-align:center}.denaz-offer .offer-plan th:nth-child(2){width:31%}.denaz-offer .offer-plan th:nth-child(3){width:20%}.denaz-offer .offer-plan th:nth-child(4){width:19%}.denaz-offer .offer-plan th:nth-child(5),.denaz-offer .offer-plan td:last-child{width:23%;text-align:right}
@media(max-width:800px){.quote-payment-head{display:none}.quote-payment-row{grid-template-columns:58px 1fr 1fr;gap:6px}.quote-payment-row [data-payment-description]{grid-column:2/-1}.quote-payment-row [data-payment-method]{grid-column:1/3}.quote-payment-row [data-payment-date]{grid-column:3}.quote-payment-row [data-payment-amount]{grid-column:1/3}.quote-payment-row button{grid-column:3;justify-self:end;width:45px}.denaz-offer .offer-plan th,.denaz-offer .offer-plan td{font-size:6px;padding:2px}}
@media print{.quote-payment-editor{display:none!important}.denaz-offer .offer-plan th,.denaz-offer .offer-plan td{font-size:7pt;padding:1.2mm}}

.quote-share-help{max-width:490px;line-height:1.5}.quote-share-help p{margin:0 0 16px}.quote-share-help p:last-child{font-size:13px;color:#52606e;margin:16px 0 0}.quote-share-help-actions{display:flex;flex-wrap:wrap;gap:10px}.quote-share-help-actions button{min-height:44px}
@media print{.layout{display:block!important;width:210mm!important;height:297mm!important;min-height:0!important;max-height:297mm!important;overflow:hidden!important}#quoteSheet{break-after:avoid!important;page-break-after:avoid!important}.denaz-offer,.denaz-offer *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

.quote-site-field #quoteSite{display:none}.quote-site-picker-btn{width:100%;text-align:left;min-height:48px}.quote-site-picker-row{border-bottom:1px solid #e1e4e8;padding:7px 0}.quote-site-picker-name{display:block;width:100%;padding:12px;background:transparent;border:0;text-align:left;color:#172532;font:inherit}.quote-site-picker-actions{display:flex;gap:8px;padding:4px 12px 10px}.quote-site-picker-actions[hidden]{display:none}
.receipt-preview .denaz-receipt{margin:12px auto;max-width:580px}.receipt-actions,.budget-entry-actions{display:flex;flex-wrap:wrap;gap:8px}.denaz-receipt{background:#fff;color:#172532;border:1px solid #d8e0e9;padding:24px;font-size:14px}.denaz-receipt header{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #efb91e;padding-bottom:10px}.denaz-receipt header strong{font-size:22px}.denaz-receipt h1{text-align:center;font-size:23px;margin:25px 0 5px}.receipt-number{text-align:center;color:#53616e;overflow-wrap:anywhere}.denaz-receipt dl{display:grid;grid-template-columns:135px 1fr;gap:0;margin:28px 0}.denaz-receipt dt,.denaz-receipt dd{margin:0;padding:10px;border-bottom:1px solid #e1e6eb}.denaz-receipt dt{font-weight:700}.denaz-receipt dd{overflow-wrap:anywhere}.denaz-receipt footer{text-align:right;margin-top:45px;font-weight:700}.denaz-receipt footer small{display:block;font-weight:400}#denazReceiptPrint{display:none}
@media print{html:has(body.denaz-print-receipt),body.denaz-print-receipt{width:auto!important;height:auto!important;overflow:visible!important}body.denaz-print-receipt>*{display:none!important}body.denaz-print-receipt>#denazReceiptPrint{display:block!important;width:100%!important;height:auto!important;position:static!important;margin:0!important;padding:0!important;overflow:visible!important}body.denaz-print-receipt .denaz-receipt{width:170mm;max-width:100%;margin:10mm auto;border:1px solid #ccc;box-sizing:border-box;break-inside:avoid}}

.whatsapp-btn{background:#25D366!important;color:#fff!important;border:0!important;font-weight:800!important;padding:12px 18px!important;border-radius:10px!important;cursor:pointer}.whatsapp-btn:before{content:'☎';margin-right:7px}

/* Original supplied signature, cropped by its container without altering strokes. */
.denaz-offer .offer-signature{width:140px;height:73px;overflow:hidden;transform:none;top:-5px;mix-blend-mode:multiply}
.denaz-offer .offer-signature img{position:absolute;width:204px;max-width:none;height:auto;left:-31px;top:-63px}
@media(max-width:700px){.denaz-offer .offer-signature{left:90px;width:112px;height:58px}.denaz-offer .offer-signature img{width:163px;left:-25px;top:-50px}}
/* 7.3.54: quote editor fits the available content width. */
@media screen {
 #page-quotes,#quoteArea,.quote-editor,.quote-editor-body{min-width:0;max-width:100%;box-sizing:border-box}
 .quote-editor{container-type:inline-size}
 .quote-bottom{grid-template-columns:minmax(0,1fr) minmax(0,360px)}
 .quote-summary{min-width:0;width:100%;box-sizing:border-box;padding:14px}
 .quote-rate-box{grid-template-columns:minmax(0,1fr) 72px minmax(0,1.4fr) 28px;gap:6px}
 .quote-rate-box>*{min-width:0;max-width:100%;box-sizing:border-box}
 .quote-rate-box strong{font-size:17px;overflow-wrap:anywhere}
 .quote-summary-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .quote-summary-detail b{overflow-wrap:anywhere}
 .quote-row.v7,.quote-row-labels.v7{grid-template-columns:minmax(0,1.2fr) minmax(0,1.7fr) minmax(0,.85fr) minmax(0,.55fr) minmax(0,.65fr) minmax(0,.75fr) minmax(0,.9fr) 36px}
 .quote-row.v7>*{min-width:0;max-width:100%;box-sizing:border-box}
 .quote-payment-head,.quote-payment-row{grid-template-columns:40px minmax(0,1.7fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,.9fr) 30px}
 .quote-payment-row>*{min-width:0;box-sizing:border-box}
 .quote-actions{position:sticky;bottom:0;background:#fff;z-index:5;padding:12px 0;margin-top:12px;justify-content:flex-start;flex-wrap:wrap}
 .quote-actions button{max-width:100%;white-space:normal}
 @container(max-width:850px){.quote-bottom{grid-template-columns:minmax(0,1fr)}.quote-row-labels.v7,.quote-payment-head{display:none}.quote-row.v7,.quote-payment-row{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-row.v7 textarea{grid-column:1/-1}.quote-row.v7 .danger,.quote-payment-row .danger{width:36px;justify-self:end;grid-column:2}}
 @media(max-width:760px){.quote-bottom{grid-template-columns:minmax(0,1fr)}.quote-row.v7,.quote-payment-row{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-payment-head{display:none}}
}

@media screen{
 .quote-row.v7,.quote-row-labels.v7{grid-template-columns:minmax(0,1.2fr) minmax(0,1.7fr) minmax(0,.85fr) minmax(0,.55fr) minmax(0,.65fr) minmax(0,.75fr) minmax(0,.9fr) minmax(0,1fr) 36px}
 .quote-line-total{display:flex;align-items:center;justify-content:flex-end;padding:8px;border:1px solid #dac98d;border-radius:6px;background:#fff9df;font-weight:700;overflow-wrap:anywhere;font-size:13px}
 @container(max-width:850px){.quote-row.v7{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-line-total:before{content:'Toplam: ';margin-right:auto;font-weight:400}}
 @media(max-width:760px){.quote-row.v7{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-line-total:before{content:'Toplam: ';margin-right:auto;font-weight:400}}
}

.denaz-offer .offer-sign{padding-top:40px;min-height:90px}.denaz-offer .offer-signature{left:24px;top:-4px;width:105px;height:55px;opacity:.58;transform:rotate(-7deg)}.denaz-offer .offer-signature img{width:153px;left:-23px;top:-47px}@media(max-width:700px){.denaz-offer .offer-sign{padding-top:32px}.denaz-offer .offer-signature{left:19px;top:-3px;width:84px;height:44px}.denaz-offer .offer-signature img{width:122px;left:-19px;top:-38px}}

/* Quantity remains separate from dimensions in preview and print. */
.denaz-offer .offer-items th:nth-child(1){width:6%}.denaz-offer .offer-items th:nth-child(2){width:17%}.denaz-offer .offer-items th:nth-child(3){width:25%}.denaz-offer .offer-items th:nth-child(4){width:12%}.denaz-offer .offer-items th:nth-child(5){width:8%}.denaz-offer .offer-items th:nth-child(6){width:8%}.denaz-offer .offer-items th:nth-child(7){width:12%}.denaz-offer .offer-items th:nth-child(8){width:12%}
.denaz-offer .offer-items td:nth-child(6){text-align:center}.denaz-offer .offer-items td:nth-child(7),.denaz-offer .offer-items td:nth-child(8){text-align:right}
.denaz-offer .offer-total{padding:5px;gap:4.5px;align-self:start}.denaz-offer .offer-total span{font-size:7px}.denaz-offer .offer-total strong{font-size:12.5px}.denaz-offer .offer-total small{font-size:4.5px}
.denaz-offer .offer-sign{padding-top:0;min-height:0;padding-bottom:8px}.denaz-offer .offer-signature{position:relative;display:block;left:24px;top:auto;margin-top:6px;transform:rotate(-7deg)}
@media(max-width:700px){.denaz-offer .offer-total strong{font-size:7px}.denaz-offer .offer-signature{left:19px;top:auto}}

.denaz-offer .offer-items tbody tr{-webkit-print-color-adjust:exact;print-color-adjust:exact}

/* Payment plan occupies a separate row below the right-aligned total. */
.denaz-offer .offer-payment-total{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);row-gap:18px}
.denaz-offer .offer-payment-total>.offer-total{grid-column:2;grid-row:1}
.denaz-offer .offer-payment-total>div:first-child{grid-column:1/-1;grid-row:2;min-width:0}
@media print{.denaz-offer .offer-payment-total{row-gap:4mm}}

.denaz-offer .offer-total{display:block;padding:8px 10px}.denaz-offer .offer-total-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:4px 0;text-align:left}.denaz-offer .offer-total-line span{font-size:10px;white-space:nowrap}.denaz-offer .offer-total-line strong{font-size:11px;white-space:nowrap}.denaz-offer .offer-total-grand{border-top:1px solid #dac98d;margin-top:3px;padding-top:7px}.denaz-offer .offer-box div{grid-template-columns:80px 1fr}
@media(max-width:700px){.denaz-offer .offer-total-line span{font-size:8px}.denaz-offer .offer-total-line strong{font-size:9px}.denaz-offer .offer-box div{grid-template-columns:65px 1fr}}

.denaz-offer .offer-box div{grid-template-columns:100px minmax(0,1fr);align-items:baseline}.denaz-offer .offer-box div>b{white-space:nowrap}
@media(max-width:700px){.denaz-offer .offer-box div{grid-template-columns:85px minmax(0,1fr)}}

#quoteSheet .denaz-offer .offer-items{width:100%;max-width:100%;margin-left:0;margin-right:0;box-sizing:border-box}

#quoteArea .quote-editor>.quote-editor-title{display:none!important}

/* 7.3.132: optional quote photographs, quantity before unit, right signature. */
.denaz-offer .offer-sign{align-self:flex-end;text-align:left;min-width:140px;break-inside:avoid}
.denaz-offer .offer-media[hidden]{display:none!important}
.denaz-offer .offer-media h2{font-size:15px;margin:0 0 8px}
.offer-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.offer-media-grid figure{margin:0;break-inside:avoid;border:1px solid #d8e0e9;padding:6px}
.offer-media-grid img{display:block;width:100%;height:160px;object-fit:contain}
@media(max-width:700px){.denaz-offer .offer-media h2{font-size:10px}.offer-media-grid img{height:100px}}
@media print{
 body:has(#quoteSheet) .layout,body:has(#quoteSheet) #quoteSheet{height:auto!important;max-height:none!important;overflow:visible!important}
 #quoteSheet .denaz-offer{height:auto!important;display:block!important}
 #quoteSheet .denaz-offer> *{margin-bottom:4mm}
 #quoteSheet .offer-sign{width:140px;margin-left:auto;break-inside:avoid}
 .offer-media-grid{display:block}
 .offer-media-grid figure{display:inline-block;vertical-align:top;width:32%;box-sizing:border-box;margin:0 1% 4mm 0;break-inside:avoid}
 .offer-media-grid img{height:45mm}
 .offer-media h2{break-after:avoid}
}

@media screen{#quoteSheet:not(.preview-focus){display:none!important}}


.offer-drawings316{margin:12px 0;min-width:0}.offer-drawings316 h2{font-size:12px;margin:0 0 8px}.drawing-grid-row316{display:grid;gap:8px;margin:0 0 10px;break-inside:avoid;page-break-inside:avoid}.drawing-grid-row316 figure{min-width:0;padding:4px;border:1px solid #d8e0e9;box-sizing:border-box}.drawing-grid-row316 img{width:100%;height:auto;object-fit:contain}.drawing-grid-row316 figcaption{font-size:10px!important;margin-bottom:3px!important}

/* 317 PDF: eight offer columns must share one page width (legacy widths added to 100% before column 8). */
.denaz-offer .offer-items th:nth-child(1){width:6%}
.denaz-offer .offer-items th:nth-child(2){width:18%}
.denaz-offer .offer-items th:nth-child(3){width:23%}
.denaz-offer .offer-items th:nth-child(4){width:12%}
.denaz-offer .offer-items th:nth-child(5){width:8%}
.denaz-offer .offer-items th:nth-child(6){width:8%}
.denaz-offer .offer-items th:nth-child(7){width:12%}
.denaz-offer .offer-items th:nth-child(8){width:13%}
.denaz-offer .offer-items{max-width:100%}
.denaz-offer .offer-items td,.denaz-offer .offer-items th{overflow-wrap:anywhere}
.denaz-offer .offer-drawings316,.denaz-offer #pDrawingGrid316{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.denaz-offer .drawing-grid-row316{width:100%;min-width:0;max-width:100%}
.denaz-offer .drawing-grid-row316 img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}

/* 320 – teklif özeti çizimlerden önce; ödeme planı PDF görünürlüğü tüm teklifler için */
.denaz-offer .offer-total-before-drawings320{display:flex;justify-content:flex-end;margin:8px 0 12px;break-inside:avoid}
.denaz-offer .offer-total-before-drawings320 .offer-total{width:min(100%,315px);box-sizing:border-box;min-height:76px}
.denaz-offer .offer-payment-total{grid-template-columns:minmax(0,1fr)}
.denaz-offer .offer-payment-total[hidden]{display:none!important}
.quote-pdf-payment-control320{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;white-space:nowrap}
.quote-pdf-payment-control320 input{width:18px;height:18px;accent-color:#d49b14}

.denaz-offer [data-quote-section232="payment"][hidden]{display:none!important}
