/* Customer identity dialog and item-level seller controls. */
html.ux480 dialog.sw-customer-dialog.sw-customer-confirm{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d1dde3;border-radius:8px;overflow:auto;background:var(--card,#fff);color:var(--text,#203c49);direction:rtl}
html.ux480 dialog.sw-customer-confirm form{display:block;padding:24px;margin:0}
html.ux480 dialog.sw-customer-confirm .sw-dialog-heading{display:flex;gap:12px;align-items:center;margin:0 0 20px;padding:0 0 16px;border-bottom:1px solid #e0e8ec}
html.ux480 dialog.sw-customer-confirm .sw-dialog-heading h2{font-size:18px;line-height:1.7;margin:2px 0;font-weight:600}
html.ux480 dialog.sw-customer-confirm .sw-identity-modes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;border:0}
html.ux480 dialog.sw-customer-confirm .sw-identity-modes label{display:flex;align-items:center;gap:8px;margin:0;padding:8px 12px;border:1px solid #d1dde3;border-radius:6px;font-size:13px;line-height:1.7;cursor:pointer}
html.ux480 dialog.sw-customer-confirm .sw-identity-modes label:has(:checked){background:#eaf5ef;border-color:#77b59a;color:#17633e}
html.ux480 dialog.sw-customer-confirm input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;margin:0;flex:none;accent-color:#198754}
html.ux480 dialog.sw-customer-confirm .sw-customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;padding:0;margin:0}
html.ux480 dialog.sw-customer-confirm .sw-customer-fields>label{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;margin:0;padding:0;font-size:13px;line-height:1.7;font-weight:400}
html.ux480 dialog.sw-customer-confirm .sw-customer-fields>label>span:first-child{font-weight:500;color:var(--text,#203c49)}
html.ux480 dialog.sw-customer-confirm .sw-identity-input{position:relative;display:block;width:100%;min-width:0}
html.ux480 dialog.sw-customer-confirm .sw-identity-input input[name=customer_national_id]{padding-right:48px}
html.ux480 dialog.sw-customer-confirm .sw-identity-input [data-identity-search]{position:absolute;right:5px;top:5px;width:36px;height:36px;min-height:36px;padding:7px;border:0;background:#edf5f4;color:#156b65;border-radius:4px}
html.ux480 dialog.sw-customer-confirm input:not([type=radio]){box-sizing:border-box;width:100%;height:46px;min-width:0;margin:0;padding:10px 12px;border:1px solid #c6d4dc;border-radius:6px!important;font:inherit;font-size:15px!important;font-weight:400!important;background:var(--card,#fff);color:inherit}
html.ux480 dialog.sw-customer-confirm input:not([type=radio]):focus{outline:0;border-color:#238774;box-shadow:0 0 0 3px #2387741a}
html.ux480 dialog.sw-customer-confirm [data-dialog-error]{margin:16px 0 0;padding:0;line-height:1.8}
html.ux480 dialog.sw-customer-confirm footer.sw-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:22px 0 0;padding:18px 0 0}
html.ux480 dialog.sw-customer-confirm footer.sw-actions [data-add-customer]{background:#198754!important;border-color:#198754!important;color:#fff!important;box-shadow:none}
html.ux480 #root .sw-invoice-editor form[data-editor] .sw-party-select{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;gap:16px;align-items:end}
html.ux480 #root .sw-invoice-editor form[data-editor] .sw-party-select.is-multiple{grid-template-columns:minmax(0,1fr) auto!important}
html.ux480 #root .sw-invoice-editor form[data-editor] .sw-party-select>label{margin:0!important}
html.ux480 #root .sw-invoice-editor form[data-editor] .sw-party-select .ui-select-trigger{height:46px;min-height:46px}
html.ux480 #root .sw-invoice-editor form[data-editor] button.sw-multiple-sellers{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:46px;margin:0;padding:10px 14px;border:1px solid #bbcfce;border-radius:6px;background:var(--card,#fff);color:var(--text,#203c49);font-size:13px;white-space:nowrap;cursor:pointer}
html.ux480 #root .sw-invoice-editor form[data-editor] button.sw-multiple-sellers[aria-pressed=true]{background:#198754!important;border-color:#198754;color:white!important}
html.ux480 #root .sw-invoice-editor form[data-editor] button.sw-multiple-sellers svg{width:18px;height:18px;flex:none}
html.ux480 #root .sw-invoice-editor form[data-editor] .sw-check-date-editor{grid-template-columns:repeat(2,minmax(0,1fr))}
html.ux480 #root .sw-invoice-editor .sw-item-seller{padding:12px 16px;border-top:1px solid #e0e8ec}
html.ux480 #root .sw-invoice-editor .sw-item-seller>label{max-width:360px;margin:0;display:flex;flex-direction:column;gap:6px;font-size:13px}
@media(max-width:600px){
 html.ux480 dialog.sw-customer-confirm form{padding:18px}
 html.ux480 dialog.sw-customer-confirm .sw-customer-fields{grid-template-columns:1fr;gap:14px}
 html.ux480 dialog.sw-customer-confirm footer.sw-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
 html.ux480 dialog.sw-customer-confirm footer.sw-actions button{padding:8px;font-size:12px;white-space:normal}
 html.ux480 #root .sw-invoice-editor .sw-item-seller>label{max-width:none}
 html.ux480 #root .sw-invoice-editor form[data-editor] .sw-party-select{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.ux480 #root .sw-invoice-editor form[data-editor] button.sw-multiple-sellers{grid-column:1/-1;white-space:normal}
 html.ux480 #root .sw-invoice-editor form[data-editor] .sw-party-select.is-multiple{grid-template-columns:minmax(0,1fr)!important}
 html.ux480 #root .sw-invoice-editor form[data-editor] .sw-check-date-editor{grid-template-columns:minmax(0,1fr)}
}

/* Complete customer details are entered once, inside the identity dialog. */
html.ux480 dialog.sw-customer-complete{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overscroll-behavior:contain}
html.ux480 dialog.sw-customer-complete .sw-dialog-heading small{display:block;font-size:12px;line-height:1.8;color:var(--muted,#637583)}
html.ux480 dialog.sw-customer-complete section{margin:0;padding:0;border:0;background:transparent}
html.ux480 dialog.sw-customer-complete section h3{margin:0 0 14px;font-size:14px;line-height:1.8}
html.ux480 dialog.sw-customer-complete .sw-customer-profile-section{margin-top:22px;padding-top:20px;border-top:1px solid #e0e8ec}
html.ux480 dialog.sw-customer-complete :is(select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #c6d4dc;border-radius:6px!important;font:inherit;font-size:15px!important;background:var(--card,#fff);color:inherit}
html.ux480 dialog.sw-customer-complete textarea{resize:vertical;min-height:70px}
html.ux480 dialog.sw-customer-complete .ui-select{width:100%;min-width:0}
html.ux480 dialog.sw-customer-complete :is(input,select,textarea):focus{outline:2px solid #238774;outline-offset:1px}
html.ux480 dialog.sw-customer-complete [data-dialog-error]:empty{display:none}
html.ux480 dialog.sw-customer-complete [data-dialog-error][data-tone=error]{color:#b42318;font-weight:600}
html.ux480 dialog.sw-customer-complete footer.sw-actions{position:sticky;bottom:-24px;padding:14px 0;margin-top:20px;background:var(--card,#fff);border-top:1px solid #e0e8ec;z-index:3}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-profile-panel],
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer :is([data-customer-card],.sw-customer-search)[hidden]{display:none!important}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card]:not([hidden]){display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card]>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card]>header strong{display:block;font-size:17px;line-height:1.8}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer .sw-customer-summary-actions{display:flex;gap:8px;flex-wrap:wrap}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer .sw-customer-summary-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;font-size:12px}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card] dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;padding:16px 0 0;margin:0;border-top:1px solid #e0e8ec}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card] dl>div{min-width:0}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card] dt{font-size:12px;color:var(--muted,#637583);margin:0 0 5px}
html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card] dd{margin:0;font-size:14px;line-height:1.9;overflow-wrap:anywhere;color:var(--text,#203c49)}
@media(max-width:600px){
 html.ux480 dialog.sw-customer-complete form{padding:16px}
 html.ux480 dialog.sw-customer-complete footer.sw-actions{bottom:-16px}
 html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card] dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media(max-width:360px){html.ux480.vp560.soon-brand :is(#root, #root #app) .sw-page.sw-invoice-editor form[data-editor].sw-modal-customer [data-customer-card] dl{grid-template-columns:minmax(0,1fr)}}
