.wd-page { min-width: 0; }
.wd-tabs { margin-bottom: 16px; }
.wd-heading { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wd-heading h2, .wd-drawer h2 { margin: 0; font: var(--font-text-18-b); color: var(--blue-black); }
.wd-heading > span, .wd-drawer header span { font-size: 12px; color: var(--muted); }
.wd-heading-actions { display: flex; align-items: center; gap: 8px; }
.wd-quick-filters { justify-content: flex-start; }
.wd-quick-filters .client-quick-field { flex: 0 0 calc(25% - 6px); }
.wd-quick-filters .client-quick-field > span { display: none; }
.wd-quick-filters .client-quick-field select { width: 100%; }
.wd-filter-drawer .wd-filters { padding: 0; }
.wd-filter-drawer .wd-filter-actions { justify-content: flex-start; }
.wd-filters { padding: 0 16px 12px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; align-items: end; }
.wd-filters label { display: grid; gap: 6px; min-width: 0; font-size: 13px; color: var(--body-text); }
.wd-filters input, .wd-filters select { width: 100%; min-width: 0; height: 32px; padding: 4px 8px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; }
.wd-search { grid-column: span 2; }
.wd-filter-actions { display: flex; gap: 8px; }
.wd-kyb-checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.wd-kyb-checklist > div { display: grid; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.wd-kyb-checklist strong { font-size: 13px; color: var(--text); }
.wd-kyb-checklist small { color: var(--muted); line-height: 1.6; }
.wd-method-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.wd-method-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  background: #fff;
  color: var(--body-text);
  text-align: left;
}
.wd-method-card span { color: var(--blue-black); font-weight: 500; }
.wd-method-card small { color: var(--muted); line-height: 1.5; }
.wd-method-card strong { position: absolute; top: 10px; right: 10px; color: var(--brand); }
.wd-method-card:hover, .wd-method-card:focus-visible, .wd-method-card.selected { border-color: var(--brand); background: #f0f7ff; }
.wd-method-hint { margin: 0; color: var(--muted); font-size: 12px; }
.wd-kyc-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #f8fbff;
}
.wd-kyc-inline > div { display: grid; gap: 5px; min-width: 0; }
.wd-kyc-inline strong { color: var(--blue-black); font-size: 13px; }
.wd-kyc-inline small { color: var(--muted); line-height: 1.5; }
#wd-filter-error { color: var(--danger); font-size: 13px; margin: 0; grid-column: 1 / -1; }
#wd-filter-error:empty { display: none; }
.wd-table-scroll { overflow-x: auto; width: 100%; }
.wd-table { width: 100%; min-width: 1050px; table-layout: auto; border-collapse: collapse; }
.wd-table td, .wd-table th { white-space: nowrap; }
.wd-table .wd-note { min-width: 220px; max-width: 280px; white-space: normal; line-height: 1.6; }
.wd-table .wd-money { text-align: right; font-variant-numeric: tabular-nums; }
.wd-settlement-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wd-settlement-link:hover { color: var(--blue-black); }
.wd-table .wd-empty { height: 150px; text-align: center; position: static; }
.wd-empty p { color: var(--muted); margin: 8px 0; }
.wd-footer, .wd-pagination { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wd-pagination label { display: flex; gap: 6px; align-items: center; }
.wd-pagination select { min-height: 32px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface); color: var(--text); }
.wd-overlay { position: fixed; inset: 0; background: rgba(15, 27, 61, .32); z-index: 900; }
/* drawer geometry unified in drawer.css (.aff-drawer) */
.wd-drawer > header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wd-drawer > header > div { min-width: 0; }
.wd-drawer header span { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.wd-close { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 4px; background: var(--surface-soft); color: var(--body-text); font-size: 24px; cursor: pointer; }
.wd-detail-body { overflow-y: auto; min-height: 0; flex: 1; padding: 0 24px; }
.wd-detail-body > section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.wd-detail-body h3 { margin: 0 0 16px; font-size: 14px; color: var(--blue-black); }
.wd-detail-amount { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.wd-detail-amount > span:first-child { color: var(--muted); font-size: 13px; }
.wd-detail-amount > strong { font: var(--font-text-24-b); font-variant-numeric: tabular-nums; grid-column: 1; color: var(--text); }
.wd-detail-amount > .tag { grid-column: 2; grid-row: 1 / 3; }
.wd-status-note { padding: 12px; background: var(--surface-soft); border-radius: 4px; font-size: 13px; line-height: 1.7; color: var(--body-text); margin: 0 0 20px; }
.wd-timeline { list-style: none; padding: 0 0 0 18px; margin: 0; }
.wd-timeline li { position: relative; display: grid; gap: 6px; padding: 0 0 22px 12px; border-left: 1px solid var(--border); font-size: 13px; }
.wd-timeline li::before { position: absolute; content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); left: -4px; top: 3px; }
.wd-timeline li:last-child { border: 0; padding-bottom: 0; }
.wd-timeline span { color: var(--muted); font-size: 12px; }
.wd-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.wd-details dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.wd-details dd { margin: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.wd-drawer > footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.wd-page :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wd-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-withdraw-controls { align-items: end; }
.wd-withdraw-controls label { min-width: 160px; }
.wd-preview { margin-top: 12px; }
.wd-fee-tip {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d7e0ec;
  border-radius: 4px;
  background: #f8fbff;
  color: var(--body-text);
  font-size: 12px;
}
.wd-fee-tip small { color: var(--muted); line-height: 1.6; }
@media (max-width: 1199px) { .wd-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) { .wd-kyb-checklist { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .wd-method-list, .wd-kyc-inline { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; } }
@media (max-width: 767px) {
  .wd-filters { grid-template-columns: 1fr; }
  .wd-search { grid-column: auto; }
  .wd-quick-filters .client-quick-field { flex-basis: 100%; }
  .wd-filters input, .wd-filters select, .wd-page button, .wd-pagination select { min-height: 36px; }
  .wd-table th:first-child, .wd-table td:first-child { position: static; }
  /* mobile width unified in drawer.css */
  .wd-drawer > header, .wd-drawer > footer { padding: 16px; }
  .wd-detail-body { padding: 0 16px; }
}
@media (max-width: 479px) { .wd-details { grid-template-columns: 1fr; } }
