/* Файл: 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: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 14px;
    padding: 2px 4px 2px 8px;
    font-size: var(--font-size, 14px);
    color: #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: #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: #888;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.filelist-del:hover {
    background: #fdeceb;
    color: #c0392b;
}
