.sales-action-popup{position:fixed;inset:auto;margin:0;width:340px;max-width:calc(100vw - 24px);padding:8px 0;border:1px solid #cbd5e1;border-radius:5px;background:white;box-shadow:0 4px 14px #152a4526;overflow:auto;font:14px Tahoma,sans-serif;color:#172b42}.sales-action-popup button,.sales-action-popup a{display:block;width:100%;text-align:left;background:white;border:0;border-radius:0;padding:10px 16px;font:inherit;color:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.sales-action-popup button:hover,.sales-action-popup button:focus-visible{background:#eaf3ff}.sales-action-popup p,.sales-action-popup strong{display:block;margin:8px 16px}.sales-action-popup strong{color:#249ccc}.sales-action-hint{font-size:12px;color:#64748b}.sales-action-popup .sales-action-delete{border-top:1px solid #cbd5e1;color:#b42318}.sales-workflow-trigger{cursor:pointer}.sales-related-trigger{padding:0 5px!important;border:0!important;background:transparent!important;color:#249ccc!important}.sales-payment-dialog{border:1px solid #cbd5e1;border-radius:8px;width:430px;padding:24px;font-family:Tahoma,sans-serif}.sales-payment-dialog::backdrop{background:#0006}.sales-payment-dialog label{display:block;margin:12px 0}.sales-payment-dialog input,.sales-payment-dialog textarea{display:block;width:100%;margin-top:6px}.sales-payment-dialog footer{display:flex;justify-content:flex-end;gap:12px}.sales-payment-dialog [role=alert]{color:#b42318}
.qlt-table .sales-workflow-trigger{white-space:nowrap;min-width:36px;line-height:22px}.qlt-table td:last-child{min-width:52px;width:52px}.qlt-table .sales-related-trigger{display:inline-block;min-width:20px}.qlt-table td:nth-child(6) .sales-workflow-trigger{width:150px;text-align:left;background:#e9f6fc;color:#249ccc;border-color:#d4e8f1}
.qlt-table td:last-child{min-width:0;width:auto}.qlt-table .sales-workflow-trigger{box-sizing:border-box;min-width:0;height:30px;min-height:30px;padding:3px 8px}.qlt-table td:nth-child(6) .sales-workflow-trigger{width:100%}.qlt-table td:last-child .sales-workflow-trigger{width:30px;padding:0}.qlt-table .sales-related-trigger{width:20px}

.qlt-table td[data-flow-state="awaiting"] .sales-workflow-trigger{background:#f1f3f6;color:#64748b;border-color:#e1e5eb}.qlt-table td[data-flow-state="paid"] .sales-workflow-trigger,.qlt-table td[data-flow-state="invoicereceived"] .sales-workflow-trigger{background:#eff7df;color:#72a63e;border-color:#e6efdb}
.qlt-table td[data-flow-state="invoicedelivered"] .sales-workflow-trigger{background:#fff3e0;color:#b85b00;border-color:#f6c687}

.sales-action-popup button svg{width:16px;height:16px;display:inline-block;vertical-align:middle;margin-right:10px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Quotation menus share the approved customer picker appearance. */
.sales-action-popup-quotation{width:360px;padding:4px 0;border:1px solid #c9d9ee;border-radius:8px;background:#fff;box-shadow:0 8px 24px #244a751f;font:400 15px/22px Tahoma,sans-serif;color:#203655;overscroll-behavior:contain}
.sales-action-popup-quotation button,.sales-action-popup-quotation a{padding:10px 12px;font:inherit;color:inherit}
.sales-action-popup-quotation button:hover,.sales-action-popup-quotation button:focus-visible,.sales-action-popup-quotation a:hover,.sales-action-popup-quotation a:focus-visible{background:#eaf3ff;outline:none}
.sales-action-popup-quotation p,.sales-action-popup-quotation strong{margin:10px 12px}
.qlt-table .sales-related-trigger{display:inline-flex;align-items:center;justify-content:center;width:17px;height:19px;min-height:0;padding:2px!important;margin-left:4px;vertical-align:middle;border-radius:4px;background:#e8f2ff!important;color:#2377ce!important;box-shadow:none}
.qlt-table .sales-related-trigger svg{width:15px;height:15px;flex:none}
.qlt-table .sales-related-trigger:hover,.qlt-table .sales-related-trigger:focus-visible{background:#d6e9ff!important;color:#1764b7!important;outline:2px solid #b9d8f8;outline-offset:2px}

/* Style 01, scoped to the receiving-payment popup. */
dialog.sales-payment-dialog{box-sizing:border-box;width:650px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:16px;border:1px solid #c7d9ee;border-radius:16px;background:linear-gradient(145deg,#f6fbff,#eef1fc);box-shadow:0 18px 50px #244a7520;color:#203655;font:15px/22px Tahoma,sans-serif;overflow:hidden}
.sales-payment-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 66px);margin:0;gap:0}
.sales-payment-dialog header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:12px 16px;border:1px solid #ffffff40;border-radius:10px;background:linear-gradient(110deg,#198ee6,#393bad);box-shadow:0 5px 12px #2453a530;color:white}
.sales-payment-dialog header h3{margin:0;color:white;font-size:21px;font-weight:400;line-height:28px}
.sales-payment-dialog header button{background:#ffffff18;border:1px solid #ffffff55;border-radius:7px;color:white;font-size:24px;width:34px;height:34px;padding:0;min-height:0}
.sales-payment-dialog header button:hover{background:#ffffff30;border-color:#ffffff90}
.sales-payment-dialog .payment-body{overflow:auto;padding:20px 8px 10px;min-height:0}
.sales-payment-dialog .payment-row{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:12px;margin:10px 0}
.sales-payment-dialog .payment-row>label{margin:0}.sales-payment-dialog .payment-row strong{color:#2857a4}
.sales-payment-dialog .payment-date{margin-top:26px}.sales-payment-dialog .payment-net{margin-top:24px}
.sales-payment-dialog .payment-pair{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(85px,1fr);gap:8px}
.sales-payment-dialog input,.sales-payment-dialog select,.sales-payment-dialog textarea{box-sizing:border-box;width:100%;min-width:0;min-height:36px;margin:0;padding:7px 10px;background:#fff;border:1px solid #c9d9ee;border-radius:6px;box-shadow:inset 0 1px 3px #345c7910;font:inherit;color:inherit}
.sales-payment-dialog input[inputmode=decimal]{text-align:right}.sales-payment-dialog input:disabled,.sales-payment-dialog select:disabled{background:#eef1f7;color:#8593a7}
.sales-payment-dialog .payment-check{display:flex;align-items:center;gap:7px}.sales-payment-dialog input[type=checkbox]{width:16px;height:16px;min-height:0;flex:none;padding:0;box-shadow:none}
.sales-payment-dialog [data-net],.sales-payment-dialog [data-difference]{text-align:right}.sales-payment-dialog [data-document]{overflow-wrap:anywhere}
.sales-payment-dialog .payment-hint,.sales-payment-dialog [data-bank-status]{font-size:12px;color:#64748b;line-height:18px;margin:6px 0}
.sales-payment-dialog [role=alert]:not([hidden]){padding:10px;background:#fff0ee;border:1px solid #efb8b1;border-radius:6px;color:#a3261c;outline:none}
.sales-payment-dialog footer{flex:none;display:flex;justify-content:flex-end;gap:12px;padding:14px 8px 0;border-top:1px solid #d8e4f2}
.sales-payment-dialog footer button{min-width:110px;padding:8px 16px;border-radius:7px}.sales-payment-dialog footer .primary{background:linear-gradient(110deg,#248ee6,#3b45ad);color:white;border:1px solid transparent;box-shadow:0 4px 9px #2058bd33}
.sales-payment-dialog [hidden]{display:none!important}.sales-payment-dialog input[type=number]{appearance:textfield}.sales-payment-dialog input::-webkit-inner-spin-button,.sales-payment-dialog input::-webkit-outer-spin-button{appearance:none;margin:0}
/* Fixed desktop layout; original media: (max-width:560px) */ @media (max-width:0px){.sales-payment-dialog .payment-row{grid-template-columns:1fr;gap:5px}.sales-payment-dialog .payment-pair{grid-template-columns:minmax(0,1fr) minmax(80px,1fr)}}
:root body dialog.sales-payment-dialog{background:linear-gradient(145deg,#f6fbff,#eef1fc)!important;box-shadow:0 18px 50px #244a7520!important;border:1px solid #c7d9ee!important}
:root body dialog.sales-payment-dialog header h3{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:21px!important;font-weight:400!important}
:root body dialog.sales-payment-dialog header button{background:#ffffff18!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #ffffff55!important}
:root body dialog.sales-payment-dialog header button:hover{background:#ffffff30!important;border-color:#ffffff90!important}
:root body dialog.sales-payment-dialog footer .primary{background:linear-gradient(110deg,#248ee6,#3b45ad)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Flow uses a lighter gray dot than its awaiting-status text. */
.qlt-table tr[data-flow-state]{--status-color:#434a54;--status-bg:rgba(170,178,189,.15);--status-border:transparent}
.qlt-table tr:is([data-flow-state="approved"],[data-flow-state="approvedandprocessed"],[data-flow-state="queued"],[data-flow-state="running"]){--status-color:#2898cb;--status-bg:rgba(79,192,232,.15);--status-border:transparent}
.qlt-table tr[data-flow-state="invoicedelivered"]{--status-color:#fea000;--status-bg:rgba(255,207,85,.2);--status-border:transparent}
.qlt-table tr:is([data-flow-state="paid"],[data-flow-state="invoicereceived"]){--status-color:#4cb050;--status-bg:rgba(136,196,38,.15);--status-border:transparent}
.qlt-table tr:is([data-flow-state="void"],[data-flow-state="rejected"],[data-flow-state="cancelled"],[data-flow-state="deleted"],[data-flow-state="failed"]){--status-color:#c24135;--status-bg:#fff0ee;--status-border:#efc3bd}
.qlt-table tr[data-flow-state] .qlt-dot{background:var(--status-dot,var(--status-color))}
.qlt-table tr[data-flow-state] td:nth-child(6) .sales-workflow-trigger{color:var(--status-color);background:var(--status-bg);border-color:var(--status-border)}

.qlt-table tr[data-flow-state="awaiting"]{--status-dot:#ccd0d9}

.qlt-table td:nth-child(6) .sales-status-trigger{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:0 0 0 7px;gap:0}
.sales-status-label{flex:1;min-width:0;text-align:left}.sales-status-arrow{width:25px;flex:0 0 25px;height:100%;display:flex;align-items:center;justify-content:center}.sales-status-arrow svg{display:block}

.qlt-table .sales-status-arrow svg{width:10px!important;height:7px!important;min-width:10px;flex:none}

/* Related-document cards share the service-report frame and Flow list typography. */
.sales-action-popup.sales-related-popup{padding:0;border:1px solid #c5d9ee;border-top:3px solid #2876c8;border-radius:10px;background:#fff;box-shadow:0 8px 28px #16395b26;color:#213a55;font:14px/1.5 Tahoma,sans-serif}
.sales-related-popup .related-job-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:10px;padding:14px 16px;background:#f2f7fd;border-bottom:1px solid #dfebf5}
.sales-related-popup .related-job-heading>svg{width:22px;height:22px;flex:none;color:#2671bc}
.sales-related-popup .related-job-heading strong{margin:0;color:#205c97;font-size:14px;font-weight:700}
.sales-related-popup .related-job-heading small{display:block;margin-top:3px;color:#75859a;font-size:12px}
.sales-related-popup button.sales-related-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;color:#2266a8;font:14px/1.5 Tahoma,sans-serif}
.sales-related-popup .sales-related-link strong{margin:0;color:inherit;font-size:14px;font-weight:700}
.sales-related-popup .sales-related-link small{display:block;margin-top:4px;color:#778798;font-size:12px}
.sales-related-popup .sales-related-link:hover,.sales-related-popup .sales-related-link:focus-visible{background:#eff7ff}
.related-job-popover{font:14px/1.5 Tahoma,sans-serif}
.related-job-popover .related-job-heading strong,.related-job-popover .related-job-links strong{font-size:14px}
.related-job-popover .related-job-links small{font-size:12px}
