/* Approved opponent cards; retain last-meeting details on desktop. */
@media (max-width: 650px) {
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody { gap: 10px; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr:has(td.column-team_name) {
    position: relative; display: flex !important; flex-wrap: wrap; align-items: baseline;
    gap: 0; padding: 16px 72px 16px 16px;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr:has(td.column-team_name)::after {
    content: ''; order: 3; flex-basis: 100%; height: 9px;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-team_crest {
    order: 1; flex: 0 0 24px; width: 24px !important; max-width: 24px !important; align-self: center;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-team_crest img {
    display: block; width: 24px !important; height: 28px !important; max-width: 24px !important; max-height: 28px !important;
    object-fit: contain !important; margin: 0 !important;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-team_name {
    order: 2; flex: 1 0 calc(100% - 33px); margin-left: 9px; align-self: center; padding: 0 !important; min-width: 0 !important; white-space: normal !important;
    color: #173f59 !important; font: 700 16px/22px 'DM Sans', Arial, sans-serif !important; overflow-wrap: anywhere;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td:is(.column-matches_played,.column-win_ratio) {
    display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; max-width: none !important;
    font: 700 13px/18px 'DM Sans', Arial, sans-serif !important; color: #173f59 !important; white-space: nowrap !important;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-matches_played { order: 4; margin-right: 16px; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-matches_played::before { content: none; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-matches_played::after { content: ' matches'; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-win_ratio { order: 5; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-win_ratio::after { content: ' win' !important; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td:is(.column-matches_played,.column-win_ratio)::after {
    color: #637083; font: 400 12px/18px 'DM Sans', Arial, sans-serif;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .win-meter { display: inline; font: inherit; color: inherit; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .win-meter i { display: none; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-pilot_record {
    order: 6; flex-basis: 100%; margin-top: 10px; padding: 0 !important; border: 0 !important; text-align: left !important; max-width: none !important;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-pilot_record::before { content: none !important; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .wdl { gap: 6px; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .wdl span { height: 26px; padding: 5px 8px; font: 700 11px/16px 'DM Sans', Arial, sans-serif; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .wdl .w { background: #e7f4ed !important; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .wdl .d { background: #eef2f6 !important; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .wdl .l { background: #fbecee !important; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-pilot_last_meeting { display: none !important; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-masterdetail {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 44px !important; max-width: 44px !important;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr td.column-masterdetail br { display: none; }
  #brfc-pilot.h2h-search .panel .wpdt-c table.wpDataTable tbody tr .master_detail_column_btn {
    width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; border-radius: 8px !important; margin: 0 !important;
  }
  #brfc-pilot.h2h-search .panel .wpdt-c .master_detail_column_btn:focus-visible { outline: 2px solid #0877cf; outline-offset: 3px; }
}
