
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  font-family: var(--font-main);
}

.modern-table thead {
  background: #f2f2f2; /* Светло-серый фон как раньше */
}

.modern-table th {
  padding: 12px 15px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ddd;
  color: #333; /* Черный текст как раньше */
}

.modern-table td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #ddd;
}

.modern-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.modern-table td:last-child {
  text-align: left;
}

/* Чередование цветов строк */
.modern-table tr:nth-child(odd) {
  background-color: white;
}

.modern-table tr:nth-child(even) {
  background-color: #33ccff;
}

/* Статусные ячейки */
.status-cell {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #27ae60;
  color: white;
  font-weight: bold;
  line-height: 24px;
  text-align: center;
}

.status-partial {
  background: #f39c12;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-table tbody tr {
  animation: fadeIn 0.3s ease forwards;
}

.modern-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.modern-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.modern-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.modern-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.modern-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.modern-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.modern-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.modern-table tbody tr:nth-child(8) { animation-delay: 0.4s; }

/* Hover эффекты */
.modern-table tbody tr:hover {
  background-color: #f1f1f1 !important;
  transform: translateY(-1px);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Мобильная версия - УПРОЩЕННАЯ (только горизонтальная прокрутка) */
@media (max-width: 768px) {
  .modern-table {
    font-size: 14px;
  }
  
  .modern-table th, 
  .modern-table td {
    padding: 8px 10px;
  }
  
  /* Просто уменьшаем размеры, но оставляем таблицу как есть */
  .table-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .modern-table {
    font-size: 12px;
    min-width: 700px; /* Чуть меньше минимальная ширина */
  }
  
  .modern-table th, 
  .modern-table td {
    padding: 6px 8px;
  }
}