/* Search Results Panel Component */
.search-results-panel {
    background: var(--secondary-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    padding: 24px;
    height: fit-content;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.search-results-panel .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--input-border);
}

.search-results-panel .results-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.search-results-panel .results-count {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--input-bg);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--input-border);
}

.search-results-panel .results-filters {
    display: flex;
    gap: 8px;
}

.search-results-panel .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.search-results-panel .filter-btn.active,
.search-results-panel .filter-btn:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.search-results-panel .no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.search-results-panel .no-results-message i {
    font-size: 48px;
    color: var(--accent-steel);
    margin-bottom: 16px;
}

.search-results-panel .no-results-message h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.search-results-panel .no-results-message p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #f56500);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--secondary-bg);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-secondary:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
}

/* Result Groups - Search Page */
.result-group,
.grouped-result-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.result-group-header,
.group-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(112, 128, 144, 0.03));
    border-bottom: 1px solid var(--input-border);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-group-header:hover,
.group-header:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(112, 128, 144, 0.05));
}

.result-group-title h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.result-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.result-group-expand {
    color: var(--text-secondary);
    transition: var(--transition);
}

.result-group-header:hover .result-group-expand {
    color: var(--accent-orange);
}

/* Suppliers Table Component */
.suppliers-table {
    width: 100%;
    min-width: 80px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.suppliers-table th,
.suppliers-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suppliers-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 10;
}

.suppliers-table th:hover {
    color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.05);
}

.suppliers-table th i.fas {
    margin-left: 4px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.suppliers-table td {
    color: var(--text-primary);
}

.suppliers-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Fixed column widths */
.suppliers-table th:nth-child(1),
.suppliers-table td:nth-child(1) { width: 120px; white-space: nowrap; }  /* Сталь */

.suppliers-table th:nth-child(2),
.suppliers-table td:nth-child(2) { width: 120px; white-space: nowrap; }  /* Профиль */

.suppliers-table th:nth-child(3),
.suppliers-table td:nth-child(3) { width: 70px; white-space: nowrap; }  /* Размер */

/* Характ. - flexible, takes remaining space */

.suppliers-table th:nth-child(5),
.suppliers-table td:nth-child(5) { width: 100px; white-space: nowrap; }  /* Кол-во */

.suppliers-table th:nth-child(6),
.suppliers-table td:nth-child(6) { width: 110px; white-space: nowrap; } /* Цена */

.suppliers-table th:nth-child(7),
.suppliers-table td:nth-child(7) { width: 200px; white-space: nowrap; } /* Контакты */

/* Contacts column - combined company name + info button */
.suppliers-table .contacts-cell .seller-name-text {
    margin-right: 8px;
}

.suppliers-table .contacts-cell .info-btn {
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .suppliers-table {
        font-size: 0.75rem;
    }
    
    .suppliers-table th,
    .suppliers-table td {
        padding: 8px 12px;
    }
    
    .search-results-panel {
        padding: 16px;
    }
    
    .search-results-panel .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .search-results-panel .results-filters {
        width: 100%;
        justify-content: flex-start;
    }
}