/* PC account records: bets, wallet, recharge, cashbacks */
.desktop-records-page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.desktop-records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.desktop-records-header-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
}

.desktop-records-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.desktop-records-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-active);
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.desktop-records-action-btn:hover {
  background: rgba(0, 102, 204, 0.14);
  border-color: var(--border-active);
}

.desktop-records-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.desktop-records-filter-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.desktop-records-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.desktop-records-filter-group-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-records-filter-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.desktop-records-filter-chip {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-hover);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.desktop-records-filter-chip:hover {
  color: var(--text);
  border-color: rgba(0, 102, 204, 0.25);
}

.desktop-records-filter-chip.active {
  color: var(--primary-light);
  background: rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.35);
}

.desktop-wallet-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.desktop-wallet-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.desktop-wallet-subnav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.desktop-wallet-subnav-link.active {
  color: var(--primary-light);
  background: rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.28);
}

.desktop-records-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.desktop-records-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.desktop-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.desktop-records-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-light);
  background: var(--desktop-bg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.desktop-records-table th.num-th {
  text-align: right;
}

.desktop-records-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.desktop-records-table tbody tr:nth-child(even) {
  background: var(--bg-hover);
}

.desktop-records-table tbody tr.hover-row {
  transition: background 0.15s;
}

.desktop-records-table tbody tr.hover-row:hover {
  background: rgba(0, 102, 204, 0.06);
}

.desktop-records-table .num-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.desktop-records-table .date-cell {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 12px;
}

.desktop-records-table .link-cell {
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: none;
}

.desktop-records-table .link-cell:hover {
  text-decoration: underline;
}

.desktop-records-pagination {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--desktop-bg);
}

.desktop-records-loading,
.desktop-records-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.desktop-records-table .state-row td {
  padding: 0;
  border-bottom: none;
  background: transparent !important;
}

.desktop-records-table-empty {
  text-align: center;
  padding: 56px 16px !important;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.desktop-records-table-empty .empty-hint {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
}

.desktop-records-loading-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 48px 24px;
}

.desktop-records-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.desktop-records-status.status-won { background: rgba(52, 199, 89, 0.12); color: #4cd964; }
.desktop-records-status.status-lost { background: rgba(255, 69, 58, 0.12); color: #ff453a; }
.desktop-records-status.status-pending { background: rgba(0, 102, 204, 0.12); color: var(--primary-light); }
.desktop-records-status.status-push { background: rgba(100, 100, 100, 0.12); color: #aaa; }
.desktop-records-status.status-cancelled { background: rgba(100, 100, 100, 0.1); color: #777; }
.desktop-records-status.status-default { background: rgba(100, 100, 100, 0.1); color: #888; }

.desktop-records-amount.pos { color: var(--primary-light); }
.desktop-records-amount.neg { color: var(--danger); }
.desktop-records-amount.zero { color: var(--text-muted); }
