/***************************/
/* COMPONENT: UPLOAD QUEUE */
.component_upload {
    position: fixed;
    bottom: 0;
    right: 00px;
    z-index: 999;
    width: 100%;
    max-width: 550px;
    box-shadow: 1px 2px 20px rgba(0, 0, 0, 0.1);
    background: white;
    box-sizing: border-box;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.dark-mode .component_upload {
    color: var(--bg-color);
}

.component_upload h2 {
    padding: 20px 20px 5px 20px;
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: normal;
}
.component_upload h2 .percent {
    color: var(--emphasis-primary);
}
.component_upload h2 .count_block {
    display: inline;
    margin-left: 10px;
}
.component_upload h2 .count_block span.grandTotal {
    font-size: 0.8em;
    opacity: 0.8;
}
.component_upload h2 .count_block span.grandTotal:before {
    content: "/";
}
.component_upload h2 .count_block span.completed {
    opacity: 0.8;
}
.component_upload h2 .component_icon {
    cursor: pointer;
    margin-left: 10px;
    width: 20px;
    float: right;
}
.component_upload h3 {
    padding: 3px 20px 3px 20px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: normal;
    background: var(--dark);
    color: var(--super-light);
}
.component_upload h3 span {
    float: right;
}

.component_upload .stats_content {
    padding: 5px 10px 5px 20px;
    clear: both;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 0.85em;
}
.component_upload .stats_content:empty {
    display: none;
}
.component_upload .stats_content .error_color {
    color: var(--error);
}
.component_upload .stats_content .todo_color {
    opacity: 0.7;
}
.component_upload .stats_content .file_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}
.component_upload .stats_content .file_row .file_path {
    flex: 1;
    padding: 0px 3px 0px 0;
    line-height: 25px;
}
.component_upload .stats_content .file_row .file_path .speed {
    font-size: 0.7rem;
    opacity: 0.7;
    padding-left: 5px;
    line-height: 0.7rem;
}
.component_upload .stats_content .file_row .file_path .speed:not(:empty):before {
    content: "(";
}
.component_upload .stats_content .file_row .file_path .speed:not(:empty):after {
    content: ")";
}
.component_upload .stats_content .file_row .file_state {
    width: 50px;
    line-height: 25px;
    text-align: right;
    padding-right: 3px;
}
.component_upload .stats_content .file_row .file_control {
    width: 25px;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-left: -2px;
    margin-right: -2px;
}
.component_upload .stats_content .file_row .file_control img {
    display: none;
    cursor: pointer;
    height: 22px;
    width: 22px;
}
.component_upload .stats_content .file_row:hover .file_control img {
    display: inherit;
    padding-top: 3px;
}

/***********************/
/* COMPONENT: FILEZONE */
[data-bind="filemanager-children"].dropzone {
    border: 2px dashed!important;
}

/**************************/
/* COMPONENT: FILE UPLOAD */
.component_mobilefileupload {
    display: inline;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1;
}
.component_mobilefileupload input[type="file"] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    appearance: none;
    z-index: -1;
}
.component_mobilefileupload input[type="file"]:focus-visible {
    background: rgba(0, 0, 0, 0.8);
    outline: 2px solid;
}
.component_mobilefileupload input[type="file"]::file-selector-button {
    display: none;
}
.component_mobilefileupload input[type="file"]:focus + label, .component_mobilefileupload input[type="file"] + label:hover {
    opacity: 0.95;
}
.component_mobilefileupload input[type="file"] + label {
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    background: #57595A;
    border-radius: 50%;
    background-position: center;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px, rgba(0, 0, 0, 0.2) 0px 2px 4px -1px;
    width: 50px;
    height: 50px;
}
.component_mobilefileupload input[type="file"] + label:hover {
    transition: background 0.4s;
    filter: brightness(0.95);
}
.component_mobilefileupload input[type="file"] + label:hover::before {
    content: "";
    width: inherit;
    height: inherit;
    position: absolute;
    border-radius: 100%;
    animation: halofab 0.8s ease-in-out;
    z-index: -1;
}
@keyframes halofab {
    0% { border: 1px solid transparent; }
    100% { border: 25px solid rgba(0,0,0,0.1); opacity: 0 }
}
.component_mobilefileupload input[type="file"] + label:active {
    filter: brightness(0.8);
}
.component_mobilefileupload input[type="file"] + label .component_icon {
    width: 24px;
    height: 24px;
    padding: 13px;
}
.component_mobilefileupload button {
    padding: 0;
    border-radius: inherit;
}

.mobilefileupload-appear {
    transform: translateX(75px);
    transition: transform 0.25s ease;
}
.mobilefileupload-appear-active {
    transition-delay: 0.3s;
    transform: translateX(0px);
}
