/* Стили страницы «uk-documents». Вынесены из templates/main/uk_documents.html без изменений:
   каскад тот же — <link> стоит там же, где стоял <style>. */
.uk-content {
        background: white;
        padding: 25px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
        margin-bottom: 30px;
    }
    
    /* Стили для табов */
    .uk-tabs {
        display: flex;
        margin-bottom: 20px;
        border-bottom: 1px solid #dee2e6;
        font-size: 14px;
    }
    
    .uk-tab {
        position: relative;
        padding: 10px 20px;
        cursor: pointer;
        transition: color 0.18s;
    }
    .uk-tab::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: #000f9f;
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.22s ease;
    }

    .uk-tab:hover::after {
        transform: scaleX(1);
    }

    .uk-tab.active {
        color: #000f9f;
        font-weight: 600;
    }
    .uk-tab.active::after {
        transform: scaleX(1);
    }

    /* Стили для красивой таблицы */
    .uk-table-conteiner {
        overflow: auto;
    }
    /* Курсор-«рука» только когда таблица шире экрана (класс ставит drag-scroll.js). */
    .uk-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .uk-table tr {
        transition: background-color 0.2s ease;
    }
    
    .uk-table tr:hover {
        background-color: #f8fafc;
    }
    
    .uk-table td {
        padding: 16px 20px;
        border-bottom: 1px solid #eaecef;
        vertical-align: top;
    }
    
    .uk-table tr:last-child td {
        border-bottom: none;
    }
    
    .uk-table td:first-child {
        font-weight: 600;
        width: 200px;
        min-width: 200px;
        border-right: 1px solid #eaecef;
    }
    
    .uk-table a {
        color: #000f9f;
        text-decoration: none;
        font-weight: 500;
    }
    
    .uk-table a:hover {
        text-decoration: underline;
    }
    
    /* Стили для документов */
    .document-section {
        display: none;
    }
    
    .document-section.active {
        display: block;
    }
    
    .document-item {
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
        padding: 1.2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .document-info {
        flex: 1;
    }
    
    .document-name {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 0.3rem;
    }
    
    .document-name:hover {
        color: #000f9f;
    }
    
    .document-link {
        font-size: 14px;
        font-weight: 500;
        color: #000f9f;
    }
    
    .document-meta {
        font-size: 14px;
    }
    
    .document-icon {
        font-size: 50px;
        color: #000f9f;
        margin-right: 1rem;
        flex-shrink: 0;
        transition: 0.7s;
    }
    
    .document-icon:hover {
        color: #e4e4e4;
        transition: 0.7s;
    }
    .lic-conteiner {
        text-align: center;
    }
    .lic {
        width: 49%;
    }
    .svid {
        width: 60%;
    }
    .trademark {
        width: 70%;
    }
    @media (max-width: 768px) {
        .trademark {
            width: 97%;
        }
        .svid {
            width: 97%;
        }
    }

    /* Узкие экраны: три вкладки в строку не помещаются, а с переносом ряд с
       подчёркиванием читался как обычный текст. Делаем пилюли — как фильтры
       в новостях и истории: сразу видно, что это переключатель. */
    @media (max-width: 560px) {
        .uk-tabs { flex-wrap: wrap; gap: 8px; border-bottom: 0; margin-bottom: 18px; font-size: 13px; }
        .uk-tab { padding: 8px 14px; border: 1px solid #dfe3ec; border-radius: 999px; background: #fff; color: #474b58; }
        .uk-tab::after { display: none; }
        .uk-tab.active { background: #000f9f; border-color: #000f9f; color: #fff; }
    }
