*{box-sizing:border-box}body.crm-body{margin:0;min-height:100vh;background:#f3f7fb;color:#17293f;font:14px/1.55 system-ui,-apple-system,'Segoe UI',Arial,sans-serif}button,input,textarea,select{font:inherit}a{color:#125fa2}button{cursor:pointer}.crm-main{max-width:1510px;margin:0 auto;padding:22px 20px 60px}.crm-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;padding:16px 20px;background:#153354;color:white;border-radius:13px}.crm-header h1{margin:0;font-size:24px}.crm-header p{margin:4px 0 0;color:#d1e4f5}.crm-header a{color:#fff}.crm-card{padding:20px;margin:0 0 20px;border-radius:13px;background:white;box-shadow:0 3px 16px #253d5610;border:1px solid #d8e3ed}.crm-card h2{margin:0 0 16px;font-size:19px}.crm-card h3{font-size:15px;margin:6px 0 10px}.crm-card p{color:#4d637b}.crm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.crm-fields{display:grid;gap:12px;align-content:start}.crm-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin-bottom:18px}.crm-toolbar label,.crm-fields label,.crm-bottom label{display:flex;flex-direction:column;gap:5px;font-weight:650;color:#32455c}.crm-toolbar select,.crm-toolbar input,.crm-fields select,.crm-fields input,.crm-bottom input,.crm-bottom textarea{min-height:39px;min-width:180px;padding:8px 10px;border:1px solid #bacada;border-radius:8px;background:white;color:#132e49}.crm-fields input,.crm-fields select{width:100%}.crm-primary,.crm-secondary{padding:10px 16px;border:1px solid #0f578d;border-radius:8px;font-weight:750;text-align:center;background:#0c5a98;color:white}.crm-secondary{border-color:#b4c6d8;background:#eef4fa;color:#18334c}.crm-primary:disabled{opacity:.5;cursor:not-allowed}.crm-primary:hover{background:#084778}.crm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.crm-actions form{margin:0}.crm-table-wrap{max-width:100%;overflow:auto;border:1px solid #dce6f0;border-radius:9px}.crm-table{width:100%;border-collapse:collapse;min-width:740px}.crm-table th{font-size:12px;text-align:left;background:#e7f1fa;padding:10px 12px;white-space:nowrap;position:sticky;top:0;color:#21405d}.crm-table td{padding:8px 12px;border-bottom:1px solid #e3ebf2;vertical-align:middle}.crm-table tbody tr:nth-child(even){background:#fbfcfe}.crm-numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.crm-quantity{width:92px;padding:7px;border:1px solid #b7cada;border-radius:7px;text-align:right}.crm-bottom{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(250px,2fr) minmax(220px,1fr);align-items:end;gap:16px;margin-top:18px}.crm-note textarea{min-height:70px}.crm-total{text-align:right;display:grid;gap:9px}.crm-total strong{font-size:25px;color:#105c96}.crm-alert,.crm-success,.crm-secret{padding:13px 16px;border-radius:9px;margin-bottom:16px;border:1px solid #e5a9a9;background:#fff0f0;color:#8c1818}.crm-success{background:#ecfff5;border-color:#a9dbc5;color:#186046}.crm-secret{background:#fffbea;border-color:#d9ca78;color:#624a09;font-size:17px}.crm-dialog{width:min(900px,96vw);border:none;border-radius:15px;padding:24px;box-shadow:0 15px 65px #0a1d3e44;max-height:90vh;overflow:auto}.crm-dialog::backdrop{background:#08182d99}.crm-dialog h2{margin:0 0 14px}.crm-dialog-total{font-size:19px;font-weight:800;text-align:right}.crm-auth{width:min(440px,calc(100vw - 32px));margin:9vh auto;background:white;padding:29px;border-radius:14px;border:1px solid #d6e1ed;box-shadow:0 12px 28px #0d355220}.crm-auth h1{margin:0 0 9px;font-size:25px}.crm-auth p{color:#62768c}.crm-import-preview{border:1px dashed #94bad6;padding:14px;border-radius:9px;margin-top:12px}.crm-check{display:flex!important;align-items:center;flex-direction:row!important;gap:6px}.crm-check input{min-width:auto!important}.crm-secret p{font-size:13px;margin:3px 0 0}@media(max-width:850px){.crm-header,.crm-grid,.crm-bottom{display:grid;grid-template-columns:1fr}.crm-main{padding:10px}.crm-card{padding:14px}.crm-total{text-align:left}.crm-header h1{font-size:20px}.crm-toolbar>*{width:100%}.crm-table{min-width:680px}}
/* CRM V2 – list selection, catalog and authoritative final order confirmation */
.crm-order-page{max-width:1450px}.crm-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 15px}.crm-section-heading h2{margin:0}.crm-section-heading p{margin:3px 0 0}.crm-stage{border-radius:30px;background:#e6f2fb;color:#155987;padding:5px 13px;white-space:nowrap;font-weight:700;font-size:12px}.crm-source-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.crm-source-form label,.crm-search-label{display:grid;gap:6px;font-weight:700;color:#334b64}.crm-source-form select,.crm-search-label input{width:100%;min-width:0;background:#fff;border:1px solid #b7cadb;border-radius:9px;padding:12px 10px;min-height:46px;color:#112d47}.crm-list-head{margin-top:16px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #e3edf5;padding-top:14px;color:#405b75}.crm-search-bar{display:flex;gap:20px;justify-content:space-between;align-items:end;margin-bottom:13px}.crm-search-label{width:min(420px,100%)}.crm-products-table{min-width:900px}.crm-products-table td{vertical-align:middle}.crm-code{font-weight:700;color:#174d76}.crm-rule-detail{display:block;max-width:430px;margin-top:4px;color:#6a7c90;font-size:11px}.crm-unavailable{color:#a04141;font-size:12px}.crm-unit-net{font-weight:800;color:#075a90}.crm-products-table .crm-quantity{width:110px;min-height:38px;font-weight:700;background:#f6fbff}.crm-products-table tr:has(.crm-quantity:not(:disabled):focus){background:#eff8ff}.crm-grand-total{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#eaf5fe;border:1px solid #bfd8ef;border-radius:12px;margin-top:16px;padding:17px;color:#143956;font-weight:700}.crm-grand-total strong{font-size:29px;white-space:nowrap;color:#075c92}.crm-review-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.crm-review-details>div{padding:11px;background:#f4f8fc;border-radius:10px;min-width:0}.crm-review-details span,.crm-review-details strong{display:block;overflow-wrap:anywhere}.crm-review-details span{font-size:11px;color:#617a92}.crm-review-details strong{margin-top:3px}.crm-final-actions{margin-top:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.crm-final-actions form{margin:0}.crm-total-count{color:#6d8197;font-size:12px}.crm-note-preview{overflow-wrap:anywhere}.crm-quote-row[hidden]{display:none!important}
@media(max-width:850px){.crm-source-form{grid-template-columns:1fr}.crm-search-bar{align-items:stretch;flex-direction:column;gap:8px}.crm-review-details{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-grand-total{flex-direction:column;align-items:flex-start}.crm-grand-total strong{font-size:25px}.crm-final-actions,.crm-final-actions form,.crm-final-actions button{width:100%}.crm-stage{white-space:normal}.crm-table-wrap.crm-products-wrap{overflow:visible;border:none}.crm-order-page .crm-products-table,.crm-order-page .crm-review-table,.crm-order-page .crm-history-table{min-width:0;width:100%;display:block}.crm-order-page .crm-products-table thead,.crm-order-page .crm-review-table thead,.crm-order-page .crm-history-table thead{display:none}.crm-order-page .crm-products-table tbody,.crm-order-page .crm-review-table tbody,.crm-order-page .crm-history-table tbody{display:grid;gap:10px}.crm-order-page .crm-products-table tr,.crm-order-page .crm-review-table tr,.crm-order-page .crm-history-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#fff;border:1px solid #dbe6f1;border-radius:10px;padding:11px;gap:5px 10px}.crm-order-page .crm-products-table td,.crm-order-page .crm-review-table td,.crm-order-page .crm-history-table td{display:flex;min-width:0;flex-direction:column;align-items:flex-start;border:0;padding:3px;text-align:left;overflow-wrap:anywhere}.crm-order-page .crm-products-table td::before,.crm-order-page .crm-review-table td::before,.crm-order-page .crm-history-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:650;color:#748da6;margin-bottom:2px}.crm-order-page .crm-products-table td:nth-child(2){grid-column:1/-1;grid-row:1}.crm-order-page .crm-products-table .crm-quantity{width:100%}.crm-order-page .crm-review-table td:first-child{grid-column:1/-1}.crm-order-page .crm-history-table td:nth-child(2){grid-column:1/-1}.crm-order-page .crm-history-table td:last-child{grid-column:1/-1}.crm-dialog{padding:16px}.crm-bottom{grid-template-columns:1fr}}

.crm-rate-form{display:grid;grid-template-columns:repeat(6,minmax(70px,1fr)) auto;gap:8px;align-items:end}.crm-rate-form label{display:grid;gap:4px;min-width:0}.crm-rate-form label span{font-size:11px;color:#6b8095}.crm-rate-form input{width:100%;max-width:110px;min-width:0;border:1px solid #b7cadb;border-radius:7px;padding:7px}@media(max-width:850px){.crm-rate-form{grid-template-columns:repeat(2,minmax(70px,1fr))}.crm-rate-form button{grid-column:1/-1}}

/* CRM V3 – bayi sepeti, sipariş akışı ve ödeme takibi */
.crm-portal-nav{display:flex;flex-wrap:wrap;gap:8px;margin:-10px 0 20px;padding:8px;border:1px solid #d8e3ed;border-radius:12px;background:#fff}.crm-portal-nav a{padding:9px 13px;border-radius:8px;color:#264861;font-weight:750;text-decoration:none}.crm-portal-nav a.active,.crm-portal-nav a:hover{background:#0c5a98;color:#fff}.crm-shop-layout{display:grid;grid-template-columns:minmax(360px,1.2fr) minmax(320px,1fr) minmax(270px,.78fr);gap:18px;align-items:start}.crm-shop-layout>.crm-card{margin:0}.crm-product-list{display:grid;gap:9px;max-height:650px;overflow:auto;padding-right:4px}.crm-product-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:12px;border:1px solid #dce7f1;border-radius:11px;background:#fff}.crm-product-item:hover{border-color:#83b8df;background:#f8fcff}.crm-product-item>div{min-width:0}.crm-product-item b,.crm-product-item small{display:block;overflow-wrap:anywhere}.crm-product-item small{margin-top:2px;color:#6a7e92;font-size:11px}.crm-product-item>strong{align-self:start;color:#075a90;font-size:17px;white-space:nowrap}.crm-product-item .crm-add-product{grid-column:1/-1;padding:7px;border:1px solid #8fb7d5;border-radius:7px;background:#edf7ff;color:#0d568c;font-weight:800}.crm-cart-quantity-source{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.crm-empty{padding:18px;border:1px dashed #b7c9d8;border-radius:9px;color:#6d8194;text-align:center}.crm-cart-list{display:grid;gap:9px}.crm-cart-row{display:grid;grid-template-columns:minmax(0,1fr) 88px auto 30px;gap:9px;align-items:center;padding:10px;border:1px solid #dce7f1;border-radius:9px}.crm-cart-row b,.crm-cart-row small{display:block}.crm-cart-row small{color:#6a7e92;font-size:11px}.crm-cart-row label{display:grid;gap:2px;color:#63798e;font-size:10px}.crm-cart-row input{width:100%;padding:6px;border:1px solid #adc4d7;border-radius:6px;text-align:right}.crm-cart-row>strong{white-space:nowrap;color:#075a90}.crm-cart-row>button{width:30px;height:30px;border:0;border-radius:50%;background:#fdecec;color:#a32121;font-size:20px}.crm-cart-total{display:grid;gap:3px;margin-top:14px;padding:14px;border-radius:10px;background:#eaf5fe}.crm-cart-total strong{font-size:25px;color:#075c92}.crm-cart-total small{color:#64798d}.crm-transport{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:11px;border:1px solid #cbd9e5;border-radius:9px}.crm-transport legend{padding:0 4px;font-weight:750}.crm-transport label{display:flex!important;align-items:center;justify-content:center;flex-direction:row!important;gap:6px;padding:9px;border-radius:8px;font-weight:800}.crm-transport label input{width:auto;min-width:0;min-height:0}.crm-transport-excluded{background:#e9f9ee;color:#19703b}.crm-transport-included{background:#fff0f0;color:#a12828}.crm-transport small{grid-column:1/-1;color:#6c7f91;font-size:10px}.crm-selection-summary{display:grid;gap:3px;padding:11px;border-radius:9px;background:#f2f6fa}.crm-selection-summary span{color:#5d7388;font-size:12px}.crm-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.crm-summary-grid article{display:grid;gap:5px;padding:17px;border:1px solid #d8e3ed;border-radius:12px;background:#fff}.crm-summary-grid span{color:#60758a}.crm-summary-grid strong{font-size:24px;color:#0b568e}.crm-cell-note{display:block;margin-top:3px;color:#71859a;font-size:10px}.crm-transport-badge,.crm-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.crm-transport-badge.excluded{background:#dcfce7;color:#166534}.crm-transport-badge.included{background:#fee2e2;color:#991b1b}.crm-status{background:#e7eef5;color:#334c63}.status-approved{background:#dbeafe;color:#1d4ed8}.status-preparing{background:#fef3c7;color:#92400e}.status-delivered{background:#dcfce7;color:#166534}.status-cancelled{background:#fee2e2;color:#991b1b}.crm-payment-form{grid-template-columns:repeat(3,minmax(160px,1fr));align-items:end}.crm-payment-form button{min-height:42px}.crm-secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}@media(max-width:1150px){.crm-shop-layout{grid-template-columns:1fr 1fr}.crm-checkout-panel{grid-column:1/-1}.crm-payment-form{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media(max-width:760px){.crm-shop-layout,.crm-summary-grid,.crm-payment-form{grid-template-columns:1fr}.crm-checkout-panel{grid-column:auto}.crm-product-list{max-height:none}.crm-cart-row{grid-template-columns:minmax(0,1fr) 84px 30px}.crm-cart-row>strong{grid-column:1/-1}.crm-portal-nav a{flex:1 1 100%;text-align:center}.crm-source-card{padding-bottom:16px}}
.crm-product-item[hidden]{display:none!important}
/* CRM V3.1 – sade iki kolonlu ürün / sepet düzeni */
.crm-shop-layout{grid-template-columns:minmax(390px,.9fr) minmax(520px,1.55fr);gap:14px}.crm-checkout-panel{grid-column:1/-1;grid-row:1}.crm-catalog-panel{grid-column:1;grid-row:2}.crm-cart-panel{grid-column:2;grid-row:2;position:sticky;top:12px}.crm-checkout-panel .crm-fields{grid-template-columns:minmax(170px,.7fr) minmax(310px,1.25fr) minmax(280px,1.35fr) minmax(230px,1fr);gap:12px;align-items:end}.crm-checkout-panel textarea{min-height:62px}.crm-product-list{gap:0;border:1px solid #d5dde5;border-radius:5px;padding:0;max-height:520px}.crm-product-item{grid-template-columns:52px minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px 8px;border:0;border-bottom:1px solid #d9e0e6;border-radius:0;background:#f8f8f8}.crm-product-item:nth-child(even){background:#ececec}.crm-product-item:last-child{border-bottom:0}.crm-product-item>div{grid-column:2;grid-row:1}.crm-product-item>strong{grid-column:3;grid-row:1;font-size:14px;color:#111}.crm-product-item .crm-add-product{grid-column:1;grid-row:1;width:48px;padding:5px 3px;border-color:#aeb8c2;border-radius:3px;background:#fff;color:#18354f;font-size:11px}.crm-product-item:hover{background:#eaf4fc}.crm-cart-panel{min-height:360px}.crm-cart-row{grid-template-columns:minmax(0,1fr) 90px 100px 30px;border-radius:3px;background:#f7f7f7}.crm-save-order{width:100%;margin-top:14px;min-height:44px}.crm-cart-total{border-radius:3px}.crm-source-card,.crm-checkout-panel,.crm-catalog-panel,.crm-cart-panel{border-radius:6px}.crm-source-card .crm-section-heading,.crm-checkout-panel .crm-section-heading{margin-bottom:10px}
@media(max-width:1050px){.crm-shop-layout{grid-template-columns:1fr 1fr}.crm-checkout-panel .crm-fields{grid-template-columns:1fr 1fr}.crm-cart-panel{position:static}}
@media(max-width:760px){.crm-shop-layout{grid-template-columns:1fr}.crm-checkout-panel,.crm-catalog-panel,.crm-cart-panel{grid-column:1;grid-row:auto}.crm-checkout-panel{grid-row:1}.crm-catalog-panel{grid-row:2}.crm-cart-panel{grid-row:3}.crm-checkout-panel .crm-fields{grid-template-columns:1fr}.crm-product-item{grid-template-columns:48px minmax(0,1fr);}.crm-product-item>strong{grid-column:2;grid-row:2}.crm-product-item .crm-add-product{grid-row:1/3}.crm-cart-row{grid-template-columns:minmax(0,1fr) 80px 30px}.crm-cart-row>strong{grid-column:1/-1}}
.crm-source-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.crm-portal-nav a{border:1px solid #b9ccdc;background:#eef4fa;box-shadow:0 1px 2px rgba(15,55,90,.08)}.crm-portal-nav a.active{border-color:#0c5a98}.crm-danger{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid #b91c1c;border-radius:8px;background:#b91c1c;color:#fff;font-weight:800}.crm-danger:hover{background:#991b1b}.crm-edit-grid{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(310px,1.2fr) minmax(300px,1.4fr);gap:14px;align-items:end;margin-bottom:16px}.crm-edit-grid>label{display:grid;gap:5px;font-weight:700;color:#32455c}.crm-edit-grid input,.crm-edit-grid textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid #bacada;border-radius:8px;background:#fff}.crm-edit-grid textarea{min-height:70px}.crm-section-heading .crm-actions>form{margin:0}
@media(max-width:760px){.crm-source-form{grid-template-columns:1fr}}
@media(max-width:850px){.crm-edit-grid{grid-template-columns:1fr}.crm-section-heading .crm-actions{width:100%}.crm-section-heading .crm-actions>*{flex:1 1 auto}}
@media print{body.crm-body{background:#fff}.crm-no-print,.crm-portal-nav,.crm-header .crm-actions{display:none!important}.crm-main{max-width:none;padding:0}.crm-card{box-shadow:none;break-inside:avoid}.crm-table-wrap{overflow:visible}.crm-table{min-width:0}.crm-header{color:#000;background:#fff;border:1px solid #bbb}}
/* CRM V3.2 – sipariş işlemleri ve bayi ödeme onayı */
.crm-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.crm-row-actions form{margin:0}.crm-mini{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 9px;border:1px solid #9eb9cf;border-radius:6px;background:#edf5fb;color:#124f80;text-decoration:none;font-weight:750;white-space:nowrap}.crm-mini:hover{background:#ddecf8}.crm-mini-danger{border-color:#e4abab;background:#fff0f0;color:#9e1d1d}.crm-payment-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.payment-pending{background:#fef3c7;color:#92400e}.payment-approved{background:#dcfce7;color:#166534}.payment-rejected{background:#fee2e2;color:#991b1b}.crm-review-form{display:grid;gap:6px;min-width:260px}.crm-review-form input{width:100%;min-height:34px;padding:6px 8px;border:1px solid #bacada;border-radius:6px}.crm-review-form>div{display:flex;gap:6px}.crm-review-form button{padding:7px 10px}.crm-review-details small{display:block;margin-top:3px;color:#64798d}.crm-summary-grid article small{color:#7b5a17}.crm-card>.crm-fields{margin-top:15px}
@media(max-width:760px){.crm-review-form{min-width:220px}.crm-row-actions{min-width:210px}}

/* CRM Bayiler: concise financial and discount management. */
.crm-dealer-shell{display:grid;grid-template-columns:minmax(245px,.8fr) minmax(0,2.2fr);gap:14px;align-items:start}
.crm-dealer-list{display:grid;gap:7px;max-height:74vh;overflow:auto}
.crm-dealer-link{display:grid;gap:3px;padding:10px 12px;background:#fff;border:1px solid #d9e4ee;border-radius:9px;color:#214864;text-decoration:none}
.crm-dealer-link.active{border-color:#155d94;background:#eaf5ff}
.crm-dealer-link small{color:#60758a}
.crm-dealer-main{min-width:0}.crm-dealer-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}
.crm-dealer-summary>article{background:#f3f8fc;border:1px solid #d8e6f0;border-radius:9px;padding:11px;display:grid;gap:6px}
.crm-dealer-summary strong{overflow-wrap:anywhere}.crm-dealer-summary span{font-size:11px;color:#657c90}
.crm-dealer-fields{display:grid;grid-template-columns:repeat(5,minmax(105px,1fr));gap:10px;align-items:end}
.crm-dealer-fields label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#304c62}
.crm-dealer-fields input,.crm-dealer-fields select{width:100%;min-height:40px;padding:7px;border:1px solid #bacddd;border-radius:7px;background:white}
.crm-dealer-fields button{min-height:40px}.crm-dealer-discounts{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.crm-dealer-discounts span{background:#eaf3fb;border:1px solid #cde1f0;border-radius:7px;padding:6px 8px;font-size:12px}
.crm-rate-accordion{border:1px solid #dae6f0;border-radius:9px;margin:10px 0;padding:10px}
.crm-rate-accordion summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.crm-rate-accordion summary span{font-size:11px;color:#6a7d90}
.crm-rate-form--wide{grid-template-columns:repeat(4,minmax(95px,1fr));margin-top:12px}
@media(max-width:1050px){.crm-dealer-shell{grid-template-columns:1fr}.crm-dealer-list{max-height:260px}.crm-dealer-fields{grid-template-columns:repeat(2,minmax(130px,1fr))}.crm-dealer-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.crm-dealer-fields,.crm-dealer-summary,.crm-rate-form--wide{grid-template-columns:1fr 1fr}.crm-dealer-fields button{grid-column:1/-1}.crm-rate-accordion summary{display:grid}}

/* CRM clean-dealer rate management */
.crm-rate-by-supplier summary span{max-width:85%;line-height:1.8}.crm-dealer-rate-form{display:grid;gap:12px;padding:14px 2px 4px}.crm-rate-subtitle{font-size:12px;font-weight:800;color:#35536e}.crm-dealer-rate-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.crm-dealer-rate-grid--special{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-dealer-rate-grid label{display:grid;gap:5px;font-weight:700;color:#35536e;font-size:12px}.crm-dealer-rate-grid input{width:100%;min-width:0;min-height:40px;padding:7px 10px;border:1px solid #b7cadd;border-radius:7px}.crm-dealer-rate-form button{justify-self:start}@media(max-width:760px){.crm-dealer-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dealer-rate-grid--special{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-rate-by-supplier summary span{max-width:100%}}

/* Behin AI V3 – bağımsız bayi tahsilatları, sipariş tiplerinin belirgin sunumu */
.crm-payment-kind{display:inline-flex;align-items:center;border-radius:7px;padding:5px 10px;font-size:12px;line-height:1.25;font-weight:900;font-style:italic;letter-spacing:.035em;border:1px solid transparent;white-space:nowrap}
.crm-payment-kind.kind-prepayment{background:#dcfce7;color:#166534;border-color:#86efac}
.crm-payment-kind.kind-dbs60{background:#fef3c7;color:#92400e;border-color:#fcd34d}
.crm-payment-kind.kind-card{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
.crm-edit-details{margin:5px 0;min-width:105px}
.crm-edit-details summary{cursor:pointer;font-size:12px;font-weight:800;color:#115686;white-space:nowrap}
.crm-inline-edit{min-width:280px;max-width:400px;border:1px solid #d0dfeb;border-radius:9px;padding:9px;margin:7px 0 10px;background:#fbfdff;box-shadow:0 4px 10px #16416c11}
.crm-inline-edit label{font-size:12px;display:grid;gap:4px}
.crm-inline-edit input,.crm-inline-edit select{width:100%;min-width:0;max-width:100%;min-height:36px}
.crm-inline-edit button{width:100%}
@media (max-width:760px){.crm-inline-edit{min-width:220px}}
.crm-net-credit{color:#15803d}.crm-net-debt{color:#b91c1c}

/* V4 dealer balance kinds: only account/dealer payment screens. */
.crm-balance-kind-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.crm-balance-kind{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px;border-radius:11px;border:1px solid #cfdde8;background:#f9fcfe;min-width:0}
.crm-balance-kind.kind-prepayment{background:#f0fcf4;border-color:#a8e7b9}
.crm-balance-kind.kind-card{background:#f1f6ff;border-color:#b4cef9}
.crm-balance-kind.kind-dbs60{background:#fff9eb;border-color:#f2d89d}
.crm-balance-kind>small{font-size:12px;color:#52667c;margin-top:5px}
.crm-balance-kind>b{font-size:16px;color:#193951;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.crm-balance-kind>strong{font-size:21px;font-weight:900;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:#07568d}
.crm-balance-kind>strong.crm-net-credit{color:#15803d}
@media(max-width:820px){.crm-balance-kind-grid{grid-template-columns:1fr}}

/* 3.YAMA_BEHIN_AI: mobile tap targets and clear financial confirmations. */
.crm-audit-manual-alert,.crm-audit-invoice-alert{display:block;padding:10px 12px;border:1px solid #e1b96c;border-radius:8px;background:#fff8e8;color:#694916;font-size:13px;line-height:1.5}
.crm-audit-manual-alert label,.crm-audit-invoice-alert{cursor:pointer}.crm-audit-manual-alert label{display:flex;align-items:flex-start;gap:9px;margin-top:7px;font-weight:700}.crm-audit-invoice-alert{margin-right:8px;max-width:340px}
.crm-audit-manual-alert input[type=checkbox],.crm-audit-invoice-alert input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin-top:2px}
@media(max-width:767px){.crm-mini,.crm-row-actions .crm-mini{min-height:44px;padding:9px 12px}.crm-row-actions{gap:8px}.crm-audit-invoice-alert{max-width:none}}

/* 15.Final: readability and semantic state colors; visual only and CRM-scoped. */
body.crm-body{font-size:15px;line-height:1.55}
body.crm-body .crm-card{min-width:0}
body.crm-body .crm-table-wrap{max-width:100%}
body.crm-body :is(.crm-table,.crm-dealer-table) th{font-size:13px;line-height:1.45;letter-spacing:0;white-space:nowrap}
body.crm-body :is(.crm-table,.crm-dealer-table) td{font-size:13px;line-height:1.5}
body.crm-body .crm-row-actions{gap:8px}
body.crm-body :is(.crm-mini,.crm-primary,.crm-secondary){font-size:13px;min-height:38px;line-height:1.3}
body.crm-body .crm-row-actions .crm-mini{min-height:39px;padding:8px 11px}
body.crm-body .crm-status{font-size:12px;line-height:1.35;padding:6px 10px;border:1px solid transparent}
body.crm-body .status-submitted{background:#fff6db;border-color:#ecc866;color:#79500a}
body.crm-body .status-approved{background:#e3efff;border-color:#99bdef;color:#134a9e}
body.crm-body .status-preparing{background:#fff1d3;border-color:#e9c172;color:#7c5006}
body.crm-body .status-delivered{background:#e1f5e8;border-color:#8fcaa8;color:#155b36}
body.crm-body .status-cancelled{background:#ffebed;border-color:#ecacb1;color:#92262d}
body.crm-body :is(.crm-toolbar,.crm-fields) :is(select,input,textarea){font-size:14px;min-height:42px;max-width:100%}
body.crm-body .crm-section-heading{min-width:0;gap:12px;flex-wrap:wrap}
body.crm-body .crm-summary-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
body.crm-body .crm-summary-grid strong{font-size:clamp(21px,2vw,26px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.crm-body .crm-cell-note{font-size:12px;line-height:1.4;color:#526b80}
body.crm-body .crm-table :is(th,td){font-variant-numeric:tabular-nums}
@media(max-width:850px){body.crm-body .crm-main{padding:14px 12px 40px}body.crm-body .crm-card{padding:14px}body.crm-body .crm-mini{font-size:13px}}

