/* Masterlift Proforma Teklif Modülü v57 */
.dashboard-head-actions{display:flex;align-items:center;gap:10px}.btn.quote-create-btn{background:#16855a;color:#fff;box-shadow:0 8px 20px rgba(22,133,90,.22)}
.quote-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}.quote-form-main{display:grid;gap:18px}.quote-form-side{position:sticky;top:116px}.quote-side-info{display:flex;gap:9px;margin:20px 0;padding:12px;border-radius:11px;background:#f4f7f5;color:#68716c}.quote-side-info i{color:#16855a;margin-top:3px}.quote-side-info p{margin:0;font-size:10px;font-weight:400}.quote-mobile-actions{display:none}
.quote-items{min-width:0}.quote-items-head,.quote-item-row{display:grid;grid-template-columns:100px minmax(210px,1fr) 90px 135px 125px 34px;gap:9px;align-items:center}.quote-items-head{padding:0 5px 8px;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.quote-item-row{margin-bottom:10px}.quote-item-row>input{margin:0;height:54px}.quote-item-row output{height:54px;display:flex;align-items:center;padding:0 10px;border-radius:10px;background:#f6f7f7;font-size:11px;font-weight:700;white-space:nowrap}.quote-row-remove{width:32px;height:32px;border:0;border-radius:9px;background:#fff0f1;color:var(--red)}
.quote-image-picker{width:90px;height:90px;margin:0;cursor:pointer}.quote-image-picker>input{display:none}.quote-image-preview{width:90px;height:90px;display:grid;place-items:center;overflow:hidden;border:1px dashed #ccd0d6;border-radius:12px;background:#f8f8f7;color:#9aa0a9;font-size:19px}.quote-image-preview img{width:100%;height:100%;object-fit:cover}.quote-add-row{margin-top:4px}.quote-totals{display:flex;justify-content:flex-end;align-items:flex-start;gap:22px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.quote-totals>label{width:145px}.quote-totals dl{width:min(330px,100%);margin:0}.quote-totals dl>div{display:flex;justify-content:space-between;gap:20px;padding:9px 12px;border-bottom:1px solid #eceef0}.quote-totals dt{color:var(--muted);font-size:11px}.quote-totals dd{margin:0;font-size:12px;font-weight:700}.quote-totals .grand{margin-top:5px;border:0;border-radius:10px;background:#151922;color:#fff}.quote-totals .grand dt{color:#fff}.quote-totals .grand dd{font-size:15px}.quote-signatures{margin-top:19px}
.quotes-records-card .search-box>span{top:50%;transform:translateY(-50%);display:grid;place-items:center;font-size:12px}.quotes-table td{vertical-align:middle}.quote-status{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:600}.quote-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.quote-status.draft{background:#f0f1f3;color:#6d737e}.quote-status.sent{background:#edf4ff;color:#3975db}.quote-status.accepted{background:#eaf8f2;color:#16855a}.quote-status.rejected{background:#fff0f1;color:#c62834}.quote-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.quote-row-actions>a:first-child{color:var(--red);font-weight:600}.quote-row-actions .edit{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#f3f4f5;color:#59606b}
.quote-sheet{width:min(1180px,100%);margin:0 auto;padding:34px 38px 28px;border-radius:18px;background:#fff;box-shadow:var(--shadow);font-family:'Poppins',Arial,sans-serif;color:#151922}.quote-sheet-header{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;padding-bottom:16px;border-bottom:3px solid #181c24}.quote-seller{display:flex;flex-direction:column}.quote-seller img{width:280px;max-width:55vw;height:auto;margin-bottom:5px}.quote-seller strong{font-size:10px}.quote-seller span{font-size:9px;color:#555d68}.quote-meta{display:flex;flex-direction:column;align-items:flex-end;text-align:right}.quote-meta small{margin-top:9px;color:var(--red);font-size:9px;font-weight:800;letter-spacing:.15em}.quote-meta>strong{font-size:16px}.quote-meta>span:last-child{font-size:9px;color:var(--muted)}
.quote-sheet-title{position:relative;padding:17px 0 13px}.quote-sheet-title>span{position:absolute;right:0;top:11px;color:#f0f1f2;font-size:54px;font-weight:800;letter-spacing:-.05em}.quote-sheet-title h2{position:relative;margin:0;color:var(--red);font-size:24px;letter-spacing:-.03em}.quote-sheet-title p{position:relative;margin:2px 0 0;color:var(--muted);font-size:9px}.quote-parties{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.quote-parties>div{min-height:100px;padding:13px 15px;border:1px solid #e1e4e8;border-radius:11px;background:#fcfcfb}.party-label{color:var(--red);font-size:8px;font-weight:800;letter-spacing:.11em}.quote-parties h3{margin:5px 0 2px;font-size:14px}.quote-parties p{margin:0;font-size:9px;font-weight:600}.quote-parties small{display:block;color:#68707a;font-size:8px}
.quote-lines{border:1px solid #dfe2e6;border-radius:11px;overflow:hidden}.quote-lines table{width:100%;table-layout:fixed}.quote-lines th{padding:8px 8px;background:#f4f5f6;color:#68707a;font-size:7px}.quote-lines td{padding:7px 8px;border-top:1px solid #eceef0;font-size:8.5px;white-space:normal}.quote-lines th:nth-child(1),.quote-lines td:nth-child(1){width:30px}.quote-lines th:nth-child(2),.quote-lines td:nth-child(2){width:75px}.quote-lines th:nth-child(4),.quote-lines td:nth-child(4){width:70px}.quote-lines th:nth-child(5),.quote-lines td:nth-child(5),.quote-lines th:nth-child(6),.quote-lines td:nth-child(6){width:105px;text-align:right}.quote-line-image{width:62px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#f5f6f7;color:#a1a6ae}.quote-line-image img{width:100%;height:100%;object-fit:cover}
.quote-bottom{display:grid;grid-template-columns:1fr 320px;gap:14px;margin-top:12px}.quote-note{min-height:100px;padding:12px 14px;border:1px solid #e1e4e8;border-radius:11px}.quote-note>span{color:var(--red);font-size:8px;font-weight:800;letter-spacing:.1em}.quote-note p{margin:6px 0 0;font-size:8.5px;line-height:1.5}.quote-summary dl{margin:0;border:1px solid #dfe2e6;border-radius:11px;overflow:hidden}.quote-summary dl>div{display:flex;justify-content:space-between;padding:9px 12px;border-bottom:1px solid #e8eaed;font-size:9px}.quote-summary dl>div:last-child{border:0}.quote-summary dd{margin:0;font-weight:700}.quote-summary .grand{background:#151922;color:#fff;font-size:11px}.quote-sheet-signatures{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.quote-sheet-signatures>div{min-height:105px;display:flex;flex-direction:column;padding:10px 13px;border:1px solid #dfe2e6;border-radius:10px}.quote-sheet-signatures span{color:var(--muted);font-size:7px;font-weight:700}.quote-sheet-signatures b{font-size:9px}.quote-sheet-signatures img{width:160px;height:64px;object-fit:contain;align-self:center}.quote-sheet-signatures i{margin:auto;color:#a2a7ae;font-size:9px}.quote-sheet-footer{display:flex;justify-content:space-between;margin-top:12px;padding-top:8px;border-top:1px solid #e4e6e9;color:#9ba0a8;font-size:7px;letter-spacing:.08em}.quote-sheet-footer b{color:#777d86}.quote-sheet.pdf-export{width:1120px!important;max-width:1120px!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:900px){.dashboard-head-actions{display:none}.quotes-page-head{display:flex!important;align-items:center!important}.quotes-page-head>.btn{width:100%;margin-top:14px}.quote-form-layout{grid-template-columns:1fr}.quote-form-side{position:static;grid-row:1}.quote-form-head .head-actions{display:none}.quote-mobile-actions{position:sticky;z-index:8;bottom:82px;display:grid;grid-template-columns:1fr 1.4fr;gap:9px;padding:12px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:15px;box-shadow:0 -12px 35px rgba(21,25,34,.08);backdrop-filter:blur(14px)}.quote-items-head{display:none}.quote-item-row{position:relative;grid-template-columns:82px 1fr 1fr;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.quote-image-picker{grid-row:1/3}.quote-item-row>input[name="item_name[]"]{grid-column:2/4}.quote-item-row output{height:45px;grid-column:2/4}.quote-row-remove{position:absolute;right:7px;top:7px}.quote-totals{display:block}.quote-totals>label{width:100%;margin-bottom:14px}.quote-totals dl{width:100%}.quotes-records-card .search-row{width:100%}.quote-view-head .head-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-top:14px}.quote-view-head .head-actions .share-pdf{grid-column:1/-1}.quote-sheet{padding:18px 15px;border-radius:14px}.quote-seller img{width:220px}.quote-sheet-title>span{font-size:38px}.quote-bottom{grid-template-columns:1fr}.quote-parties{grid-template-columns:1fr}.quote-lines{overflow:auto}.quote-lines table{min-width:720px}.quote-sheet-signatures{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.quotes-page-head{display:block!important}.quote-item-row{grid-template-columns:76px 1fr 1fr}.quote-image-picker,.quote-image-preview{width:70px;height:70px}.quote-sheet-header{display:flex}.quote-seller img{width:180px}.quote-seller strong{font-size:7px}.quote-seller span{font-size:6.5px}.quote-meta>strong{font-size:11px}.quote-sheet-title h2{font-size:19px}.quote-sheet-signatures{gap:7px}.quote-sheet-signatures img{width:100px}.quote-view-head .head-actions{grid-template-columns:1fr 1fr}.quote-view-head .head-actions .btn{padding:11px 9px;font-size:10px}}
@media print{body{background:#fff!important}.topbar,.mobile-nav,.mobile-drawer,.mobile-drawer-backdrop,.developer-credit,.no-print{display:none!important}.app-shell{width:100%!important;padding:0!important}.quote-sheet{width:196mm!important;min-height:283mm!important;margin:0!important;padding:6mm!important;border:0!important;border-radius:0!important;box-shadow:none!important}.quote-sheet-header{padding-bottom:3mm}.quote-seller img{width:70mm}.quote-sheet-title{padding:3mm 0 2mm}.quote-parties{margin-bottom:2mm}.quote-parties>div{min-height:21mm;padding:2mm 3mm}.quote-lines td{padding:1.2mm 1.5mm}.quote-line-image{width:14mm;height:11mm}.quote-bottom{margin-top:2mm}.quote-note{min-height:22mm}.quote-sheet-signatures{margin-top:2mm}.quote-sheet-signatures>div{min-height:24mm}.quote-sheet-footer{margin-top:2mm}@page{size:A4 portrait;margin:7mm}}

/* V57 PDF/PRINT LAYOUT LOCK */
.quote-sheet.pdf-export .quote-parties{grid-template-columns:1fr 1fr!important}.quote-sheet.pdf-export .quote-bottom{grid-template-columns:1fr 320px!important}.quote-sheet.pdf-export .quote-lines{overflow:visible!important}.quote-sheet.pdf-export .quote-lines table{min-width:0!important}.quote-sheet.pdf-export .quote-seller img{width:330px!important}
@media print{.quote-parties{grid-template-columns:1fr 1fr!important}.quote-lines{overflow:visible!important}.quote-lines table{min-width:0!important}.quote-bottom{grid-template-columns:1fr 62mm!important}.quote-sheet-signatures{grid-template-columns:1fr 1fr!important}}

/* V58 full width detail, service-style actions and quick status */
.quote-sheet{width:100%;max-width:none}
.quote-list-actions{justify-content:flex-end;gap:10px}.quote-list-actions .row-link{font-size:11px;font-weight:600}.quote-list-share{border:0;background:transparent;color:#16855a;padding:6px 2px;font:600 10.5px/1 'Poppins',Arial,sans-serif}.quote-list-share:hover{color:#0c6845}.quote-status-dropdown.sent{background:#edf4ff;color:#3975db}.quote-status-dropdown.accepted{background:#e7f7f0;color:#16855a}.quote-status-dropdown.rejected{background:#fff0f1;color:#c92331}.quote-status-dropdown.draft{background:#eef0f3;color:#59606b}.quotes-table td:last-child{min-width:190px}
@media(max-width:900px){.quote-sheet{width:100%}.quote-list-actions{gap:8px}.quote-list-share{font-size:10px}.quotes-table td:last-child{min-width:180px}}

/* V60 PDF share: fixed A4 canvas, no right-side clipping */
.quote-pdf-stage{position:fixed;left:-10000px;top:0;width:794px;height:1123px;margin:0;padding:0;overflow:hidden;background:#fff;pointer-events:none;z-index:-2147483647}
.quote-pdf-stage .quote-sheet.pdf-export{box-sizing:border-box!important;width:794px!important;max-width:794px!important;min-height:1123px!important;margin:0!important;padding:24px 28px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
.quote-pdf-stage .quote-sheet-header{display:flex!important}.quote-pdf-stage .quote-seller img{width:250px!important;max-width:none!important}.quote-pdf-stage .quote-sheet-title>span{font-size:44px!important}
.quote-pdf-stage .quote-parties{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.quote-pdf-stage .quote-parties>div{min-width:0!important}.quote-pdf-stage .quote-parties p,.quote-pdf-stage .quote-parties small{overflow-wrap:anywhere}
.quote-pdf-stage .quote-lines{width:100%!important;overflow:visible!important}.quote-pdf-stage .quote-lines table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.quote-pdf-stage .quote-bottom{grid-template-columns:minmax(0,1fr) 220px!important}.quote-pdf-stage .quote-sheet-signatures{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.quote-pdf-stage .quote-sheet-footer{margin-top:8px!important}

/* V62: html2pdf kaynak elemani kendi kapsayicisina tasir; A4 kilidi dogrudan sayfada kalir */
.quote-sheet.pdf-export{box-sizing:border-box!important;width:794px!important;max-width:794px!important;min-width:794px!important;min-height:1123px!important;margin:0!important;padding:26px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;overflow:hidden!important}
.quote-sheet.pdf-export .quote-sheet-header{display:flex!important;padding-bottom:11px!important}.quote-sheet.pdf-export .quote-seller img{width:264px!important;max-width:none!important}.quote-sheet.pdf-export .quote-sheet-title{padding:11px 0 8px!important}.quote-sheet.pdf-export .quote-sheet-title>span{font-size:44px!important}
.quote-sheet.pdf-export .quote-parties{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;margin-bottom:8px!important}.quote-sheet.pdf-export .quote-parties>div{min-width:0!important;min-height:79px!important;padding:8px 11px!important}.quote-sheet.pdf-export .quote-parties p,.quote-sheet.pdf-export .quote-parties small{overflow-wrap:anywhere!important;word-break:break-word!important}
.quote-sheet.pdf-export .quote-lines{width:100%!important;max-width:100%!important;overflow:hidden!important}.quote-sheet.pdf-export .quote-lines table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}.quote-sheet.pdf-export .quote-lines td{padding:5px 6px!important}.quote-sheet.pdf-export .quote-line-image{width:53px!important;height:42px!important}
.quote-sheet.pdf-export .quote-bottom{grid-template-columns:minmax(0,1fr) 220px!important;gap:10px!important;margin-top:8px!important}.quote-sheet.pdf-export .quote-note{min-width:0!important;min-height:83px!important;padding:9px 11px!important}.quote-sheet.pdf-export .quote-summary{min-width:0!important}
.quote-sheet.pdf-export .quote-sheet-signatures{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;margin-top:8px!important}.quote-sheet.pdf-export .quote-sheet-signatures>div{min-width:0!important;min-height:91px!important;padding:8px 10px!important}.quote-sheet.pdf-export .quote-sheet-footer{margin-top:8px!important;padding-top:6px!important}

/* v60: teklif PDF paylaş - sağ kesilme ve boş ikinci sayfa düzeltmesi */
.quote-form .quote-signatures,.quote-form .signature-grid.quote-signatures,.quote-sheet-signatures{display:none!important}
.quote-pdf-stage{position:fixed!important;left:-12000px!important;top:0!important;width:900px!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;pointer-events:none!important;z-index:-2147483647!important}
.quote-pdf-stage .quote-sheet.pdf-export{box-sizing:border-box!important;width:794px!important;max-width:794px!important;min-width:794px!important;min-height:0!important;height:auto!important;margin:0!important;padding:26px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;overflow:visible!important}
.quote-sheet.pdf-export .quote-sheet-header{display:flex!important;padding-bottom:11px!important}.quote-sheet.pdf-export .quote-seller img{width:264px!important;max-width:none!important}.quote-sheet.pdf-export .quote-sheet-title{padding:11px 0 8px!important}.quote-sheet.pdf-export .quote-sheet-title>span{font-size:44px!important}
.quote-sheet.pdf-export .quote-parties{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;margin-bottom:8px!important}.quote-sheet.pdf-export .quote-parties>div{min-width:0!important;min-height:78px!important;padding:8px 11px!important}.quote-sheet.pdf-export .quote-parties p,.quote-sheet.pdf-export .quote-parties small{overflow-wrap:anywhere!important;word-break:break-word!important}
.quote-sheet.pdf-export .quote-lines{width:100%!important;max-width:100%!important;overflow:visible!important}.quote-sheet.pdf-export .quote-lines table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}.quote-sheet.pdf-export .quote-lines td{padding:5px 6px!important}.quote-sheet.pdf-export .quote-line-image{width:53px!important;height:42px!important}
.quote-sheet.pdf-export .quote-bottom{display:grid!important;grid-template-columns:minmax(0,1fr) 220px!important;gap:10px!important;margin-top:8px!important}.quote-sheet.pdf-export .quote-note{min-width:0!important;min-height:78px!important;padding:9px 11px!important}.quote-sheet.pdf-export .quote-summary{min-width:0!important}.quote-sheet.pdf-export .quote-sheet-footer{margin-top:8px!important;padding-top:6px!important}