/* Табличный стиль для документов */
.docs-table-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.docs-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

@media (min-width: 1024px) {
    .docs-table-header {
        margin-bottom: 30px;
    }
}

.docs-table-title {
    font-size: 24px;
    font-weight: 600;
    font-family: Faberge, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: #292d32;
    margin: 0;
}

@media (min-width: 1024px) {
    .docs-table-title {
        font-size: 30px;
    }
}

.docs-table-show-all {
    display: none;
    align-items: center;
    gap: 8px;
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(0, 122, 255, 0.08);
}

@media (min-width: 1024px) {
    .docs-table-show-all {
        display: inline-flex;
    }
}

.docs-table-show-all:hover {
    background: rgba(0, 122, 255, 0.15);
    gap: 12px;
}

.docs-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.docs-table thead {
    background: #f8faff;
}

.docs-table th {
    text-align: left;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 122, 255, 0.15);
}

.docs-table th:first-child {
    border-radius: 20px 0 0 0;
}

.docs-table th:last-child {
    border-radius: 0 20px 0 0;
}

.docs-table-row {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.docs-table-row:last-child {
    border-bottom: none;
}

.docs-table-row:hover {
    background-color: rgba(0, 122, 255, 0.02);
}

.docs-table-cell {
    padding: 16px 20px;
    vertical-align: middle;
}

.docs-table-cell-name {
    width: 50%;
}

.docs-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-file-extension {
    flex-shrink: 0;
    width: 50px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.docs-file-title {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .docs-file-title {
        font-size: 16px;
    }
}

.docs-table-cell-date,
.docs-table-cell-size {
    width: 15%;
}

.docs-date {
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

.docs-size {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.docs-table-cell-actions {
    width: 100px;
    text-align: right;
}

.docs-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    color: #007aff;
    transition: all 0.2s ease;
    margin: 0 2px;
    text-decoration: none;
}

.docs-action-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

.docs-action-btn:active {
    transform: translateY(0);
}

.docs-table-mobile-more {
    margin-top: 25px;
    text-align: center;
}

@media (min-width: 1024px) {
    .docs-table-mobile-more {
        display: none;
    }
}

.docs-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #007aff;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.docs-more-button:hover {
    background: #0056b3;
    gap: 14px;
}

/* Стили для сворачиваемой таблицы */
.docs-table-wrapper.folded {
    max-height: 450px;
    overflow: hidden;
    position: relative;
}

.docs-table-wrapper.folded::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #ffffff, transparent);
    pointer-events: none;
    z-index: 2;
}

/* Адаптация для мобильных */
@media (max-width: 640px) {
    .docs-table-cell {
        padding: 14px 12px;
    }

    .docs-file-extension {
        width: 42px;
        height: 28px;
        font-size: 11px;
    }

    .docs-file-title {
        font-size: 14px;
    }

    .docs-date,
    .docs-size {
        font-size: 13px;
    }
}

/* Анимация для новых элементов */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-table-row {
    animation: fadeInRow 0.4s ease forwards;
}

.docs-table-row:nth-child(1) { animation-delay: 0.05s; }
.docs-table-row:nth-child(2) { animation-delay: 0.1s; }
.docs-table-row:nth-child(3) { animation-delay: 0.15s; }
.docs-table-row:nth-child(4) { animation-delay: 0.2s; }
.docs-table-row:nth-child(5) { animation-delay: 0.25s; }
.docs-table-row:nth-child(6) { animation-delay: 0.3s; }
.docs-table-row:nth-child(7) { animation-delay: 0.35s; }