/* ─── Yields.exe — DeFi Yield Leaderboard ──────────────────── */
.window-yields {
  width: 780px;
  max-width: 95vw;
  min-height: 400px;
  max-height: min(600px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
}

.yields-warning {
  background: #ffffcc;
  border-bottom: 1px solid #d4d0c8;
  padding: 4px 8px;
  font-size: 10px;
  color: #666;
  font-family: Tahoma, sans-serif;
}

.yields-tabs {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  gap: 2px;
  border-bottom: 1px solid #808080;
  background: #d4d0c8;
}

.yields-tab {
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  padding: 2px 10px;
  border: 1px solid #808080;
  border-bottom: none;
  background: #d4d0c8;
  cursor: pointer;
  margin-bottom: -1px;
}

.yields-tab.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  font-weight: bold;
}

.yields-tab:hover:not(.active) {
  background: #e8e4dc;
}

.yields-spacer {
  flex: 1;
}

.yields-grid-wrap {
  flex: 1;
  overflow: auto;
  background: #fff;
  border: 1px inset #808080;
  margin: 0 2px;
}

.yields-grid {
  width: 100%;
  border-collapse: collapse;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
}

.yields-grid thead th {
  position: sticky;
  top: 0;
  background: #d4d0c8;
  border: 1px outset #fff;
  padding: 3px 6px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-weight: normal;
  font-size: 11px;
}

.yields-grid thead th:hover {
  background: #e8e4dc;
}

.yields-grid thead th.sorted-asc::after { content: ' \25B2'; font-size: 8px; }
.yields-grid thead th.sorted-desc::after { content: ' \25BC'; font-size: 8px; }

.yields-grid tbody td {
  padding: 3px 6px;
  border-bottom: 1px solid #e8e4dc;
  white-space: nowrap;
}

.yields-grid tbody tr:hover {
  background: #e0e8f0;
}

.yields-num {
  text-align: right;
}

.yields-empty {
  text-align: center;
  padding: 30px;
  color: #888;
}

.yields-pct-up { color: #006600; }
.yields-pct-down { color: #990000; }

.yields-il-none { color: #006600; }
.yields-il-medium { color: #886600; }
.yields-il-high { color: #990000; }

.yields-footer {
  display: flex;
  justify-content: space-between;
  padding: 3px 8px;
  font-size: 10px;
  color: #666;
  background: #d4d0c8;
  border-top: 1px solid #808080;
  font-family: Tahoma, sans-serif;
}

.yields-footer a {
  color: #0000cc;
}

/* Tooltip for row hover */
.yields-tooltip {
  position: absolute;
  background: #ffffee;
  border: 1px solid #808080;
  padding: 4px 8px;
  font-size: 10px;
  font-family: Tahoma, sans-serif;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
  .window-yields {
    width: 100%;
    max-width: 100%;
  }
}
