.dropzone {
    min-height: 174px;
    border: 2px dashed #ced4da;
    background: #fff;
    border-radius: 6px;
    position: relative;
}
.dropzone.dz-drag-hover {
    border: 2px dashed var(--primary-color-2);
}
.dropzone .dz-message {
    font-size: 24px;
    width: 100%;
}

.kyc-doc-verification .dropzone {
    min-height: 180px;
}

.kyc-doc-verification .dropzone .dz-message {
    margin: 24px 0;
}

/* Image Grid Container min:190px */
.dropzone.dropzone-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.dropzone.dropzone-previews .dz-default.dz-message {
    grid-column: 1 / -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dropzone.dropzone-previews {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .dropzone.dropzone-previews {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .dropzone.dropzone-previews .dz-preview {
        min-width: 160px;
    }
}

.dropzone .dz-preview {
    width: 190px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
    background: #fff;
    outline: solid 2px transparent;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dropzone.dropzone-previews .dz-preview {
    width: auto;
    min-width: 190px;
    margin: 0;
}

.dropzone .dz-preview::after {
    z-index: 11;
    width: 100%;
    height: 90px;
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0,
        rgba(0, 0, 0, 0.2) 7%,
        transparent 82%,
        transparent
    );
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropzone .dz-preview:hover {
    box-shadow: 0 4px 5px rgb(0 0 0 / 30%);
}

.dropzone.dropzone-previews.dz-clickable .dz-preview:hover {
    cursor: pointer;
}

.dropzone .dz-preview .dz-image {
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    height: 150px;
    position: relative;
    display: block;
    z-index: 10;
    background-color: var(--bg-light-gray);
}

.dropzone .dz-preview .dz-image img {
    height: auto;
    max-height: 100%;
}

.dropzone .dz-preview .dz-image img[src$="files/file.png"],
.dropzone .dz-preview .dz-image img[src$="files/pdf.png"],
.dropzone .dz-preview .dz-image img[src$="files/doc.png"],
.dropzone .dz-preview .dz-image img[src$="files/xls.png"],
.dropzone .dz-preview .dz-image img[src$="files/esx.png"],
.dropzone .dz-preview .dz-image img[src$="files/img.png"] {
    width: 55px;
    height: 55px;
    margin-top: auto;
    margin-bottom: auto;
}

.dropzone .dz-preview .dz-filename,
.dropzone .dz-preview .dz-date,
.dropzone .dz-preview .dz-fileowner,
.dropzone .dz-preview .dz-size {
    font-weight: 400;
    font-size: 1em;
    line-height: 24px;
}

.dropzone .dz-preview .dz-filename > span {
    width: fit-content;
}

.dropzone .dz-preview .dz-date {
    color: var(--text-gray);
}

.dropzone .dz-preview .dz-filename,
.dropzone .dz-preview .dz-date {
    padding: 0 0.5rem;
}

.dropzone .dz-preview .dz-footer {
    border-top: 1px solid #e4ebf1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    align-items: center;
    width: 100%;
    min-height: 30px;
    padding: 0.5rem;
    box-sizing: border-box;
    color: var(--text-black);
}

.dropzone .dz-preview .dz-footer .dz-size,
.dropzone .dz-preview .dz-footer .dz-fileowner {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropzone .dz-preview .dz-footer .dz-size {
    text-align: right;
}

.dropzone .dz-preview .dz-toolbar {
    top: 2px;
    right: 0;
    position: absolute;
    width: 100%;
    z-index: 12;
}

.dropzone .dz-preview .copied,
.dropzone .dz-preview [flash-message] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    text-align: center;
    margin-left: -40%;
    margin-top: -25px;
    padding: 5px 8px;
    z-index: 99;
    color: #fff;
    background-color: rgb(111, 195, 116, 0.8);
    /* background-color: rgb(243, 111, 40, 0.8); */
    border-radius: 3px;
}

.dropzone .dz-preview .dropdown-toggle::after {
    color: transparent;
}

.dropzone .dz-preview .dropdown-menu {
    margin-top: 5px;
}

.dropzone .dz-preview .dropdown-menu:before,
.dropzone .dz-preview .dropdown-menu:after {
    display: none;
}

.dropzone .dz-preview .dropdown-menu .dropdown-item {
    padding: 8px 15px;
    font-size: 0.75rem;
    text-decoration: none;
    text-align: left;
}

.dropzone .dz-preview .dropdown-menu .dropdown-item > i {
    margin-right: 5px;
}

.dropzone .dz-preview .dropdown-menu .dropdown-item:hover {
    background: rgba(0, 92, 228, 0.12);
    color: #000 !important;
    text-decoration: none;
    cursor: pointer;
}

.dropzone .dz-preview .dropdown-menu .dropdown-item:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.dropzone .dz-preview .dropdown-menu .dropdown-item:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.ekko-lightbox .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.ekko-lightbox .modal-header .modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
    word-break: break-all;
}

.dropzone .dz-preview .dropdown.dd-menu .dropdown-toggle:before {
    content: "";
}

.dropzone .dz-preview .dropdown.dd-menu #ddActionsMenuLink {
    background-color: transparent !important;
}

.dropzone .dz-preview .dz-toolbar .dd-menu > .dropdown-toggle {
    background: #fff;
    padding: 3px 9px;
    border-radius: 3px;
}

.dropzone .dz-preview .dz-toolbar .dd-menu > .dropdown-toggle svg > path {
    fill: var(--primary-color-2);
}

.dropzone .dz-preview.dz-auto-process-queue:not(.dz-success) .dz-image img,
.dropzone .dz-preview.dz-processing:not(.dz-success) .dz-image img {
    -webkit-transform: scale(1.05, 1.05);
    -moz-transform: scale(1.05, 1.05);
    -ms-transform: scale(1.05, 1.05);
    -o-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
    -webkit-filter: blur(8px);
    filter: blur(8px);
}

.dropzone .dz-preview.dz-addedfile:not(.dz-success) .dzo-copy-link,
.dropzone .dz-preview.dz-addedfile:not(.dz-success) .dzo-download,
.dropzone .dz-preview.dz-addedfile:not(.dz-success) .dzo-check,
.dropzone .dz-preview.dz-addedfile:not(.dz-success) .dzo-check-input {
    cursor: not-allowed;
    display: none;
}

.dropzone .dz-preview .dz-progress {
    opacity: 1;
    background: rgb(97, 97, 97);
}

.dropzone .dz-preview .dz-progress .dz-upload {
    background: linear-gradient(to bottom, rgb(71, 71, 71), rgb(0, 0, 0));
}

/* change check svg color */
.dz-success-mark svg g path {
    fill: rgb(43, 43, 43) !important;
}

.dz-error-mark svg g g {
    fill: rgb(43, 43, 43) !important;
}

.overlay-files {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000000;
    overflow: auto;
    display: none;
}

.dz-uploadprogress .dz-uploadprogress-overlay {
    display: block;
}

.dz-uploadprogress-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
}

.dz-uploadprogress-overlay > div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    margin-left: -160px;
    margin-top: -30px;
}

.dz-uploadprogress-overlay div.upl-icon {
    height: 20px;
    width: 20px;
    margin: 0 auto;
    display: none;
}

.dz-uploadprogress-overlay div.upl-text {
    margin-top: 8px;
    text-align: center;
    margin-bottom: 8px;
}

.dz-uploadprogress-overlay div.upl-text > span {
    font-size: 24px;
    font-weight: 300;
    color: #e6e6e6;
}

.dz-uploadprogress-overlay div.upl-cancel {
    text-align: center;
}

.dz-uploadprogress-overlay .progress {
    height: 15px;
    margin-bottom: 8px;
}

.dz-uploadprogress-overlay .progress .progress-bar {
    background-color: #204592;
    width: 0%;
}

.dropzone .dz-preview .open-btn-file {
    background: rgba(217, 217, 217, 0.38);
    border: 0.5px solid #ffffff;
    border-radius: 2px;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 10px;
}

.dropzone .dz-preview .dz-image-overlay {
    display: none;

    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.dropzone .dz-preview .dz-image-photoviewer {
    display: none;

    color: #fff;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;

    position: absolute;
    height: 40px;
    top: calc(50% - 40px / 2 + 14px);

    background: rgba(0, 0, 0, 0.64);
    border-radius: 8px;
}

.dropzone .dz-preview:hover .open-btn-file,
.dropzone .dz-preview:hover .dz-image-overlay {
    display: block;
}

.dropzone .dz-preview:hover .dz-image-photoviewer {
    display: flex;
}
