#upload > header {
    background-color: rgb(60, 0, 19);
    border-bottom: 1px solid rgb(212, 212, 212, 0.2);
    height: 70px;
    padding-top: env(safe-area-inset-top);
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
}

#upload > header > .left {
    box-sizing: border-box;
    cursor: pointer;
    height: 70px;
    left: 0;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 70px;
}

#upload > header > .left > img {
    width: 30px;
}

#upload > header > .right {
    box-sizing: border-box;
    height: 70px;
    padding: 20px;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 70px;
}

#upload > main {
    height: calc((100% - 70px - env(safe-area-inset-top) - 1px - env(safe-area-inset-bottom)) / 3);
    margin-top: calc(70px + env(safe-area-inset-top) + 1px);
    overflow-y: scroll;
    position: absolute;
    width: 100%;
}

#upload > main > .drop-zone {
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 40px;
    transition-duration: 0.5s;
}

#upload > main > .drop-zone.active {
    padding: 30px;
}

#upload > main > .drop-zone > div {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-width: 5px;
    border-style: dashed;
    border-color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition-duration: 0.5s;
}

#upload > main > .drop-zone.active > div {
    background-color: rgba(255, 255, 255, 0.1);
}

#upload > footer {
    box-sizing: border-box;
    margin-bottom: env(safe-area-inset-bottom);
    margin: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% - 40px);
    height: calc((100% - 70px - env(safe-area-inset-top) - 1px - env(safe-area-inset-bottom)) * 2 / 3);
    overflow: hidden;
}

#upload > footer > table {
    width: 100%;
    border-collapse: collapse;
}

#upload > footer > table > tbody > tr {
    border-bottom: 1px solid rgba(212, 212, 212, 0.1);
}

#upload > footer > table > tbody > tr:not(.title) {
    color: #666;
}

#upload > footer > table > tbody > tr.active {
    font-weight: bold;
    color: white;
}

#upload > footer > table > tbody > tr.error {
    cursor: pointer;
    color: #ED4337;
    background-color: rgba(255, 0, 0, 0.1);
}

#upload > footer > table > tbody > tr > th {
    padding: 10px 0;
}

#upload > footer > table > tbody > tr > th.icon {
    width: 37px;
    padding: 0 20px;
}

#upload > footer > table > tbody > tr > th.icon,
#upload > footer > table > tbody > tr > td.icon {
    width: 37px;
    padding: 10px 20px;
}

#upload > footer > table > tbody > tr > td.icon > img {
    display: block;
    height: 40px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

#upload > footer > table > tbody > tr > td.title {
    box-sizing: border-box;
    width: calc(100% - 100px);
    padding: 0 10px;
    word-break: break-all;
    line-break: anywhere;
}

#upload > footer > table > tbody > tr > th.percent,
#upload > footer > table > tbody > tr > td.percent {
    width: 40px;
    padding: 10px 10px;
    text-align: center;
    white-space: nowrap;
}