.mw-filter,
.mw-table {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.mw-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--color-border, #d6e0e9);
  border-radius: var(--radius-card, 16px);
  background: var(--color-surface, #fff);
  box-shadow: var(--shadow-card, 0 10px 30px rgb(30 48 70 / 7%));
}

.mw-filter label {
  display: grid;
  flex: 1 1 220px;
  min-width: 0;
  gap: 6px;
  color: var(--color-text-secondary, #4a5d73);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.mw-filter label .input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.mw-filter > .button {
  flex: 0 0 auto;
  min-height: 40px;
}

.mw-table {
  margin-top: 16px;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--color-border, #d6e0e9);
  border-radius: var(--radius-card, 16px);
  background: var(--color-surface, #fff);
  scrollbar-color: #aebfd0 #eef3f7;
  scrollbar-width: thin;
}

.mw-table table {
  width: 100%;
  min-width: 920px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.mw-table th {
  padding: 12px 14px;
  background: var(--color-surface-muted, #f6f8fb);
  color: var(--color-text-secondary, #4a5d73);
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 18px;
  white-space: nowrap;
}

.mw-table td {
  min-width: 0;
  padding: 9px 10px;
  color: var(--color-text, #152235);
  line-height: 20px;
  vertical-align: top;
}

.mw-table td small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted, #6f7f91);
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.mw-wrap {
  max-width: 210px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mw-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.mw-status.pending {
  border-color: #efdbad;
  background: #fff5dd;
  color: var(--color-warning, #9a6208);
}

.mw-status.completed {
  border-color: #bee5d8;
  background: #e9f7f1;
  color: var(--color-success, #087a55);
}

.mw-status.cancelled {
  border-color: #dce3ea;
  background: #f1f4f7;
  color: var(--color-disabled, #687586);
}

.mw-actions {
  display: flex;
  min-width: 160px;
  flex-wrap: wrap;
  gap: 6px;
}

.mw-actions .mini-action {
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border-radius: var(--radius-control, 9px);
  white-space: nowrap;
}

.mw-actions .danger {
  color: var(--color-danger, #bd3e4b);
}

@media (max-width: 700px) {
  .mw-filter {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }

  .mw-filter label,
  .mw-filter > .button {
    width: 100%;
    min-width: 0;
  }

  .mw-filter > .button {
    min-height: 44px;
  }

  .mw-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mw-table table,
  .mw-table tbody,
  .mw-table tr,
  .mw-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .mw-table table {
    border: 0;
  }

  .mw-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mw-table tr {
    box-sizing: border-box;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid var(--color-border, #d6e0e9);
    border-radius: 14px;
    background: var(--color-surface, #fff);
    box-shadow: 0 8px 24px rgb(30 48 70 / 5%);
  }

  .mw-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
    color: var(--color-text, #152235);
    line-height: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mw-table td::before {
    color: var(--color-text-muted, #6f7f91);
    font-size: 12px;
    line-height: 18px;
  }

  .mw-table td:nth-child(1)::before { content: "提现单 / 时间"; }
  .mw-table td:nth-child(2)::before { content: "商户 / 申请人"; }
  .mw-table td:nth-child(3)::before { content: "国家 / 币种"; }
  .mw-table td:nth-child(4)::before { content: "金额 / 应付"; }
  .mw-table td:nth-child(5)::before { content: "收款资料"; }
  .mw-table td:nth-child(6)::before { content: "说明"; }
  .mw-table td:nth-child(7)::before { content: "状态"; }
  .mw-table td:nth-child(8)::before { content: "操作"; }

  .mw-table td[colspan] {
    display: block;
    padding: 22px 8px;
    text-align: center;
  }

  .mw-table td[colspan]::before {
    display: none;
    content: none;
  }

  .mw-table .mw-actions {
    min-width: 0;
    align-items: stretch;
    gap: 8px;
  }

  .mw-actions .mini-action {
    min-height: 44px;
    flex: 1 1 132px;
  }
}

@media (max-width: 430px) {
  .mw-filter {
    padding: 13px;
  }

  .mw-table tr {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .mw-table td {
    grid-template-columns: minmax(86px, 38%) minmax(0, 1fr);
    gap: 8px;
  }

  .mw-actions .mini-action {
    flex-basis: 100%;
  }
}

@media (max-width: 390px) {
  .mw-table td {
    grid-template-columns: minmax(82px, 40%) minmax(0, 1fr);
  }
}

.mw-page-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:12px}

.mw-value{min-width:0;overflow-wrap:anywhere}.mw-value>b{display:block}.mw-money{text-align:right;font-variant-numeric:tabular-nums}.mw-range{margin:8px 0;color:var(--muted,#69788b);font-size:12px}.mw-status.pending{background:#f1f4f7;color:#69788b;border-color:#dce3ea}.mw-status.cancelled{background:#fceff1;color:#c33e4a;border-color:#efd1d6}.mw-dialog{position:fixed;inset:0;z-index:2600;display:grid;place-items:center;padding:16px;background:rgb(16 36 58 / 55%);box-sizing:border-box}.mw-dialog[hidden]{display:none}.mw-dialog-panel{width:min(680px,100%);max-height:calc(100dvh - 32px);overflow:auto;border-radius:var(--radius-card,16px);background:var(--color-surface,#fff);box-shadow:var(--shadow-card)}.mw-dialog-panel>header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line,#d6e0e9);position:sticky;top:0;background:var(--color-surface,#fff)}.mw-dialog-panel h3{margin:0;font-size:16px}.mw-dialog-panel header button{width:36px;height:36px;border:0;background:transparent;font-size:22px}.mw-dialog-panel dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:18px}.mw-dialog-panel dt{color:var(--muted,#69788b);font-size:12px}.mw-dialog-panel dd{margin:4px 0 0;font-size:13px;overflow-wrap:anywhere}.mw-value .mini-action{color:var(--blue,#216bc4)}.mw-actions [data-mw-action=complete]{color:#a45f0a}.mw-actions [data-mw-action=cancel]{color:#c33e4a}
@media(max-width:700px){.mw-table td>.mw-value{grid-column:2}.mw-table td.mw-money{text-align:left}.mw-table .mw-actions{display:flex;flex-wrap:wrap}.mw-dialog-panel dl{grid-template-columns:1fr}.mw-dialog-panel header button{min-width:44px;min-height:44px}}
