.files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 10px;
}

.file-card {
    width: 180px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.thumbnail__min-item {
    max-width: 100%;
    border-radius: 4px;
    cursor: pointer;
}

.files__type {
    font-size: 0.875rem;
    margin-top: auto;
    text-align: center;
    line-height: 1.2;
    min-height: 2.5em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.file-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 6px;
    right: 6px;
}

.file-actions .btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.btn-delete i {
    font-size: 18px;
    color: var(--bs-danger);
}

.files__upload .form-floating {
    display: block;
}

.files__upload .dropzone-container {
    width: 100%;
    min-height: 100px;
    position: relative;
}

.files__upload .dropzone-placeholder,
.files__upload .dropzone-preview {
    width: 100%;
}

.files__upload .dropzone-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: inherit;
    color: var(--bs-primary-text-emphasis, var(--bs-primary));
    font-weight: 600;
    text-align: center;
    pointer-events: auto;
    backdrop-filter: blur(2px);
}

.files__upload .dropzone-overlay__message {
    max-width: 22rem;
}

.files__upload .dropzone-multiple-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin: -10px 10px -10px;
}

.files__upload .dropzone-multiple-item {
    width: 300px;
    min-height: 100px;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.files__upload .dropzone-multiple-item__preview {
    height: 80px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    flex: 0 0 auto;
    width: fit-content;
    overflow: hidden;
    background: #fff;
}

.files__upload .dropzone-multiple-item__image {
    height: 100%;
    width: auto;
    display: block;
}

.files__upload .dropzone-multiple-item__name {
    flex: 1 1 auto;
    font-size: 0.875rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.files__upload .dropzone-multiple-item__remove {
    position: absolute;
    z-index: 1;
    opacity: .8;
}

.files__upload .dropzone-preview-filename {
    white-space: pre-line;
    word-wrap: normal;
}

.files__upload .dropzone-preview-filename--danger {
    color: var(--bs-danger);
    font-weight: 600;
}

.files__upload .files__upload-field--errors-hidden .invalid-feedback {
    display: none !important;
}
