/* Вынесено из tema/rankedin_new/tournament_draws_standing.tpl — 20261108, 1:1 без изменений.
   Правки стилей теперь только здесь, в tpl CSS не возвращать. */

/* === source: tournament_draws_standing.tpl (строки 32–167) === */

#standing-table .stand-player-info {
  display: inline-flex !important;
  flex-direction: column !important;
  vertical-align: middle !important;
  text-align: left !important;
  max-width: 240px !important;
  line-height: 1.25 !important;
}
#standing-table .stand-player-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: inherit !important;
  max-width: 220px !important;
  line-height: 1.25 !important;
}
#standing-table a.stand-player-link {
  cursor: pointer !important;
  color: inherit !important;
}
#standing-table a.stand-player-link:hover .rr-player-last {
  color: var(--teal, #0d9488) !important;
}
#standing-table .stand-player-plain {
  cursor: default !important;
  color: inherit !important;
  user-select: text !important;
}
#standing-table .rr-player-last {
  display: block !important;
  font-family: var(--pr-font-ui, Inter, system-ui, sans-serif)!important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: var(--text, #0f172a) !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
#standing-table .rr-player-first {
  display: block !important;
  font-family: var(--pr-font-ui, Inter, system-ui, sans-serif)!important;
  font-weight: 500 !important;
  font-size: 11.5px !important;
  color: var(--text-muted, #64748b) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
.diff-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}
.diff-pos {
  color: var(--teal, #0d9488);
}
.diff-neg {
  color: #ef4444;
}
.diff-zero {
  color: var(--text-muted, #94a3b8);
}
.th-tip {
  border-bottom: 1px dotted rgba(100, 116, 139, 0.45);
  padding-bottom: 1px;
}
.standing-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: background-color var(--transition, 0.15s ease);
}
.standing-toggle:hover {
  background: var(--surface-hover);
}
.standing-toggle:focus-visible {
  outline: 2px solid var(--teal, #0d9488);
  outline-offset: -2px;
}
.standing-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.standing-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: auto;
}
.standing-toggle__state {
  padding: 4px 10px;
  border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.12));
  border-radius: 99px;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  transition: border-color var(--transition, 0.15s ease), color var(--transition, 0.15s ease), background-color var(--transition, 0.15s ease);
}
.standing-toggle__chevron {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-muted, #94a3b8);
  transition: transform var(--transition, 0.2s ease), color var(--transition, 0.15s ease);
}
.standing-toggle:hover .standing-toggle__state,
.standing-toggle:focus-visible .standing-toggle__state {
  border-color: var(--teal, #0d9488);
  color: var(--teal, #0d9488);
  background: var(--surface-hover, rgba(13, 148, 136, 0.08));
}
.standing-toggle:hover .standing-toggle__chevron {
  color: var(--text, #f1f5f9);
}
.standing-toggle[aria-expanded="true"] .standing-toggle__chevron {
  transform: rotate(180deg);
  color: var(--teal, #0d9488);
}
.standing-toggle[aria-expanded="true"] .standing-toggle__state {
  border-color: var(--teal, #0d9488);
  color: var(--teal, #0d9488);
}

/* Mobile Standings: undo inherited right alignment from premium-table cards. */
@media screen and (max-width:980px) {
  #standing-table.premium-table tbody td.stand-name {
    text-align:left !important;
  }
  #standing-table.premium-table td.stand-name .stand-player-info {
    display:flex !important;
    align-items:flex-start !important;
    width:100%;
    margin:0 !important;
    text-align:left !important;
  }
  #standing-table.premium-table td.stand-name .stand-player-link {
    align-items:flex-start !important;
    align-self:flex-start !important;
    margin:0 !important;
    text-align:left !important;
  }
  #standing-table.premium-table td.stand-name :is(.rr-player-last,.rr-player-first) {
    text-align:left !important;
    align-self:flex-start !important;
  }
}
