/* =========================================================
   Комментарии: файлы, скрины из буфера, вложения
   ========================================================= */

.comment-files-box {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
}

.comment-files-box.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.comment-files-title {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 4px;
}

.comment-files-sub {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 10px;
}

#portalCommentFiles {
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 8px !important;
    background: #ffffff !important;
}

.comment-files-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.comment-files-empty {
    color: #94a3b8;
    font-size: 12px;
}

.comment-file-item {
    display: grid;
    grid-template-columns: 1fr auto 30px;
    gap: 8px;
    align-items: center;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 7px 8px;
}

.comment-file-name {
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-file-size {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.comment-file-item button {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

/* Вложения в админском списке комментариев */
.portal-comment-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.portal-comment-file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid #dbe4ee;
    background: #ffffff;

    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-comment-file-link:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.portal-comment-file-link.is-image {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

#portalCommentModal {
    z-index: 2147483400 !important;
}

#portalCommentModal .modal-box {
    z-index: 2147483401 !important;
}
