/* Loads: bulk actions for selected rows (Send to eCapital / Invoice selection). */
.loads-bulk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;padding:9px 12px;background:#e8f2fd;border:1px solid #b9d6f3;border-radius:8px;color:#1f3b57;font-size:13px;position:sticky;top:0;z-index:5}
.loads-bulk-bar[hidden]{display:none}
.loads-bulk-count{margin-right:auto}
.loads-bulk-count b{font-weight:700}
.loads-bulk-primary,.loads-bulk-secondary,.loads-bulk-link{font:inherit;font-size:13px;border-radius:6px;padding:7px 14px;cursor:pointer}
.loads-bulk-primary{background:#1484dc;color:#fff;border:1px solid #1484dc;font-weight:600}
.loads-bulk-primary:hover:not(:disabled){background:#0d6fbd}
.loads-bulk-secondary{background:#fff;color:#24435c;border:1px solid #b9cbdb;font-weight:600}
.loads-bulk-link{background:none;border:0;color:#1765b1;padding:4px 6px;text-decoration:underline}
.loads-bulk-primary:disabled,.loads-bulk-secondary:disabled{opacity:.5;cursor:not-allowed}
body .loads-bulk-dialog,body.loads-mode .loads-bulk-dialog{background:#fff;width:min(860px,94vw);max-height:88vh;border:0;border-radius:12px;padding:0;box-shadow:0 20px 50px rgba(15,40,65,.25);color:#1f2d3a;font-size:13px;display:flex;flex-direction:column}
.loads-bulk-dialog:not([open]){display:none}
.loads-bulk-dialog::backdrop{background:rgba(20,35,50,.45)}
.loads-bulk-dialog header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 6px}
.loads-bulk-dialog h2{margin:0;font-size:18px}
.loads-bulk-close{background:none;border:0;font-size:22px;line-height:1;color:#5d6b78;cursor:pointer;padding:4px 8px}
.loads-bulk-intro{margin:0 20px 8px;color:#4a5e70;line-height:1.5}
.loads-bulk-env{font-weight:600;color:#24435c}
.loads-bulk-summary{margin:0 20px 8px;font-weight:600;color:#24435c}
.loads-bulk-options{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:0 20px 10px}
.loads-bulk-options:empty{display:none}
.loads-bulk-options label{display:flex;flex-direction:column;gap:4px;font-weight:600;color:#3d5468}
.loads-bulk-options select{padding:7px 8px;border:1px solid #b9cbdb;border-radius:6px;background:#fff;min-width:220px;font:inherit}
.loads-bulk-options .loads-bulk-confirm{flex-direction:row;align-items:center;gap:8px;font-weight:500;flex:1;min-width:260px}
.loads-bulk-confirm input{width:17px;height:17px;accent-color:#1484dc}
.loads-bulk-table-wrap{overflow:auto;margin:0 20px;border:1px solid #d5dde5;border-radius:8px;flex:1;min-height:120px}
.loads-bulk-table{width:100%;border-collapse:collapse}
.loads-bulk-table th{position:sticky;top:0;background:#f5f7f9;text-align:left;padding:8px 10px;color:#5d6b78;font-weight:600;border-bottom:1px solid #d5dde5}
.loads-bulk-table td{padding:7px 10px;border-bottom:1px solid #edf0f3;vertical-align:top}
.loads-bulk-table td:nth-child(3){white-space:nowrap}
.lb-status b{display:inline-block;min-width:96px;margin-right:6px}
.lb-status span{color:#4a5e70}
.lb-status .loads-bulk-link{margin-left:6px}
tr.lb-ready b{color:#1765b1}
tr.lb-sent b,tr.lb-created b{color:#17803d}
tr.lb-skip b{color:#6b7a88}
tr.lb-blocked b,tr.lb-failed b{color:#b42318}
tr.lb-review b,tr.lb-partial b{color:#b25e09}
tr.lb-working b{color:#24435c}
.loads-bulk-dialog footer{display:flex;align-items:center;gap:10px;padding:14px 20px;border-top:1px solid #e3e8ed;margin-top:12px}
.loads-bulk-message{margin:0 auto 0 0;color:#3d5468}
body.loads-mode .loads-bulk-dialog h2,body.loads-mode .loads-bulk-table td{color:#1f2d3a}
.loads-bulk-table td:first-child{font-weight:600}
.loads-bulk-loadlink{all:unset;cursor:pointer;color:#1765b1;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.loads-bulk-loadlink:hover{color:#0d4f8f}
.loads-bulk-loadlink:focus-visible{outline:2px solid #1484dc;outline-offset:2px;border-radius:3px}
.loads-bulk-loadlink:disabled{color:#1f2d3a;text-decoration:none;cursor:default}
.loads-bulk-return{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 12px;padding:10px 12px;background:#fff7e6;border:1px solid #f0c97a;border-radius:8px;color:#5c3d06;font-size:13px}
.loads-bulk-return span{flex:1;min-width:200px}
/* Merge loads dialog: keep text readable above the workspace's global dialog styles. */
body .loads-merge-dialog,body.loads-mode .loads-merge-dialog{background:#fff;color:#16202c;min-width:0;max-width:720px;width:calc(100% - 32px);max-height:90vh;overflow:auto;border:0;border-radius:12px;padding:20px 22px;box-shadow:0 12px 40px rgba(0,0,0,.25);color-scheme:light}
.loads-merge-dialog::backdrop{background:rgba(20,35,50,.45)}
.loads-merge-dialog h2{margin:0 0 8px;font-size:20px;color:#16202c}
.loads-merge-dialog .muted{color:#4a5e70;font-size:14px;line-height:1.5;margin:0 0 16px}
.loads-merge-list{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.loads-merge-dialog .loads-merge-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #c5cfdb;border-radius:8px;cursor:pointer;font-size:14px;line-height:1.5;color:#16202c;background:#fff}
.loads-merge-dialog .loads-merge-row input[type=radio]{width:18px;height:18px;min-width:18px;flex:0 0 18px;margin:0;padding:0;accent-color:#1765b1}
.loads-merge-row>span:not(.loads-merge-keep){flex:1;min-width:0;overflow-wrap:anywhere}
.loads-merge-dialog .loads-merge-row:has(input:checked){border-color:#1765b1;background:#eef5fd}
.loads-merge-row:focus-within{outline:2px solid #1765b1;outline-offset:2px}
.loads-merge-keep{margin-left:auto;flex:0 0 auto;font-size:12px;font-weight:700;color:#1765b1;visibility:hidden}
.loads-merge-row:has(input:checked) .loads-merge-keep{visibility:visible}
.loads-merge-dialog .loads-merge-reason{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;margin-bottom:16px;color:#16202c}
.loads-merge-dialog .loads-merge-reason input{box-sizing:border-box;width:100%;margin:0;font:inherit;font-weight:400;padding:9px 10px;border:1px solid #c5cfdb;border-radius:6px;background:#fff;color:#16202c}
.loads-merge-reason input::placeholder{color:#5b6775;opacity:1}
.loads-merge-dialog footer{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.loads-merge-dialog .loads-bulk-primary{background:#1765b1;border-color:#1765b1;color:#fff}
.loads-merge-dialog .loads-bulk-primary:hover:not(:disabled){background:#0d4f8f}
.loads-merge-msg{margin:0 auto 0 0;font-size:13px;color:#1f3b57;overflow-wrap:anywhere}.loads-merge-msg.bad{color:#b42318}
@media(max-width:480px){body .loads-merge-dialog{padding:18px 16px}.loads-merge-dialog .loads-merge-row{gap:8px;padding:10px}.loads-merge-msg:not(:empty){flex-basis:100%}}
