/* Файл: client/js/Widgets/FileList.css
   Визуальный стиль виджета FileList (см. Widgets/FileList.js). gap у .filelist-row — расстояние
   между чипами, не margin на самом чипе (см. feedback_universal_spacing_rule — отступ всегда даёт
   родитель/контейнер). */

.filelist-row {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing, 10px) / 2);
}

.filelist-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface, #f3f3f3);
    border: 1px solid var(--field-line, #ccc);
    border-radius: var(--radius, 10px);
    padding: 2px 4px 2px 8px;
    font-size: var(--font-size, 14px);
    color: var(--ink, #000);
    max-width: 240px;
}

.filelist-icon {
    font-size: 0.9em;
    flex: none;
}

.filelist-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.filelist-name:hover {
    text-decoration: underline;
    color: var(--accent, #0078d7);
}

.filelist-del {
    flex: none;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted, #888);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.filelist-del:hover {
    background: var(--danger-tint, #fdeceb);
    color: var(--danger, #c0392b);
}
