/* === АББРЕВИАТУРА ОТДЕЛА === */
.department-abbr {
    display: inline-block;
    padding: 2px 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    font-size: 0.8em;
    color: #333;
    margin-right: 8px;
    font-weight: bold;
}

/* === СПИСОК ФАЙЛОВ === */
.files-list {
    width: 100%;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.file-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
    gap: 10px;
}

.file-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.file-name {
    flex: 3 1 200px;
    font-weight: bold;
    color: #333;
    word-break: break-word;
}

.file-format {
    flex: 1 0 80px;
    text-align: center;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9em;
}

.file-size {
    flex: 1 0 80px;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

.file-actions {
    flex: 1 0 180px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* === КНОПКИ - ИСПРАВЛЕНО === */
.view-btn, .download-btn {
    display: inline-block;
    padding: 6px 12px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    text-align: center;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

/* Кнопка "Просмотр" */
.view-btn {
    background-color: #5bc0de;
}

.view-btn:hover {
    background-color: #31b0d5;
    color: #ffffff !important;
    text-decoration: none !important;
}

.view-btn:active {
    background-color: #269abc;
}

/* Кнопка "Скачать" */
.download-btn {
    background-color: #337ab7;
}

.download-btn:hover {
    background-color: #286090;
    color: #ffffff !important;
    text-decoration: none !important;
}

.download-btn:active {
    background-color: #204d74;
}

/* Ошибка загрузки */
.download-error {
    color: #a94442;
    font-size: 0.9em;
}

/* Пустой список */
.docs-empty {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .file-name, .file-format, .file-size {
        flex: 1 1 100%;
        text-align: left;
        padding: 3px 0;
    }
    
    .file-actions {
        flex: 1 1 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .file-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .view-btn, .download-btn {
        width: 100%;
    }
}