/* ---------- Instance files ---------- */

.instance-files {
    margin-top: 12px;
    padding: 16px;
}

.files-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.files-head h3 {
    margin: 0 8px 0 0;
}

.files-path {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-fill-rest, #0f6cbd);
    cursor: pointer;
    font: inherit;
}

.link-button:hover {
    text-decoration: underline;
}

.link-button.danger {
    color: #c4314b;
}

.link-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.upload-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid var(--neutral-stroke-rest, #c8c8c8);
    cursor: pointer;
    font-size: 0.9rem;
}

.upload-button input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-button.busy {
    opacity: 0.5;
    pointer-events: none;
}

.files-table td {
    vertical-align: middle;
}

.files-actions {
    white-space: nowrap;
    text-align: right;
}

.files-actions > * + * {
    margin-left: 12px;
}
