/* D4 Attachments — mini (tag/chip) style */

.d4-attachments--mini.nk-upload-list,
.nk-upload-list.d4-attachments--mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.d4-attachments-mini-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 220px;
    min-height: 28px;
    padding: 3px 8px 3px 6px;
    border: 1px solid #e5e9f2;
    border-radius: 999px;
    background: #f5f6fa;
    color: #364a63;
    font-size: 12px;
    line-height: 1.2;
    vertical-align: middle;
}

.d4-attachments-mini-item:hover {
    background: #eef1f6;
    border-color: #d5dbe6;
}

.d4-attachments-mini-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.d4-attachments-mini-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.d4-attachments-mini-name:hover {
    color: #405189;
    text-decoration: underline;
}

.d4-attachments-mini-action,
.d4-attachments-mini-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8094ae;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
}

.d4-attachments-mini-action:hover,
.d4-attachments-mini-remove:hover {
    color: #364a63;
    background: rgba(54, 74, 99, 0.08);
}

.d4-attachments-mini-remove:hover {
    color: #f06548;
    background: rgba(240, 101, 72, 0.1);
}

.dark-mode .d4-attachments-mini-item {
    background: #1a2332;
    border-color: #243247;
    color: #e2e8f0;
}

.dark-mode .d4-attachments-mini-item:hover {
    background: #243247;
    border-color: #334155;
}

.dark-mode .d4-attachments-mini-name:hover {
    color: #a5b4fc;
}

.dark-mode .d4-attachments-mini-action,
.dark-mode .d4-attachments-mini-remove {
    color: #94a3b8;
}

.dark-mode .d4-attachments-mini-action:hover,
.dark-mode .d4-attachments-mini-remove:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
}
