/* Основные стили */
body {
    font-family: "Roboto", sans-serif;
    padding: 20px;
    background-color: #f5f5f5;
    margin: 0;
}

.main-container {
    max-width: 90%;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto; /* Горизонтальная прокрутка для всего контейнера если нужно */
}

/* Заголовок страницы */
.page-title {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
    font-size: 24px;
    font-weight: normal;
}

/* Блок с таблицей */
.table-block {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Заголовок таблицы (найденный на странице) */
.table-title {
    background-color: #ffcc00;
    color: #333;
    padding: 12px 15px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    font-size: 18px;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    font-weight: bold;
}

/* Заголовок, если не найден */
.no-title {
    background-color: #f0f0f0;
    color: #666;
    padding: 12px 15px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    font-size: 16px;
    font-style: italic;
    border: 1px solid #ddd;
    border-bottom: none;
}

/* Контейнер для таблицы */
.table-container {
    overflow-x: auto; /* Горизонтальная прокрутка только если таблица не влезает */
    margin: 0;
    border-radius: 0 0 6px 6px;
    border: 1px solid #e0e0e0;
    border-top: none;
    background-color: white;
    max-width: 100%;
}

/* Стили для самой таблицы */
.data-table {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%; /* Таблица занимает 100% ширины контейнера */
    table-layout: fixed; /* Фиксированная раскладка для контроля ширины колонок */
    min-width: 800px; /* Минимальная ширина таблицы */
}

.data-table thead {
    background-color: #ffcc00;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Стили для заголовков - разрешаем перенос слов */
.data-table th {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: bold;
    color: #333;
    white-space: normal; /* Разрешаем перенос */
    word-wrap: break-word; /* Перенос длинных слов */
    word-break: break-word; /* Разрыв длинных слов */
    overflow-wrap: break-word; /* Современный аналог word-wrap */
	font-size: 10px;
	text-transform: uppercase;
}

/* Стили для ячеек */
.data-table td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
    line-height: 1.4;
    white-space: normal; /* Разрешаем перенос в ячейках */
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis; /* Троеточие при переполнении */
}

/* Фиксируем ширину колонок */
.data-table th:nth-child(1), .data-table td:nth-child(1) { /* Код */
    width: 120px;
    min-width: 120px;
    max-width: 150px;
}

.data-table th:nth-child(2), .data-table td:nth-child(2) { /* Наименование */
    width: 40%; /* Фиксируем процент, а не пиксели */
    min-width: 300px;
    max-width: 500px;
}

.data-table th:nth-child(3), .data-table td:nth-child(3) { /* Валюта */
    width: 80px;
    min-width: 80px;
    max-width: 100px;
    text-align: center;
}

.data-table th:nth-child(4), .data-table td:nth-child(4) { /* рекомендованная цена */
    width: 120px;
    min-width: 120px;
    max-width: 150px;
    text-align: right;
    
    font-weight: bold;
}

.data-table th:nth-child(5), .data-table td:nth-child(5) { /* цена для дилера */
    width: 120px;
    min-width: 120px;
    max-width: 150px;
    text-align: right;
    
    font-weight: bold;
}

.data-table th:nth-child(6), .data-table td:nth-child(6) { /* цена для пост. партнера */
    width: 120px;
    min-width: 120px;
    max-width: 150px;
    text-align: right;
    
    font-weight: bold;
}

.data-table th:nth-child(7), .data-table td:nth-child(7) { /* ставка НДС */
    width: 100px;
    min-width: 100px;
    max-width: 120px;
    text-align: center;
}

.data-table th:nth-child(8), .data-table td:nth-child(8) { /* номера росреестра */
    width: 120px;
    min-width: 120px;
    max-width: 150px;
    text-align: center;
}

/* Чередование строк для лучшей читаемости */
.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #f0f8ff;
}

/* При наведении на ячейку показываем полный текст в тултипе */
.data-table td {
    position: relative;
    cursor: pointer;
}

.data-table td:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: normal;
    max-width: 400px;
    word-wrap: break-word;
    display: block;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Сообщение, если нет таблиц */
.no-tables-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px dashed #ddd;
}





/* Стили для поиска */
.search-container {
    margin-top: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-search {
    background-color: #606060;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-search:hover {
    background-color: #b9b9b9;
	color: black;
	
}

.search-hint {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.close-modal {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Стили для результатов поиска */
.search-stats {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#search-results-count {
    font-weight: bold;
    color: #007bff;
}

.search-query {
    color: #666;
    font-size: 14px;
}

.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background-color: white;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.result-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.result-location {
    color: #666;
    font-size: 12px;
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
}

.result-content {
    margin-bottom: 10px;
}

.result-field {
    margin-bottom: 5px;
}

.field-label {
    font-weight: bold;
    color: #666;
    font-size: 13px;
    display: inline-block;
    width: 100px;
}

.field-value {
    color: #333;
    font-size: 14px;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #856404;
}

.result-context {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    border-left: 3px solid #007bff;
}

.result-actions {
    margin-top: 10px;
    text-align: right;
}

/* Стили кнопки "Показать в таблице" */


/* Пустые результаты */
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.empty-state {
    color: #666;
}

.empty-state h3 {
    margin: 20px 0 10px;
    color: #333;
}

.empty-state p {
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .search-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .field-label {
        width: auto;
        display: block;
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }
    
    #search-input {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
    }
}

/* Дополнительные стили для поиска */
#search-input::placeholder {
    color: #999;
}


/* Анимация для появления результатов */
.search-result-item {
    animation: fadeInUp 0.3s ease;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка для анимации элементов */
.search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-result-item:nth-child(2) { animation-delay: 0.2s; }
.search-result-item:nth-child(3) { animation-delay: 0.3s; }
.search-result-item:nth-child(4) { animation-delay: 0.4s; }
.search-result-item:nth-child(5) { animation-delay: 0.5s; }
.search-result-item:nth-child(n+6) { animation-delay: 0.6s; }

/* Стили для выделенной строки */
.data-table tr.highlighted-row {
    position: relative;
    background-color: #fff3cd !important; /* Желтый фон */
    z-index: 2;
}

.data-table tr.highlighted-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #ffc107 !important; /* Желтая граница */
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
    animation: borderPulse 2s infinite;
}

.data-table tr.highlighted-row td {
    position: relative;
    z-index: 2;
    font-weight: bold !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
    background-color: #fff3cd !important;
}

/* Анимация пульсации границы */
@keyframes borderPulse {
    0% {
        border-color: #ffc107;
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    70% {
        border-color: #ffc107;
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        border-color: #ffc107;
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Активная строка (для дополнительного выделения) */
.data-table tr.active-row {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}

/* Индикатор навигации */
#navigation-indicator {
    background: linear-gradient(90deg, #ffc107, #ffca2c);
    color: #212529;
    padding: 12px 15px;
    border-radius: 6px 6px 0 0;
    margin-bottom: -1px;
    border: 1px solid #ffc107;
    border-bottom: none;
    z-index: 100;
    position: relative;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.indicator-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.indicator-text {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-text::before {
    content: '📍';
    font-size: 16px;
}

.indicator-close {
    background: none;
    border: none;
    color: #212529;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.indicator-close:hover {
    color: #000;
    transform: scale(1.2);
}

/* Стрелка-указатель к строке */
.data-table tr.highlighted-row::after {
    content: '⬇';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffc107;
    font-size: 24px;
    animation: bounce 1s infinite;
    z-index: 100;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-60%);
    }
}

/* Тень для выделенной строки */
.data-table tr.highlighted-row {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3),
                0 0 0 1px rgba(255, 193, 7, 0.1) inset !important;
}

/* Эффект свечения для всей таблицы при наличии выделенной строки */
.table-block:has(.highlighted-row) .table-container {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Изменение заголовка таблицы при наличии выделенной строки */
.table-block:has(.highlighted-row) .table-title {
    background: linear-gradient(90deg, #ffc107, #ffca2c) !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

/* Плавное появление выделения */
.data-table tr.highlighted-row {
    animation: highlightAppear 0.5s ease;
}

@keyframes highlightAppear {
    from {
        background-color: transparent;
        transform: scale(1);
    }
    to {
        background-color: #fff3cd;
        transform: scale(1.01);
    }
}

/* Эффект при наведении на выделенную строку */
.data-table tr.highlighted-row:hover {
    background-color: #ffeaa7 !important;
    transform: scale(1.02) !important;
}

.data-table tr.highlighted-row:hover::before {
    border-color: #ffb300 !important;
    border-width: 4px !important;
}

/* Иконка маркера в ячейках выделенной строки */
.data-table tr.highlighted-row td::before {
    content: '→';
    position: absolute;
    left: -15px;
    color: #ffc107;
    font-weight: bold;
    opacity: 0.7;
}


}
/* Адаптивность для выделения строки */
@media (max-width: 768px) {
    .data-table tr.highlighted-row::after {
        right: -20px;
        font-size: 18px;
    }
    
    #navigation-indicator {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .indicator-close {
        font-size: 20px;
    }
    
    .data-table tr.highlighted-row td::before {
        left: -10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .data-table tr.highlighted-row::after {
        display: none; /* На маленьких экранах скрываем стрелку */
    }
    
    #navigation-indicator {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .indicator-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .indicator-close {
        align-self: flex-end;
        margin-top: -25px;
    }
    
    .data-table tr.highlighted-row::before {
        border-width: 2px !important; /* Тоньше граница на мобильных */
    }
}

.data-table tr.search-highlight {
    background-color: #fff3cd !important;
    border: 3px solid #ffc107 !important;
    animation: borderBlink 1s infinite alternate;
}

@keyframes borderBlink {
    from {
        border-color: #ffc107;
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    }
    to {
        border-color: #ff9800;
        box-shadow: 0 0 20px rgba(255, 152, 0, 0.7);
    }
}

.controls {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #e0e0e0;
        }
        
        .stats {
            background-color: #f3f3f3;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #c3e6cb;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }
        
        .stat-item {
            background: white;
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #ddd;
			display: flex;
        }
        
        .stat-label {
            font-weight: bold;
            color: #666;
            font-size: 12px;
        }
        
        .stat-value {
            font-size: 12px;
            color: #333;
        }
        
        .btn {
            display: inline-block;
            padding: 8px 16px;
            margin: 5px;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 14px;
        }
        
        .btn:hover {
            background-color: #0056b3;
        }
        
        .btn-danger {
            background-color: #dc3545;
        }
        
        .btn-danger:hover {
            background-color: #c82333;
        }
        
        .btn-success {
            background-color: #0179ff;
        }
        
        .btn-success:hover {
            background-color: #218838;
        }
        
        .message {
            padding: 10px 15px;
            margin-bottom: 20px;
            border-radius: 5px;
            border: 1px solid transparent;
        }
        
        .message-success {
            background-color: #d4edda;
            border-color: #c3e6cb;
            color: #155724;
        }
        
        .message-info {
            background-color: #d1ecf1;
            border-color: #bee5eb;
            color: #0c5460;
}
.data-table td:nth-child(4) {
	color: green;
}

.data-table td:nth-child(5) {
	color: maroon;
}







/* Липкий блок управления в левом нижнем углу */
.sticky-controls {
    position: fixed;
    left: 5%;
    bottom: 20px;
    z-index: 999;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    max-width: 300px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* При наведении увеличиваем тень */
.sticky-controls:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.controls-content {
    padding: 15px;
}

/* Заголовок блока управления */
.controls-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Кнопки в липком блоке */
.sticky-controls .btn {
    display: block;
    width: auto;
    margin-bottom: 8px;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

/* Кнопка обновления данных */
.sticky-controls .btn-success {
    background-color: #0179ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sticky-controls .btn-success:hover {
    background-color: #218838;
}



/* Анимация появления липкого блока */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-controls {
    animation: slideInUp 0.5s ease;
}

/* Кнопка сворачивания/разворачивания (дополнительно) */
.sticky-controls .toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.sticky-controls .toggle-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Состояние свернутого блока */
.sticky-controls.collapsed {
    max-height: 50px;
    overflow: hidden;
    max-width: 50px;
}

.sticky-controls.collapsed .controls-content {
    display: none;
}

.sticky-controls.collapsed .toggle-btn::before {
    content: '⚙️';
}

.sticky-controls:not(.collapsed) .toggle-btn::before {
    content: '−';
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .sticky-controls {
        left: 10px;
        bottom: 10px;
        right: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .controls-content h3 {
        font-size: 15px;
    }
    
    .sticky-controls .btn {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sticky-controls {
        left: 5px;
        bottom: 5px;
        right: 5px;
        width: calc(100% - 10px);
    }
    
    .controls-content {
        padding: 12px;
    }
    
    .controls-content h3 {
        font-size: 14px;
    }
    
    .sticky-controls .btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Для очень маленьких экранов можно добавить режим иконки */
@media (max-width: 360px) {
    .sticky-controls {
        max-width: 50px;
        max-height: 50px;
        overflow: hidden;
    }
    
    .controls-content {
        display: none;
    }
    
    .sticky-controls:hover {
        max-width: none;
        max-height: none;
    }
    
    .sticky-controls:hover .controls-content {
        display: block;
    }
}



/* Стили для строк таблицы с возможностью копирования */
.data-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative; /* Для позиционирования тултипа, если нужно */
}

.data-table tbody tr:hover {
    background-color: #f0f8ff !important;
}

.data-table tbody tr.copied {
    background-color: #d4edda !important;
    border: 2px solid #0179ff !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3) !important;
    position: relative;
    z-index: 1;
}

/* Анимация для подсвеченной строки */
@keyframes copyFlash {
    0% { background-color: #d4edda; }
    50% { background-color: #c3e6cb; }
    100% { background-color: #d4edda; }
}

.data-table tbody tr.copied {
    animation: copyFlash 1s ease;
}

/* Всплывающее уведомление о копировании */
.copy-notification {
    font-size: 12px;
	position: fixed;
    top: 20px;
    right: 20px;
    background: #0179ff;
    color: white;
    padding: 12px 20px;
    z-index: 1000;
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Убираем псевдоэлементы, которые могут создавать дополнительное пространство */
.data-table tbody tr::after,
.data-table tbody tr::before,
.data-table tbody tr.copied td::before,
.data-table tr.highlighted-row::before,
.data-table tr.highlighted-row::after {
    display: none !important;
}

/* Стили для иконки копирования в ячейке */
.data-table td {
    position: relative; /* Для позиционирования тултипа */
}

.row-tooltip {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #0179ff;
    color: white;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
    cursor: pointer;
    line-height: 1;
}

.data-table tbody tr:hover .row-tooltip {
    opacity: 0.9;
}

/* Альтернативный вариант - иконка всегда видна */
/* .row-tooltip {
    opacity: 0.5;
}

.data-table tbody tr:hover .row-tooltip {
    opacity: 1;
} */

/* Убираем подсказку при наведении на строку (она больше не нужна) */
.data-table tbody tr::after {
    content: none !important;
}
.header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 25px;
}
.navg {
	display:contents;
}
.navigator {
	width: -webkit-fill-available;
}

.linknav:visited {
    color: blue;
}

.linknav {
	text-decoration: none;
}
.linknav:hover {
    text-decoration: underline;
}

/* Индикатор корзины */
#cart-indicator {
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease;
}
#cart-indicator:hover {
    background: #444 !important;
    transform: translateY(-2px);
}

/* Подсветка строки, добавленной в корзину */
.data-table tr.in-cart td {
    background-color: #e8f5e9 !important;
    transition: background-color 0.5s ease;
}

/* Кнопки в модальном окне корзины */
#cart-items-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
#cart-items-container th {
    background: #f2f2f2;
    padding: 8px;
    text-align: left;
}
#cart-items-container td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}
.cart-item-remove {
    color: #ff4444;
    cursor: pointer;
    font-weight: bold;
}



/* Стили кнопки "Вверх" */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 5%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffcc00, #feb47b);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transform: translateY(20px) scale(0.8);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#backToTop:hover {
    background: linear-gradient(135deg, #ff6b47, #fea05c);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 126, 95, 0.7);
}

#backToTop:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.5);
}

#backToTop i {
    transition: transform 0.3s;
}

#backToTop:hover i {
    transform: translateY(-3px);
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Секция демонстрации */
.demo-section {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #6a11cb;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    flex: 1 1 200px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #6a11cb;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.95rem;
    text-align: center;
}

/* Индикатор прокрутки */
.scroll-indicator {
    height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-radius: 15px;
    margin-top: 30px;
}

.scroll-indicator i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.scroll-indicator h2 {
    color: white;
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    #backToTop {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }
    
    .content {
        padding: 25px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .scroll-indicator {
        height: 600px;
        padding: 30px;
    }
    
    .scroll-indicator i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    #backToTop {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 20px;
    }
    
    .demo-section {
        padding: 20px;
    }
    
    .features {
        gap: 15px;
    }
    
    .feature {
        flex: 1 1 100%;
    }
    
    .scroll-indicator {
        height: 500px;
        padding: 20px;
    }
    
    .scroll-indicator i {
        font-size: 2.5rem;
    }
}

/* Альтернативный вариант: карточный дизайн для мобильных */
@media (max-width: 768px) {
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: white;
        padding: 15px;
        position: relative;
    }
    
    .data-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .data-table td:last-child {
        border-bottom: none;
    }
    
    .data-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2c3e50;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    .data-table td[title]:hover:after {
        display: none;
    }
    
    .scroll-hint {
        display: none;
    }
    
    .table-container {
    overflow-x: visible;
    }
	
	.header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 25px;
	}
	.stat-item {
    background: white;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    align-items: baseline;
	}
#search-input {
        width: 90%;
    }
	.linknav {
	margin-bottom: 10px;
	}
.data-table th:nth-child(-n+8), .data-table td:nth-child(-n+8) {
    width: 35%;
    min-width: auto;
    max-width: 35%;
    text-align: start!important;
}
	
}