.download_page {
    margin: 1em;
}

#page.download_page h4 {
    display: inline;
}

.download_page .disclaimer {
    margin: 1em auto;
    padding: 0 2em;
    font-size: 1.1em;
    line-height: 1.2em;
    text-align: center;
    max-width: 60em;
}

.download_page .files .select_all {
    margin-left: 1.2em;
}

.download_page .files .select_all span:first-child {
    vertical-align: bottom;
}

.download_page .files .select_all .select {
    text-decoration: none;
}

.download_page .files .select_all .select span {
    vertical-align: middle;
}

.download_page .files .file {
    height: 3em;
    margin: 0.25em;
    padding: 1.2em 0.5em 0.5em 0.5em;
}

.download_page .files .file .name {
    text-overflow: ellipsis;
    max-width: 25em;
    width: 100%;
    display: inline-block;
    height: 1em;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.4em;
    padding: 1em 0;
}

.download_page .files .file .size {
    color: #777;
}

.download_page .files .file .avresult {
    text-align: right;
}

.download_page .files .file .download {
    float: right;
    margin-top: -0.5em;
}


.download_page .archive {
    margin-top: 2em;
    text-align: center;
}

.download_page .archive_tar_download_frame,
.download_page .archive_download_frame {
    border-radius: 0.5em 0.5em 0.5em 0.5em;
    -moz-border-radius: 0.5em 0.5em 0.5em 0.5em;
    display: inline-block;
}

.download_page .archive .archive_message,
.download_page .archive .mac_archive_message {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* 1. Turn the main file row into a flex container */
.download_page .files .file {
    display: flex;
    align-items: center; /* Vertically aligns everything in the middle */
    gap: 1em; /* Adds consistent spacing between items */
    
    padding: 12px 16px;
    margin: 8px 0;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* 2. Style the file name */
.download_page .files .file .name {
    font-weight: 600;
    color: #111827;
}

/* 3. De-emphasize the file size text */
.download_page .files .file .size {
    font-size: 0.9em;
    color: #6b7280;
}

/* 4. Push the download button and status to the far right */
.download_page .files .file .download {
    margin-left: auto; /* This is the magic part! */
    text-decoration: none;
    /* You can add modern button styles here if you wish */
}

/* 5. Style the download progress text */
.download_page .files .file .downloadprogress {
    font-weight: 600;
    color: #16a34a; /* Green for success */
    min-width: 130px; /* Give it space to prevent wrapping */
    text-align: right;
}

.download_page .files[data-count="1"] .select_all,
.download_page .files[data-count="1"] .file .select,
.download_page .files[data-count="1"] .archive {
    display: none;
}

.download_page .progressbar.user_quota {
    display: none;
}

.downloadprogress {
    float:right;
    font-size:1.7em;
    padding-right:20px;
    min-width: 100px;
}
