/* Базовые стили для десктопа */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.equipment-standards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.equipment-standards-table th {
  background-color: #00a6aa;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  text-align: left;
  border: 1px solid #00a6aa;
  word-wrap: break-word;
}

.equipment-standards-table td {
  padding: 8px 14px;
  height: 60px;
  border: 1px solid #dee2e6;
  border-top: none;
  word-wrap: break-word;
  vertical-align: middle;
}

.equipment-standards-table tr td:first-child {
  color: #192830;
}

.equipment-standards-table tr td:last-child {
  color: #00a6aa;
}

.equipment-standards-table .underlined {
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.equipment-standards-table .dark-text {
  color: #192830;
}

.equipment-standards-table a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

/* Скрываем карточки на десктопе */
.mobile-cards-view {
  display: none;
}

/* Мобильная версия */
@media (max-width: 767px) {
  
  /* Вариант 1: Скрываем таблицу и показываем карточки */
  .table-responsive {
    display: none;
  }
  
  .mobile-cards-view {
    display: block;
  }
  
  .group-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .group-title {
    background-color: #00a6aa;
    color: #fff;
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: 700;
  }
  
  .elements-list {
    padding: 0;
  }
  
  .element-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    min-height: 50px;
  }
  
  .element-card:last-child {
    border-bottom: none;
  }
  
  .element-info {
    flex: 1;
    margin-right: 10px;
  }
  
  .element-count-mobile {
    color: #00a6aa;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .element-info a {
    color: #00a6aa;
    text-decoration: none;
  }
  
  .element-info .underlined {
    text-decoration: underline;
  }
  
  .element-info .dark-text {
    color: #192830;
  }
}

/* Альтернативный вариант - адаптивная таблица */
@media (max-width: 767px) {
  
  /* Раскомментируйте этот блок, если хотите использовать адаптивную таблицу вместо карточек */
  /*
  .mobile-cards-view {
    display: none;
  }
  
  .table-responsive {
    display: block;
  }
  
  .equipment-standards-table,
  .equipment-standards-table th,
  .equipment-standards-table td {
    font-size: 12px;
  }
  
  .equipment-standards-table th,
  .equipment-standards-table td {
    padding: 8px 6px;
  }
  
  .equipment-standards-table td {
    height: auto;
    min-height: 50px;
  }
  
  .group-name {
    font-size: 11px;
    font-weight: 600;
    max-width: 80px;
  }
  
  .element-name {
    font-size: 12px;
  }
  
  .element-count {
    font-size: 12px;
    text-align: center;
    min-width: 50px;
  }
  */
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .group-title {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .element-card {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .element-info {
    margin-right: 0;
    margin-bottom: 5px;
    width: 100%;
  }
  
  .element-count-mobile {
    align-self: flex-end;
  }
}