/* The app's own styles, on top of Simple.css. */

/* Simple.css sets "display" on some elements, e.g. buttons, which would show them
   even with the hidden attribute. */
[hidden] {
    display: none !important;
}

/* Simple.css makes the page 45rem wide, which is too narrow for the file tables. */
body {
    grid-template-columns: 1fr min(70rem, 90%) 1fr;
}

#form-fields {
    border: none;
    padding: 0;
    margin: 0;
}

#drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--standard-border-radius);
    padding: 1.5rem;
    text-align: center;
}

#drop-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

/* Only file names can wrap: they can be very long. */
#file-list td, #file-list th, #your-uploads td, #your-uploads th {
    white-space: nowrap;
}

#file-list td:first-child, #your-uploads td:first-child {
    white-space: normal;
    overflow-wrap: anywhere;
}

#file-list progress {
    width: 8rem;
    vertical-align: middle;
}

#file-list td button {
    margin: 0;
}

#upload-message.error {
    color: var(--marked, #d00);
}

tr.cancelled {
    color: var(--text-light);
}

tr.cancelled td:first-child {
    text-decoration: line-through;
}

#file-list, #your-uploads table {
    width: 100%;
}

/* Keep each command on one line. */
#your-uploads p code {
    white-space: nowrap;
}
