:root {
    --infolist-h: 100px;
    --row-h: 35px;

    --filelist-w: 400px;
}

.upload_container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;

    gap: 10px;
}

.uploadform {
    display: flex;
    flex-direction: column;
    
    width: 100%;
    height: 100%;
}

.uploadform.isdragging div.dropzone {
    border-radius: 45px;
}

.uploadform div.dropzone {
    height: -webkit-fill-available;
    width: 100%;
    max-height: calc(100% - var(--infolist-h));
    
    background-color: #ffffff;
    color: black;
    
    border: 10px dashed black;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition: all 0.665s;
}

.uploadform div.dropzone label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    
    width: 80%;
    height: auto;
}

.uploadform div.infolist {
    height: var(--infolist-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uploadform div.infolist > * {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;
}

.uploadform div.infolist .title {
    font-weight: bold;
}

.uploadform .dropzone #files {
    display: none;
}

.uploadform .dropzone .dropzone_toolbar {
    /* height: 50px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.upload_container .filelist {
    width: 0px;
    height: auto;
    
    overflow: auto;
}

.upload_container .filelist.show {
    /* width: var(--filelist-w); */
    width: var(--filelist-w);
    background-color: rgb(43 51 63 / 70%);
    border: 1px solid black;
    padding: 5px;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

/* .uploadform .dropzone .filelist { */
/*     width: 100%; */
/*     height: 0px; */
/*     max-height: calc(100% - 50px); */
    
/*     transition: 0.665s all ease-in-out; */
/*     overflow: auto; */
/* } */

/* .uploadform .dropzone .filelist.show { */
/*     height: calc(100% - 50px); */
/* } */

.upload_container .filelist .filelist-item {
    display: flex;
    flex-direction: row;
    height: var(--row-h);
}

.upload_container .filelist .filelist-item > * {
    flex: 1;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-align: center;
    line-height: 30px;
}

.upload_container .filelist .filelist-item > .info.name {
    text-align: start;
}

.upload_container .filelist .filelist-item > .info.size {
    width: max-content;
}

.upload_container .filelist .filelist-item img {
    width: var(--row-h);
    height: 100%;

    max-width: var(--row-h);
    height: var(--row-h);
}

.upload_container .filelist .filelist-item .bdelete {
    width: var(--row-h);
    height: 100%;

    max-width: var(--row-h);
    max-height: var(--row-h);

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 0;
    color: white;
}

.upload_container .filelist .filelist-item .bdelete:hover {
    color: red;
}

.upload_container .filelist .filelist-item.doublerow {
    display: flex;
    flex-direction: column;
    
    height: calc(var(--row-h) * 2);
    padding: 0px 5px;
    box-sizing: border-box;
}

.upload_container .filelist .filelist-item .progress-bar {
    width: 100%;
}

.upload_container .progress-wrapper {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.upload_container .progress-wrapper.show {
    width: 100%;
    /* display: block !important; */
    
    z-index: 1100;
}

.upload_container .progress-wrapper .progress-bar {
    background-color: whiteSmoke;
    border-radius: 25px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25) inset;
    border: 1px solid black;
    width: 100%;
    height: 20px;
    overflow: hidden;
    
    position: relative;
    display: block;
}

.upload_container .progress-wrapper .progress-bar.error {
    display: flex;
    justify-content: center;
}

.upload_container .progress-wrapper .progress-bar.error > span {
    height: 100%;
    width: 0%;
    
    background: rgb(2,0,36);
    
    /* background-image: linear-gradient(135deg, #536976 10%, #292E49 100%); */
    background-image: linear-gradient(135deg, #F05F57 10%, #360940 100%);
    
    display: block;
    
    transition: 0.6s all;
    
    /* text-indent: -9999px; */
}

.upload_container .progress-wrapper .progress-bar > span {
    height: 100%;
    width: 0%;
    
    background: rgb(2,0,36);
    
    /* background-image: linear-gradient(135deg, #536976 10%, #292E49 100%); */
    background-image: linear-gradient(135deg, #97ABFF 10%, #123597 100%);
    
    display: block;
    
    transition: 0.6s all;
    
    /* text-indent: -9999px; */
}

.upload_container .progress-wrapper .txt {
    position: absolute;
    left: 45%;
    top: 0;
    
    color: white;
    font-weight: bold;
    
    line-height: 20px;
    height: 100%;
    z-index: 1110;
    
    text-shadow: 0px 0px 2px black;
}

.upload_container .progress-wrapper .progress-bar.error .txt {
    left: auto !important;
    top: auto !important;
}

.upload_container .dropzone .bupload {
    background-color: var(--cimportant);
    border: 0px;
    color: var(--text-important);
    padding: 15px;
    border-radius: 2px;
    box-shadow: var(--bs1);
    font-weight: bold;
}
