.d4-upload  {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 258px;
    padding: 0;
    font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial", serif;
    font-size: 14px;
    line-height: 22px;
    color: #727272;
    background-color: #fff;
    background-image: none;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.d4-upload .nav-link {
    color: #8094ae;
    cursor: pointer;
    border-radius: 0!important;
}

.d4-upload .nav-link:hover {
    background: rgb(64 81 137 / 80%);
    color: #fff !important;
}

.d4-upload .card-tools {
    position: absolute;
    z-index: 100;
    right: 10px;
    top: 10px;
}

.d4-upload .upload-preview{
    display: block;
    position: absolute;
    z-index: 1;
    padding: 5px;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    text-align: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.d4-upload .upload-preview .upload-infos:hover {
    opacity: 0.8;
}

.d4-upload .upload-preview .upload-render img {
    top: 50%;
    transform: translate(0, -50%);
    position: relative;
    height: auto;
    width: 100%;
    background-color: #fff;
    transition: border-color 0.15s linear;
}

.d4-upload .upload-preview .upload-infos {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.15s linear;
    cursor: default;
}

.d4-upload .upload-preview .upload-infos .upload-infos-inner {
    position: absolute;
    top: 50%;
    transform: translate(0, -40%);
    backface-visibility: hidden;
    width: 100%;
    padding: 0 20px;
    transition: all 0.2s ease;
}

.d4-upload .upload-preview .upload-infos .upload-infos-inner p.upload-filename {
    font-weight: bold;
}
.d4-upload .upload-preview .upload-infos .upload-infos-inner p {
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-align: center;
    line-height: 25px;
}

.d4-upload .nav-switch-s2 {
    border-radius: 0;
    min-width: 100%;
}

.d4-upload .nav-switch-s2 .nav-item:first-child .nav-link {
    border-radius: 0;
}

.d4-upload .nav-switch-s2 .nav-item:last-child .nav-link { border-radius: 0; }

.drop-file-area {
    min-height: 150px;
    border-radius: 4px;
    background: white;
    padding: 20px 20px;
}

.d4-upload .drop-file-area {
    padding: 42px 20px;
}

.d4-upload .drop-file-area .dz-message {
    text-align: center;
    margin: 1em 0;
}

.d4-upload .drop-file-area .dz-message span {
    display: block;
    color: rgba(82, 100, 132, 0.6);
}
.d4-upload .drop-file-area .dz-message-text {
    font-size: 13px;
}

.d4-upload .camera-image-preview{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
}

.dark-mode .drop-file-area {
    background: #141c26;
}