.woh-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 16px; }
.woh-filters label { display: flex; flex-direction: column; gap: 5px; color: #667085; font-size: 12px; font-weight: 600; }
.woh-filters input, .woh-filters select { box-sizing: border-box; min-width: 130px; height: 36px; padding: 0 9px; border: 1px solid #dcdfe6; border-radius: 7px; background: #fff; color: #344054; font: inherit; }
.woh-filters input[type=date] { min-width: 145px; }
.woh-filter-wide { flex: 1; min-width: 220px; }
.woh-filter-wide input { width: 100%; }
.woh-more { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 0 16px 16px; border-top: 1px dashed #e4e7ed; }
.woh-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: #fcfdff; }
.woh-toolbar .btn { min-height: 33px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.woh-toolbar .btn.print { border-color: #2563eb; background: #2563eb; color: #fff; }
.woh-toolbar .btn.one-one { border-color: #67c23a; background: #67c23a; color: #fff; }
.woh-toolbar .btn.one-multi { border-color: #e6a23c; background: #e6a23c; color: #fff; }
.woh-toolbar .btn.danger { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.woh-toolbar .btn.force { border-color: #fecaca; background: #dc2626; color: #fff; }
.woh-include-batched { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #475467; font-size: 12px; }
/* 打单后自动建批次的小开关 */
.woh-auto-batch { display: inline-flex; align-items: center; gap: 6px; color: #475467; font-size: 12px; cursor: pointer; white-space: nowrap; }
.woh-auto-batch input { width: 14px; height: 14px; cursor: pointer; }
.woh-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.woh-summary span { padding: 5px 9px; border: 1px solid #e4e7ed; border-radius: 8px; background: #f8fafc; color: #667085; font-size: 12px; }
.woh-summary b { color: #1f2937; }
/* 页头「已打印未发货」可点小按钮：点一下就把状态筛成这一类 */
.woh-summary-filter { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border: 1px solid #e4e7ed; border-radius: 8px; background: #f8fafc; color: #667085; font: inherit; font-size: 12px; cursor: pointer; }
.woh-summary-filter b { color: #1f2937; }
.woh-summary-filter:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.woh-summary-filter.active { border-color: #2563eb; background: #2563eb; color: #fff; }
.woh-summary-filter.active b { color: #fff; }
.woh-table-wrap { overflow-x: auto; }
.woh-table { min-width: 1850px; table-layout: fixed; }
.woh-table th { padding: 10px 8px; border-bottom: 1px solid #e4e7ed; background: #f8fafc; color: #667085; font-size: 11px; text-align: left; white-space: nowrap; }
/* 行距（2026-11-23）：上下内边距由 10px 减半到 5px；表格内按钮压扁，避免按钮把行高撑起来 */
.woh-table td { padding: 5px 8px; border-bottom: 1px solid #eef1f5; vertical-align: top; color: #475467; font-size: 12px; }
.woh-table td .btn { height: 26px; min-height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12px; line-height: 24px; white-space: nowrap; }
.woh-ops-col, .woh-ops-cell { width: 158px; }
.woh-ops { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.woh-expand-col .btn { min-width: 26px; padding: 0 6px; }
.woh-table tr:hover td { background: #fbfdff; }
.woh-check-col { width: 42px; text-align: center !important; }
.woh-expand-col { width: 42px; text-align: center !important; }
.woh-address { overflow-wrap: anywhere; line-height: 1.5; }
.woh-money { text-align: right; font-variant-numeric: tabular-nums; }
.woh-remaining.overdue { color: #dc2626; font-weight: 700; }
.woh-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #eff6ff; color: #2563eb; white-space: nowrap; }
.woh-expanded-row td { padding: 0; background: #f8fafc; }
.woh-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; padding: 14px 18px; }
.woh-detail div { font-size: 12px; line-height: 1.65; }
.woh-detail b { color: #344054; }
/* 分页条（2026-11-23：从表格下方移到筛选栏「查询」按钮右侧） */
.woh-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 12px 16px; color: #667085; font-size: 12px; }
.woh-page-bar { display: flex; align-items: center; gap: 9px; margin-left: auto; padding-bottom: 1px; color: #667085; font-size: 12px; white-space: nowrap; }
.woh-page-bar .btn { min-height: 36px; }
.woh-page-info { white-space: nowrap; }
.woh-page-size { position: relative; }
.woh-page-size-trigger { position: relative; z-index: 45; display: inline-flex; align-items: center; gap: 6px; min-width: 122px; height: 36px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 7px; background: #fff; color: #344054; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.woh-page-size.open .woh-page-size-trigger { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.woh-page-size-caret { margin-left: auto; color: #98a2b3; font-size: 10px; }
.woh-page-size-mask { position: fixed; inset: 0; z-index: 40; }
.woh-page-size-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 41; width: 246px; max-height: 430px; overflow: auto; padding: 6px; border: 1px solid #e4e7ed; border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.16); }
.woh-page-size-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; }
.woh-page-size-row:hover { background: #f5f8ff; }
.woh-page-size-row.active { background: #eef4ff; }
.woh-page-size-pick { flex: 1; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #344054; font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.woh-page-size-row.active .woh-page-size-pick { color: #1d4ed8; }
.woh-page-size-setdefault { flex: none; height: 26px; padding: 0 8px; border: 1px solid #d7dfe9; border-radius: 6px; background: #fff; color: #667085; font: inherit; font-size: 11px; cursor: pointer; }
.woh-page-size-setdefault:hover { border-color: #2563eb; color: #2563eb; }
.woh-page-size-badge { flex: none; padding: 3px 7px; border-radius: 999px; background: #e8f7ee; color: #15803d; font-size: 11px; font-weight: 700; }
.woh-empty { padding: 40px; text-align: center; color: #98a2b3; }
.woh-modal-mask { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15,23,42,.48); }
.woh-modal { box-sizing: border-box; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.3); }
.woh-modal h3 { margin: 0 0 14px; color: #1f2937; }
.woh-modal-close { float: right; border: 0; background: transparent; color: #98a2b3; font-size: 26px; cursor: pointer; }
.woh-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.woh-form label { display: flex; flex-direction: column; gap: 6px; color: #475467; font-size: 12px; font-weight: 600; }
.woh-form input, .woh-form select, .woh-form textarea { box-sizing: border-box; min-height: 38px; padding: 7px 9px; border: 1px solid #dcdfe6; border-radius: 8px; font: inherit; }
.woh-form .wide { grid-column: 1 / -1; }
.woh-item-list { max-height: 300px; overflow: auto; border: 1px solid #e4e7ed; border-radius: 9px; }
.woh-item { display: grid; grid-template-columns: 30px 1fr 90px; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #eef1f5; }
.woh-item:last-child { border-bottom: 0; }
.woh-item small { color: #98a2b3; }
.woh-modal-btns { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.woh-result { margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: #f0fdf4; color: #166534; font-size: 12px; }
.woh-print-jobs { width: min(900px, 100%); }
.woh-print-job { display: grid; grid-template-columns: 150px 100px 90px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef1f5; font-size: 12px; }
@media (max-width: 760px) {
  .woh-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .woh-filter-wide { grid-column: 1 / -1; }
  .woh-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .woh-toolbar .btn { width: 100%; }
  .woh-include-batched { grid-column: 1 / -1; margin-left: 0; }
  .woh-pagination { justify-content: center; }
  .woh-page-bar { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-end; margin-left: 0; }
  .woh-page-size-menu { right: auto; left: 0; }
  .woh-form { grid-template-columns: 1fr; }
  .woh-form .wide { grid-column: auto; }
  .woh-detail { grid-template-columns: 1fr; }
  .woh-print-job { grid-template-columns: 1fr 1fr; }
}