/* wgf-listview: the one Wowhead-style listview (wgf_listview.py). Tokens: --wh-*. Measured spec:
   header row 30px, data rows 53px (68px phone), 44px icon, name coloured by quality, 50 per page. */
.wlv { background: var(--wh-panel, #202020); border-radius: var(--wh-radius, 4px); margin: 8px 0 16px; max-width: 100%; min-width: 0; }
.wlv-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 8px 10px; font-size: var(--wh-fs-sm, 12px); color: var(--wh-muted, #888); }
.wlv-count { color: var(--wh-text, #bbb); }
.wlv-pager { display: flex; flex-wrap: wrap; gap: 4px; }
.wlv-pg { padding: 3px 9px; border-radius: var(--wh-radius, 4px); background: var(--wh-bar, #181818); color: var(--wh-link, #ffd100); text-decoration: none; white-space: nowrap; }
a.wlv-pg:hover { background: var(--wh-raise, #2a2a2a); }
.wlv-pg--off { color: var(--wh-muted, #888); opacity: .55; }
.wlv-note { margin: 0; padding: 0 10px 8px; font-size: var(--wh-fs-sm, 12px); color: var(--wh-muted, #888); }
.wlv-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.wlv-table { width: 100%; border-collapse: collapse; border: 0; font-size: var(--wh-fs, 14px); }
.wlv-th { height: 30px; padding: 0 10px; text-align: left; white-space: nowrap; font-size: var(--wh-fs-sm, 12px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--wh-muted, #888); background: var(--wh-bar, #181818);
  border-bottom: 1px solid var(--wh-border, #303030); }
.wlv-th a { color: inherit; text-decoration: none; display: inline-block; }
.wlv-th a:hover, .wlv-th.is-sorted a { color: var(--wh-heading, #fff); }
.wlv-arrow { font-size: 9px; margin-left: 5px; }
.wlv-td { height: 53px; padding: 6px 10px; border-top: 1px solid var(--wh-bar, #181818); vertical-align: middle; color: var(--wh-text, #bbb); }
.wlv-table tbody tr:first-child .wlv-td { border-top: 0; }
.wlv-tr:hover .wlv-td { background: var(--wh-raise, #2a2a2a); }
.wlv-num { text-align: center; }
.wlv-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wlv-name-text { display: flex; flex-direction: column; min-width: 0; }
.wlv-icon { width: 44px; height: 44px; flex: none; border-radius: var(--wh-radius, 4px); background: var(--wh-bar, #181818); }
.wlv-q { font-weight: 600; text-decoration: none; color: var(--wh-link, #ffd100); }
a.wlv-q:hover { text-decoration: underline; }
.wlv-q-poor { color: #9d9d9d; } .wlv-q-common { color: #fff; } .wlv-q-uncommon { color: #1eff00; }
.wlv-q-rare { color: #0070dd; } .wlv-q-epic { color: #a335ee; } .wlv-q-legendary { color: #ff8000; }
.wlv-q-artifact { color: #e6cc80; } .wlv-q-heirloom { color: #00ccff; }
.wlv-sub { font-size: var(--wh-fs-sm, 12px); color: var(--wh-muted, #888); }
.wlv-empty { margin: 0; padding: 24px 12px; text-align: center; color: var(--wh-muted, #888); }
/* tabs: 50px strip */
.wlv-tabs { background: var(--wh-bar, #181818); overflow-x: auto; }
.wlv-tabs ul { display: flex; margin: 0; padding: 0; list-style: none; min-height: 50px; }
.wlv-tab { display: flex; align-items: center; height: 50px; padding: 0 16px; white-space: nowrap; color: var(--wh-text, #bbb);
  text-decoration: none; border-bottom: 3px solid transparent; }
.wlv-tab:hover { color: var(--wh-heading, #fff); }
.wlv-tab.is-active { color: var(--wh-accent, #ffd100); border-bottom-color: var(--wh-accent, #ffd100); }
.wlv-tab-n { margin-left: 5px; color: var(--wh-muted, #888); }
.wlv-pane-h { font-size: var(--wh-fs, 14px); margin: 12px 10px 0; color: var(--wh-heading, #fff); }
.wlv-tabbed.wlv-js .wlv-pane-h { display: none; }
.wlv-tabbed.wlv-js .wlv-pane { display: none; }
.wlv-tabbed.wlv-js .wlv-pane.is-active { display: block; }
/* filter form: compact grid */
.wlv-filter { background: var(--wh-bar, #181818); border: 1px solid var(--wh-border, #303030); border-radius: var(--wh-radius, 4px);
  padding: 10px; margin: 8px 0; max-width: 100%; box-sizing: border-box; }
.wlv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 8px 12px; align-items: end; }
.wlv-f { display: flex; flex-direction: column; gap: 3px; font-size: var(--wh-fs-sm, 12px); min-width: 0; }
.wlv-f--wide { grid-column: span 2; }
.wlv-f-l { color: var(--wh-muted, #888); text-transform: uppercase; letter-spacing: .05em; }
.wlv-f input[type=search], .wlv-f input[type=number], .wlv-f select { min-height: 30px; box-sizing: border-box; width: 100%; padding: 0 8px;
  background: var(--wh-panel, #202020); color: var(--wh-text, #bbb); border: 1px solid var(--wh-border, #303030); border-radius: var(--wh-radius, 4px); }
.wlv-f-pair { display: flex; align-items: center; gap: 6px; }
.wlv-f--check { flex-direction: row; align-items: center; gap: 6px; }
.wlv-more { margin-top: 8px; }
.wlv-more summary { cursor: pointer; color: var(--wh-link, #ffd100); font-size: var(--wh-fs-sm, 12px); margin-bottom: 8px; }
.wlv-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.wlv-reset { color: var(--wh-muted, #888); font-size: var(--wh-fs-sm, 12px); }
@media (max-width: 640px) {
  .wlv-td { height: 68px; padding: 6px; }
  .wlv-hide-phone { display: none; }
  .wlv-f--wide { grid-column: auto; }
  .wlv-grid { grid-template-columns: 1fr 1fr; }
  .wlv-name-text { max-width: 55vw; }
}
