.delivery-agent-fee-workbench { min-width: 0; color: #183452; }
.daf-page-header { border-bottom: 1px solid #ccdaea; background: #fff; }
.daf-page-header h2 { margin: 2px 0 0; color: #173a61; font-size: 22px; }
.daf-header-status { display: flex; align-items: center; gap: 12px; }
.daf-header-status span { padding: 6px 12px; border: 1px solid #a9c5e1; border-radius: 999px; background: #edf6ff; color: #245a8d; font-size: 13px; font-weight: 800; }
.daf-header-status strong { min-width: 70px; color: #173a61; text-align: right; }
.daf-controls { padding: 14px 18px 12px; border-bottom: 1px solid #c9d9e9; background: #f6faff; }
.daf-search { display: flex; align-items: center; gap: 8px; min-width: 0; }
.daf-search input, .daf-search select { height: 36px; box-sizing: border-box; border: 1px solid #b7cce1; border-radius: 5px; background: #fff; color: #173451; font: 700 13px/1.2 "Segoe UI", "Microsoft YaHei", sans-serif; }
.daf-search input:focus, .daf-search select:focus { outline: 0; border-color: #4386c7; box-shadow: 0 0 0 3px rgba(44,117,184,.13); }
#dafSearchType { flex: 0 0 170px; padding: 0 8px; font-weight: 900; }
.daf-keyword { flex: 0 0 210px; }
.daf-keyword input { width: 100%; padding: 0 12px; }
#dafEtType { flex: 0 0 78px; padding: 0 8px; }
.daf-date { flex: 0 0 142px; }
.daf-date input { width: 100%; padding: 0 8px; cursor: pointer; }
.daf-date-separator { color: #617b94; font-weight: 800; }
.daf-search-button, .daf-reset-button { min-width: 70px; height: 36px; border-radius: 5px; padding: 0 15px; font: 800 13px/1 "Microsoft YaHei", sans-serif; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.daf-search-button { border: 1px solid #256ca9; border-bottom-color: #174d80; background: linear-gradient(#5fa5dc,#2878b8); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.5),0 2px 0 #18598e,0 7px 14px rgba(32,87,137,.15); }
.daf-reset-button { border: 1px solid #a9bfd5; border-bottom-color: #819bb4; background: linear-gradient(#fff,#e8f0f7); color: #264b6e; box-shadow: inset 0 1px #fff,0 2px 0 #9cb2c7; }
.daf-search-button:hover, .daf-reset-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.daf-check { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #425f7b; font-size: 12px; font-weight: 700; }
.daf-check input { width: 16px; height: 16px; }
.daf-batch-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 45px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #dce7f1; }
#dafSelectionSummary { color: #526d86; font-size: 13px; font-weight: 700; }
.daf-batch-actions { display: flex; gap: 7px; }
.daf-batch-actions button { min-height: 32px; border: 1px solid #9db9d5; border-bottom-color: #7197bb; border-radius: 5px; padding: 0 12px; background: linear-gradient(#fff,#e9f2fa); color: #214f79; font: 800 12px/1 "Microsoft YaHei", sans-serif; box-shadow: inset 0 1px #fff,0 2px 0 #95b0ca; cursor: pointer; }
.daf-batch-actions button.primary { border-color: #2a74b1; border-bottom-color: #15558b; background: linear-gradient(#62a9df,#2676b5); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.5),0 2px 0 #17588e; }
.daf-batch-actions button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* 列表不建立内层纵向滚动，保留表头相对浏览器页面锁定。 */
.legacy-table-wrap.daf-table-wrap { max-height: none; min-height: 0; overflow: visible; }
.daf-table { width: 100%; min-width: 1120px; table-layout: auto; }
.daf-table th { position: sticky; z-index: 2; top: 0; height: 41px; background: #285f94; color: #fff; white-space: nowrap; font-size: 12px; }
.daf-table td { height: 50px; padding: 7px 9px; border-color: #d4e1ed; color: #203d59; vertical-align: middle; font-size: 12px; }
.daf-row:hover td { background: #eef6fe; }
.daf-row.is-delayed td { color: #c84f55; font-weight: 800; }
.daf-row.is-child td { background: #f7fafc; color: #506a83; }
.daf-row.is-child td:first-child { box-shadow: inset 4px 0 #74a5d2; }
.daf-row.is-search-match td { background: linear-gradient(90deg,#fff9e8 0%,#fffdf5 100%); color: #4f3a13; }
.daf-row.is-search-match td:first-child { box-shadow: inset 4px 0 #d6a83b; }
.daf-row.is-search-match:hover td { background: #fff4d6; }
.daf-select { width: 34px; text-align: center; }
.daf-sequence { width: 46px; color: #668099; text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; }
.daf-check-button { width: 17px; height: 17px; border: 1px solid #91abc3; border-radius: 3px; padding: 0; background: #fff; color: transparent; font-size: 12px; font-weight: 900; line-height: 15px; cursor: pointer; }
.daf-check-button.is-checked { border-color: #2675b4; background: #287fc0; color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.35); }
.daf-check-button.is-partial { border-color: #2675b4; background: linear-gradient(#fff 38%,#287fc0 38%,#287fc0 62%,#fff 62%); }
.daf-order { white-space: nowrap; }
.daf-order a { color: #145b98; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.daf-order .disabled { color: #607a92; font-weight: 900; }
.daf-expand { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 23px; margin-left: 7px; border: 1px solid #a8c1d9; border-radius: 4px; background: #fff; color: #2c6396; font-weight: 900; cursor: pointer; }
.daf-agent strong, .daf-agent span { display: block; }
.daf-agent strong { color: #183e64; font-size: 13px; }
.daf-agent span { max-width: 230px; margin-top: 2px; overflow: hidden; color: #657d94; text-overflow: ellipsis; white-space: nowrap; }
.daf-money { text-align: right; font-variant-numeric: tabular-nums; font-weight: 900; }
.daf-money small { display: block; color: #71869a; font-size: 10px; }
.daf-money .batch { color: #b64545; }
.daf-table tfoot td { height: 42px; border-top: 1px solid #bdcede; background: #f7fafc; font-size: 12px; font-weight: 900; }
.daf-table tfoot .daf-total-label { color: #60778e; text-align: right; }
.daf-table tfoot .daf-total-money { color: #b74747; text-align: right; font-variant-numeric: tabular-nums; }
.daf-table tfoot.has-selection td { background: #fff9f4; border-top-color: #d9b9a7; box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
.daf-hit { border-radius: 2px; background: #ffe56e; color: #522f00; padding: 1px 2px; box-shadow: inset 0 -1px rgba(166,104,0,.24); font-weight: 900; }
.daf-action { min-height: 28px; border: 1px solid #93b5cf; border-bottom-color: #6e96b8; border-radius: 4px; padding: 0 9px; background: linear-gradient(#ffffff 0%,#edf6fb 54%,#d4e7f3 100%); color: #24557f; font-weight: 900; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 1px 0 #b3ccdE; transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.daf-action:hover { filter: brightness(1.02); box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 2px 4px rgba(38,88,125,.15); transform: translateY(-1px); }
.daf-action + .daf-action { margin-left: 5px; }
.daf-loading, .daf-empty { height: 120px !important; color: #6e8499 !important; text-align: center; }
.daf-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 49px; border-top: 1px solid #d5e1ec; background: #f7fafc; }
.daf-pagination button { min-width: 70px; height: 30px; border: 1px solid #9fbcd3; border-bottom-color: #789dbb; border-radius: 4px; background: linear-gradient(#fff,#e8f2f9); color: #2a557d; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.96),0 1px 0 #adc4d7; transition: transform .14s ease, box-shadow .14s ease; }
.daf-pagination button:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.98),0 2px 4px rgba(38,88,125,.15); transform: translateY(-1px); }
.daf-modal-backdrop { z-index: 1460; padding: 24px; background: rgba(16,35,55,.58); backdrop-filter: blur(2px); }
.daf-modal-dialog { width: min(720px,calc(100vw - 42px)); max-height: calc(100vh - 48px); overflow: hidden; border: 1px solid #8fb1d0; border-radius: 7px; background: #fff; box-shadow: 0 28px 70px rgba(11,32,53,.35); }
.daf-modal-dialog > header { display: flex; justify-content: space-between; padding: 18px 22px 16px; border-bottom: 1px solid #bfd1e3; background: linear-gradient(135deg,#fafdff,#eaf4fd); }
.daf-modal-dialog h3 { margin: 2px 0; color: #173f67; font-size: 21px; }
.daf-modal-dialog header span { color: #4d769b; font-size: 11px; font-weight: 900; }
.daf-modal-dialog header p { margin: 0; color: #627c95; font-size: 12px; }
.daf-modal-dialog header button { width: 34px; height: 34px; border: 1px solid #abc2d8; border-radius: 5px; background: #fff; color: #315c82; font-size: 23px; cursor: pointer; }
.daf-modal-body { max-height: calc(100vh - 220px); overflow: auto; padding: 20px 22px; background: #f8fbfe; }
.daf-modal-dialog > footer { display: flex; justify-content: center; gap: 12px; padding: 14px 20px 16px; border-top: 1px solid #c8d8e7; }
.daf-modal-dialog > footer button { min-width: 100px; height: 36px; border: 1px solid #a5bdd3; border-radius: 5px; background: linear-gradient(#fff,#e8f0f7); color: #315778; font-weight: 900; cursor: pointer; }
.daf-modal-dialog > footer button.primary { border-color: #2672af; background: linear-gradient(#64aade,#2878b7); color: #fff; box-shadow: 0 2px 0 #18598e; }
.daf-modal-field { display: grid; gap: 6px; margin-bottom: 12px; color: #315675; font-size: 12px; font-weight: 800; }
.daf-modal-field input, .daf-modal-field select { width: 100%; height: 38px; box-sizing: border-box; border: 1px solid #afc6dc; border-radius: 5px; padding: 0 10px; background: #fff; color: #183752; font-weight: 700; }
.daf-upload { position: relative; display: grid; grid-template-columns: 120px 100px 1fr; align-items: center; gap: 10px; min-height: 54px; padding: 9px 12px; border: 1px solid #b7cde1; border-radius: 6px; background: #fff; }
.daf-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.daf-upload b { display: inline-flex; justify-content: center; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #397cad; border-bottom-color: #225d8c; border-radius: 4px; background: linear-gradient(#fafdff 0%, #d9edf9 48%, #83b9dc 100%); color: #194e78; font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 2px 0 #6199bf, 0 5px 10px rgba(28,93,138,.1); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.daf-upload:hover b { filter: brightness(1.03); box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 3px 0 #4f89b2, 0 8px 14px rgba(28,93,138,.16); transform: translateY(-1px); }
.daf-upload small { overflow: hidden; color: #657e95; text-overflow: ellipsis; white-space: nowrap; }
.daf-receive-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.daf-receive-summary div { padding: 11px 12px; border: 1px solid #bfd2e4; border-radius: 5px; background: #fff; }
.daf-receive-summary span, .daf-receive-summary strong { display: block; }
.daf-receive-summary span { color: #72869a; font-size: 11px; }
.daf-receive-summary strong { margin-top: 3px; color: #183f66; font-size: 15px; }
@media (max-width: 1100px) { .daf-search { flex-wrap: wrap; } .daf-batch-toolbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 680px) { .daf-controls { padding: 10px; } .daf-keyword { flex: 1 1 100%; } .daf-modal-backdrop { padding: 8px; } .daf-modal-dialog { width: calc(100vw - 16px); } }

/* Reconciliation-only typography and searchable agent selection. */
.daf-reconcile-modal .daf-modal-dialog { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
.daf-reconcile-modal .daf-modal-dialog :is(input, select, textarea, button, label, span, p, small, h3) { font-family: inherit; }
.daf-reconcile-modal .daf-modal-body :is(input, select, textarea, button, label),
.daf-reconcile-modal .daf-modal-dialog > footer button { font-size: 13px; font-weight: 600; line-height: 1.5; }
.daf-reconcile-modal .daf-modal-body :is(small, [data-agent-hint]) { display: block; margin-top: 5px; color: #657e95; font-size: 12px; font-weight: 400; line-height: 1.5; }
.daf-reconcile-modal .daf-agent-search { position: relative; }
.daf-reconcile-modal .daf-agent-candidates { position: absolute; top: 38px; left: 0; right: 0; z-index: 5; max-height: 200px; overflow-y: auto; padding: 4px; border: 1px solid #b7ccdf; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(31,75,111,.14); }
.daf-reconcile-modal .daf-agent-candidates.hidden { display: none; }
.daf-reconcile-modal .daf-modal-dialog .daf-agent-option { display: block; width: 100%; min-height: 34px; padding: 7px 10px; margin: 0; border: 0; border-radius: 4px; background: transparent; color: #244b68; box-shadow: none; text-align: left; cursor: pointer; transform: none; }
.daf-reconcile-modal .daf-modal-dialog .daf-agent-option:hover,
.daf-reconcile-modal .daf-modal-dialog .daf-agent-option:focus { background: #e9f3fb; color: #155b92; outline: none; box-shadow: none; transform: none; }
.daf-reconcile-modal #dafAgentSearch.is-selected { border-color: #6d9dbf; background: #f6faff; }
.daf-reconcile-modal .daf-modal-dialog button:disabled { opacity: .5; cursor: not-allowed; }

.daf-reconcile-modal .daf-agent-option mark { padding: 1px 2px; border-radius: 3px; background: #deedf9; color: #125e94; font: inherit; font-weight: 700; }
