/* Scoped to the file browser in the checksum-pinned Web 1.1.13 archive. */
section:has(.rclone-file-browser) > div.flex {
    min-width: 0;
}

/* Keep a readable Name column when the desktop sidebar takes screen space. */
.rclone-file-browser {
    min-width: 40rem;
}

@media (max-width: 639px) {
    .rclone-file-browser {
        min-width: 0;
    }

    /* Metadata must not consume all the space available for names. */
    .rclone-file-browser tr > :nth-child(2),
    .rclone-file-browser tr > :nth-child(3) {
        display: none;
    }

    .rclone-file-browser th:last-child {
        width: 6.5rem;
    }

    .rclone-file-browser tr > :last-child {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .rclone-file-browser td:first-child > button,
    .rclone-file-browser td:first-child > div {
        width: 100%;
        min-width: 0;
        gap: 0.5rem;
    }

    .rclone-file-browser td:first-child .shrink-0 {
        width: 2rem;
        height: 2rem;
    }

    .rclone-file-browser td:first-child .truncate {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
    }

    /* Touch screens cannot depend on hover to reveal file actions. */
    .rclone-file-browser td:last-child > div {
        opacity: 1;
    }

    section:has(.rclone-file-browser) [data-slot="breadcrumb-item"] {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}
