.proxy-order-banner{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;padding:10px max(5vw,20px);background:#fff2c9;border-bottom:1px solid #e4c56b;color:#6b4a08}.proxy-order-banner span{flex:1}.proxy-order-banner button{border:1px solid #b88a21;border-radius:7px;background:#fff;padding:7px 11px;cursor:pointer}.assisted-checkout,.receivables-modal{width:min(1120px,95vw);max-height:92vh;overflow:auto;background:#fff;border-radius:15px;padding:24px;position:relative}.assisted-lines{display:grid;gap:7px;margin:16px 0}.assisted-lines article{display:grid;grid-template-columns:58px 1fr 130px 130px;gap:10px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:8px}.assisted-lines img{width:58px;height:58px;object-fit:cover;border-radius:7px}.assisted-lines label{font-size:12px;color:var(--muted)}.assisted-lines input{margin-top:3px}.assisted-settlement{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px;background:#f6f8f7;border-radius:10px}.assisted-settlement .wide{grid-column:1/-1}.assisted-settlement label small{display:block;color:var(--muted)}.assisted-total{display:flex;justify-content:flex-end;gap:30px;align-items:center;padding:16px}.assisted-total strong{font-size:20px}.payment-badge{display:inline-block;border-radius:15px;padding:4px 8px;background:#fff2d7;color:#916116;font-size:11px}.payment-badge.paid{background:#dff2e8;color:#176044}.payment-badge.overdue{background:#ffe2df;color:#a13c32}.order-payment-state{display:grid;justify-items:end;gap:4px}.credit-release{border:1px solid #c18b27;background:#fff7df;color:#7c560e;border-radius:7px;padding:7px 10px;cursor:pointer}.receivable-grand-total{display:block;font-size:25px;color:var(--green)}.receivable-filter,.receivable-actions{display:flex;gap:9px;align-items:end;flex-wrap:wrap;margin:14px 0}.receivable-list{display:grid;gap:7px;max-height:58vh;overflow:auto}.receivable-row{display:grid;grid-template-columns:25px 1fr auto 120px;gap:10px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:11px;cursor:pointer}.receivable-row small{display:block;color:var(--muted);margin-top:4px}.receivable-row strong{text-align:right}.receivable-row.soon{border-color:#e6c66c;background:#fffdf4}.receivable-row.overdue{border-color:#df9289;background:#fff5f3}.receivable-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:12px 0;margin-bottom:0}.receivable-actions span{margin-right:auto}.dashboard-receivable{display:flex;justify-content:space-between;align-items:center;border:1px solid #d9e4df;border-radius:13px;padding:16px 18px;margin:15px 0;background:linear-gradient(135deg,#f4faf7,#fff);cursor:pointer}.dashboard-receivable.has-overdue{border-color:#e29c91;background:#fff5f3}.dashboard-receivable h3,.dashboard-receivable p{margin:3px 0}.dashboard-receivable>strong{font-size:24px;text-align:right}.dashboard-receivable>strong small{display:block;font-size:12px;color:var(--muted)}@media(max-width:760px){.assisted-lines article{grid-template-columns:50px 1fr}.assisted-lines label{grid-column:2}.assisted-settlement{grid-template-columns:1fr}.receivable-row{grid-template-columns:22px 1fr}.receivable-row>em,.receivable-row>strong{grid-column:2;text-align:left}.dashboard-receivable{align-items:flex-start;flex-direction:column;gap:12px}}
.customer-site-chooser{width:min(860px,94vw)}.customer-site-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.customer-site-options button{display:grid;gap:7px;text-align:left;border:1px solid #d6e2dd;border-radius:12px;padding:18px;background:#fff;cursor:pointer}.customer-site-options button:hover{border-color:#267057;background:#f1f8f5;transform:translateY(-1px)}.customer-site-options b{font-size:18px;color:var(--green)}.customer-site-options span{font-weight:700}.customer-site-options small{color:var(--muted);line-height:1.5}@media(max-width:1050px){.customer-site-options{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.customer-site-options{grid-template-columns:1fr}}
.order-price-editor{width:min(980px,95vw)}.order-finance-actions{display:inline-flex;gap:8px;margin-left:8px}.order-finance-actions .credit-release{margin:0}@media(max-width:760px){.order-finance-actions{display:flex;width:100%;margin:8px 0 0}.order-finance-actions button{flex:1}}

.credit-period-note{display:inline-block;padding:9px 13px;border-radius:8px;background:#eef4f1;color:var(--green);font-size:12px}.credit-management{padding:2px}.credit-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.credit-overview article{border:1px solid var(--line);border-radius:12px;padding:16px;background:#f8faf9}.credit-overview article.total{background:#eef6f2;border-color:#bbd3c9}.credit-overview article.danger{background:#fff2f0;border-color:#e7aaa2}.credit-overview article.warning{background:#fff9e9;border-color:#ead08a}.credit-overview small,.credit-overview span,.credit-overview strong{display:block}.credit-overview strong{font-size:21px;margin:7px 0;color:var(--green)}.credit-overview .danger strong{color:#a13c32}.credit-overview span{font-size:12px;color:var(--muted)}.credit-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0}.credit-toolbar>div{display:flex;gap:7px;flex-wrap:wrap}.credit-toolbar>div button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 12px;cursor:pointer}.credit-toolbar>div button.active{background:var(--green);border-color:var(--green);color:#fff}.credit-customer-list{display:grid;gap:13px}.credit-customer-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.credit-customer-card.overdue{border-color:#dfa39b}.credit-customer-card>header{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;background:#f7f9f8}.credit-customer-card.overdue>header{background:#fff3f1}.credit-customer-card h3,.credit-customer-card p{margin:0}.credit-customer-card p{color:var(--muted);font-size:12px;margin-top:5px}.credit-customer-card header>div:last-child{text-align:right}.credit-customer-card header small,.credit-customer-card header strong{display:block}.credit-customer-card header strong{font-size:18px;color:var(--green);margin-top:4px}.credit-customer-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px 17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.credit-customer-meta span{padding:8px 10px;background:#fafbfa;border-radius:8px}.credit-customer-meta small,.credit-customer-meta b{display:block}.credit-customer-meta small{color:var(--muted);margin-bottom:4px}.credit-order-lines article{display:grid;grid-template-columns:1.2fr 1fr auto auto;gap:14px;align-items:center;padding:11px 17px;border-bottom:1px solid #edf0ee}.credit-order-lines article.overdue{background:#fff9f8}.credit-order-lines article.soon{background:#fffdf5}.credit-order-lines span b,.credit-order-lines span small{display:block}.credit-order-lines span small{color:var(--muted);margin-top:3px}.credit-order-lines strong{min-width:90px;text-align:right}.credit-customer-card>footer{padding:11px 17px;text-align:right}@media(max-width:900px){.credit-overview{grid-template-columns:1fr 1fr}.credit-order-lines article{grid-template-columns:1fr auto}.credit-order-lines article>button{grid-column:2}.credit-customer-meta{grid-template-columns:1fr}}@media(max-width:560px){.credit-overview{grid-template-columns:1fr}.credit-toolbar,.credit-customer-card>header{align-items:stretch;flex-direction:column}.credit-customer-card header>div:last-child{text-align:left}}
