.due-origin-description{display:block;font-size:12px;color:#526078;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}.due-origin-button{font-size:12px;padding:5px 9px;margin-top:4px}#due-origin-dialog{width:min(650px,calc(100vw - 16px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid #d5dfea;border-radius:10px;padding:18px}#due-origin-dialog dl>div{padding:10px 0;border-bottom:1px solid #e5ebef}#due-origin-dialog dt{font-size:12px;color:#607084}#due-origin-dialog dd{margin:4px 0;overflow-wrap:anywhere}@media(max-width:1024px){.due-origin-button{min-height:44px}#due-origin-dialog button{min-height:44px}}
/* Keep the title and its origin compact on one line. */
td:has(>.due-origin-description){white-space:nowrap;min-width:0}td:has(>.due-origin-description)>strong{display:inline;white-space:nowrap}td>.due-origin-description{display:inline;font-size:12px;margin:0 10px;white-space:nowrap}td>.due-origin-description br{display:none}td>.due-origin-description br::after{content:' · '}td>.due-origin-button{display:inline-flex;align-items:center;vertical-align:middle;margin:0 0 0 4px;white-space:nowrap}
.table-wrap:has(.due-origin-description){overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}.table-wrap:has(.due-origin-description) table{min-width:1200px}
#pending-source-editor{width:min(650px,calc(100vw - 16px));max-height:90dvh;overflow:auto;box-sizing:border-box;padding:18px;border:1px solid #d5dfea;border-radius:10px}#pending-source-editor label{display:grid;gap:6px;margin:12px 0}#pending-source-editor :is(input,textarea){width:100%;box-sizing:border-box;padding:10px;border:1px solid #d5dfea;border-radius:7px;font-size:16px}#pending-source-editor button{min-height:44px}#pending-source-error{color:#ac3025}
/* Separate consultation from changes to the source entry. */
#all-records-rows .row-actions:has([data-action="edit-pending-source"]){display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;min-width:240px}
#all-records-rows .row-actions:has([data-action="edit-pending-source"])>[data-due-origin]{margin-right:auto;flex:0 0 auto}
#all-records-rows .row-actions:has([data-action="edit-pending-source"])>[data-action]{flex:0 0 auto}
/* Align origin buttons at the right edge of the title column. */
td:has(>.due-origin-description){position:relative;padding-right:96px!important}td>.due-origin-button{position:absolute;right:10px;top:50%;transform:translateY(-50%);margin:0}
#loan-rows>tr>td:last-child{white-space:nowrap;min-width:130px}#loan-rows>tr>td:last-child button{display:inline-flex;align-items:center;justify-content:center;width:auto;white-space:nowrap;margin:0;vertical-align:middle}#loan-rows>tr>td:last-child button+button{margin-left:6px}
.loan-list-primary-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 16px}.loan-list-primary-actions button{min-height:44px;max-width:100%;white-space:normal}@media(max-width:480px){.loan-list-primary-actions button{flex:1 1 140px}}

#so-list .sales-order-actions{white-space:nowrap;min-width:130px}#so-list .sales-order-actions button{display:inline-flex;width:auto;white-space:nowrap;margin:0;vertical-align:middle}#so-list .sales-order-actions button+button{margin-left:6px}table:has(#so-list){min-width:1200px}#so-list td{white-space:nowrap}
.multi-sequential-number{font-size:12px;line-height:1.5;color:#526078;white-space:nowrap}

/* Keep loan controls inside the dialog edges and clear of filter borders. */
#loan-list-dialog > .loan-content,#loan-receive-list-dialog > .loan-receive-content{box-sizing:border-box;min-width:0;max-width:100%;padding:20px}
#loan-list-dialog .loan-list-primary-actions,#loan-receive-list-dialog .loan-list-primary-actions{padding-block:4px;margin:10px 0 18px}
#loan-list-dialog .report-filters,#loan-receive-list-dialog .report-filters{box-sizing:border-box;max-width:100%;margin-top:0}
