 [data-ax5uploader] [data-ax5uploader-dropzone],
 [data-ax5uploader-uploaded-box] {
     min-height: 132px;
     margin: 6px 0;
     padding: 12px;
     border: 1px dashed #93c5fd;
     border-radius: 8px;
     background: #f8fbff;
     box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
     transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
 }

 [data-ax5uploader] [data-ax5uploader-dropzone]:hover,
 [data-ax5uploader-uploaded-box]:hover {
     border-color: #60a5fa;
     background: #f0f7ff;
 }

 [data-ax5uploader] [data-ax5uploader-dropzone].dragover {
     border: 1px solid #2563eb;
     background: #eff6ff;
     opacity: 1;
     box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12), 0 0 0 3px rgba(37, 99, 235, 0.08);
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box] {
     margin: 6px 0;
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty {
     display: flex;
     min-height: 96px;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     gap: 5px;
     color: #475569;
     text-align: center;
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty .mes-upload-icon {
     display: none;
     align-items: center;
     justify-content: center;
     position: relative;
     width: 32px;
     height: 32px;
     border: 1px solid #bfdbfe;
     border-radius: 999px;
     background: #ffffff;
     color: #2563eb;
     font-size: 15px;
     box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty .mes-upload-icon i {
     display: none;
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty .mes-upload-icon:before {
     content: "";
     position: absolute;
     left: 10px;
     top: 8px;
     width: 12px;
     height: 11px;
     border: 2px solid currentColor;
     border-top: 0;
     border-radius: 0 0 4px 4px;
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty .mes-upload-icon:after {
     content: "";
     position: absolute;
     left: 11px;
     top: 8px;
     width: 10px;
     height: 10px;
     border-top: 2px solid currentColor;
     border-left: 2px solid currentColor;
     transform: rotate(45deg);
     transform-origin: center;
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty strong {
     display: block;
     color: #1e293b;
     font-size: 13px;
     font-weight: 700;
     line-height: 1.35;
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty em {
     display: block;
     color: #64748b;
     font-size: 12px;
     font-style: normal;
     line-height: 1.35;
 }

 [data-ax5uploader-uploaded-box] .mes-upload-empty-view {
     min-height: 80px;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] {
     float: none;
     display: inline-flex;
     align-items: center;
     width: auto;
     min-width: 0;
     max-width: 100%;
     margin: 4px;
     padding: 7px 10px;
     border: 1px solid #dbeafe;
     border-radius: 7px;
     background: #ffffff;
     color: #1e293b;
     box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item]:hover {
     border-color: #93c5fd;
     background: #f8fbff;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     min-width: 0;
     max-width: 100%;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder .uploaded-item-cell {
     display: inline-flex;
     align-items: center;
     flex: 0 0 auto;
     padding: 0;
     color: #334155;
     font-size: 12px;
     line-height: 1.35;
     white-space: nowrap;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="filename"] {
     flex: 1 1 auto;
     overflow: hidden;
     max-width: 360px;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="download"],
 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="delete"] {
     justify-content: center;
     width: 22px;
     height: 22px;
     border-radius: 5px;
     color: #2563eb;
     overflow: hidden;
     font-size: 0;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="delete"] {
     color: #ef4444;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="download"] i,
 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="delete"] i {
     width: 14px;
     height: 14px;
     margin: 0;
     font-size: 13px;
     line-height: 14px;
     text-align: center;
 }

 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="download"]:hover,
 [data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="delete"]:hover {
     background: #eff6ff;
     text-decoration: none;
 }


.ppm-file-preview-card {
    position: fixed;
    z-index: 100000;
    width: 280px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08);
    opacity: 0;
    transform: translateY(4px) scale(.98);
    transition: opacity .14s ease, transform .14s ease;
    pointer-events: auto;
}

[data-ax5uploader-uploaded-box][data-ax5uploader-uploaded-box="inline"] [data-ax5uploader-uploaded-item] .uploaded-item-holder [data-uploaded-item-cell="filename"] {
    display: inline-flex !important;
    align-items: center;
    flex: 1 1 auto !important;
    min-width: 24px;
    max-width: 360px;
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppm-file-preview-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ppm-file-preview-media {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.ppm-file-preview-image-button {
    display: block;
    width: 100%;
    max-height: 220px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ppm-file-preview-image-button img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.ppm-file-preview-image-button img:not([src]),
.ppm-file-preview-image-button img[src=""] {
    display: none;
}

.ppm-file-preview-icon {
    width: 74px;
    height: 86px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    border-radius: 10px;
    color: #fff;
    background: #64748b;
    box-shadow: inset 0 -28px 0 rgba(15, 23, 42, .16);
    font-size: 15px;
    font-weight: 900;
}

.ppm-file-preview-icon-pdf {
    background: #ef4444;
}

.ppm-file-preview-icon-excel {
    background: #10b981;
}

.ppm-file-preview-icon-word {
    background: #2563eb;
}

.ppm-file-preview-icon-ppt {
    background: #f97316;
}

.ppm-file-preview-icon-zip {
    background: #7c3aed;
}

.ppm-file-preview-icon-text {
    background: #475569;
}

.ppm-file-preview-info {
    padding: 11px 2px 0;
}

.ppm-file-preview-info strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppm-file-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ppm-file-preview-meta span:not(:last-child):after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    vertical-align: middle;
}

.ppm-file-preview-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 23, 42, .72);
}

.ppm-file-preview-lightbox.is-visible {
    display: flex;
}

.ppm-file-preview-lightbox img {
    max-width: min(1120px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    object-fit: contain;
}

.ppm-file-preview-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 640px) {
    .ppm-file-preview-card {
        width: min(280px, calc(100vw - 24px));
    }

    .ppm-file-preview-lightbox {
        padding: 14px;
    }

    .ppm-file-preview-lightbox img {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }
}
