:root{font-family:Arial,sans-serif;color:#20242a;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}header{background:#111;color:#fff;padding:14px 24px;display:flex;align-items:center;justify-content:space-between}header h1{margin:0;font-size:22px}nav{display:flex;gap:8px}.container{max-width:1600px;margin:18px auto;padding:0 14px}.card{background:#fff;border:1px solid #d8dde3;border-radius:8px;padding:14px;margin-bottom:14px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-card{min-width:0;overflow:hidden}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-grid label{min-width:0}.quick-grid input{display:block;width:100%;min-width:0;max-width:100%}.quick-result{grid-column:1/-1}.quick-result input{font-weight:700;background:#eef1f4}.full{grid-column:1/-1}label{display:flex;flex-direction:column;gap:5px;font-weight:600}input,select,textarea{border:1px solid #aeb7c2;border-radius:4px;padding:8px;font:inherit;background:#fff}.calc{background:#eef1f4}.btn{display:inline-block;border:0;border-radius:4px;background:#2563eb;color:#fff;text-decoration:none;padding:9px 13px;cursor:pointer}.secondary{background:#586170}.success{background:#15803d}.danger{background:#b91c1c;color:#fff;border:0;border-radius:4px;font-size:18px;cursor:pointer}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{border:1px solid #c8ced6;padding:7px;text-align:left;white-space:nowrap}th{background:#20242a;color:#fff}td input,td select{width:100%;min-width:85px}.product{min-width:250px}.center{text-align:center}.summary-grid{display:grid;grid-template-columns:360px 1fr;gap:14px}@media(max-width:900px){.grid2,.summary-grid{grid-template-columns:1fr}.grid3,.quick-grid{grid-template-columns:1fr}.quick-result{grid-column:auto}header{align-items:flex-start;gap:10px;flex-direction:column}}
.toast{position:fixed;right:20px;bottom:20px;background:#17324d;color:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 6px 20px #0003;z-index:1000}
.owner-editor{min-width:0}.owner-actions{display:grid;grid-template-columns:minmax(180px,1fr) auto auto auto;gap:6px;margin-top:6px}.owner-actions input{min-width:0}.danger-btn{background:#b91c1c}.muted{display:block;color:#5f6b78;margin-top:5px;min-height:1.2em}.pdf-preview-wrap{height:calc(100vh - 115px);min-height:650px;background:#555;padding:10px}.pdf-preview-frame{width:100%;height:100%;border:0;background:#fff}@media(max-width:1100px){.owner-actions{grid-template-columns:1fr 1fr}.owner-actions input{grid-column:1/-1}}


.rich-field{display:block}.rich-field>label{display:block;font-weight:700;margin-bottom:6px}.rich-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;border:1px solid #b9c2cf;border-bottom:0;border-radius:7px 7px 0 0;background:#f2f5f8}.rich-toolbar select,.rich-toolbar button{height:34px;border:1px solid #aeb8c5;background:#fff;border-radius:5px;padding:0 10px;cursor:pointer}.rich-toolbar button:hover{background:#e8eef5}.color-tool{display:flex!important;align-items:center;gap:6px;margin:0!important;font-weight:600!important}.color-tool input{width:36px!important;height:30px!important;padding:1px!important;border:0!important}.rich-editor{min-height:110px;padding:10px 12px;border:1px solid #b9c2cf;border-radius:0 0 7px 7px;background:#fff;line-height:1.4;overflow:auto}.rich-editor:empty:before{content:attr(data-placeholder);color:#8a94a2}.rich-editor:focus{outline:2px solid rgba(33,110,190,.25);border-color:#216ebe}.format-btn{min-width:38px}
.global-format{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:sticky;top:0;z-index:20}.global-format select,.global-format button,.global-format input{width:auto}.global-format small{color:#666}.format-target{transition:outline .15s}.format-target:focus{outline:2px solid #3b82f6!important;outline-offset:1px}

/* Excel benzeri toplu hücre seçimi */
.selection-mode-btn,.selection-clear-btn{border:0;border-radius:4px;padding:9px 12px;cursor:pointer}.selection-mode-btn{background:#7c3aed;color:#fff}.selection-mode-btn.active{background:#059669;box-shadow:0 0 0 3px rgba(5,150,105,.18)}.selection-clear-btn{background:#586170;color:#fff}.selection-info{font-weight:700;color:#334155;padding:4px 8px;background:#eef2ff;border-radius:4px}.row-selector,.select-all-cell{width:38px;min-width:38px;text-align:center!important;cursor:pointer;user-select:none;font-weight:700;background:#e2e8f0!important;color:#1e293b!important}.row-selector:hover,.select-all-cell:hover,#itemsTable th[data-col]:hover{background:#c7d2fe!important;color:#1e293b!important;cursor:pointer}.selected-cell{background:#dbeafe!important;box-shadow:inset 0 0 0 2px #2563eb}.selected-format-target{outline:2px solid #2563eb!important;outline-offset:-2px;background:#eff6ff!important}body.selection-active #itemsTable tbody td{cursor:cell}#itemsTable{user-select:none}#itemsTable input,#itemsTable select{user-select:text}

/* Sipariş raporu */
.order-filter-card{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}.period-buttons{display:flex;gap:7px}.custom-date-filter{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}.custom-date-filter label{min-width:150px}.filter-range{margin-left:auto;padding:9px 12px;background:#eef2f7;border-radius:5px}.order-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.order-summary-card{margin-bottom:14px}.order-summary-card h2{margin:0 0 12px;font-size:18px}.order-summary-card div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-top:1px solid #e2e7ed}.orders-report-table th{vertical-align:middle}.orders-report-table .num{text-align:right;font-variant-numeric:tabular-nums}.orders-report-table .profit-cell{font-weight:700}.orders-report-table tfoot th{background:#e8edf3;color:#18202a}.empty-state{text-align:center!important;padding:28px!important;color:#667085}@media(max-width:900px){.order-summary-grid{grid-template-columns:1fr}.filter-range{margin-left:0;width:100%}.order-filter-card{align-items:stretch}.custom-date-filter{align-items:stretch}}

/* Sipariş satırından teklif görüntüleme */
.clickable-order-row{cursor:pointer;transition:background-color .15s ease}
.clickable-order-row:hover td,.clickable-order-row:focus td{background:#eef6ff}
.clickable-order-row:focus{outline:3px solid #2563eb;outline-offset:-3px}

/* Sipariş raporu: çeyrek, müşteri filtresi ve A4 yazdırma */
.order-filter-card{display:block}.order-filter-form{display:grid;gap:12px;width:100%}.order-filter-fields{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}.order-filter-fields label{min-width:145px}.order-filter-fields .customer-filter-label{min-width:280px;flex:1}.order-filter-fields input,.order-filter-fields select{width:100%}.period-buttons{flex-wrap:wrap}.print-button{background:#0f766e}.print-report-meta{display:none}.order-table-card{margin-bottom:0}
@media(max-width:900px){.order-filter-fields{align-items:stretch}.order-filter-fields label,.order-filter-fields .customer-filter-label{min-width:100%;width:100%}.period-buttons .btn{flex:1 0 76px;text-align:center}}

@media print{
    @page{size:A4 landscape;margin:9mm}
    :root{background:#fff}
    body{background:#fff;color:#000;font-size:9pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
    header{background:#fff;color:#000;padding:0 0 4mm;border-bottom:1px solid #000;margin-bottom:4mm}
    header h1{font-size:16pt}
    .no-print,.toast{display:none!important}
    .container,.orders-page{max-width:none;width:100%;margin:0;padding:0}
    .print-report-meta{display:block;margin-bottom:4mm}
    .print-report-meta h2{margin:0 0 1.5mm;font-size:13pt}
    .print-report-meta p{margin:0;font-size:9pt}
    .card{border:0;border-radius:0;box-shadow:none;padding:0;margin-bottom:4mm}
    .order-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4mm;margin-bottom:4mm;break-inside:avoid}
    .order-summary-card{border:1px solid #000!important;padding:3mm;margin:0}
    .order-summary-card h2{font-size:11pt;margin-bottom:2mm}
    .order-summary-card div{padding:1.5mm 0;border-top:1px solid #777}
    .table-wrap{overflow:visible}
    .orders-report-table{width:100%;font-size:7.5pt;table-layout:fixed}
    .orders-report-table th,.orders-report-table td{border:1px solid #000;padding:1.6mm 1.2mm;white-space:normal;line-height:1.2}
    .orders-report-table th{background:#e8e8e8!important;color:#000!important;font-weight:700}
    .orders-report-table thead{display:table-header-group}
    .orders-report-table tfoot{display:table-row-group}
    .orders-report-table tr{break-inside:avoid}
    .orders-report-table th:nth-child(1),.orders-report-table td:nth-child(1){width:10%}
    .orders-report-table th:nth-child(2),.orders-report-table td:nth-child(2){width:7%}
    .orders-report-table th:nth-child(3),.orders-report-table td:nth-child(3){width:23%}
    .orders-report-table a{color:#000;text-decoration:none}
    .clickable-order-row{cursor:default}
    .clickable-order-row:hover td,.clickable-order-row:focus td{background:#fff}
}

/* Veritabanı destekli müşteri/ürün otomatik tamamlama */
.autocomplete-anchor{position:relative;width:100%;min-width:0}
.autocomplete-anchor>input{width:100%}
.autocomplete-menu{position:absolute;z-index:1200;left:0;right:0;top:calc(100% + 3px);max-height:260px;overflow:auto;background:#fff;border:1px solid #aeb8c4;border-radius:6px;box-shadow:0 8px 22px rgba(0,0,0,.17);padding:4px 0;text-align:left}
.autocomplete-menu[hidden]{display:none!important}
.autocomplete-option{display:flex;flex-direction:column;gap:2px;padding:8px 10px;cursor:pointer;color:#17212b;background:#fff;line-height:1.25}
.autocomplete-option strong{font-weight:600;overflow-wrap:anywhere}
.autocomplete-option small{font-size:12px;color:#687481;overflow-wrap:anywhere}
.autocomplete-option.active,.autocomplete-option:hover{background:#e9f2ff}
#itemsTable td .autocomplete-anchor{min-width:180px}


/* Teklif formu sade başlık, Excel görünümü ve liste içi teklif sahibi yönetimi */
.quote-meta{display:flex;gap:24px;align-items:center;margin:0 0 8px;padding:0 2px;color:#303844;font-size:14px}.quote-meta span{white-space:nowrap}
.owner-editor>label{margin-bottom:5px}.owner-listbox{border:1px solid #aeb7c2;border-radius:4px;background:#fff;max-height:230px;overflow:auto;padding:0}.owner-option{display:grid;grid-template-columns:1fr 34px;align-items:center;border-bottom:1px solid #d7dce2}.owner-option:last-of-type{border-bottom:1px solid #d7dce2}.owner-choice,.owner-delete{border:0;background:transparent;min-height:34px;cursor:pointer}.owner-choice{text-align:left;padding:7px 10px;font:inherit}.owner-delete{font-size:20px;color:#b91c1c;border-left:1px solid #d7dce2}.owner-option:hover{background:#f3f7fb}.owner-option.selected{background:#dbeafe;box-shadow:inset 3px 0 0 #2563eb}.owner-option.selected .owner-choice{font-weight:700}.owner-add-row{display:grid;grid-template-columns:1fr auto;gap:5px;padding:6px;background:#f6f8fa;position:sticky;bottom:0}.owner-add-row input{min-width:0}.owner-add-row .btn{padding:7px 13px}
#itemsTable{border-collapse:collapse;border-spacing:0;font-size:13px}#itemsTable th,#itemsTable td{padding:0;border:1px solid #aeb6c0;height:31px}#itemsTable th{padding:5px 4px;text-align:center}#itemsTable td input,#itemsTable td select{border:0;border-radius:0;padding:4px 5px;height:30px;min-width:74px;outline-offset:-2px;background:transparent}#itemsTable td .calc{background:#f1f3f5}#itemsTable .row-selector{padding:0 4px}#itemsTable .center{padding:0;text-align:center}#itemsTable .center input{width:auto;min-width:0;height:auto}.table-wrap.card{padding:8px}.table-wrap #addRow{margin-top:8px}
@media(max-width:700px){.quote-meta{align-items:flex-start;flex-direction:column;gap:4px}}


/* Apple.com esintili teklif formu — sade, aydınlık ve içerik odaklı */
.quote-form-page{background:#f5f5f7;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Arial,sans-serif;letter-spacing:-.01em}
.quote-form-page .apple-topbar{position:sticky;top:0;z-index:100;min-height:72px;padding:10px max(20px,calc((100vw - 1480px)/2));background:rgba(250,250,252,.86);color:#1d1d1f;border-bottom:1px solid rgba(0,0,0,.08);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px)}
.quote-form-page .apple-brand{display:flex;align-items:center;gap:12px}.quote-form-page .apple-brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#1d1d1f,#4b4b4f);color:#fff;font-size:18px;font-weight:700;box-shadow:0 5px 14px rgba(0,0,0,.16)}
.quote-form-page .apple-eyebrow{display:block;margin-bottom:1px;color:#6e6e73;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.quote-form-page .apple-topbar h1{font-size:21px;line-height:1.12;font-weight:650;letter-spacing:-.025em}
.quote-form-page .apple-topbar nav{gap:8px}.quote-form-page .container{max-width:1500px;margin:28px auto 64px;padding:0 22px}
.quote-form-page .card{border:1px solid rgba(0,0,0,.07);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 2px 6px rgba(0,0,0,.025),0 14px 38px rgba(0,0,0,.055);padding:18px;margin-bottom:18px}
.quote-form-page .btn,.quote-form-page button{font-family:inherit}.quote-form-page .btn{border-radius:999px;padding:9px 16px;font-weight:600;background:#0071e3;box-shadow:none;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}.quote-form-page .btn:hover{background:#0077ed;transform:translateY(-1px);box-shadow:0 5px 14px rgba(0,113,227,.2)}
.quote-form-page .secondary{background:#e8e8ed;color:#1d1d1f}.quote-form-page .secondary:hover{background:#dedee3;box-shadow:none}.quote-form-page .success{background:#0071e3;font-size:15px;padding:12px 22px;margin-top:3px}
.quote-form-page label{color:#3a3a3c;font-size:13px;font-weight:600;gap:7px}.quote-form-page input,.quote-form-page select,.quote-form-page textarea,.quote-form-page .rich-editor{border:1px solid #d2d2d7;border-radius:11px;background:#fff;color:#1d1d1f;padding:10px 12px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.quote-form-page input:focus,.quote-form-page select:focus,.quote-form-page textarea:focus,.quote-form-page .rich-editor:focus{outline:none!important;border-color:#0071e3;box-shadow:0 0 0 4px rgba(0,125,250,.13)!important}
.quote-form-page .quote-meta{justify-content:flex-start;gap:10px;margin:0 0 14px}.quote-form-page .quote-meta span{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid rgba(0,0,0,.07);color:#6e6e73;font-size:12px;box-shadow:0 1px 2px rgba(0,0,0,.03)}.quote-form-page .quote-meta b{color:#1d1d1f;font-weight:650}
.quote-form-page .global-format{top:83px;z-index:50;border-radius:16px;padding:11px 13px;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.quote-form-page .global-format select,.quote-form-page .global-format button{height:36px;border:1px solid #d2d2d7;border-radius:9px;background:#f5f5f7;color:#1d1d1f}.quote-form-page .global-format button:hover{background:#e8e8ed}.quote-form-page .global-format small{width:100%;color:#86868b;font-size:11px}.quote-form-page .selection-mode-btn{background:#1d1d1f!important;color:#fff!important}.quote-form-page .selection-mode-btn.active{background:#0071e3!important}.quote-form-page .selection-info{border-radius:999px;background:#f5f5f7;color:#6e6e73;font-size:12px}
.quote-form-page .grid2{gap:16px}.quote-form-page .rich-field>label,.quote-form-page h3{color:#1d1d1f}.quote-form-page h3{margin:0 0 14px;font-size:18px;letter-spacing:-.025em}
.quote-form-page .owner-listbox{border-color:#d2d2d7;border-radius:12px;overflow:auto}.quote-form-page .owner-option{border-bottom-color:#e5e5ea}.quote-form-page .owner-option:hover{background:#f5f5f7}.quote-form-page .owner-option.selected{background:#edf6ff;box-shadow:inset 3px 0 0 #0071e3}.quote-form-page .owner-delete{color:#ff3b30;border-left-color:#e5e5ea}.quote-form-page .owner-add-row{background:#f5f5f7}
.quote-form-page .table-wrap.card{padding:14px;border-radius:18px}.quote-form-page #itemsTable{border-collapse:separate;border-spacing:0;font-size:12.5px;border:1px solid #d2d2d7;border-radius:12px;overflow:hidden}.quote-form-page #itemsTable th,.quote-form-page #itemsTable td{border:0;border-right:1px solid #e5e5ea;border-bottom:1px solid #e5e5ea}.quote-form-page #itemsTable tr:last-child td{border-bottom:0}.quote-form-page #itemsTable th:last-child,.quote-form-page #itemsTable td:last-child{border-right:0}.quote-form-page #itemsTable th{height:38px;padding:7px 6px;background:#f5f5f7;color:#1d1d1f;font-weight:650}.quote-form-page #itemsTable td{height:35px;background:#fff}.quote-form-page #itemsTable tbody tr:hover td{background:#fafafa}.quote-form-page #itemsTable td input,.quote-form-page #itemsTable td select{height:34px;border:0;border-radius:0;background:transparent;padding:5px 7px;box-shadow:none!important}.quote-form-page #itemsTable td input:focus,.quote-form-page #itemsTable td select:focus{background:#f0f7ff;box-shadow:inset 0 0 0 2px #0071e3!important}.quote-form-page #itemsTable .calc{background:#f5f5f7}.quote-form-page .row-selector,.quote-form-page .select-all-cell{background:#ededf0!important;color:#6e6e73!important}.quote-form-page .selected-cell{background:#dff0ff!important;box-shadow:inset 0 0 0 2px #0071e3}.quote-form-page .selected-format-target{background:#edf6ff!important;outline-color:#0071e3!important}
.quote-form-page .summary-grid{grid-template-columns:minmax(340px,.72fr) minmax(500px,1.28fr);gap:18px}.quote-form-page .quick-result input{background:#f5f5f7}.quote-form-page #totals{color:#1d1d1f}
.quote-form-page .autocomplete-menu{border-color:#d2d2d7;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.16);padding:6px}.quote-form-page .autocomplete-option{border-radius:8px}.quote-form-page .autocomplete-option.active,.quote-form-page .autocomplete-option:hover{background:#edf6ff}
@media(max-width:900px){.quote-form-page .apple-topbar{padding:10px 16px}.quote-form-page .container{padding:0 12px;margin-top:18px}.quote-form-page .summary-grid{grid-template-columns:1fr}.quote-form-page .global-format{top:72px}.quote-form-page .card{border-radius:15px;padding:14px}}
/* Teklif sahibi: kapalıyken yalnızca son/seçili isim görünür */
.owner-dropdown{position:relative;min-width:0}.owner-dropdown-toggle{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid #d2d2d7;border-radius:12px;background:#fff;color:#1d1d1f;font:inherit;text-align:left;cursor:pointer}.owner-dropdown-toggle:hover{border-color:#a1a1a6}.owner-dropdown.open .owner-dropdown-toggle{border-color:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.12)}.owner-chevron{font-size:20px;line-height:1;transition:transform .18s ease}.owner-dropdown.open .owner-chevron{transform:rotate(180deg)}.owner-dropdown-menu{position:absolute;z-index:80;top:calc(100% + 7px);left:0;right:0;max-height:310px;overflow:auto;background:rgba(255,255,255,.98);border:1px solid #d2d2d7;border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.16);padding:6px;backdrop-filter:blur(16px)}.owner-dropdown-menu[hidden]{display:none}.owner-dropdown-menu .owner-option{border:0;border-radius:9px;margin:1px 0;display:grid;grid-template-columns:1fr 38px}.owner-dropdown-menu .owner-option.selected{background:#edf6ff;box-shadow:none}.owner-dropdown-menu .owner-choice{padding:9px 10px}.owner-dropdown-menu .owner-delete{border-left:0;border-radius:8px}.owner-add-trigger{width:100%;border:0;border-top:1px solid #e5e5ea;background:transparent;color:#0071e3;font:600 14px inherit;text-align:left;padding:11px 10px;margin-top:5px;cursor:pointer}.owner-add-trigger:hover{background:#f5f5f7;border-radius:9px}.owner-dropdown-menu .owner-add-row{position:static;border-top:1px solid #e5e5ea;background:#fff;padding:8px 4px 3px}.owner-dropdown-menu .owner-add-row[hidden]{display:none}

/* Üst teklif bilgi alanlarını daha kompakt göster */
.quote-form-page .grid2{max-width:750px;width:50%;min-width:620px}
@media(max-width:900px){.quote-form-page .grid2{max-width:none;width:100%;min-width:0}}

/* Üst form + kompakt hızlı oran yerleşimi */
.quote-form-page .global-format #fontName{min-width:150px;width:150px;padding-right:34px;font-size:13px;line-height:1.2;color:#1d1d1f;background-color:#fff}
.quote-form-page .quote-intro-layout{display:grid;grid-template-columns:minmax(620px,750px) minmax(260px,330px);gap:16px;align-items:start;margin-bottom:18px}
.quote-form-page .quote-intro-layout .customer-card{width:100%;max-width:none;min-width:0;margin:0}
.quote-form-page .compact-quick{margin:0;padding:14px 15px;border-radius:16px;box-shadow:0 2px 6px rgba(0,0,0,.02),0 10px 26px rgba(0,0,0,.045)}
.quote-form-page .compact-quick h3{font-size:15px;margin:0 0 10px}
.quote-form-page .compact-quick .quick-grid{gap:8px}
.quote-form-page .compact-quick label{font-size:11px;gap:4px;color:#6e6e73}
.quote-form-page .compact-quick input{height:34px;padding:6px 9px;border-radius:9px;font-size:13px}
.quote-form-page .compact-quick .quick-result{margin-top:1px}
.quote-form-page .totals-only{grid-template-columns:1fr}
@media(max-width:1050px){.quote-form-page .quote-intro-layout{grid-template-columns:1fr}.quote-form-page .compact-quick{max-width:420px}}
@media(max-width:900px){.quote-form-page .global-format #fontName{min-width:135px;width:135px}.quote-form-page .quote-intro-layout{margin-bottom:14px}}

.quote-form-page .table-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.quote-form-page .table-actions .success{margin-left:auto}@media(max-width:600px){.quote-form-page .table-actions{align-items:stretch;flex-direction:column}.quote-form-page .table-actions .btn{width:100%;text-align:center}}

/* Ürün sütunu genişliği ve boş satır desteği */
.quote-form-page #itemsTable th:nth-child(3),
.quote-form-page #itemsTable td:nth-child(3){
    width:360px;
    min-width:360px;
}
.quote-form-page #itemsTable td:nth-child(3) .autocomplete-anchor,
.quote-form-page #itemsTable td:nth-child(3) input{
    width:100%;
    min-width:340px;
}
@media(max-width:900px){
    .quote-form-page #itemsTable th:nth-child(3),
    .quote-form-page #itemsTable td:nth-child(3){
        width:280px;
        min-width:280px;
    }
    .quote-form-page #itemsTable td:nth-child(3) input{min-width:260px}
}

.quote-search-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.quote-search-inline input{min-width:280px;flex:1}.quote-search-card{padding:12px 16px;margin-bottom:14px}

.quote-history-search{margin-bottom:14px}.history-search-grid{display:grid;grid-template-columns:1.2fr 1.2fr .8fr auto;gap:10px;align-items:end;margin-top:10px}.history-search-grid label{display:grid;gap:5px}.quote-history-nav{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}.history-buttons{display:flex;align-items:center;gap:10px}.btn.disabled{opacity:.4;pointer-events:none}@media(max-width:900px){.history-search-grid{grid-template-columns:1fr}.quote-history-nav{align-items:flex-start}}

.history-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}
.history-search-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}
.history-search-form label{display:grid;gap:5px;min-width:0}
.history-search-form input{width:100%;box-sizing:border-box}
.history-error{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff1f0;color:#b42318}
@media(max-width:1100px){.history-search-grid{grid-template-columns:1fr}.history-search-form{grid-template-columns:1fr auto}}
@media(max-width:640px){.history-search-form{grid-template-columns:1fr}.history-search-form .btn{width:100%}}

/* Biçimlendirme en üstte; geçmiş teklif ve hızlı oran yan yana */
.quote-form-page .global-format{margin-bottom:14px}
.quote-form-page .top-workspace{
    display:grid;
    grid-template-columns:minmax(0,1fr) 260px;
    gap:14px;
    align-items:stretch;
    margin-bottom:16px;
}
.quote-form-page .quote-history-search,
.quote-form-page .vertical-quick{
    margin:0;
}
.quote-form-page .quote-history-search h3,
.quote-form-page .vertical-quick h3{
    margin:0 0 10px;
    font-size:15px;
}
.quote-form-page .history-unified-form{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:end;
}
.quote-form-page .history-unified-fields{
    display:grid;
    grid-template-columns:1.2fr 1.2fr .7fr;
    gap:10px;
}
.quote-form-page .history-unified-fields label{
    display:grid;
    gap:5px;
    min-width:0;
    font-size:12px;
}
.quote-form-page .history-unified-fields input{
    width:100%;
    box-sizing:border-box;
    height:36px;
}
.quote-form-page .history-search-button{
    white-space:nowrap;
    height:36px;
}
.quote-form-page .vertical-quick .quick-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
}
.quote-form-page .vertical-quick label{
    display:grid;
    grid-template-columns:76px 1fr;
    gap:8px;
    align-items:center;
    margin:0;
}
.quote-form-page .vertical-quick input{
    width:100%;
    box-sizing:border-box;
}
.quote-form-page .quote-intro-layout{
    display:block;
    margin-bottom:18px;
}
.quote-form-page .quote-intro-layout .customer-card{
    max-width:750px;
    width:50%;
    min-width:620px;
}
@media(max-width:1100px){
    .quote-form-page .top-workspace{grid-template-columns:1fr}
    .quote-form-page .vertical-quick{max-width:420px}
}
@media(max-width:900px){
    .quote-form-page .history-unified-form{grid-template-columns:1fr}
    .quote-form-page .history-unified-fields{grid-template-columns:1fr}
    .quote-form-page .history-search-button{width:100%}
    .quote-form-page .quote-intro-layout .customer-card{width:100%;min-width:0;max-width:none}
}

/* Üst bölüm: Geçmiş Teklif, Hızlı Oran ve Müşteri formu aynı satırda */
.quote-form-page .top-workspace{
    grid-template-columns:minmax(520px,1.55fr) minmax(220px,.65fr);
    gap:12px;
    margin-bottom:12px;
}
.quote-form-page .quote-meta{
    margin:0 0 10px;
}
.quote-form-page .quote-intro-layout{
    display:block;
    margin:0 0 14px;
}
.quote-form-page .quote-intro-layout .customer-card{
    width:100%;
    max-width:none;
    min-width:0;
    padding:14px 16px;
}
.quote-form-page .quote-intro-layout .customer-card.grid2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px 12px;
}
.quote-form-page .quote-intro-layout .customer-card .owner-editor,
.quote-form-page .quote-intro-layout .customer-card .rich-field{
    grid-column:1 / -1;
}
.quote-form-page .quote-intro-layout .customer-card input,
.quote-form-page .quote-intro-layout .customer-card .owner-dropdown-toggle{
    height:36px;
    padding:7px 10px;
}
.quote-form-page .quote-intro-layout .customer-card .rich-editor{
    min-height:76px;
    max-height:110px;
    padding:10px 12px;
}

/* Geçmiş teklif alanlarını daralt */
.quote-form-page .quote-history-search{
    padding:14px 16px;
}
.quote-form-page .history-unified-fields{
    grid-template-columns:minmax(150px,1fr) minmax(170px,1fr) minmax(105px,.55fr);
    gap:8px;
}
.quote-form-page .history-unified-fields input{
    height:34px;
    padding:6px 9px;
    font-size:12px;
}
.quote-form-page .history-unified-form{
    gap:8px;
}
.quote-form-page .history-search-button{
    height:34px;
    padding:0 14px;
    font-size:12px;
}

/* Üç ana bölüm: geçmiş teklif, hızlı oran, müşteri formu */
.quote-form-page .three-panel-row{
    display:grid;
    grid-template-columns:minmax(520px,1.45fr) minmax(220px,.58fr) minmax(430px,1fr);
    gap:12px;
    align-items:start;
    margin-bottom:14px;
}
.quote-form-page .three-panel-row .top-workspace{
    display:contents;
}
.quote-form-page .three-panel-row .quote-intro-layout{
    margin:0;
}
@media(max-width:1350px){
    .quote-form-page .three-panel-row{
        grid-template-columns:minmax(500px,1.4fr) minmax(210px,.6fr);
    }
    .quote-form-page .three-panel-row .quote-intro-layout{
        grid-column:1 / -1;
    }
}
@media(max-width:900px){
    .quote-form-page .three-panel-row{
        grid-template-columns:1fr;
    }
    .quote-form-page .three-panel-row .quote-intro-layout{
        grid-column:auto;
    }
    .quote-form-page .history-unified-fields{
        grid-template-columns:1fr;
    }
}

/* Kesin üst yerleşim: müşteri solda, geçmiş teklif ortada, hızlı oran sağda */
.quote-form-page .ordered-panels{
    display:grid !important;
    grid-template-columns:minmax(500px,1.45fr) minmax(260px,.72fr) minmax(210px,.55fr) !important;
    gap:12px !important;
    align-items:start !important;
    margin-bottom:14px !important;
}
.quote-form-page .ordered-panels > .customer-panel{
    grid-column:1 !important;
    grid-row:1 !important;
    margin:0 !important;
    display:block !important;
}
.quote-form-page .ordered-panels > .quote-history-search{
    grid-column:2 !important;
    grid-row:1 !important;
    margin:0 !important;
    padding:14px 15px !important;
}
.quote-form-page .ordered-panels > .vertical-quick{
    grid-column:3 !important;
    grid-row:1 !important;
    margin:0 !important;
    padding:14px 15px !important;
}
.quote-form-page .ordered-panels .customer-card{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:14px 16px !important;
}
.quote-form-page .ordered-panels .customer-card.grid2{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px 12px !important;
}
.quote-form-page .ordered-panels .customer-card .owner-editor,
.quote-form-page .ordered-panels .customer-card .rich-field{
    grid-column:1 / -1 !important;
}
.quote-form-page .ordered-panels .rich-editor{
    min-height:72px !important;
    max-height:100px !important;
}
.quote-form-page .ordered-panels .quote-history-search h3,
.quote-form-page .ordered-panels .vertical-quick h3{
    margin:0 0 10px !important;
    font-size:15px !important;
}
.quote-form-page .ordered-panels .history-unified-form{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
}
.quote-form-page .ordered-panels .history-unified-fields{
    display:flex !important;
    flex-direction:column !important;
    gap:7px !important;
}
.quote-form-page .ordered-panels .history-unified-fields label{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:4px !important;
    font-size:11px !important;
}
.quote-form-page .ordered-panels .history-unified-fields input{
    width:100% !important;
    height:34px !important;
    padding:6px 9px !important;
    box-sizing:border-box !important;
}
.quote-form-page .ordered-panels .history-search-button{
    width:100% !important;
    height:34px !important;
    padding:0 12px !important;
}
.quote-form-page .ordered-panels .quote-history-search small{
    display:block !important;
    margin-top:8px !important;
    line-height:1.3 !important;
}
.quote-form-page .ordered-panels .vertical-quick .quick-grid{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
}
.quote-form-page .ordered-panels .vertical-quick label{
    display:grid !important;
    grid-template-columns:68px 1fr !important;
    gap:7px !important;
    align-items:center !important;
    margin:0 !important;
    font-size:11px !important;
}
.quote-form-page .ordered-panels .vertical-quick input{
    width:100% !important;
    height:34px !important;
    box-sizing:border-box !important;
}
@media(max-width:1250px){
    .quote-form-page .ordered-panels{
        grid-template-columns:minmax(440px,1.3fr) minmax(245px,.75fr) minmax(200px,.58fr) !important;
    }
}
@media(max-width:1050px){
    .quote-form-page .ordered-panels{
        grid-template-columns:1fr 1fr !important;
    }
    .quote-form-page .ordered-panels > .customer-panel{
        grid-column:1 / -1 !important;
    }
    .quote-form-page .ordered-panels > .quote-history-search{
        grid-column:1 !important;
        grid-row:2 !important;
    }
    .quote-form-page .ordered-panels > .vertical-quick{
        grid-column:2 !important;
        grid-row:2 !important;
    }
}
@media(max-width:700px){
    .quote-form-page .ordered-panels{
        grid-template-columns:1fr !important;
    }
    .quote-form-page .ordered-panels > .customer-panel,
    .quote-form-page .ordered-panels > .quote-history-search,
    .quote-form-page .ordered-panels > .vertical-quick{
        grid-column:1 !important;
        grid-row:auto !important;
    }
    .quote-form-page .ordered-panels .customer-card.grid2{
        grid-template-columns:1fr !important;
    }
}

/* Geçmiş teklif yönleri arama panelinin içinde */
.quote-form-page .history-inline-navigation{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    min-height:34px;
    margin:0 0 10px;
    padding-bottom:9px;
    border-bottom:1px solid #e5e5ea;
}
.quote-form-page .history-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:30px;
    border-radius:9px;
    border:1px solid #d2d2d7;
    background:#f5f5f7;
    color:#1d1d1f;
    text-decoration:none;
    font-size:19px;
    font-weight:700;
    line-height:1;
}
.quote-form-page .history-arrow:hover{
    background:#e8e8ed;
}
.quote-form-page .history-arrow.disabled{
    opacity:.35;
    pointer-events:none;
}
.quote-form-page .history-count{
    min-width:92px;
    text-align:center;
    font-size:12px;
    font-weight:700;
    color:#3a3a3c;
}
.quote-form-page .ordered-panels .quote-history-search > h3{
    display:none !important;
}

/* Geçmiş teklif panelini daha kompakt göster */
.quote-form-page .ordered-panels > .quote-history-search{
    padding:12px 13px !important;
}
.quote-form-page .ordered-panels .history-unified-form{
    gap:6px !important;
}
.quote-form-page .ordered-panels .history-unified-fields{
    gap:5px !important;
}
.quote-form-page .ordered-panels .history-unified-fields label{
    gap:3px !important;
    font-size:10px !important;
}
.quote-form-page .ordered-panels .history-unified-fields input{
    height:31px !important;
    padding:5px 8px !important;
    font-size:12px !important;
    border-radius:9px !important;
}
.quote-form-page .ordered-panels .history-search-button{
    width:auto !important;
    min-width:76px !important;
    height:29px !important;
    align-self:center !important;
    padding:0 14px !important;
    margin-top:2px !important;
    font-size:11px !important;
    border-radius:9px !important;
}
.quote-form-page .history-inline-navigation{
    min-height:29px !important;
    margin-bottom:7px !important;
    padding-bottom:7px !important;
}

/* Teklif tablosu: geniş ürün alanı, sağa yaslı sayılar ve ayarlanabilir sütunlar */
.quote-form-page #itemsTable{
    table-layout:fixed !important;
    width:max-content !important;
    min-width:100% !important;
}
.quote-form-page #itemsTable th,
.quote-form-page #itemsTable td{
    overflow:hidden;
    box-sizing:border-box;
}
.quote-form-page #itemsTable td input,
.quote-form-page #itemsTable td select{
    width:100%;
    min-width:0 !important;
    box-sizing:border-box;
}

/* Ürün sütunu dördüncü sütundur; varsayılan olarak geniş başlar. */
.quote-form-page #itemsTable th:nth-child(4),
.quote-form-page #itemsTable td:nth-child(4){
    min-width:255px;
}
.quote-form-page #itemsTable td:nth-child(4) .autocomplete-anchor,
.quote-form-page #itemsTable td:nth-child(4) input{
    width:100% !important;
    min-width:0 !important;
}

/* Sayısal kolonlar sağa yaslanır. */
.quote-form-page #itemsTable td:nth-child(5) input,
.quote-form-page #itemsTable td:nth-child(7) input,
.quote-form-page #itemsTable td:nth-child(8) input,
.quote-form-page #itemsTable td:nth-child(9) input,
.quote-form-page #itemsTable td:nth-child(10) input,
.quote-form-page #itemsTable td:nth-child(12) input,
.quote-form-page #itemsTable td:nth-child(13) input{
    text-align:right !important;
    font-variant-numeric:tabular-nums;
}
.quote-form-page #itemsTable th:nth-child(5),
.quote-form-page #itemsTable th:nth-child(7),
.quote-form-page #itemsTable th:nth-child(8),
.quote-form-page #itemsTable th:nth-child(9),
.quote-form-page #itemsTable th:nth-child(10),
.quote-form-page #itemsTable th:nth-child(12),
.quote-form-page #itemsTable th:nth-child(13){
    text-align:right !important;
}

/* Para sütunu sağa yaslı. */
.quote-form-page #itemsTable td:nth-child(6) select,
.quote-form-page #itemsTable th:nth-child(6){
    text-align:right !important;
    text-align-last:right;
}

/* Sütun yeniden boyutlandırma tutacağı */
.quote-form-page #itemsTable thead th{
    user-select:none;
}
.quote-form-page .column-resizer{
    position:absolute;
    top:0;
    right:-3px;
    width:7px;
    height:100%;
    cursor:col-resize;
    z-index:5;
}
.quote-form-page .column-resizer::after{
    content:'';
    position:absolute;
    top:20%;
    bottom:20%;
    left:3px;
    width:1px;
    background:transparent;
}
.quote-form-page #itemsTable thead th:hover .column-resizer::after,
body.column-resizing .quote-form-page .column-resizer::after{
    background:#0071e3;
}
body.column-resizing{
    cursor:col-resize !important;
    user-select:none !important;
}

/* Geçmiş teklif panelinde sol boşluğu kaldır; içerik kartı tam genişlik kullansın */
.quote-form-page .ordered-panels > .quote-history-search{
    display:block !important;
    padding:12px 13px !important;
}
.quote-form-page .ordered-panels .history-unified-form,
.quote-form-page .ordered-panels .history-unified-fields{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}
.quote-form-page .ordered-panels .history-unified-fields label{
    width:100% !important;
    margin:0 !important;
}
.quote-form-page .ordered-panels .history-unified-fields input{
    width:100% !important;
    max-width:none !important;
}
.quote-form-page .ordered-panels .history-search-button{
    margin:4px auto 0 !important;
}

/* Teklif tablosu yatay kaydırma olmadan ekrana sığsın */
.quote-form-page .table-wrap{
    overflow-x:hidden !important;
}
.quote-form-page #itemsTable{
    width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
}
.quote-form-page #itemsTable col:nth-child(1){width:2.8% !important}
.quote-form-page #itemsTable col:nth-child(2){width:6.5% !important}
.quote-form-page #itemsTable col:nth-child(3){width:6.5% !important}
.quote-form-page #itemsTable col:nth-child(4){width:29% !important}
.quote-form-page #itemsTable col:nth-child(5){width:6.5% !important}
.quote-form-page #itemsTable col:nth-child(6){width:5.5% !important}
.quote-form-page #itemsTable col:nth-child(7){width:5.5% !important}
.quote-form-page #itemsTable col:nth-child(8){width:6.5% !important}
.quote-form-page #itemsTable col:nth-child(9){width:7% !important}
.quote-form-page #itemsTable col:nth-child(10){width:7% !important}
.quote-form-page #itemsTable col:nth-child(11){width:3.8% !important}
.quote-form-page #itemsTable col:nth-child(12){width:7% !important}
.quote-form-page #itemsTable col:nth-child(13){width:6.8% !important}
.quote-form-page #itemsTable col:nth-child(14){width:3% !important}

.quote-form-page #itemsTable th,
.quote-form-page #itemsTable td{
    min-width:0 !important;
    width:auto !important;
    padding-left:4px !important;
    padding-right:4px !important;
    white-space:nowrap;
}
.quote-form-page #itemsTable input,
.quote-form-page #itemsTable select{
    min-width:0 !important;
    width:100% !important;
    padding-left:4px !important;
    padding-right:4px !important;
    font-size:12px !important;
}
.quote-form-page #itemsTable th:nth-child(3),
.quote-form-page #itemsTable td:nth-child(3){
    width:auto !important;
    min-width:0 !important;
}
.quote-form-page #itemsTable th:nth-child(4),
.quote-form-page #itemsTable td:nth-child(4){
    width:auto !important;
    min-width:0 !important;
}
.quote-form-page #itemsTable td:nth-child(4) .autocomplete-anchor,
.quote-form-page #itemsTable td:nth-child(4) input{
    width:100% !important;
    min-width:0 !important;
}
.quote-form-page .column-resizer{
    display:none !important;
}

/* Sipariş aktarımı ve dar OK sütunu */
.quote-form-page #itemsTable col:nth-child(11){width:2.4% !important}
.quote-form-page #itemsTable th:nth-child(11),
.quote-form-page #itemsTable td:nth-child(11){
    width:28px !important;
    min-width:28px !important;
    max-width:34px !important;
    padding-left:2px !important;
    padding-right:2px !important;
    text-align:center !important;
}
.quote-form-page #itemsTable td:nth-child(11) input[type="checkbox"]{
    width:14px !important;
    height:14px !important;
    margin:0 auto !important;
}
.quote-form-page .table-action-right{
    margin-left:auto;
    display:flex;
    gap:8px;
    align-items:center;
}
.error-toast{background:#fff1f0 !important;color:#b42318 !important}
@media(max-width:700px){
    .quote-form-page .table-action-right{width:100%;flex-direction:column}
    .quote-form-page .table-action-right .btn{width:100%}
}

/* Ürün otomatik tamamlama listesi tablo tarafından kesilmez */
.autocomplete-menu{
    z-index:99999 !important;
    max-height:240px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}
.product-autocomplete-option{
    padding:4px 7px !important;
    gap:1px !important;
    font-size:8pt !important;
    line-height:1.15 !important;
}
.product-autocomplete-option strong{
    font-size:8pt !important;
    font-weight:600 !important;
    white-space:normal !important;
}
.product-autocomplete-option small{
    font-size:8pt !important;
    color:#687481 !important;
    white-space:normal !important;
}

/* Satır bazlı sipariş durumu */
.quote-form-page #itemsTable tr.ordered-row td{
    background:#f3f8f4 !important;
}
.quote-form-page #itemsTable tr.ordered-row input,
.quote-form-page #itemsTable tr.ordered-row select{
    background:#eef5ef !important;
    color:#4b5563 !important;
}
.ordered-badge{
    display:inline-block;
    padding:3px 5px;
    border-radius:7px;
    background:#dff3e4;
    color:#16723a;
    font-size:8px;
    font-weight:700;
    white-space:nowrap;
}
.order-focus-card{
    border:1px solid #b7dfc2;
    background:#fbfffc;
}

/* Teslim tarihi ve Yurt Dışı ürün alanı */
.quote-form-page .delivery-date-field{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin:0;
    font-weight:400;
}
.quote-form-page .delivery-date-field input{
    width:145px;
    height:30px;
    padding:3px 7px;
    box-sizing:border-box;
}
.quote-form-page #itemsTable .foreign-head,
.quote-form-page #itemsTable .foreign-cell{
    width:48px !important;
    min-width:48px !important;
    max-width:54px !important;
    text-align:center !important;
    white-space:normal !important;
    font-size:10px !important;
    line-height:1.05;
}
.quote-form-page #itemsTable .foreign-cell input[type="checkbox"]{
    width:14px !important;
    height:14px !important;
    margin:0 auto !important;
}
.quote-form-page #itemsTable col:nth-child(12){width:3.6% !important}
.quote-form-page #itemsTable col:nth-child(13){width:6.5% !important}
.quote-form-page #itemsTable col:nth-child(14){width:6.2% !important}
.quote-form-page #itemsTable col:nth-child(15){width:2.8% !important}
.quotes-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}
.quote-filter-buttons{
    display:flex;
    gap:8px;
    align-items:center;
}

/* Teslim tarihi hızlı oran hesabının hemen altında */
.quote-form-page .ordered-panels > .quick-delivery-stack{
    grid-column:3 !important;
    grid-row:1 !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:9px !important;
    margin:0 !important;
}
.quote-form-page .ordered-panels > .quick-delivery-stack > .vertical-quick{
    width:100% !important;
    margin:0 !important;
    box-sizing:border-box !important;
}
.quote-form-page .delivery-date-card{
    width:100% !important;
    margin:0 !important;
    padding:10px 14px !important;
    box-sizing:border-box !important;
}
.quote-form-page .delivery-date-card .delivery-date-field{
    display:grid !important;
    grid-template-columns:76px 1fr !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
    font-size:11px !important;
    font-weight:400 !important;
}
.quote-form-page .delivery-date-card .delivery-date-field input{
    width:100% !important;
    height:34px !important;
    padding:4px 7px !important;
    box-sizing:border-box !important;
}
@media(max-width:1050px){
    .quote-form-page .ordered-panels > .quick-delivery-stack{
        grid-column:2 !important;
        grid-row:2 !important;
    }
}
@media(max-width:700px){
    .quote-form-page .ordered-panels > .quick-delivery-stack{
        grid-column:1 !important;
        grid-row:auto !important;
    }
}

/* Teklif ve sipariş silme işlemleri */
.row-actions{
    display:flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
}
.row-actions form,
.order-delete-cell form,
.order-focus-actions form{
    display:inline;
    margin:0;
}
.link-delete{
    border:0;
    background:transparent;
    padding:0;
    color:#b42318;
    cursor:pointer;
    font:inherit;
    text-decoration:underline;
}
.delete-error{
    border:1px solid #f0b4ae !important;
    color:#b42318 !important;
    background:#fff5f4 !important;
    margin-bottom:12px;
}
.order-focus-actions{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
}
.quote-form-page #itemsTable tr.ordered-row .ordered-cancel{
    display:inline-flex !important;
}

/* Teklif listesi: satıra tıklayarak aç, işlem ikonları */
.clickable-quote-row{
    cursor:pointer;
}
.clickable-quote-row:hover td{
    background:#f5f8fc;
}
.row-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    white-space:nowrap;
}
.icon-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:27px;
    height:27px;
    padding:0;
    border:1px solid #d2d2d7;
    border-radius:7px;
    background:#fff;
    text-decoration:none;
    cursor:pointer;
    font-size:15px;
    line-height:1;
    box-sizing:border-box;
}
.edit-icon{
    color:#1d1d1f;
}
.delete-icon{
    color:#b42318;
}
.icon-action:hover{
    background:#eef2f7;
}
.row-actions form{
    display:inline-flex;
    margin:0;
}

.create-stock-option{
    border-top:1px solid #d7dce2 !important;
    background:#f6fbff !important;
}
.create-stock-option strong{
    color:#0066cc !important;
}

/* Stok kartı olmayan sipariş satırları */
.stock-card-warning{
    margin:10px 0;
    padding:11px 14px;
    border:1px solid #e5484d;
    border-radius:9px;
    background:#fff1f0;
    color:#b42318;
    font-size:12px;
    line-height:1.45;
}
.stock-card-warning strong{
    color:#9f1d16;
}
.quote-form-page #itemsTable tbody tr.stock-card-missing td{
    background:#ffe5e3 !important;
    border-color:#e5484d !important;
}
.quote-form-page #itemsTable tbody tr.stock-card-missing input,
.quote-form-page #itemsTable tbody tr.stock-card-missing select{
    background:#fff1f0 !important;
    color:#8f1712 !important;
}

/* Hızlı oran kopyalama */
.quote-form-page .quick-copy-wrap{
    display:grid;
    grid-template-columns:minmax(0,1fr) 32px;
    gap:5px;
    align-items:center;
    min-width:0;
}
.quote-form-page .quick-copy-wrap #quickPct{
    width:100% !important;
    min-width:0 !important;
}
.quote-form-page .quick-copy-btn{
    width:32px;
    height:32px;
    padding:0;
    border:1px solid #d2d2d7;
    border-radius:8px;
    background:#f5f5f7;
    color:#1d1d1f;
    cursor:pointer;
    font-size:16px;
    line-height:1;
}
.quote-form-page .quick-copy-btn:hover{
    background:#e8e8ed;
}
.quote-form-page .quick-copy-btn.copied{
    background:#dff3e4;
    border-color:#8fc79d;
    color:#16723a;
}

/* Bakım anlaşması müşteri alanları */
.maintenance-check{
    display:flex !important;
    align-items:center;
    gap:7px;
    padding:8px 0;
}
.maintenance-check input[type="checkbox"]{
    width:auto !important;
}
.maintenance-options{
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
    gap:10px;
    padding:10px;
    border:1px solid #d7dce2;
    border-radius:9px;
    background:#f8fafc;
}
.maintenance-options[hidden]{display:none !important}
.maintenance-options label{margin:0 !important}
.maintenance-options input,.maintenance-options select{width:100%;box-sizing:border-box}
@media(max-width:700px){.maintenance-options{grid-template-columns:1fr}}

.password-policy-note{
    margin:8px 0;
    padding:8px 10px;
    border-radius:8px;
    background:#f5f7fa;
    color:#555;
    font-size:12px;
    line-height:1.4;
}


/* Kullanıcı yönetimi işlem ikonları */
.user-icon-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.icon-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    padding:0;
    border:1px solid #d2d2d7;
    border-radius:8px;
    background:#fff;
    color:#1d1d1f;
    text-decoration:none;
    cursor:pointer;
    font-size:18px;
    line-height:1;
    box-sizing:border-box;
}
.icon-action:hover{
    background:#eef2f7;
}
.icon-edit{
    background:#6b7280;
    border-color:#6b7280;
    color:#fff;
}
.icon-edit:hover{
    background:#5d6470;
}
.icon-save{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}
.icon-save:hover{
    background:#1d4ed8;
}
.icon-delete{
    background:#dc2626;
    border-color:#dc2626;
    color:#fff;
}
.icon-delete:hover{
    background:#b91c1c;
}

/* Kullanıcı sayfası: gerçek işlem butonları için ikon görünümü */
.users-page .user-action-icon,
.user-layout .user-action-icon{
    appearance:none;
    -webkit-appearance:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    min-width:34px;
    padding:0;
    margin:0 4px 4px 0;
    border:1px solid #c7c7cc;
    border-radius:7px;
    background:#fff;
    color:#1d1d1f;
    cursor:pointer;
    font-size:18px;
    font-weight:700;
    line-height:1;
    vertical-align:middle;
}
.users-page .edit-user-btn,
.user-layout .edit-user-btn{
    background:#6b7280;
    border-color:#6b7280;
    color:#fff;
}
.users-page .save-user-btn,
.user-layout .save-user-btn{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}
.users-page .delete-user-btn,
.user-layout .delete-user-btn{
    background:#c9211e;
    border-color:#c9211e;
    color:#fff;
}
.users-page .user-action-icon:hover,
.user-layout .user-action-icon:hover{
    filter:brightness(.95);
}
.users-page .user-action-icon:disabled,
.user-layout .user-action-icon:disabled{
    opacity:.45;
    cursor:not-allowed;
}

/* Kullanıcı işlem ikonlarını küçült ve tek satırda tut */
.users-page .user-action-icon,
.user-layout .user-action-icon{
    width:26px !important;
    height:26px !important;
    min-width:26px !important;
    margin:0 3px 0 0 !important;
    border-radius:5px !important;
    font-size:13px !important;
}
.users-page .user-actions,
.users-page .user-icon-actions,
.users-page td:last-child,
.user-layout .user-actions,
.user-layout .user-icon-actions,
.user-layout td:last-child{
    white-space:nowrap !important;
}
.users-page td:last-child form,
.user-layout td:last-child form{
    display:inline-flex !important;
    align-items:center;
    gap:3px;
    flex-wrap:nowrap !important;
    margin:0 !important;
}

/* Kullanıcı tablosu kesin tek satır işlem ikonları */
.users-page .users-table{
    width:100% !important;
    table-layout:fixed !important;
}
.users-page .users-table .inline-actions{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    justify-content:center !important;
    align-items:center !important;
    gap:3px !important;
    white-space:nowrap !important;
}
.users-page .users-table .user-action-icon{
    flex:0 0 24px !important;
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    margin:0 !important;
    font-size:12px !important;
}
.users-page .users-table .row-field{
    min-width:0 !important;
    width:100% !important;
}
.users-page .users-table th:last-child,
.users-page .users-table td:last-child{
    width:86px !important;
    min-width:86px !important;
    overflow:visible !important;
}

/* Kullanıcı alanına tıklayarak düzenleme */
.users-page .users-table .editable-field:disabled{
    cursor:text;
}
.users-page .users-table select.editable-field:disabled{
    cursor:pointer;
}
.users-page .users-table tr.editing td{
    background:#f7fbff;
}
.users-page .users-table tr.editing .editable-field{
    border-color:#7aa7e8;
    background:#fff;
}
