/* Контейнер */
.custom-file-list-wrapper {
    width: 100%;
    overflow-x: auto; /* На случай узких экранов */
}

/* Таблица */
.custom-file-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #ddd;
}

/* Заголовки (Sticky Header) */
.custom-file-table thead th {
    background-color: #f9f9f9; /* Светлый фон заголовка */
    color: #333;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd;

    /* Липкий заголовок */
    position: sticky;
    top: 0;
    z-index: 2; /* Чтобы был поверх контента при скролле */
}

/* Ячейки */
.custom-file-table td {
    padding: 8px 10px;
    border: 1px solid #eee;
    vertical-align: middle;
}

/* Зебра (Odd/Even) как в Drupal */
.custom-file-table tr.odd {
    background-color: #ffffff;
}

.custom-file-table tr.even {
    background-color: #f4f4f4; /* Светло-серый, как field-item even */
}

/* Ховер эффект */
.custom-file-table tbody tr:hover {
    background-color: #eef7fc;
}

/* Ссылка и иконка */
.custom-file-table .file {
    display: flex;
    align-items: center;
    gap: 8px; /* Отступ между иконкой и текстом */
}

.custom-file-table .file a {
    text-decoration: none;
    color: #0073aa; /* Цвет ссылки WP */
    font-weight: 500;
}

.custom-file-table .file a:hover {
    text-decoration: underline;
    color: #005177;
}

/* Стили иконок FontAwesome */
.file-icon-fa {
    font-size: 18px;
    color: #555;
}

/* Цвета иконок (опционально) */
.fa-file-pdf { color: #d32f2f; }
.fa-file-excel { color: #2e7d32; }
.fa-file-word { color: #1565c0; }
.fa-file-archive { color: #f57f17; }

.custom-file-table .file-icon-fa {
    font-family: "Font Awesome 5 Free";
    font-weight: 400; /* Для 'far' иконок (Regular) */
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}