/* Основной контейнер */
.tilda-table-search-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Шапка с поиском */
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

#tildaSearchInput {
  flex-grow: 1;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
  transition: all 0.3s ease;
  min-width: 300px;
}

#tildaSearchInput:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.results-info {
  background: #f8f9fa;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  color: #5f6368;
  white-space: nowrap;
}

/* Индикатор загрузки */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4285f4;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Таблица */
.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: white;
}

#partsTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

#partsTable thead {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
}

#partsTable th {
  padding: 18px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#partsTable th:last-child {
  border-right: none;
}

#partsTable tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

#partsTable tbody tr:hover {
  background-color: #f8f9ff;
}

#partsTable td {
  padding: 16px 15px;
  color: #333;
}

/* Сообщение об отсутствии результатов */
.no-results {
  text-align: center;
  padding: 50px 20px;
  background: #fff8e1;
  border-radius: 10px;
  border-left: 5px solid #ffc107;
  color: #856404;
  font-size: 17px;
  margin: 20px 0;
}