
.xw-batch-history-backdrop{position:fixed;inset:0;z-index:1800;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(20,31,48,.36);backdrop-filter:blur(2px)}
.xw-batch-history{box-sizing:border-box;width:min(1320px,100%);max-height:calc(100dvh - 56px);padding:32px 36px 0;border:1px solid #e0e5ed;border-radius:16px;background:#fff;box-shadow:0 24px 72px rgba(21,35,58,.18);color:#223049;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
.xw-batch-history *{box-sizing:border-box}
.xw-batch-history button,.xw-batch-history input{font:inherit}
.xw-batch-history button{cursor:pointer;transition:background .15s,border-color .15s}
.xw-batch-history button:focus-visible,.xw-batch-history input:focus-visible,.xw-batch-history-scroll:focus-visible{outline:2px solid #1765ff;outline-offset:3px}
.xw-batch-history button:disabled{cursor:default}
.xw-batch-history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 30px;padding:0;border:0}
.xw-batch-history-heading h2{margin:0;font-size:26px;font-weight:700;letter-spacing:-.5px;color:#182235}
.xw-batch-close{width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#60718a;display:grid;place-items:center}
.xw-batch-close:hover{background:#f2f5fa;color:#24344d}
.xw-batch-history-toolbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:28px}
.xw-batch-status-filters,.xw-batch-history-search-filters{display:flex;align-items:center;gap:10px}
.xw-batch-status-filters{flex-shrink:0}
.xw-batch-status-filters button{height:43px;padding:0 19px;display:flex;align-items:center;gap:9px;border:1px solid #d5ddea;border-radius:10px;background:#fff;color:#354460;white-space:nowrap}
.xw-batch-status-filters button:hover{background:#f5f8ff;border-color:#a5bffd}
.xw-batch-status-filters button.selected{background:#1765ff;border-color:#1765ff;color:#fff}
.xw-batch-history-search-filters{flex:1;justify-content:flex-end;min-width:0;gap:18px}
.xw-batch-search{display:flex;align-items:center;gap:10px;height:43px;flex:0 1 345px;min-width:200px;padding:0 13px;border:1px solid #d5ddea;border-radius:9px;color:#7c8ba3;background:#fff}
.xw-batch-search:focus-within{border-color:#85aaff;box-shadow:0 0 0 3px #edf3ff}
.xw-batch-search svg{flex-shrink:0}
.xw-batch-search input{width:100%;min-width:0;height:100%;padding:0;border:0;background:transparent;color:#223049;outline:none!important;box-shadow:none!important}
.xw-batch-search input::placeholder{color:#8a99b1}
.xw-batch-history .ledger-date-filter{position:relative;flex:0 0 auto;width:auto}
.xw-batch-history .ledger-date-trigger{height:43px;min-width:146px;border:1px solid #d5ddea;border-radius:9px;display:flex;align-items:center;background:#fff}
.xw-batch-history .ledger-date-trigger-main{height:41px;min-width:140px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 14px;border:0;background:transparent;color:#344966;white-space:nowrap}
.xw-batch-history .ledger-date-clear{flex-shrink:0}
.xw-batch-history .ledger-date-popover{z-index:10;right:0;left:auto;max-width:calc(100vw - 80px);max-height:65dvh;overflow:auto}
.xw-batch-history-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;border-radius:5px 5px 0 0;scrollbar-gutter:stable}
.xw-batch-history-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0}
.xw-batch-col-id{width:26%}.xw-batch-col-accounts{width:25%}.xw-batch-col-progress{width:23%}.xw-batch-col-actions{width:26%}
.xw-batch-history-table th{position:sticky;top:0;z-index:1;padding:15px 18px;background:#f5f7fb;color:#455774;font-size:14px;font-weight:600;text-align:left;white-space:nowrap;border-bottom:1px solid #dce3ef}
.xw-batch-history-table td{padding:24px 18px;vertical-align:middle;text-align:left;border-bottom:1px solid #e0e7f1;background:white}
.xw-batch-history-table tbody tr:hover td{background:#fcfdff}
.xw-batch-id{display:block;font-size:16px;font-weight:650;color:#192b45}
.xw-batch-date{margin-top:6px;color:#566986;white-space:nowrap;font-size:14px}
.xw-batch-archives{display:flex;align-items:baseline;gap:9px;margin-top:8px;font-size:13px;color:#71829c}
.xw-batch-archives>div{display:flex;flex-wrap:wrap;gap:4px 10px}
.xw-batch-archives button{padding:0;border:0;background:transparent;color:#1765ff;font-size:13px;text-align:left;overflow-wrap:anywhere}
.xw-batch-archives button:hover{text-decoration:underline}
.xw-batch-accounts{font-size:14px;line-height:1.7;color:#2b3c56;overflow-wrap:anywhere}
.xw-batch-account-count{display:block;margin-top:6px;font-size:14px;color:#71829c}
.xw-batch-progress{width:100%;max-width:220px}
.xw-batch-pending{color:#354864;font-size:14px;white-space:nowrap}
.xw-batch-pending strong{font-size:20px;font-weight:600;color:#e87714;vertical-align:baseline}
.xw-batch-progress-track{width:100%;height:7px;margin:12px 0 9px;overflow:hidden;background:#e8edf5;border-radius:99px}
.xw-batch-progress-track>span{display:block;height:100%;border-radius:99px;background:#1765ff;transition:width .2s}
.xw-batch-progress>small{display:block;font-size:13px;color:#61718a;white-space:nowrap}
.xw-batch-progress.completed .xw-batch-pending strong{font-size:15px;color:#07855d}
.xw-batch-progress.completed .xw-batch-progress-track>span{background:#0a9c72}
.xw-batch-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;white-space:nowrap}
.xw-batch-action{height:40px;min-width:94px;padding:0 14px;border:1px solid #77a5ff;border-radius:8px;background:#fff;color:#1765ff;font-size:14px!important}
.xw-batch-action:hover{background:#eff5ff}
.xw-batch-action.primary{background:#1765ff;border-color:#1765ff;color:#fff}
.xw-batch-action.primary:hover{background:#0755e9}
.xw-batch-action:disabled{opacity:.45}
.xw-batch-view{padding:4px 0;border:0;background:transparent;color:#1765ff;font-size:14px!important}
.xw-batch-view:hover{text-decoration:underline}
.xw-batch-history-empty{padding:54px 24px;text-align:center;color:#7b8aa0}
.xw-batch-history-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:18px 0;color:#7b8ca5;font-size:14px;background:#fff}
.xw-batch-history-footer nav{display:flex;align-items:center;gap:9px}
.xw-batch-history-footer nav button,.xw-batch-page{min-width:38px;height:36px;border:1px solid #dce4f0;border-radius:7px;display:grid;place-items:center;background:white;color:#7385a0}
.xw-batch-history-footer nav button:disabled{color:#b8c1d0;border-color:#edf0f5}
.xw-batch-history-footer nav button:hover:not(:disabled){background:#f0f5ff;color:#1765ff;border-color:#a5bfff}
.xw-batch-page{background:#1765ff;border-color:#1765ff;color:white;font-size:15px}
.xw-batch-pages{padding-right:3px}
.xw-chevron-prev{transform:rotate(90deg)}.xw-chevron-next{transform:rotate(-90deg)}
@media(max-width:1050px){.xw-batch-history{padding:25px 24px 0}.xw-batch-history-toolbar{flex-wrap:wrap;gap:16px}.xw-batch-history-search-filters{flex:1 0 100%;justify-content:flex-start}.xw-batch-search{flex:1}.xw-batch-history-table{min-width:0}.xw-batch-history-table th,.xw-batch-history-table td{padding-left:12px;padding-right:12px}.xw-batch-col-id{width:29%}.xw-batch-col-accounts{width:27%}.xw-batch-col-progress{width:25%}.xw-batch-col-actions{width:19%}.xw-batch-row-actions{flex-direction:column;gap:10px;align-items:center}.xw-batch-history-heading{margin-bottom:22px}.xw-batch-history-toolbar{margin-bottom:22px}}
@media(max-width:600px){.xw-batch-history-backdrop{padding:12px}.xw-batch-history{padding:20px 16px 0;max-height:calc(100dvh - 24px)}.xw-batch-history-heading h2{font-size:22px}.xw-batch-status-filters button{padding:0 14px}.xw-batch-history-search-filters{gap:10px}.xw-batch-search{min-width:140px}.xw-batch-history .ledger-date-trigger{min-width:90px}.xw-batch-history .ledger-date-trigger-main{min-width:88px;padding:0 8px}.xw-batch-history .ledger-date-popover{max-width:calc(100vw - 40px)}}
@media(prefers-reduced-motion:reduce){.xw-batch-progress-track>span{transition:none}}

@media(max-width:700px){.xw-batch-history-table colgroup,.xw-batch-history-table thead{display:none}.xw-batch-history-table tbody{display:block}.xw-batch-history-table tr{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px 0;border-bottom:1px solid #e0e7f1}.xw-batch-history-table td{display:block;padding:0 6px;border:0;min-width:0}.xw-batch-history-table td:nth-child(2){text-align:right}.xw-batch-row-actions{align-items:flex-end}.xw-batch-history-toolbar{margin-bottom:10px}.xw-batch-progress{max-width:none}.xw-batch-id{font-size:15px}}

@media(min-width:1051px){.xw-batch-history{width:min(1200px,100%);padding:40px 46px 0}.xw-batch-history-heading{margin-bottom:34px}.xw-batch-history-heading h2{font-size:30px}.xw-batch-history-toolbar{margin-bottom:36px;gap:24px}.xw-batch-status-filters button{height:48px;font-size:16px;padding:0 20px}.xw-batch-search{height:48px;flex-basis:330px}.xw-batch-history .ledger-date-trigger{height:48px;min-width:140px}.xw-batch-history .ledger-date-trigger-main{height:46px;min-width:136px}.xw-batch-history-table th{padding:18px;font-size:16px}.xw-batch-history-table td{padding:30px 18px}.xw-batch-col-id{width:28%}.xw-batch-col-accounts{width:25%}.xw-batch-col-progress{width:24%}.xw-batch-col-actions{width:23%}.xw-batch-id{font-size:18px}.xw-batch-date{font-size:16px}.xw-batch-archives,.xw-batch-archives button{font-size:15px}.xw-batch-accounts,.xw-batch-account-count{font-size:16px}.xw-batch-pending{font-size:16px}.xw-batch-pending strong{font-size:24px}.xw-batch-progress-track{height:9px;margin:14px 0 10px}.xw-batch-progress>small{font-size:15px}.xw-batch-row-actions{gap:22px}.xw-batch-action{height:44px;min-width:104px;font-size:16px!important}.xw-batch-view{font-size:16px!important}.xw-batch-history-footer{min-height:86px;font-size:16px}}

/* Compact rows requested after production review. */
.xw-batch-history-table th{padding:12px 18px;font-size:14px}
.xw-batch-history-table td{height:104px;padding:16px 18px}
.xw-batch-id{font-size:16px;line-height:1.4}
.xw-batch-date{margin-top:4px;font-size:13px}
.xw-batch-archives{margin-top:5px;gap:7px;font-size:12px}
.xw-batch-archives button{font-size:12px}
.xw-batch-accounts{font-size:14px;line-height:1.5}
.xw-batch-account-count{margin-top:4px;font-size:13px}
.xw-batch-pending{font-size:14px}
.xw-batch-pending strong{font-size:20px}
.xw-batch-progress-track{height:6px;margin:9px 0 7px}
.xw-batch-progress>small{font-size:12px}
.xw-batch-action{height:34px;min-width:88px;padding:0 12px;font-size:14px!important;border-radius:7px}
.xw-batch-view{font-size:14px!important}
.xw-batch-row-actions{gap:14px}
@media(max-width:1050px){.xw-batch-history-table th,.xw-batch-history-table td{padding-left:12px;padding-right:12px}.xw-batch-row-actions{gap:7px}}
@media(max-width:700px){.xw-batch-history-table td{height:auto;padding:0 6px}.xw-batch-history-table tr{padding:14px 0;gap:12px}}
