/* Scoped customer list/detail. Existing ONR colours and internal screens remain intact. */
.customer-offers-list-page { padding:20px!important; margin-top:18px!important; }
.customer-offers-list-page .panel-records-heading { margin-bottom:16px!important;gap:16px;min-height:100px!important;padding:18px 20px!important;flex-direction:row!important;align-items:center!important; }
.customer-offers-list-page .panel-records-heading h2 { font-size:26px!important; margin:4px 0!important; }
.customer-offers-list-page .panel-records-heading p { margin:4px 0!important; }
.customer-offers-list-page .panel-records-toolbar { margin:0 0 14px!important; }
.customer-offers-list-page .customer-finance-row { display:grid!important;grid-template-columns:minmax(130px,1.3fr) minmax(110px,1fr) minmax(100px,.85fr) minmax(115px,1fr) minmax(130px,1fr) 65px!important;gap:12px!important;padding:14px 16px!important;align-items:center;width:100%;text-align:left;border:0;border-bottom:1px solid #e5e1d8;background:#fff;color:#343436;border-radius:0;font:inherit;min-width:0; }
.customer-finance-table .customer-finance-row.head { background:#f5f2ec;font-size:11px;color:#80796d;font-weight:700; }
.customer-finance-table button.customer-finance-row { cursor:pointer;min-height:70px; }
.customer-finance-table button.customer-finance-row:hover { background:#fbf8f1; }
.customer-finance-table button.customer-finance-row:focus-visible { outline:2px solid #b88c49;outline-offset:-2px; }
.customer-offers-list-page .customer-finance-table { padding:0!important; }
.customer-offers-list-page .customer-finance-row:not(.head)>span { min-width:0;overflow-wrap:anywhere;font-size:13px; }
.customer-finance-row .primary { display:flex;flex-direction:column;gap:3px; }
.customer-finance-row .primary b { color:#343436;font-size:15px; }
.customer-finance-row .primary small { color:#8b857a;font-size:11px; }
.customer-finance-row .amount { font-weight:700;white-space:normal!important; }
.customer-finance-row .operation-status { justify-self:start;font-size:11px;padding:7px 9px;white-space:normal; }
.customer-finance-open { color:#a77d3f;font-size:12px;font-weight:700; }
.customer-offer-pagination { display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:12px; }
.customer-offer-pagination button { min-height:44px;padding:8px 16px;background:#fff;border:1px solid #ddd6cb;color:#343436; }
.customer-finance-detail { width:min(960px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;padding:24px!important;overflow:auto!important;overscroll-behavior:contain; }
.customer-finance-detail > header { gap:16px;min-height:100px!important;padding:18px!important; }
.customer-finance-detail > header h3 { margin:5px 0!important;font-size:25px!important; }
.customer-finance-detail > header p { margin:4px 0 0!important; }
.customer-finance-detail .finance-detail-facts { margin:18px 0!important;padding:14px!important;gap:12px!important; }
.customer-finance-detail .finance-detail-section { margin-top:18px!important;padding:0!important; }
.customer-finance-detail .finance-detail-section-title { margin-bottom:12px!important; }
.customer-finance-detail .finance-detail-section-title h4 { font-size:17px!important;margin:3px 0!important; }
.customer-finance-detail .finance-detail-parties > div { padding:14px!important;min-height:0!important; }
.customer-finance-detail .finance-detail-parties p { margin:5px 0!important;white-space:pre-line; }
.customer-finance-detail .finance-detail-commercial { gap:12px!important;padding:14px!important; }
.customer-finance-detail .finance-detail-bottom { margin-top:18px!important;gap:16px!important; }
.customer-finance-detail .finance-detail-bottom > section { padding:14px!important; }
.customer-finance-detail .finance-detail-facts>div,.customer-finance-detail .finance-detail-commercial>div { min-height:60px!important;padding:12px!important;gap:5px; }
.customer-finance-detail .finance-detail-bottom { padding:0!important; }
.customer-finance-detail .finance-detail-bottom>section { min-height:0!important; }
.customer-finance-detail .finance-detail-facts span,.customer-finance-detail .finance-detail-parties span,.customer-finance-detail .finance-detail-commercial span,.customer-finance-detail .finance-detail-bottom section>span,.customer-finance-detail .finance-detail-section-title small { font-size:10px!important; }
.customer-finance-detail .finance-detail-facts b,.customer-finance-detail .finance-detail-parties b,.customer-finance-detail .finance-detail-commercial b,.customer-finance-detail .finance-detail-bottom p,.customer-finance-detail .finance-detail-parties p { font-size:12px!important; }
.customer-finance-detail .finance-detail-items>div { min-width:0!important;font-size:12px;overflow-wrap:anywhere; }
.customer-finance-detail .finance-detail-totals>div { font-size:12px!important; }
.customer-finance-detail .finance-detail-totals .grand b { font-size:15px!important; }
.customer-finance-detail.pdf-export { max-height:none!important;overflow:visible!important; }
.customer-finance-detail.pdf-export .customer-offer-approval { display:none; }
.customer-offer-approval { border-top:1px solid #ddd6cb;margin-top:20px;padding-top:18px; }
.customer-offer-approval-heading { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.customer-offer-approval p { margin:6px 0;font-size:13px;color:#80796d; }
.customer-offer-approval button,.customer-finance-detail .finance-detail-header-actions button { min-height:44px; }
.customer-offer-approval .customer-offer-approve-button { background:#b88c49!important;color:#fff!important;border:1px solid #b88c49!important;font-weight:700;padding:12px 20px;border-radius:4px;white-space:normal; }
.customer-offer-approval button:disabled { opacity:.5;cursor:not-allowed; }
.customer-offer-confirm { background:#f7f3eb;padding:16px;margin-top:14px;border:1px solid #e3d8c5; }
.customer-offer-confirm label { display:flex;align-items:flex-start;gap:12px;font-size:14px;cursor:pointer; }
.customer-offer-confirm input[type=checkbox] { appearance:auto!important;display:block!important;width:22px!important;height:22px!important;min-width:22px!important;margin:0;accent-color:#b88c49; }
.customer-offer-confirm-actions { display:flex;justify-content:flex-end;gap:12px;margin-top:14px; }
.customer-offer-confirm-actions > button:not(.customer-offer-approve-button) { background:#fff;color:#343436;border:1px solid #ddd6cb;padding:10px 16px; }
.customer-offer-approval .customer-offer-approved { color:#257249;font-weight:700; }
.customer-offer-approval .customer-offer-error { color:#a44c44;background:#fff1ef;padding:12px; }
@media(max-width:1050px) {
 .customer-offers-list-page .customer-finance-row { grid-template-columns:minmax(120px,1.2fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(100px,1fr) minmax(110px,1fr) 52px!important;gap:8px!important;font-size:12px; }
}
@media(max-width:700px) {
 .customer-offers-list-page { padding:14px!important;margin-top:14px!important; }
 .customer-offers-list-page .panel-records-heading { align-items:center!important;min-height:100px!important;padding:16px!important; }
 .customer-offers-list-page .finance-record-count { min-width:68px!important; }
 .customer-offers-list-page .finance-record-count svg { display:none; }
 .customer-offers-list-page .finance-record-count b { font-size:26px!important; }
 .customer-offers-list-page .finance-record-count span { font-size:8px!important; }
 .customer-offers-list-page .customer-finance-row.head { display:none!important; }
 .customer-offers-list-page .customer-finance-row { grid-template-columns:minmax(0,1fr) minmax(105px,.75fr)!important;gap:6px 12px!important;padding:14px 10px!important; }
 .customer-finance-row .primary { grid-column:1;grid-row:1; }
 .customer-finance-row .amount { grid-column:2;grid-row:1;text-align:right; }
 .customer-finance-type { grid-column:1;grid-row:2;font-size:12px;color:#80796d; }
 .customer-finance-row .operation-status { grid-column:2;grid-row:2;justify-self:end;font-size:10px; }
 .customer-finance-date { grid-column:1;grid-row:3;font-size:11px;color:#8b857a; }
 .customer-finance-open { grid-column:2;grid-row:3;text-align:right; }
 .customer-finance-detail { width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:16px!important; }
 .customer-finance-detail .finance-detail-facts { grid-template-columns:1fr 1fr!important; }
 .customer-finance-detail .finance-detail-parties,.customer-finance-detail .finance-detail-bottom { grid-template-columns:1fr!important; }
 .customer-finance-detail .finance-detail-commercial { grid-template-columns:1fr 1fr!important; }
 .customer-finance-detail .finance-detail-items > div { grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px;padding:12px!important; }
 .customer-finance-detail .finance-detail-items > .head { display:none!important; }
 .customer-finance-detail .finance-detail-items > div > span:first-child { grid-column:1/-1;font-weight:700;font-size:14px; }
 .customer-finance-detail .finance-detail-items > div > span:nth-child(2)::before { content:'Miktar: ';color:#8b857a; }
 .customer-finance-detail .finance-detail-items > div > span:nth-child(3)::before { content:'Birim: ';color:#8b857a; }
 .customer-finance-detail .finance-detail-items > div > span:nth-child(4)::before { content:'Birim fiyat: ';color:#8b857a; }
 .customer-finance-detail .finance-detail-items > div > span:nth-child(5)::before { content:'KDV: ';color:#8b857a; }
 .customer-finance-detail .finance-detail-items > div > span:nth-child(6)::before { content:'Tutar: ';color:#8b857a; }
 .customer-offer-approval-heading { flex-direction:column;align-items:stretch; }
 .customer-offer-confirm-actions { flex-direction:column-reverse; }
 .customer-offer-approval button { width:100%; }
 .customer-finance-detail .finance-detail-header-actions { flex-wrap:wrap;justify-content:flex-end; }
}
