/* Страница поиска */

/* Выравнивание кнопок на уровне полей ввода */
.btn-align-wrapper {
    padding-top: calc(1.5rem + 0.375rem + 1px); /* label font-size + padding + border */
}

/* Канвас для частиц */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
}

/* Футер */
.search-footer {
    text-align: center;
    padding: 0.75rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
}

/* Карточки результатов */
.result-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    border: none;
}

.result-card .card-title {
    color: #333;
    font-weight: 600;
}

/* Таблица результатов */
.results-table thead {
    background-color: #f8f9fa;
}

.results-table tbody tr:nth-child(1) {
    background-color: #e8f5e9;
}

.results-table tbody tr[style*="договор"] {
    background-color: #fff3e0;
}

.results-table tbody tr:not(:first-child):not([style*="договор"]) {
    background-color: #fce4ec;
}

/* Сортировка таблиц */
th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

th.sortable:hover {
    background-color: #e9ecef;
}

th.sortable .sort-icon {
    font-size: 0.8em;
    opacity: 0.3;
    margin-left: 4px;
}

th.sortable:hover .sort-icon {
    opacity: 0.7;
}

th.sortable.sorted .sort-icon {
    opacity: 1;
}
