.table {
  max-width: 1020px;
  margin: 0 auto;
  display: block;
}

.table_header {
  padding: 0 10px;
  margin-bottom: 15px;
}

.table_header-row {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.table_header-cell {
  font-size: 14px;
  line-height: 1.2;
  color: #4a5568;
  padding: 0 0 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  text-align: left;
}

.table_header-cell:first-child {
  padding-left: 27.5px;
}

.table_header-cell:nth-child(2),
.table_header-cell:nth-child(4),
.table_header-cell:nth-child(5) {
  padding-left: 0;
}

.table_header-cell:nth-child(6) {
  padding-left: 0;
}

.table_body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px;
  position: relative;
  contain: layout style; /* Оптимизация рендеринга */
  min-height: 0; /* Позволяет контейнеру правильно сжиматься */
}

.table_template {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.table_row {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr 1fr 1fr;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 0;
  align-items: center;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  position: relative;
  will-change: transform, opacity;
}

.table_row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.table_row:hover::before {
  opacity: 1;
}

/* Анимация slideIn удалена - теперь управляется через JS */

.table_row:hover {
  box-shadow: 0px 4px 20px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
}

.table_row:last-child {
  margin-bottom: 0;
}

.table_cell {
  font-size: 14px;
  line-height: 1.5;
  color: #2d3748;
  padding: 18px 0;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.table_cell--name {
  padding: 15px 10px 15px 27.5px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.table_cell--name img,
.table_cell--name svg.person-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(16, 185, 129, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.table_cell--name svg.person-avatar {
  border: 3px solid rgba(16, 185, 129, 0.15);
}

.table_row:hover .table_cell--name img,
.table_row:hover .table_cell--name svg.person-avatar {
  border-color: rgba(16, 185, 129, 0.4);
  transform: scale(1.05);
  box-shadow: 0px 4px 12px rgba(16, 185, 129, 0.2);
}

.table_cell--name p {
  margin: 0;
  font-weight: 600;
  color: #1a202c;
}

.table_cell:nth-child(2) {
  padding-left: 0;
  padding-right: 0;
  text-align: left;
  color: #4a5568;
  font-weight: 500;
}

.table_cell:nth-child(4) {
  padding-left: 0;
  padding-right: 0;
  text-align: left;
  color: #718096;
  font-size: 13px;
}

.table_cell:nth-child(5) {
  padding-left: 0;
  padding-right: 0;
  text-align: left;
  color: #718096;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.table_cell--profit {
  max-width: 120px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 24px;
  padding: 8px 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.table_row:hover .table_cell--profit {
  transform: scale(1.08);
  box-shadow: 0px 6px 20px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.table_cell--result {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding-left: 0;
}

.table_cell--result .status-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.table_cell--result p {
  margin: 0;
  color: #10b981;
  font-weight: 600;
  font-size: 13px;
}

@media (max-width: 1300px) {
  .table_cell--name img,
  .table_cell--name svg.person-avatar {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 1023px) {
  .tableWrp {
    padding: 15px 8px;
    min-height: 700px; /* Фиксированная высота для планшета */
    overflow: hidden;
  }

  .table_header-row,
  .table_row {
    grid-template-columns: 1.5fr 1fr 0.75fr 1fr 1fr 1fr;
    gap: 8px;
  }

  .table_header-cell {
    font-size: 12px;
    padding: 0 0 12px;
  }

  .table_cell {
    font-size: 13px;
    padding: 14px 0;
  }

  .table_cell--name {
    padding: 12px 8px 12px 15px;
    gap: 12px;
  }

  .table_cell--name img,
  .table_cell--name svg.person-avatar {
    width: 34px;
    height: 34px;
  }

  .table_cell--profit {
    max-width: 90px;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
  }

}

@media (max-width: 767px) {
  .tableWrp {
    padding: 10px 6px;
    border-radius: 12px;
    min-height: 700px; /* Фиксированная высота для мобилки */
    overflow: hidden;
  }

  .table_header {
    display: none;
  }

  .table_body {
    padding: 0;
    gap: 12px;
    position: relative;
  }

  .table_template {
    gap: 12px;
    position: relative;
  }

  .table_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 12px;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.6);
  }

  .table_row::before {
    display: none;
  }

  .table_row:hover {
    transform: none;
    box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
  }

  .table_cell {
    padding: 0;
    font-size: 13px;
  }

  .table_cell--name {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .table_cell--name img,
  .table_cell--name svg.person-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-width: 2px;
  }
  
  .table_cell--name svg.person-avatar {
    border: 2px solid rgba(16, 185, 129, 0.15);
  }

  .table_cell--name > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .table_cell--name p {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    font-weight: 600;
    color: #1a202c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .table_cell--name p:first-child {
    margin-bottom: 0;
  }

  .table_cell--name p:last-child {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
  }

  .table_cell:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 4px 8px;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 70px;
  }

  .table_cell:nth-child(2) .profit {
    font-weight: 600;
    font-size: 13px;
    color: #2d3748;
    margin: 0;
    white-space: nowrap;
  }

  .table_cell:nth-child(2) .today {
    font-size: 11px;
    line-height: 1.2;
    color: #718096;
    margin: 0;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
  }

  .table_cell:nth-child(3) {
    display: flex;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
  }

  .table_cell--profit {
    max-width: none;
    width: auto;
    padding: 10px 16px;
    margin: 0;
    font-size: 12px;
    border-radius: 12px;
    white-space: nowrap;
    background: transparent;
    color: #000000;
    box-shadow: none;
  }

  .table_cell:nth-child(4),
  .table_cell:nth-child(5) {
    display: none;
  }

  .table_cell--result {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: 6px;
    flex: 0 0 auto;
  }

  .table_cell--result .cryptoCurrency {
    display: none;
  }

  .table_cell--result .status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
  }

  .table_cell--result .status-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .tableWrp {
    padding: 8px 4px;
  }

  .table_row {
    padding: 12px 10px;
    gap: 10px;
  }

  .table_cell--name {
    gap: 8px;
  }

  .table_cell--name img,
  .table_cell--name svg.person-avatar {
    width: 36px;
    height: 36px;
  }

  .table_cell--name p {
    font-size: 13px;
  }

  .table_cell--name p:last-child {
    font-size: 10px;
    padding: 2px 6px;
  }

  .table_cell:nth-child(2) {
    min-width: 60px;
    gap: 3px;
    padding: 3px 6px;
  }

  .table_cell:nth-child(2) .profit {
    font-size: 12px;
  }

  .table_cell:nth-child(2) .today {
    font-size: 10px;
  }

  .table_cell--profit {
    padding: 8px 14px;
    font-size: 11px;
    background: transparent;
    color: #000000;
    box-shadow: none;
  }

  .table_cell--result .status {
    font-size: 11px;
    gap: 3px;
  }

  .table_cell--result .status-icon {
    width: 14px;
    height: 14px;
  }
}
